diff options
| author | Marty Gloff <mgloff@us.ibm.com> | 2017-02-16 16:25:39 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-02-22 11:56:00 -0500 |
| commit | 171c966b12edeac7c55ebad325232573145f77fa (patch) | |
| tree | a01e22f3a4583b35402724cf5a8d655f2f6e40f9 /src/include | |
| parent | 441ed258ed8dedb443c1cf12a0b3e20bcf995eeb (diff) | |
| download | talos-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/include')
| -rw-r--r-- | src/include/usr/fapi2/attribute_service.H | 27 | ||||
| -rw-r--r-- | src/include/usr/vpd/mvpdenums.H | 1 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/include/usr/fapi2/attribute_service.H b/src/include/usr/fapi2/attribute_service.H index fb82f8a90..d02e29df7 100644 --- a/src/include/usr/fapi2/attribute_service.H +++ b/src/include/usr/fapi2/attribute_service.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2016 */ +/* Contributors Listed Below - COPYRIGHT 2015,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -219,6 +219,23 @@ ReturnCode platGetFusedCoreMode(uint8_t & o_isFused); ReturnCode platGetPoundVBucketData(const Target<TARGET_TYPE_ALL>& i_fapiTarget, uint8_t * o_poundVData); +/// +/// @brief This function is called by the FAPI_ATTR_GET macro when getting +/// ATTR_POUNDW_BUCKET_DATA. It should not be called directly +/// +/// +/// @param[in] i_fapiTarget FAPI2 Target reference +/// Don't need to check the type here, get macro +/// does it for us, thus use the all type to +/// allow streamlined dump of ATTR +/// @param[out] o_pos Output pound w bucket data +/// @return ReturnCode Always FAPI2_RC_SUCCESS, this cannot fail +/// if a toplevel target cannot be found then +/// an assert triggers in the platform call +/// +ReturnCode platGetPoundWBucketData(const Target<TARGET_TYPE_ALL>& i_fapiTarget, + uint8_t * o_poundWData); + // ----------------------------------------------------------------------------- // End TODO: End to be supported functions // ----------------------------------------------------------------------------- @@ -292,4 +309,12 @@ fapiToTargeting::ID, sizeof(VAL), &(VAL)) ? fapi2::ReturnCode() : \ fapi2::platAttrSvc::platGetPoundVBucketData(TARGET,VAL) +//------------------------------------------------------------------------------ +// MACRO to route ATTR_POUNDW_BUCKET_DATA access to the correct HB function +//------------------------------------------------------------------------------ +#define ATTR_POUNDW_BUCKET_DATA_GETMACRO(ID, TARGET, VAL) \ + AttrOverrideSync::getAttrOverrideFunc(ID, TARGET, &VAL)\ + ? fapi2::ReturnCode() : \ + fapi2::platAttrSvc::platGetPoundWBucketData(TARGET,VAL) + #endif // ATTRIBUTESERVICE_H_ diff --git a/src/include/usr/vpd/mvpdenums.H b/src/include/usr/vpd/mvpdenums.H index fb0a1a00f..4b8084707 100644 --- a/src/include/usr/vpd/mvpdenums.H +++ b/src/include/usr/vpd/mvpdenums.H @@ -123,6 +123,7 @@ enum mvpdKeyword L6 = 0x28, L7 = 0x29, L8 = 0x2A, + pdW = 0x2B, // Last Keyword MVPD_LAST_KEYWORD, |

