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>
diff --git a/storagehandler.h b/storagehandler.h
index a971f77..497db82 100644
--- a/storagehandler.h
+++ b/storagehandler.h
@@ -6,6 +6,7 @@
 {
     // 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 @@
     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