summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorAdam Muhle <armuhle@us.ibm.com>2011-10-13 14:44:55 -0500
committerADAM R. MUHLE <armuhle@us.ibm.com>2011-10-25 15:17:19 -0500
commit7344f3b265fe12da99ad0a032e558e7cc7fe1cb2 (patch)
treeff7bd2d0d9ac139e63a0f8bda778e3dac1b290f8 /src/include
parent0ad20184aec21ef0560a9eee7e7c26a36ace07e1 (diff)
downloadtalos-hostboot-7344f3b265fe12da99ad0a032e558e7cc7fe1cb2.tar.gz
talos-hostboot-7344f3b265fe12da99ad0a032e558e7cc7fe1cb2.zip
Base FSISCOM Support and test Cases. (Story 3880)
Change-Id: Ia65187cd475da725250a17cec59b1aa6ff805f84 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/453 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/devicefw/driverif.H6
-rw-r--r--src/include/usr/fsiscom/fsiscom_reasoncodes.H48
-rw-r--r--src/include/usr/hbotcompid.H9
3 files changed, 63 insertions, 0 deletions
diff --git a/src/include/usr/devicefw/driverif.H b/src/include/usr/devicefw/driverif.H
index ee43e0519..0c5f874b6 100644
--- a/src/include/usr/devicefw/driverif.H
+++ b/src/include/usr/devicefw/driverif.H
@@ -71,6 +71,12 @@ namespace DeviceFW
WILDCARD = -1,
};
+ /** Construct the device addressing parameters for FSISCOM device ops.
+ * @param[in] i_address - FSISCOM address to operate on.
+ */
+ #define DEVICE_FSISCOM_ADDRESS(i_address) \
+ DeviceFW::FSISCOM, static_cast<uint64_t>((i_address))
+
/** Construct the device addressing parameters for XSCOM device ops.
* @param[in] i_address - XSCom address to operate on.
*/
diff --git a/src/include/usr/fsiscom/fsiscom_reasoncodes.H b/src/include/usr/fsiscom/fsiscom_reasoncodes.H
new file mode 100644
index 000000000..e2c1afaaa
--- /dev/null
+++ b/src/include/usr/fsiscom/fsiscom_reasoncodes.H
@@ -0,0 +1,48 @@
+// IBM_PROLOG_BEGIN_TAG
+// This is an automatically generated prolog.
+//
+// $Source: src/include/usr/fsiscom/fsiscom_reasoncodes.H $
+//
+// IBM CONFIDENTIAL
+//
+// COPYRIGHT International Business Machines Corp. 2011
+//
+// p1
+//
+// Object Code Only (OCO) source materials
+// Licensed Internal Code Source Materials
+// IBM HostBoot Licensed Internal Code
+//
+// The source code for this program is not published or other-
+// wise divested of its trade secrets, irrespective of what has
+// been deposited with the U.S. Copyright Office.
+//
+// Origin: 30
+//
+// IBM_PROLOG_END
+#ifndef __FSISCOM_REASONCODES_H
+#define __FSISCOM_REASONCODES_H
+
+#include <hbotcompid.H>
+
+namespace FSISCOM
+{
+ enum FSISCOMModuleId
+ {
+ MOD_FSISCOM_INVALID = 0x00, /**< Zero is an invalid module id */
+ MOD_FSISCOM_PERFORMOP = 0x01, /**< fsiscom.C : fsiScomPerformOp */
+
+ };
+
+ enum FSISCOMReasonCode
+ {
+ RC_INVALID = FSISCOM_COMP_ID | 0x00,
+ RC_WRITE_ERROR = FSISCOM_COMP_ID | 0x01,
+ RC_READ_ERROR = FSISCOM_COMP_ID | 0x02,
+ RC_INVALID_LENGTH = FSISCOM_COMP_ID | 0x03,
+ RC_INVALID_ADDRESS = FSISCOM_COMP_ID | 0x04,
+ RC_INVALID_OPTYPE = FSISCOM_COMP_ID | 0x05,
+ };
+};
+
+#endif
diff --git a/src/include/usr/hbotcompid.H b/src/include/usr/hbotcompid.H
index 4ea554d74..94eb2f33d 100644
--- a/src/include/usr/hbotcompid.H
+++ b/src/include/usr/hbotcompid.H
@@ -146,4 +146,13 @@ const compId_t HWAS_COMP_ID = 0x0C00;
const char HWAS_COMP_NAME[] = "hwas";
//@}
+/** @name FSISCOM
+ * FSI SCOM component
+ */
+//@{
+const compId_t FSISCOM_COMP_ID = 0x0D00;
+const char FSISCOM_COMP_NAME[] = "fsiscom";
+//@}
+
+
#endif
OpenPOWER on IntegriCloud