diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2015-03-30 09:32:32 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-04-02 09:24:21 -0500 |
commit | aef4c7b28a69591d496b95795e47a601b5657e31 (patch) | |
tree | feaf549e8e2e648b6a15e62ac174ad27508d501b /src/include/usr | |
parent | 0271c390defa65d68c9282b1d9c9fcc12bee513c (diff) | |
download | talos-hostboot-aef4c7b28a69591d496b95795e47a601b5657e31.tar.gz talos-hostboot-aef4c7b28a69591d496b95795e47a601b5657e31.zip |
SW295054: INITPROC: FSP&Hostboot - HWP updates for week of 2/9
CQ:SW295054
Change-Id: Ia5c72fbe2f9ae9980a40a22fb055bba9d0f07cef
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16136
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com>
Tested-by: PRACHI GUPTA <pragupta@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16756
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/hwpf/plat/fapiPlatAttributeService.H | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H index e08b79629..11d519077 100644 --- a/src/include/usr/hwpf/plat/fapiPlatAttributeService.H +++ b/src/include/usr/hwpf/plat/fapiPlatAttributeService.H @@ -430,6 +430,51 @@ fapi::ReturnCode fapiPlatGetProcPcieBarSize ( /** * @brief This function is called by the FAPI_ATTR_GET macro when getting + * ATTR_PROC_NPU_MMIO_BAR_ENABLE + * It should not be called directly. + * + * @param[in] i_pTarget Target pointer + * @param[out] o_mmioBarEnable NPU MMIO Bar Enable + * @note: the array size of 4,2 was pulled from + * the xml file and is not expected to change. + * @return ReturnCode. Zero on success, else platform specified error + */ +fapi::ReturnCode fapiPlatGetNpuMmioBarEnable ( + const fapi::Target * i_pTarget, + uint8_t (&o_mmioBarEnable) [4][2] ); + +/** + * @brief This function is called by the FAPI_ATTR_GET macro when getting + * ATTR_PROC_NPU_MMIO_BAR_BASE_ADDR + * It should not be called directly. + * + * @param[in] i_pTarget Target pointer + * @param[out] o_mmioBarBaseAddr NPU MMIO Bar Base Address + * @note: the array size of 4,2 was pulled from + * the xml file and is not expected to change. + * @return ReturnCode. Zero on success, else platform specified error + */ +fapi::ReturnCode fapiPlatGetNpuMmioBarBaseAddr ( + const fapi::Target * i_pTarget, + uint64_t (&o_mmioBarBaseAddr) [4][2] ); + +/** + * @brief This function is called by the FAPI_ATTR_GET macro when getting + * ATTR_PROC_NPU_MMIO_BAR_SIZE + * It should not be called directly. + * + * @param[in] i_pTarget Target pointer + * @param[out] o_mmioBarSize NPU MMIO Bar Size + * @note: the array size of 4,2 was pulled from + * the xml file and is not expected to change. + * @return ReturnCode. Zero on success, else platform specified error + */ +fapi::ReturnCode fapiPlatGetNpuMmioBarSize ( + const fapi::Target * i_pTarget, + uint64_t (&o_mmioBarSize) [4][2] ); + +/** + * @brief This function is called by the FAPI_ATTR_GET macro when getting * ATTR_EX_L2_SINGLE_MEMBER_ENABLE. It should not be called directly. * * @param[in] i_pTarget Target MB pointer @@ -1190,6 +1235,15 @@ fapi::ReturnCode fapiPlatGetRCDCntlWord015 (const fapi::Target * i_pTarget, #define ATTR_PROC_PCIE_BAR_SIZE_GETMACRO( ID, PTARGET, VAL ) \ fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID, PTARGET, &VAL) ? fapi::FAPI_RC_SUCCESS : \ fapi::platAttrSvc::fapiPlatGetProcPcieBarSize (PTARGET, VAL ) +#define ATTR_PROC_NPU_MMIO_BAR_ENABLE_GETMACRO( ID, PTARGET, VAL ) \ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID, PTARGET, &VAL) ? fapi::FAPI_RC_SUCCESS : \ + fapi::platAttrSvc::fapiPlatGetNpuMmioBarEnable (PTARGET, VAL ) +#define ATTR_PROC_NPU_MMIO_BAR_BASE_ADDR_GETMACRO( ID, PTARGET, VAL ) \ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID, PTARGET, &VAL) ? fapi::FAPI_RC_SUCCESS : \ + fapi::platAttrSvc::fapiPlatGetNpuMmioBarBaseAddr (PTARGET, VAL ) +#define ATTR_PROC_NPU_MMIO_BAR_SIZE_GETMACRO( ID, PTARGET, VAL ) \ + fapi::AttrOverrideSync::getAttrOverrideFunc(fapi::ID, PTARGET, &VAL) ? fapi::FAPI_RC_SUCCESS : \ + fapi::platAttrSvc::fapiPlatGetNpuMmioBarSize (PTARGET, VAL ) //------------------------------------------------------------------------------ // MACROS to support enable attributes in p8_xip_customize_attributes.xml |