summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/pel_types.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2019-09-20 12:33:29 -0500
committerMatt Spinler <spinler@us.ibm.com>2019-10-09 13:11:51 +0000
commit289aa477e09eb8d2fcbe852ea87f132b22c09439 (patch)
tree358e7cc6061942f554edf830269e80d588e661fd /extensions/openpower-pels/pel_types.hpp
parent93e2932f0667d54926e933eedab7ee2adc8b2731 (diff)
downloadphosphor-logging-289aa477e09eb8d2fcbe852ea87f132b22c09439.tar.gz
phosphor-logging-289aa477e09eb8d2fcbe852ea87f132b22c09439.zip
PEL: Create PrivateHeader from parameters
Add a constructor to the PrivateHeader class so it can be built from the creator's component ID, the OpenBMC log ID, and the creation timestamp. This will be used when creating PELs from OpenBMC event logs. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I2d1217b9ff0317195366bee50fa72953fd5341dc
Diffstat (limited to 'extensions/openpower-pels/pel_types.hpp')
-rw-r--r--extensions/openpower-pels/pel_types.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/extensions/openpower-pels/pel_types.hpp b/extensions/openpower-pels/pel_types.hpp
index b836942..3d9e457 100644
--- a/extensions/openpower-pels/pel_types.hpp
+++ b/extensions/openpower-pels/pel_types.hpp
@@ -5,6 +5,9 @@ namespace openpower
namespace pels
{
+/**
+ * @brief Useful component IDs
+ */
enum class ComponentID
{
phosphorLogging = 0x2000
@@ -35,11 +38,33 @@ enum class SectionID
extUserData = 0x4544 // 'ED'
};
+/**
+ * @brief Useful SRC types
+ */
enum class SRCType
{
bmcError = 0xBD,
powerError = 0x11
};
+/**
+ * @brief Creator IDs
+ */
+enum class CreatorID
+{
+ fsp = 'E',
+ hmc = 'C',
+ hostboot = 'B',
+ ioDrawer = 'M',
+ occ = 'T',
+ openBMC = 'O',
+ partFW = 'L',
+ phyp = 'H',
+ powerControl = 'W',
+ powerNV = 'P',
+ sapphire = 'K',
+ slic = 'S',
+};
+
} // namespace pels
} // namespace openpower
OpenPOWER on IntegriCloud