From e66c3b042c0cd2d94059fa93298e0ba52c92b248 Mon Sep 17 00:00:00 2001 From: Dhruvaraj Subhashchandran Date: Wed, 7 Feb 2018 01:21:56 -0600 Subject: 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 --- storagehandler.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'storagehandler.h') 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 -- cgit v1.2.1