From fcf2fc04cfa705d3beb138edfe379ab0c228aad6 Mon Sep 17 00:00:00 2001 From: Shakeeb Date: Thu, 22 Sep 2016 02:02:41 -0500 Subject: SBE plat scom error handling Change-Id: Iffc9686fa745040a0d0f1c3a6b5f0dacc89a1c66 RTC:158016 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30078 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- src/hwpf/include/plat/plat_hw_access.H | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/hwpf/include/plat') diff --git a/src/hwpf/include/plat/plat_hw_access.H b/src/hwpf/include/plat/plat_hw_access.H index cd0078f9..23637c10 100644 --- a/src/hwpf/include/plat/plat_hw_access.H +++ b/src/hwpf/include/plat/plat_hw_access.H @@ -140,22 +140,24 @@ namespace fapi2 /// /// @brief Platform wrapper over PK getscom_abs /// - /// @param [in] i_addr The SCOM address + /// @param [in] i_addr The SCOM address /// @param [out] o_data The data read /// - /// @return PCB-PIB return code + /// @return fapi::ReturnCode. FAPI2_RC_SUCCESS if success, else error code. /// - uint32_t getscom_abs_wrap(const void *i_target, const uint32_t i_addr, uint64_t *o_data); + fapi2::ReturnCode getscom_abs_wrap(const void *i_target, + const uint32_t i_addr, uint64_t *o_data); /// /// @brief Platform wrapper over PK putscom_abs /// /// @param [in] i_addr The SCOM address - /// @param [in] i_data The data read + /// @param [in] i_data The data to write /// - /// @return PCB-PIB return code + /// @return fapi::ReturnCode. FAPI2_RC_SUCCESS if success, else error code. /// - uint32_t putscom_abs_wrap(const void *i_target, const uint32_t i_addr, uint64_t i_data); + fapi2::ReturnCode putscom_abs_wrap(const void *i_target, + const uint32_t i_addr, uint64_t i_data); /// /// @brief Platform wrapper to retry scom for parity/timeout errors -- cgit v1.2.1