summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/pel_types.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2019-11-01 11:11:07 -0500
committerMatt Spinler <spinler@us.ibm.com>2019-11-04 16:18:29 -0600
commita7525aafea8542fdf0149aed791eb9a4a326b5d3 (patch)
tree0d70b0eb88c7ab1aaf09561adb5b9a36567a5b46 /extensions/openpower-pels/pel_types.hpp
parente07f915b21c5915574d03f9c9b7527084da4abe6 (diff)
downloadphosphor-logging-a7525aafea8542fdf0149aed791eb9a4a326b5d3.tar.gz
phosphor-logging-a7525aafea8542fdf0149aed791eb9a4a326b5d3.zip
PEL: Move severity type enums to a header
Move them to a header file so other files can use them in the future. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Icb604489e9629724a79d2fc8b110e461b6aa6e01
Diffstat (limited to 'extensions/openpower-pels/pel_types.hpp')
-rw-r--r--extensions/openpower-pels/pel_types.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/openpower-pels/pel_types.hpp b/extensions/openpower-pels/pel_types.hpp
index 9f801a3..d19c875 100644
--- a/extensions/openpower-pels/pel_types.hpp
+++ b/extensions/openpower-pels/pel_types.hpp
@@ -82,5 +82,20 @@ enum class EventType
notApplicable = 0x00
};
+/**
+ * @brief The major types of severity values, based on the
+ * the left nibble of the severity value.
+ */
+enum class SeverityType
+{
+ nonError = 0x00,
+ recovered = 0x10,
+ predictive = 0x20,
+ unrecoverable = 0x40,
+ critical = 0x50,
+ diagnostic = 0x60,
+ symptom = 0x70
+};
+
} // namespace pels
} // namespace openpower
OpenPOWER on IntegriCloud