diff options
| author | Andres Lugo <aalugore@us.ibm.com> | 2014-11-13 11:57:02 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-12-09 12:03:20 -0600 |
| commit | fd5e3a64c72a176a6610631dfb248aaa5058ae93 (patch) | |
| tree | b4b3e77def3a08f86d2453922605b202ba595365 /src/include/usr/i2c | |
| parent | d1f7475ae5459ab567a361dd6cbb4ef1278764b3 (diff) | |
| download | talos-hostboot-fd5e3a64c72a176a6610631dfb248aaa5058ae93.tar.gz talos-hostboot-fd5e3a64c72a176a6610631dfb248aaa5058ae93.zip | |
Remove errors in VPD presence detect for eeprom
RTC:117048
Change-Id: Ie63fb413cb9efb9d1ea450467efa500613939af2
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14494
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
| -rw-r--r-- | src/include/usr/i2c/eepromif.H | 17 | ||||
| -rw-r--r-- | src/include/usr/i2c/i2cif.H | 19 |
2 files changed, 34 insertions, 2 deletions
diff --git a/src/include/usr/i2c/eepromif.H b/src/include/usr/i2c/eepromif.H index 38abfb054..7300ead04 100644 --- a/src/include/usr/i2c/eepromif.H +++ b/src/include/usr/i2c/eepromif.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -39,8 +41,19 @@ typedef enum LAST_CHIP_TYPE } eeprom_chip_types_t; +/** + * @brief This function tests to see if the VPD_PRIMARY eeprom is present + * for the specific target. + * + * @param[in] i_target - Target device. + * + * @return bool - True if the eeprom is present, false otherwise. + */ +bool eepromPresence ( TARGETING::Target * i_target ); + + -}; // end namespace I2C +}; // end namespace EEPROM #endif // end __EEPROMIF_H diff --git a/src/include/usr/i2c/i2cif.H b/src/include/usr/i2c/i2cif.H index f0eb6d313..b554c6fca 100644 --- a/src/include/usr/i2c/i2cif.H +++ b/src/include/usr/i2c/i2cif.H @@ -67,6 +67,25 @@ enum i2cResetType */ errlHndl_t i2cResetMasters ( i2cResetType i_resetType ); + +/** + * @brief This function will determine if a given I2C device is present + * + * @param[in] i_target - The target device + * @param[in] i_port - The device's port + * @param[in] i_engine - The device's engine number + * @param[in] i_devAddr - The device's address + * + * @return bool - True if chip is present, False otherwise. + */ +bool i2cPresence( TARGETING::Target * i_target, + uint64_t i_port, + uint64_t i_engine, + uint64_t i_devAddr ); + + + + }; // end namespace I2C #endif // end __I2CIF_H |

