summaryrefslogtreecommitdiffstats
path: root/src/include/usr/gpio
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2014-05-16 15:16:15 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-06-30 20:08:27 -0500
commit11d47db77ef4d118c75e9e23ad8c4ca9663d0fff (patch)
treedc0e09e93de108dc2cf44ef69d2688f7ab40944c /src/include/usr/gpio
parent61a956f980a4be2f19d33067236018e7efd074e7 (diff)
downloadtalos-hostboot-11d47db77ef4d118c75e9e23ad8c4ca9663d0fff.tar.gz
talos-hostboot-11d47db77ef4d118c75e9e23ad8c4ca9663d0fff.zip
Merge GPIO commits from Stradale code base
Change-Id: Ibadeb72f563d86aa933734c7db20a50b19485ac7 RTC: 97490 Origin: Google Shared Technology Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11501 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/gpio')
-rw-r--r--src/include/usr/gpio/gpioddreasoncodes.H57
-rw-r--r--src/include/usr/gpio/gpioif.H42
2 files changed, 99 insertions, 0 deletions
diff --git a/src/include/usr/gpio/gpioddreasoncodes.H b/src/include/usr/gpio/gpioddreasoncodes.H
new file mode 100644
index 000000000..20ad10002
--- /dev/null
+++ b/src/include/usr/gpio/gpioddreasoncodes.H
@@ -0,0 +1,57 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/gpio/gpioddreasoncodes.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2014 */
+/* [+] Google Inc. */
+/* [+] 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. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __GPIODDREASONCODES_H
+#define __GPIODDREASONCODES_H
+
+#include <hbotcompid.H>
+namespace GPIO
+{
+ /**
+ * @enum gpioModuleid
+ *
+ * @brief Module Ids used in creating errorlogs.
+ */
+ enum gpioModuleId
+ {
+ GPIO_PERFORM_OP = 0x00,
+ GPIO_READ = 0x01,
+ GPIO_WRITE = 0x02,
+ GPIO_READATTRIBUTES = 0x03,
+ };
+
+ /**
+ * @enum grioReasonCode
+ */
+ enum gpioReasonCode
+ {
+ GPIO_INVALID_DEVICE_TYPE = GPIO_COMP_ID | 0x00,
+ GPIO_ATTR_INFO_NOT_FOUND = GPIO_COMP_ID | 0x01,
+ GPIO_I2C_TARGET_NOT_FOUND = GPIO_COMP_ID | 0x02,
+ GPIO_INVALID_OP = GPIO_COMP_ID | 0x03,
+ };
+
+};
+#endif
diff --git a/src/include/usr/gpio/gpioif.H b/src/include/usr/gpio/gpioif.H
new file mode 100644
index 000000000..03a5a9a89
--- /dev/null
+++ b/src/include/usr/gpio/gpioif.H
@@ -0,0 +1,42 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/gpio/gpioif.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2014 */
+/* [+] Google Inc. */
+/* [+] 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. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+#ifndef __GPIOIF_H
+#define __GPIOIF_H
+
+namespace GPIO
+{
+/**
+ * @brief Devices to be accessed
+ */
+enum gpioDevice_t
+{
+ PCA95X_GPIO = 0,
+ INVALID_GPIO,
+};
+
+
+}; // GPIO NAMESPACE
+#endif
OpenPOWER on IntegriCloud