summaryrefslogtreecommitdiffstats
path: root/src/include/usr/i2c
diff options
context:
space:
mode:
authorTerry J. Opie <opiet@us.ibm.com>2011-08-05 08:51:38 -0500
committerTerry J. Opie <opiet@us.ibm.com>2011-08-15 13:57:29 -0500
commitfa0113e4599fcca0c2d4c938c88d445d288a952a (patch)
treeca797228d6c31b9dcd3ed617f7a82e77d9e27138 /src/include/usr/i2c
parentb0ceda93e7d5b6b06465a5fcc0b261a52dad987d (diff)
downloadtalos-hostboot-fa0113e4599fcca0c2d4c938c88d445d288a952a.tar.gz
talos-hostboot-fa0113e4599fcca0c2d4c938c88d445d288a952a.zip
I2C Device Driver Skeleton
Change-Id: I0b092ea67e5bb8789378041c8c3a6a3f5cf3025e Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/242 Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Tested-by: Jenkins Server
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r--src/include/usr/i2c/i2creasoncodes.H44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/include/usr/i2c/i2creasoncodes.H b/src/include/usr/i2c/i2creasoncodes.H
new file mode 100644
index 000000000..d59ee13cc
--- /dev/null
+++ b/src/include/usr/i2c/i2creasoncodes.H
@@ -0,0 +1,44 @@
+/**
+ * @file i2creasoncodes.H
+ *
+ * @brief Reason codes and module ids for the I2C device driver
+ *
+ */
+#ifndef __I2CREASONCODES_H
+#define __I2CREASONCODES_H
+// -----------------------------------------------
+// Includes
+// -----------------------------------------------
+#include <hbotcompid.H>
+
+namespace I2C
+{
+
+/**
+* @enum i2cModuleid
+*
+* @brief Module Ids used in created errorlogs. Indicates which
+* functions an error log was created in.
+*
+*/
+enum i2cModuleId
+{
+ I2C_PERFORM_OP = 0x01,
+};
+
+/**
+ * @enum i2cReasonCode
+ *
+ * @brief Reasoncodes used to describe what errors are being indicated.
+ *
+ */
+enum i2cReasonCode
+{
+ I2C_INVALID_DATA_BUFFER = I2C_COMP_ID | 0x01,
+ I2C_INVALID_OP_TYPE = I2C_COMP_ID | 0x02,
+
+};
+
+}; // end I2C
+
+#endif
OpenPOWER on IntegriCloud