summaryrefslogtreecommitdiffstats
path: root/storagehandler.h
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2018-02-07 01:21:56 -0600
committerTom Joseph <tomjoseph@in.ibm.com>2018-02-16 02:23:54 +0000
commite66c3b042c0cd2d94059fa93298e0ba52c92b248 (patch)
tree1604de72d0f732f663107e09111de7abf3bec4cb /storagehandler.h
parentdd4cff135a6436793a13cdff62498a4cccc14320 (diff)
downloadphosphor-host-ipmid-e66c3b042c0cd2d94059fa93298e0ba52c92b248.tar.gz
phosphor-host-ipmid-e66c3b042c0cd2d94059fa93298e0ba52c92b248.zip
Add Get Repository Info Command
Adding support for Get Repository Info command, which returns information about the SDR repository. resolves openbmc/openbmc#2614 Change-Id: Id1219de8021b5403a775ad6e8577dbc8edfc60cb Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Diffstat (limited to 'storagehandler.h')
-rw-r--r--storagehandler.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/storagehandler.h b/storagehandler.h
index a971f77..497db82 100644
--- a/storagehandler.h
+++ b/storagehandler.h
@@ -6,6 +6,7 @@ enum ipmi_netfn_storage_cmds
{
// Get capability bits
IPMI_CMD_GET_FRU_INV_AREA_INFO = 0x10,
+ IPMI_CMD_GET_REPOSITORY_INFO = 0x20,
IPMI_CMD_READ_FRU_DATA = 0x11,
IPMI_CMD_GET_SEL_INFO = 0x40,
IPMI_CMD_RESERVE_SEL = 0x42,
@@ -62,4 +63,17 @@ struct FruInvenAreaInfoResponse
uint8_t access; ///< 0b Devices is accessed by bytes, 1b - by words
}__attribute__ ((packed));
+/**
+ * @struct Get Repository info command response
+ */
+struct GetRepositoryInfoResponse
+{
+ uint8_t sdrVersion; //< SDR version
+ uint8_t recordCountLs; //< Record count LS byte
+ uint8_t recordCountMs; //< Record count MS bte
+ uint8_t freeSpace[2]; //< Free space in bytes, LS first
+ uint8_t additionTimestamp[4]; //< Most recent addition timestamp LS first
+ uint8_t deletionTimestamp[4]; //< Most recent deletion timestamp LS first
+ uint8_t operationSupport; //< Operation support
+}__attribute__ ((packed));
#endif
OpenPOWER on IntegriCloud