summaryrefslogtreecommitdiffstats
path: root/selutility.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-06-30 19:03:54 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 19:54:41 +0000
commit6f7deaa034b1cfd7640b1c21616c6807900d5609 (patch)
tree6d8b433686f5401d8116d9048da0c3886fa3a420 /selutility.hpp
parent399fd92ec41cd23a9a5cb30f5d41397e5d8c6306 (diff)
downloadphosphor-host-ipmid-6f7deaa034b1cfd7640b1c21616c6807900d5609.tar.gz
phosphor-host-ipmid-6f7deaa034b1cfd7640b1c21616c6807900d5609.zip
Add Get SEL Info command
Change-Id: I8caa38ee461d6c570a6d7ab73376eb6aea701391 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
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