summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2016-11-20 22:50:39 -0600
committerDeepak Kodihalli <dkodihal@in.ibm.com>2016-12-07 07:15:12 -0600
commit1ea0233f41f7d008afca635451ff2063ea8b0e3b (patch)
tree7de2055a0bcb2492afc0f1ea4c5b3bf0cce74b18
parent9b3a25d46a0d99ec346886bef3b3abf398774f80 (diff)
downloadopenpower-vpd-parser-1ea0233f41f7d008afca635451ff2063ea8b0e3b.tar.gz
openpower-vpd-parser-1ea0233f41f7d008afca635451ff2063ea8b0e3b.zip
Add enums for OpenPOWER records and keywords
OpenPOWER VPD is represented in a record/keyword format. This change adds enum definitions for records and record-contained keywords that the BMC is interested to parse out from an OpenPOWER VPD eeprom. Change-Id: I3ee0d85e509de15d192e795cb9b253688cad70a5 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rw-r--r--defines.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/defines.hpp b/defines.hpp
new file mode 100644
index 0000000..1da3ab6
--- /dev/null
+++ b/defines.hpp
@@ -0,0 +1,35 @@
+#pragma once
+
+namespace openpower
+{
+namespace vpd
+{
+
+/** @brief OpenPOWER VPD records we're interested in */
+enum class Record
+{
+ VINI, /**< Initial information, common to all OpenPOWER FRUs */
+ OPFR, /**< OpenPOWER FRU information, common to all OpenPOWER FRUs */
+ OSYS /**< Information specific to a system board */
+};
+
+namespace record
+{
+
+/** @brief OpenPOWER VPD keywords we're interested in */
+enum class Keyword
+{
+ DR, /**< FRU name/description */
+ PN, /**< FRU part number */
+ SN, /**< FRU serial number */
+ CC, /**< Customer Card Identification Number (CCIN) */
+ HW, /**< FRU version */
+ B1, /**< MAC Address */
+ VN, /**< FRU manufacturer name */
+ MB, /**< FRU manufacture date */
+ MM /**< FRU model */
+};
+
+} // namespace record
+} // namespace vpd
+} // namespace openpower
OpenPOWER on IntegriCloud