summaryrefslogtreecommitdiffstats
path: root/selutility.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'selutility.hpp')
-rw-r--r--selutility.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/selutility.hpp b/selutility.hpp
index 09104a3..9c253bd 100644
--- a/selutility.hpp
+++ b/selutility.hpp
@@ -23,6 +23,24 @@ static constexpr auto propIntf = "org.freedesktop.DBus.Properties";
using PropertyType = sdbusplus::message::variant<bool, uint32_t, uint64_t,
std::string, std::vector<std::string>>;
+static constexpr auto selVersion = 0x51;
+static constexpr auto invalidTimeStamp = 0xFFFFFFFF;
+static constexpr auto operationSupport = 0x0A;
+
+/** @struct GetSELInfoResponse
+ *
+ * IPMI payload for Get SEL Info command response.
+ */
+struct GetSELInfoResponse
+{
+ uint8_t selVersion; //!< SEL revision.
+ uint16_t entries; //!< Number of log entries in SEL.
+ uint16_t freeSpace; //!< Free Space in bytes.
+ uint32_t addTimeStamp; //!< Most recent addition timestamp.
+ uint32_t eraseTimeStamp; //!< Most recent erase timestamp.
+ uint8_t operationSupport; //!< Operation support.
+} __attribute__((packed));
+
/** @struct GetSELEntryResponse
*
* IPMI payload for Get SEL Entry command response.
OpenPOWER on IntegriCloud