diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-09-09 02:32:25 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-09-13 01:31:31 -0400 |
commit | 8ed959b6030f18379e0870feb4b85f8f5295303e (patch) | |
tree | 559843d13dc27298a423504747972bade2e32928 /src/sbefw/sbescom.C | |
parent | ba2cbe433250067580013e2d9debb162a31b1438 (diff) | |
download | talos-sbe-8ed959b6030f18379e0870feb4b85f8f5295303e.tar.gz talos-sbe-8ed959b6030f18379e0870feb4b85f8f5295303e.zip |
Use new PCBPIB enums in sbefw code
Change-Id: I33c1ab68c24de4150c6f901a429c3bfde1de8ea0
RTC: 158199
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29410
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/sbefw/sbescom.C')
-rw-r--r-- | src/sbefw/sbescom.C | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sbefw/sbescom.C b/src/sbefw/sbescom.C index 5d397902..81cfafde 100644 --- a/src/sbefw/sbescom.C +++ b/src/sbefw/sbescom.C @@ -26,8 +26,9 @@ #include <stdint.h> #include "sbe_sp_intf.H" #include "sbetrace.H" -#include "ppe42_scom.h" +#include "plat_hw_access.H" +using namespace fapi2; /** * @brief Indirect SCOM Status */ @@ -82,12 +83,12 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, SBE_INFO(SBE_FUNC "Performing Direct scom."); if( i_isRead ) { - o_pcbPibStatus = getscom_abs ( (uint32_t)i_addr, + o_pcbPibStatus = getscom_abs_wrap ( (uint32_t)i_addr, & io_data); } else { - o_pcbPibStatus = putscom_abs ( (uint32_t)i_addr, + o_pcbPibStatus = putscom_abs_wrap ( (uint32_t)i_addr, io_data); } break; @@ -144,7 +145,7 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, // perform write before the read with the new // IO_buffer with the imbedded indirect scom addr. - o_pcbPibStatus = putscom_abs ( tempAddr, tempBuffer); + o_pcbPibStatus = putscom_abs_wrap ( tempAddr, tempBuffer); if( ( o_pcbPibStatus ) || ( scomType == SBE_SCOM_TYPE_INDIRECT_2 )) { @@ -158,7 +159,7 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, { // Now perform the op requested using the passed in // IO_Buffer to pass the read data back to caller. - o_pcbPibStatus = getscom_abs ( tempAddr, &(scomout.data64)); + o_pcbPibStatus = getscom_abs_wrap ( tempAddr, &(scomout.data64)); if( o_pcbPibStatus ) break; // if bit 32 is on indicating a complete bit |