summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/fapi2/attribute_service.C64
-rwxr-xr-xsrc/usr/fapi2/makefile3
-rw-r--r--src/usr/fapi2/test/makefile2
3 files changed, 35 insertions, 34 deletions
diff --git a/src/usr/fapi2/attribute_service.C b/src/usr/fapi2/attribute_service.C
index 3bcbcfd35..20e26efee 100644
--- a/src/usr/fapi2/attribute_service.C
+++ b/src/usr/fapi2/attribute_service.C
@@ -52,7 +52,7 @@
#include <devicefw/driverif.H>
#include <plat_attr_override_sync.H>
#include <vpd/spdenums.H>
-#include <p9_pm_get_poundv_bucket.H>
+#include <p9_pm_get_poundv_bucket_attr.H>
#include <errl/errlmanager.H>
#include <targeting/common/targetservice.H>
@@ -391,38 +391,38 @@ ReturnCode platGetFusedCoreMode(uint8_t & o_isFused)
return fapi2::ReturnCode();
}
-//******************************************************************************
+// ******************************************************************************
// fapi2::platAttrSvc::platGetPoundVBucketData function
-//******************************************************************************
-// ReturnCode platGetPoundVBucketData(const Target<TARGET_TYPE_EQ>& i_fapiTarget,
-// uint8_t * o_poundVData)
-// {
-// fapi2::ReturnCode rc;
-// if(i_fapiTarget.getType() != TARGET_TYPE_EQ)
-// {
-// /*@
-// * @errortype ERRORLOG::ERRL_SEV_UNRECOVERABLE
-// * @moduleid fapi2::MOD_FAPI2_MVPD_ACCESS
-// * @reasoncode RC_INCORRECT_TARGET
-// * @userdata1 Actual Target Type
-// * @userdata2 Expected Target Type
-// * @devdesc Attempted to read attribute from wrong target type
-// * @custdesc Firmware Error
-// */
-// errlHndl_t l_errl = new ERRORLOG::ErrlEntry(ERRORLOG::ERRL_SEV_UNRECOVERABLE,
-// MOD_FAPI2_MVPD_ACCESS,
-// RC_INCORRECT_TARGET,
-// i_fapiTarget.getType(),
-// TARGET_TYPE_EQ,
-// true);
-// rc.setPlatDataPtr(reinterpret_cast<void *> (l_errl));
-// }
-// else
-// {
-// rc = p9_pm_get_poundv_bucket_attr(i_fapiTarget,o_poundVData);
-// }
-// return rc;
-// }
+// ******************************************************************************
+ReturnCode platGetPoundVBucketData(const Target<TARGET_TYPE_EQ>& i_fapiTarget,
+ uint8_t * o_poundVData)
+{
+ fapi2::ReturnCode rc;
+ if(i_fapiTarget.getType() != TARGET_TYPE_EQ)
+ {
+ /*@
+ * @errortype ERRORLOG::ERRL_SEV_UNRECOVERABLE
+ * @moduleid fapi2::MOD_FAPI2_MVPD_ACCESS
+ * @reasoncode RC_INCORRECT_TARGET
+ * @userdata1 Actual Target Type
+ * @userdata2 Expected Target Type
+ * @devdesc Attempted to read attribute from wrong target type
+ * @custdesc Firmware Error
+ */
+ errlHndl_t l_errl = new ERRORLOG::ErrlEntry(ERRORLOG::ERRL_SEV_UNRECOVERABLE,
+ MOD_FAPI2_MVPD_ACCESS,
+ RC_INCORRECT_TARGET,
+ i_fapiTarget.getType(),
+ TARGET_TYPE_EQ,
+ true);
+ rc.setPlatDataPtr(reinterpret_cast<void *> (l_errl));
+ }
+ else
+ {
+ rc = p9_pm_get_poundv_bucket_attr(i_fapiTarget,o_poundVData);
+ }
+ return rc;
+}
diff --git a/src/usr/fapi2/makefile b/src/usr/fapi2/makefile
index 6ad102c76..c9cdbe759 100755
--- a/src/usr/fapi2/makefile
+++ b/src/usr/fapi2/makefile
@@ -48,7 +48,8 @@ include ${ROOTPATH}/src/import/tools/build/common.dir/script.rules.mk
include ${ROOTPATH}/src/import/hwpf/fapi2/tools/parseErrorInfo.mk
include ${ROOTPATH}/src/import/hwpf/fapi2/tools/parseAttributeInfo.mk
include ${ROOTPATH}/src/import/hwpf/fapi2/tools/createIfAttrService.mk
-# include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.mk
+include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.mk
+include $(ROOTPATH)/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket_attr.mk
include ${ROOTPATH}/config.mk
diff --git a/src/usr/fapi2/test/makefile b/src/usr/fapi2/test/makefile
index e3c974eef..472c748e4 100644
--- a/src/usr/fapi2/test/makefile
+++ b/src/usr/fapi2/test/makefile
@@ -51,7 +51,7 @@ TESTS += fapi2GetChildrenTest.H
TESTS += fapi2BasicTryTest.H
TESTS += fapi2GetOtherEndTest.H
TESTS += fapi2SpdTestCxx.H
-# TESTS += fapi2MvpdTestCxx.H
+TESTS += fapi2MvpdTestCxx.H
include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud