From 2f05bb56787910da33f5ed2519fc84aed5af88d8 Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Fri, 30 Jun 2017 19:14:49 +0530 Subject: Add Clear SEL command Change-Id: I35b07e0bf1012d4b660d10cf17a47318f3c4e6e2 Signed-off-by: Tom Joseph --- selutility.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'selutility.hpp') 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. -- cgit v1.2.1