summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2015-10-26 13:04:25 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-02-26 12:07:18 -0600
commitbeb9c5104c5b7303abb0e3aea3a5789eaee774e8 (patch)
treeb1c0bf76ea27e5074355a86ccafde23dd055d007 /src/include/usr
parentab4c7f99e8ffff49232e26b6159990255caf51c3 (diff)
downloadtalos-hostboot-beb9c5104c5b7303abb0e3aea3a5789eaee774e8.tar.gz
talos-hostboot-beb9c5104c5b7303abb0e3aea3a5789eaee774e8.zip
Create SBE PSU device driver
Create SBE PSU device driver and implement Start and Stop dead man loop. Change-Id: Ic894842e586485074fda88b8920213969913d685 RTC: 132656 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22765 Tested-by: Jenkins Server Reviewed-by: Christian Geddes <crgeddes@us.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/hbotcompid.H8
-rw-r--r--src/include/usr/sbeio/sbeioif.H53
-rw-r--r--src/include/usr/sbeio/sbeioreasoncodes.H76
3 files changed, 137 insertions, 0 deletions
diff --git a/src/include/usr/hbotcompid.H b/src/include/usr/hbotcompid.H
index bfb5b29d7..308007906 100644
--- a/src/include/usr/hbotcompid.H
+++ b/src/include/usr/hbotcompid.H
@@ -364,6 +364,14 @@ const compId_t TPMDD_COMP_ID = 0x2700;
const char TPMDD_COMP_NAME[] = "tpmdd";
//@}
+/** @name SBEIO
+ * SBE PSU and FIFO
+ */
+//@{
+const compId_t SBEIO_COMP_ID = 0x2800;
+const char SBEIO_COMP_NAME[] = "sbeio";
+//@}
+
// OCCC id 2A00 matches OCCC id on FSP
/** @name OCCC
* OCC Thermal Management Device
diff --git a/src/include/usr/sbeio/sbeioif.H b/src/include/usr/sbeio/sbeioif.H
new file mode 100644
index 000000000..7b8a76d89
--- /dev/null
+++ b/src/include/usr/sbeio/sbeioif.H
@@ -0,0 +1,53 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/sbeio/sbeioif.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2013,2016 */
+/* [+] 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 _SBEIOIF_H
+#define _SBEIOIF_H
+
+#include <errl/errlentry.H>
+
+namespace SBEIO
+{
+
+ /**
+ * @brief Start Deadman loop
+ *
+ * @param[in] i_waitTime Time to wait in milliseconds
+ *
+ * @return errlHndl_t Error log handle on failure.
+ *
+ */
+ errlHndl_t startDeadmanLoop(const uint64_t i_waitTime );
+
+ /**
+ * @brief Stop Deadman loop
+ *
+ * @return errlHndl_t Error log handle on failure.
+ *
+ */
+ errlHndl_t stopDeadmanLoop( );
+
+} //end namespace SBEIO
+
+#endif /* _SBEIOIF_H */
diff --git a/src/include/usr/sbeio/sbeioreasoncodes.H b/src/include/usr/sbeio/sbeioreasoncodes.H
new file mode 100644
index 000000000..c40d51f35
--- /dev/null
+++ b/src/include/usr/sbeio/sbeioreasoncodes.H
@@ -0,0 +1,76 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/sbeio/sbeioreasoncodes.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2013,2016 */
+/* [+] 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 __SBEIOREASONCODES_H
+#define __SBEIOREASONCODES_H
+
+// -----------------------------------------------
+// Includes
+// -----------------------------------------------
+#include <hbotcompid.H>
+
+namespace SBEIO
+{
+
+/**
+* @enum SbeioModuleid
+*
+* @brief Module Ids used in created errorlogs. Indicates which
+* functions an error log was created in.
+*
+*/
+enum sbeioModuleId
+{
+ SBEIO_INVALID_MODULE = 0x00,
+ SBEIO_PSU = 0x01,
+ SBEIO_FIFO = 0x02,
+};
+
+/**
+ * @enum sbeReasonCode
+ *
+ * @brief Reasoncodes used to describe what errors are being indicated.
+ *
+ */
+enum sbeioReasonCode
+{
+ SBEIO_INVALID_REASONCODE = SBEIO_COMP_ID | 0x00, // Invalid RC
+
+ // SBE PSU error codes
+ SBEIO_PSU_RESPONSE_TIMEOUT = SBEIO_COMP_ID | 0x01,
+ SBEIO_PSU_RESPONSE_ERROR = SBEIO_COMP_ID | 0x02,
+ SBEIO_PSU_NOT_READY = SBEIO_COMP_ID | 0x03,
+
+ // SBE FIFO error codes
+ SBEIO_FIFO_UPSTREAM_TIMEOUT = SBEIO_COMP_ID | 0x10,
+ SBEIO_FIFO_NO_DOWNSTREAM_EOT = SBEIO_COMP_ID | 0x11,
+ SBEIO_FIFO_INVALID_STATUS_DISTANCE = SBEIO_COMP_ID | 0x12,
+ SBEIO_FIFO_RESPONSE_ERROR = SBEIO_COMP_ID | 0x13,
+ SBEIO_FIFO_DOWNSTREAM_TIMEOUT = SBEIO_COMP_ID | 0x14,
+
+};
+
+}; // end SBE
+
+#endif
OpenPOWER on IntegriCloud