summaryrefslogtreecommitdiffstats
path: root/src/include/usr/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r--src/include/usr/i2c/eepromif.H17
-rw-r--r--src/include/usr/i2c/i2cif.H19
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
OpenPOWER on IntegriCloud