diff options
Diffstat (limited to 'selutility.hpp')
-rw-r--r-- | selutility.hpp | 17 |
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. |