summaryrefslogtreecommitdiffstats
path: root/src/include/usr/fapi2/hw_access.H
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-06-28 13:15:54 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-28 10:33:08 -0400
commitc03003723f00e8d9200b4a03bf55495c48cb0d77 (patch)
tree05b0e0b6f4f1ad00a7e3dd401e4e0c8bce0cbc18 /src/include/usr/fapi2/hw_access.H
parent1cf86502a50785bed28c15f47d24f452e83b0892 (diff)
downloadblackbird-hostboot-c03003723f00e8d9200b4a03bf55495c48cb0d77.tar.gz
blackbird-hostboot-c03003723f00e8d9200b4a03bf55495c48cb0d77.zip
Refactor fapi2 scom interface to use pib_err_mask
Up to this point we have been ignoring pib err mask. This commit adds the pib_err_mask support to to platform RTC: 144507 Change-Id: Ie810f0915d6ba8091ea4740e705ba550dbad6eae Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26382 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/fapi2/hw_access.H')
-rw-r--r--src/include/usr/fapi2/hw_access.H16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/include/usr/fapi2/hw_access.H b/src/include/usr/fapi2/hw_access.H
index 93413dd7b..2d4444eb3 100644
--- a/src/include/usr/fapi2/hw_access.H
+++ b/src/include/usr/fapi2/hw_access.H
@@ -39,17 +39,20 @@ namespace fapi2
//--------------------------------------------------------------------------
// PIB Error Functions
+//
+// The pib err mask can be set in order
+// to ignore specific pib errors returned by a scom. The mask
+// is a thread local variable and will be reset to 0 during every
+// FAPI_INVOKE call before the function is executed, therefore
+// it will reset on HWP calls.
//--------------------------------------------------------------------------
/// @brief Sets the PIB error mask - platform dependant
/// @param[in] i_mask The new error mask
// note: this can be moved to a C file if desired
-inline void setPIBErrorMask(uint8_t i_mask)
+inline void setPIBErrorMask(const uint8_t i_mask)
{
- // Keeps the compiler from complaining about the unused i_mask
- static_cast<void>(i_mask);
- //TODO: RTC 124195 FAPI2 - PIB error mask and Operation mode supports
- return;
+ return platSetPIBErrorMask(i_mask);
}
/// @brief Gets the PIB error mask - platform dependant
@@ -57,8 +60,7 @@ inline void setPIBErrorMask(uint8_t i_mask)
// note: this can be moved to a C file if desired
inline uint8_t getPIBErrorMask(void)
{
- //TODO: RTC 124195 FAPI2 - PIB error mask and Operation mode supports
- return 0;
+ return platGetPIBErrorMask();
}
//--------------------------------------------------------------------------
OpenPOWER on IntegriCloud