diff options
| author | Elizabeth Liner <eliner@us.ibm.com> | 2014-09-05 10:05:01 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-11-06 14:31:50 -0600 |
| commit | d2c667e95002a89e72cfabe8221a32a0319552a9 (patch) | |
| tree | 9e0e091eb1c8936e25f9ae145c66833b2e356750 /src/include/usr/hwpf/plat | |
| parent | 566d31deb492436c37124a9f369c298d7f3610b0 (diff) | |
| download | blackbird-hostboot-d2c667e95002a89e72cfabe8221a32a0319552a9.tar.gz blackbird-hostboot-d2c667e95002a89e72cfabe8221a32a0319552a9.zip | |
Rosetta Stone decompression files and attributes
RTC:113491
Change-Id: Ie6720e582f89342b123fc4b5c4c28aba5fe0c7a5
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13128
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf/plat')
| -rw-r--r-- | src/include/usr/hwpf/plat/fapiPlatAttributeService.H | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H index 15ead58f5..0ed731f6d 100644 --- a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H +++ b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H @@ -57,6 +57,7 @@ #include <hwpf/hwp/mvpd_accessors/getMBvpdSensorMap.H> #include <hwpf/hwp/mvpd_accessors/getControlCapableData.H> #include <hwpf/hwp/mvpd_accessors/accessMBvpdL4BankDelete.H> +#include <hwpf/hwp/mvpd_accessors/getISDIMMTOC4DAttrs.H> #include <hwpf/hwp/spd_accessors/getSpdAttrAccessor.H> #include <hwpf/hwp/pll_accessors/getPllRingInfoAttr.H> #include <hwpf/hwp/chip_accessors/getOscswitchCtlAttr.H> @@ -735,6 +736,30 @@ fapi::ReturnCode fapiPlatGetOscswitchCtl fapi::ReturnCode fapiPlatGetControlCapable(const fapi::Target * i_pTarget, uint8_t & o_val); +/** + * @brief This function is called by the FAPI_ATTR_GET macro when getting the + * ATTR_VPD_ISDIMMTOC4DQ attribute. + * It should not be called directly + * + * @param[in] i_pTarget MBA Target pointer + * @param[out] o_val Pointer to output array + */ +fapi::ReturnCode getIsDimmToC4DQ + (const fapi::Target * i_pTarget, + uint8_t (&o_val) [DIMM_TO_C4_PORTS][DIMM_TO_C4_DQ_ENTRIES]); + +/** + * @brief This function is called by the FAPI_ATTR_GET macro when getting the + * ATTR_VPD_ISDIMMTOC4DQS attribute. + * It should not be called directly. + * + * @param[in] i_pTarget MBA Target pointer + * @param[out] o_val Pointer to the output array + */ +fapi::ReturnCode getIsDimmToC4DQS + (const fapi::Target * i_pTarget, + uint8_t (&o_val) [DIMM_TO_C4_PORTS][DIMM_TO_C4_DQS_ENTRIES]); + } // namespace platAttrSvc } // namespace fapi @@ -781,6 +806,17 @@ fapi::ReturnCode fapiPlatGetControlCapable(const fapi::Target * i_pTarget, fapi::FAPI_RC_SUCCESS : fapi::platAttrSvc::fapiPlatGetControlCapable(PTARGET,VAL) //------------------------------------------------------------------------------ +// MACRO to support the DQ and DQS attributes. +//------------------------------------------------------------------------------ +#define ATTR_VPD_ISDIMMTOC4DQ_GETMACRO(ID,PTARGET,VAL)\ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID,PTARGET,&VAL)?\ + fapi::FAPI_RC_SUCCESS : fapi::platAttrSvc::getIsDimmToC4DQ(PTARGET,VAL) + +#define ATTR_VPD_ISDIMMTOC4DQS_GETMACRO(ID,PTARGET,VAL)\ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID,PTARGET,&VAL)?\ + fapi::FAPI_RC_SUCCESS : fapi::platAttrSvc::getIsDimmToC4DQS(PTARGET,VAL) + +//------------------------------------------------------------------------------ // MACROs to route each ATTR_SPD access to the Hostboot SPD function //------------------------------------------------------------------------------ #define ATTR_SPD_DRAM_DEVICE_TYPE_GETMACRO(ID, PTARGET, VAL) \ |

