diff options
author | Corey Swenson <cswenson@us.ibm.com> | 2015-03-26 08:14:37 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-05-01 16:07:20 -0500 |
commit | 1f637430444512e67b2bf62e3761d3813d690a5a (patch) | |
tree | 80ce40f08866bb31e9e0077d4956f2c33bc2d3e2 /src/include/usr/i2c/i2cif.H | |
parent | f5ead81c7cbc2223366b0039bd311d050ca358d5 (diff) | |
download | talos-hostboot-1f637430444512e67b2bf62e3761d3813d690a5a.tar.gz talos-hostboot-1f637430444512e67b2bf62e3761d3813d690a5a.zip |
Disable OCC Sensor Cache during Centaur I2C access at Runtime
Change-Id: I4520421f3d3e1c7cb7f58874bd4076acced7ddd3
RTC: 125538
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16653
Tested-by: Jenkins Server
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c/i2cif.H')
-rw-r--r-- | src/include/usr/i2c/i2cif.H | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H index d9d5a0133..ccedce873 100644 --- a/src/include/usr/i2c/i2cif.H +++ b/src/include/usr/i2c/i2cif.H @@ -28,6 +28,9 @@ namespace I2C { +// @todo RTC 125540 - Ensure no possible Centaur i2c collisions during HB IPL +// Need to re-evaluate the ifdef/ifndef in this file +#ifndef __HOSTBOOT_RUNTIME /** * @enum i2cProcessType * @@ -173,6 +176,32 @@ struct MasterInfo_t */ void getMasterInfo( const TARGETING::Target* i_chip, std::list<MasterInfo_t>& o_info ); +#endif // !__HOSTBOOT_RUNTIME + +#ifdef __HOSTBOOT_RUNTIME +/** + * @brief This function disables the OCC sensor cache for the specified target + * + * @param[in] i_target - I2C Master Target device + * @param[out] o_disabled - Indicates the sensor cache was enabled + * and is now disabled + * + * @return errHndl_t - NULL if successful, otherwise a pointer to + * the error log. + */ +errlHndl_t i2cDisableSensorCache( TARGETING::Target * i_target, + bool & o_disabled ); + +/** + * @brief This function enables the OCC sensor cache for the specified target + * + * @param[in] i_target - I2C Master Target device + * + * @return errHndl_t - NULL if successful, otherwise a pointer to + * the error log. + */ +errlHndl_t i2cEnableSensorCache( TARGETING::Target * i_target ); +#endif //__HOSTBOOT_RUNTIME }; // end namespace I2C |