summaryrefslogtreecommitdiffstats
path: root/src/include/usr/vpd/mvpdenums.H
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2013-01-07 12:31:20 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-01-15 11:57:02 -0600
commitf0036f0c657e090d38b58b8cd95b4ddde1d55b33 (patch)
tree1601dc566fe7083603494a2b22d61fadf7fe5c03 /src/include/usr/vpd/mvpdenums.H
parenta84cc4b307526e9895747f2e78bb36c93582d796 (diff)
downloadtalos-hostboot-f0036f0c657e090d38b58b8cd95b4ddde1d55b33.tar.gz
talos-hostboot-f0036f0c657e090d38b58b8cd95b4ddde1d55b33.zip
Refactor VPD code to eliminate redundancies
After noticing some redundant code and some odd include gymnastics I pulled all of the VPD related code (spd,mvpd) into a single vpd directory/module/component. This should make the addition of the centaur fru vpd simpler as well. Note: this is part of Story 39177 but not all of it, merging this early to not hold up the work for Story 44009. Change-Id: I7637a94d22e188050403ed5600b2d7f304c3d006 RTC: 39177 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2863 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/vpd/mvpdenums.H')
-rw-r--r--src/include/usr/vpd/mvpdenums.H134
1 files changed, 134 insertions, 0 deletions
diff --git a/src/include/usr/vpd/mvpdenums.H b/src/include/usr/vpd/mvpdenums.H
new file mode 100644
index 000000000..ec512694f
--- /dev/null
+++ b/src/include/usr/vpd/mvpdenums.H
@@ -0,0 +1,134 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/vpd/mvpdenums.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2013 */
+/* */
+/* 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 otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+/**
+ * @file mvpdenums.H
+ *
+ * @brief Enums for the MVPD fields to be requested.
+ *
+ */
+#ifndef __MVPDENUMS_H
+#define __MVPDENUMS_H
+
+namespace MVPD
+{
+
+/**
+* @brief Enumeration for the MVPD Records that contain
+* the keyword enumerations below.
+*/
+enum mvpdRecord
+{
+ MVPD_FIRST_RECORD = 0x00,
+ CRP0 = MVPD_FIRST_RECORD,
+ CP00 = 0x01,
+ VINI = 0x02,
+ LRP0 = 0x03,
+ LRP1 = 0x04,
+ LRP2 = 0x05,
+ LRP3 = 0x06,
+ LRP4 = 0x07,
+ LRP5 = 0x08,
+ LRP6 = 0x09,
+ LRP7 = 0x0a,
+ LRP8 = 0x0b,
+ LRP9 = 0x0c,
+ LRPA = 0x0d,
+ LRPB = 0x0e,
+ LRPC = 0x0f,
+ LRPD = 0x10,
+ LRPE = 0x11,
+ LWP0 = 0x12,
+ LWP1 = 0x13,
+ LWP2 = 0x14,
+ LWP3 = 0x15,
+ LWP4 = 0x16,
+ LWP5 = 0x17,
+ LWP6 = 0x18,
+ LWP7 = 0x19,
+ LWP8 = 0x1a,
+ LWP9 = 0x1b,
+ LWPA = 0x1c,
+ LWPB = 0x1d,
+ LWPC = 0x1e,
+ LWPD = 0x1f,
+ LWPE = 0x20,
+ VWML = 0x21,
+
+ // Last Record
+ MVPD_LAST_RECORD,
+ MVPD_TEST_RECORD, // Test purposes ONLY!
+ MVPD_INVALID_RECORD = 0xFFFF,
+};
+
+/**
+* @brief Enumerations for MVPD keywords that can be
+* accessed in the MVPD.
+*/
+enum mvpdKeyword
+{
+ MVPD_FIRST_KEYWORD = 0x00,
+ VD = MVPD_FIRST_KEYWORD,
+ ED = 0x01,
+ TE = 0x02,
+ DD = 0x03,
+ pdP = 0x04,
+ ST = 0x05,
+ DN = 0x06,
+ PG = 0x07,
+ PK = 0x08,
+ pdR = 0x09,
+ pdV = 0x0a,
+ pdH = 0x0b,
+ SB = 0x0c,
+ DR = 0x0d,
+ VZ = 0x0e,
+ CC = 0x0f,
+ CE = 0x10,
+ FN = 0x11,
+ PN = 0x12,
+ SN = 0x13,
+ PR = 0x14,
+ HE = 0x15,
+ CT = 0x16,
+ HW = 0x17,
+ pdM = 0x18,
+ IN = 0x19,
+ pd2 = 0x1a,
+ pd3 = 0x1b,
+ OC = 0x1c,
+ FO = 0x1d,
+ pdI = 0x1e,
+ pdG = 0x1f,
+ MK = 0x20,
+ PB = 0x21,
+ CH = 0x22,
+
+ // Last Keyword
+ MVPD_LAST_KEYWORD,
+ MVPD_TEST_KEYWORD, // Test purposes ONLY!
+ INVALID_MVPD_KEYWORD = 0xFFFF,
+};
+
+}; // end MVPD
+
+#endif
OpenPOWER on IntegriCloud