diff options
| author | Bill Schwartz <whs@us.ibm.com> | 2014-05-19 20:31:14 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-05-29 11:15:18 -0500 |
| commit | 6681d384d729d448ef2b864a1f28d8982ad8f3cc (patch) | |
| tree | 62906fc34533bd51be7e1d3b67063b4badaa08f0 /src/include/usr/hwpf | |
| parent | 6750245027d53c6ba0b671f522e26971dc142653 (diff) | |
| download | blackbird-hostboot-6681d384d729d448ef2b864a1f28d8982ad8f3cc.tar.gz blackbird-hostboot-6681d384d729d448ef2b864a1f28d8982ad8f3cc.zip | |
Get raw card info
Add fapi attribute to return Module Specific Reference Raw Card and Revision.
Revision can be returned directly from the generic fapiPlatGetSpdAttr.
Merge Ref Raw Card Extention and Ref Raw Card so caller has a single
enumeration.
Change-Id: I8cc71ac758d57453b5aaae0daed4df9ff26b6d31
Backport: release-fips811
RTC: 107809
CQ: SW262043
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11171
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf')
| -rw-r--r-- | src/include/usr/hwpf/plat/fapiPlatAttributeService.H | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H index 99fb7366f..31ecaccdc 100644 --- a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H +++ b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H @@ -688,6 +688,18 @@ fapi::ReturnCode fapiPlatGetL3Length(const fapi::Target * i_pProcTarget, fapi::ReturnCode fapiPlatGetPciOscswitchConfig (const fapi::Target * i_pProcTarget, uint8_t &o_val); +/** + * @brief This function is called by the FAPI_ATTR_GET macro when getting the + * ATTR_SPD_MODSPEC_COM_REF_RAW_CARD attribute. + * It should not be called directly. + * + * @param[in] i_pDimmTarget Dimm Target pointer + * @param[out] o_data Reference to output data + */ +fapi::ReturnCode fapiPlatGetSpdModspecComRefRawCard + (const fapi::Target * i_pDimmTarget, + uint8_t &o_val); + } // namespace platAttrSvc @@ -1762,4 +1774,17 @@ fapi::ReturnCode fapiPlatGetPciOscswitchConfig fapi::FAPI_RC_SUCCESS : \ fapi::platAttrSvc::fapiPlatGetPciOscswitchConfig(PTARGET, VAL) +//------------------------------------------------------------------------------ +// MACRO to support Modspec raw card info +//------------------------------------------------------------------------------ +#define ATTR_SPD_MODSPEC_COM_REF_RAW_CARD_REV_GETMACRO(ID, PTARGET, VAL) \ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID, PTARGET, &VAL) ?\ + fapi::FAPI_RC_SUCCESS : \ + fapi::platAttrSvc::fapiPlatGetSpdAttr \ + (PTARGET, SPD::MODSPEC_COM_REF_RAW_CARD_REV, &(VAL), sizeof(VAL) ) +#define ATTR_SPD_MODSPEC_COM_REF_RAW_CARD_GETMACRO(ID, PTARGET, VAL) \ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID, PTARGET, &VAL) ?\ + fapi::FAPI_RC_SUCCESS : \ + fapi::platAttrSvc::fapiPlatGetSpdModspecComRefRawCard(PTARGET, VAL) + #endif // FAPIPLATATTRIBUTESERVICE_H_ |

