summaryrefslogtreecommitdiffstats
path: root/src/include/usr/i2c/i2cif.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/i2c/i2cif.H')
-rw-r--r--src/include/usr/i2c/i2cif.H19
1 files changed, 19 insertions, 0 deletions
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