summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/attribute_service.C
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2017-02-16 16:25:39 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-22 11:56:00 -0500
commit171c966b12edeac7c55ebad325232573145f77fa (patch)
treea01e22f3a4583b35402724cf5a8d655f2f6e40f9 /src/usr/fapi2/attribute_service.C
parent441ed258ed8dedb443c1cf12a0b3e20bcf995eeb (diff)
downloadtalos-hostboot-171c966b12edeac7c55ebad325232573145f77fa.tar.gz
talos-hostboot-171c966b12edeac7c55ebad325232573145f77fa.zip
Initial Support for VDM data from #W keyword of VPD in Hostboot
Make MVPD additions and updates to add support for #W keyword. Change-Id: Id124bc5bdb5c6336b042ff7f41250626643a608e RTC:162011 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36637 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/attribute_service.C')
-rw-r--r--src/usr/fapi2/attribute_service.C35
1 files changed, 33 insertions, 2 deletions
diff --git a/src/usr/fapi2/attribute_service.C b/src/usr/fapi2/attribute_service.C
index ef588a5ef..c622683d1 100644
--- a/src/usr/fapi2/attribute_service.C
+++ b/src/usr/fapi2/attribute_service.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -53,6 +53,8 @@
#include <plat_attr_override_sync.H>
#include <vpd/spdenums.H>
#include <p9_pm_get_poundv_bucket_attr.H>
+// TODO RTC:162011 after new .H file is mirrored
+//#include <p9_pm_get_poundw_bucket_attr.H>
#include <errl/errlmanager.H>
#include <targeting/common/targetservice.H>
@@ -441,7 +443,7 @@ ReturnCode platGetFusedCoreMode(uint8_t & o_isFused)
return fapi2::ReturnCode();
}
-// ******************************************************************************
+//******************************************************************************
// fapi2::platAttrSvc::platGetPoundVBucketData function
//******************************************************************************
ReturnCode platGetPoundVBucketData(const Target<TARGET_TYPE_ALL>& i_fapiTarget,
@@ -470,6 +472,35 @@ ReturnCode platGetPoundVBucketData(const Target<TARGET_TYPE_ALL>& i_fapiTarget,
return rc;
}
+//******************************************************************************
+// fapi2::platAttrSvc::platGetPoundWBucketData function
+//******************************************************************************
+ReturnCode platGetPoundWBucketData(const Target<TARGET_TYPE_ALL>& i_fapiTarget,
+ uint8_t * o_poundWData)
+{
+ fapi2::ReturnCode rc;
+
+ // Don't need to check the type here, the FAPI_ATTR_GET macro clause
+ // "fapi2::Target<ID##_TargetType>(TARGET)" does it for us. However,
+ // to enable a streamlined dump of the attributes, all plat code must use
+ // the generic TARGET_TYPE_ALL -- so convert back to the correct type
+ // manually
+ TARGETING::Target * l_pTarget = NULL;
+ errlHndl_t l_errl = getTargetingTarget(i_fapiTarget, l_pTarget);
+ if (l_errl)
+ {
+ FAPI_ERR("getTargetingAttr: Error from getTargetingTarget");
+ rc.setPlatDataPtr(reinterpret_cast<void *> (l_errl));
+ }
+ else
+ {
+ fapi2::Target<TARGET_TYPE_EQ> l_fapiTarget( l_pTarget);
+// TODO RTC:162011 after new .C file is mirrored
+// rc = p9_pm_get_poundw_bucket_attr(l_fapiTarget,o_poundWData);
+ }
+
+ return rc;
+}
OpenPOWER on IntegriCloud