diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2018-03-20 16:01:35 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-03-21 16:24:52 -0400 |
commit | 3f639460a8f1b85cdc22539675b8e2e6bae4981e (patch) | |
tree | 5628b8b382b827f562b3383b701ee8f18548b2e6 /src/include | |
parent | 7ce93122ca1e7a9eeebd88225b7e0c65c0e2a4df (diff) | |
download | talos-hostboot-3f639460a8f1b85cdc22539675b8e2e6bae4981e.tar.gz talos-hostboot-3f639460a8f1b85cdc22539675b8e2e6bae4981e.zip |
ATTR_CEN_VPD_DRAM_ADDRESS_MIRRORING: add function backed to this attribute
Change-Id: I95814e68937e82e9ba7ab1ce7a9dc2baca804532
CQ: SW415651
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56109
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/usr/fapi2/attribute_service.H | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/usr/fapi2/attribute_service.H b/src/include/usr/fapi2/attribute_service.H index eb1a1e9ed..d331d9637 100644 --- a/src/include/usr/fapi2/attribute_service.H +++ b/src/include/usr/fapi2/attribute_service.H @@ -329,6 +329,17 @@ ReturnCode platGetDQSAttrISDIMM( ); /// @brief This function is called by the FAPI_ATTR_GET macro when getting +// the CEN_VPD_DRAM_ADDRESS_MIRRORING attribute. It should not be called directly. +// +// @param[in] i_fapiTarget The target for the attribute operation. +// @param[out] o_dramAddressMirroring The retrieved attribute value. +// @return ReturnCode Zero on success, else platform specified error. +ReturnCode platGetMBvpdDramAddressMirroring( + const Target<TARGET_TYPE_ALL>& i_fapiTarget, + ATTR_CEN_VPD_DRAM_ADDRESS_MIRRORING_Type& o_dramAddressMirroring + ); + +/// @brief This function is called by the FAPI_ATTR_GET macro when getting // the DRAM_2N_MODE_ENABLED attribute. It should not be called directly. // // @param[in] i_fapiTarget The target for the attribute operation. @@ -610,6 +621,15 @@ fapiToTargeting::ID, sizeof(VAL), &(VAL)) fapi2::platAttrSvc::platGetDQSAttrISDIMM(TARGET, VAL) //----------------------------------------------------------------------------- +// MACRO to route ATTR_CEN_VPD_DRAM_ADDRESS_MIRRORING access to the correct +// HB function +//----------------------------------------------------------------------------- +#define ATTR_CEN_VPD_DRAM_ADDRESS_MIRRORING_GETMACRO(ID, TARGET, VAL) \ + AttrOverrideSync::getAttrOverrideFunc(ID, TARGET, &VAL)\ + ? fapi2::ReturnCode() : \ + fapi2::platAttrSvc::platGetMBvpdDramAddressMirroring(TARGET, VAL) + +//----------------------------------------------------------------------------- // MACRO to route ATTR_CEN_VPD_DRAM_2N_MODE_ENABLED access to the correct // HB function //----------------------------------------------------------------------------- |