summaryrefslogtreecommitdiffstats
path: root/selutility.hpp
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-06-30 19:09:47 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 19:54:41 +0000
commita495339f39ace4f729f31f40e837f8d5b76732cb (patch)
treefe0d9dbeaee5b6ed80c7459abd4c24da44af5c4b /selutility.hpp
parent6f7deaa034b1cfd7640b1c21616c6807900d5609 (diff)
downloadphosphor-host-ipmid-a495339f39ace4f729f31f40e837f8d5b76732cb.tar.gz
phosphor-host-ipmid-a495339f39ace4f729f31f40e837f8d5b76732cb.zip
Add Get SEL entry command
Change-Id: I09983a127c7c2817a0ebb6d64ffb2a9585dcd235 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 9c253bd..ddf003a 100644
--- a/selutility.hpp
+++ b/selutility.hpp
@@ -41,6 +41,23 @@ struct GetSELInfoResponse
uint8_t operationSupport; //!< Operation support.
} __attribute__((packed));
+static constexpr auto firstEntry = 0x0000;
+static constexpr auto lastEntry = 0xFFFF;
+static constexpr auto entireRecord = 0xFF;
+static constexpr auto selRecordSize = 16;
+
+/** @struct GetSELEntryRequest
+ *
+ * IPMI payload for Get SEL Entry command request.
+ */
+struct GetSELEntryRequest
+{
+ uint16_t reservationID; //!< Reservation ID.
+ uint16_t selRecordID; //!< SEL Record ID.
+ uint8_t offset; //!< Offset into record.
+ uint8_t readLength; //!< Bytes to read.
+} __attribute__((packed));
+
/** @struct GetSELEntryResponse
*
* IPMI payload for Get SEL Entry command response.
OpenPOWER on IntegriCloud