diff options
author | Shakeeb <shakeebbk@in.ibm.com> | 2016-09-22 02:02:41 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-10-04 07:11:47 -0400 |
commit | fcf2fc04cfa705d3beb138edfe379ab0c228aad6 (patch) | |
tree | 465e4c7bddc76b7d5b5d05e3139182565f89633f /src/hwpf/include | |
parent | 7c87046da09c051b8a6b5084b227b05d4ca80a16 (diff) | |
download | talos-sbe-fcf2fc04cfa705d3beb138edfe379ab0c228aad6.tar.gz talos-sbe-fcf2fc04cfa705d3beb138edfe379ab0c228aad6.zip |
SBE plat scom error handling
Change-Id: Iffc9686fa745040a0d0f1c3a6b5f0dacc89a1c66
RTC:158016
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30078
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/hwpf/include')
-rw-r--r-- | src/hwpf/include/plat/plat_hw_access.H | 14 |
1 files changed, 8 insertions, 6 deletions
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 |