summaryrefslogtreecommitdiffstats
path: root/selutility.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-06-30 19:14:49 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 19:54:42 +0000
commit2f05bb56787910da33f5ed2519fc84aed5af88d8 (patch)
treea5d675f8bc4f0cda53ead87913fb7358c3c3e53a /selutility.hpp
parent8f4a2aa8ea9485d91babc139bc1c4d878b34b13b (diff)
downloadphosphor-host-ipmid-2f05bb56787910da33f5ed2519fc84aed5af88d8.tar.gz
phosphor-host-ipmid-2f05bb56787910da33f5ed2519fc84aed5af88d8.zip
Add Clear SEL command
Change-Id: I35b07e0bf1012d4b660d10cf17a47318f3c4e6e2 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'selutility.hpp')
-rw-r--r--selutility.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/selutility.hpp b/selutility.hpp
index 50babca..2cae8c3 100644
--- a/selutility.hpp
+++ b/selutility.hpp
@@ -88,6 +88,23 @@ struct DeleteSELEntryRequest
uint16_t selRecordID; //!< SEL Record ID.
} __attribute__((packed));
+static constexpr auto initiateErase = 0xAA;
+static constexpr auto getEraseStatus = 0x00;
+static constexpr auto eraseComplete = 0x01;
+
+/** @struct ClearSELRequest
+ *
+ * IPMI payload for Clear SEL command request.
+ */
+struct ClearSELRequest
+{
+ uint16_t reservationID; //!< Reservation ID.
+ uint8_t charC; //!< Char 'C'(0x43h).
+ uint8_t charL; //!< Char 'L'(0x4Ch).
+ uint8_t charR; //!< Char 'R'(0x52h).
+ uint8_t eraseOperation; //!< Erase operation.
+} __attribute__((packed));
+
/** @brief Convert logging entry to SEL
*
* @param[in] objPath - DBUS object path of the logging entry.
OpenPOWER on IntegriCloud