summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/src.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2019-12-02 15:50:12 -0600
committerMatt Spinler <spinler@us.ibm.com>2019-12-09 13:47:57 -0600
commitc63e2e82ba5b11114dfa1b5aa9ba8fb5bfa25382 (patch)
tree5ad5a1d154245fa215e7512fa06a6bb1d9483efd /extensions/openpower-pels/src.hpp
parentcad9c2bd9e8ffb6e6db297d8d71b9733aae96e1e (diff)
downloadphosphor-logging-c63e2e82ba5b11114dfa1b5aa9ba8fb5bfa25382.tar.gz
phosphor-logging-c63e2e82ba5b11114dfa1b5aa9ba8fb5bfa25382.zip
PEL: Add ExtendedUserHeader section class
This is a required PEL section. The section contains: * The machine type/model/SN * The server firmware version * The BMC firmware version * The 'Event Common Reference Time' (not used yet) * The symptom ID (a unique event signature) Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I223041f85965195fccf69542dbe86ce856073b36
Diffstat (limited to 'extensions/openpower-pels/src.hpp')
-rw-r--r--extensions/openpower-pels/src.hpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/extensions/openpower-pels/src.hpp b/extensions/openpower-pels/src.hpp
index e6f7029..dada63a 100644
--- a/extensions/openpower-pels/src.hpp
+++ b/extensions/openpower-pels/src.hpp
@@ -195,6 +195,23 @@ class SRC : public Section
return _flags & powerFaultEvent;
}
+ /**
+ * @brief Get the _hexData[] index to use based on the corresponding
+ * SRC word number.
+ *
+ * Converts the specification nomenclature to this data structure.
+ * See the _hexData documentation below for more information.
+ *
+ * @param[in] wordNum - The SRC word number, as defined by the spec.
+ *
+ * @return size_t The corresponding index into _hexData.
+ */
+ inline size_t getWordIndexFromWordNum(size_t wordNum) const
+ {
+ assert(wordNum >= 2 && wordNum <= 9);
+ return wordNum - 2;
+ }
+
private:
/**
* @brief Fills in the user defined hex words from the
@@ -222,23 +239,6 @@ class SRC : public Section
void unflatten(Stream& stream);
/**
- * @brief Get the _hexData[] index to use based on the corresponding
- * SRC word number.
- *
- * Converts the specification nomenclature to this data structure.
- * See the _hexData documentation below for more information.
- *
- * @param[in] wordNum - The SRC word number, as defined by the spec.
- *
- * @return size_t The corresponding index into _hexData.
- */
- inline size_t getWordIndexFromWordNum(size_t wordNum) const
- {
- assert(wordNum >= 2 && wordNum <= 9);
- return wordNum - 2;
- }
-
- /**
* @brief Says if the word number is in the range of user defined words.
*
* This is only used for BMC generated SRCs, where words 6 - 9 are the
OpenPOWER on IntegriCloud