summaryrefslogtreecommitdiffstats
path: root/storagehandler.h
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2017-07-03 13:24:27 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-07-25 21:03:36 +0000
commitcac383bf65a4dccdd1d21b8960b5202ed65caf21 (patch)
tree69d4262175eab3c49cabd48242b21b0fe87f5cd1 /storagehandler.h
parent0acf057f9ed774ca7c354fc5735d53c6f53a8cef (diff)
downloadphosphor-host-ipmid-cac383bf65a4dccdd1d21b8960b5202ed65caf21.tar.gz
phosphor-host-ipmid-cac383bf65a4dccdd1d21b8960b5202ed65caf21.zip
cater for fru read callback functions
Change-Id: I2fdaef98faa6adc19efce0ede93b4ee728b9404c Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Diffstat (limited to 'storagehandler.h')
-rw-r--r--storagehandler.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/storagehandler.h b/storagehandler.h
index 7f1b67d..a971f77 100644
--- a/storagehandler.h
+++ b/storagehandler.h
@@ -30,4 +30,36 @@ struct ipmi_add_sel_request_t {
uint8_t eventdir;
uint8_t eventdata[3];
};
+
+/**
+ * @struct Read FRU Data command request data
+ */
+struct ReadFruDataRequest
+{
+ uint8_t fruID; ///< FRU Device ID. FFh = reserved
+ uint8_t offsetLS; ///< FRU Inventory Offset to read, LS Byte
+ uint8_t offsetMS; ///< FRU Inventory Offset ro read, MS Byte
+ uint8_t count; ///< Count to read
+}__attribute__ ((packed));
+
+/**
+ * @struct Get FRU inventory area info command request data
+ */
+struct FruInvenAreaInfoRequest
+{
+ uint8_t fruID; ///< FRU Device ID. FFH = reserved.
+}__attribute__ ((packed));
+
+
+/**
+ * @struct Get FRU inventory area info command response
+ */
+struct FruInvenAreaInfoResponse
+{
+ uint8_t completionCode; ///< Completion code
+ uint8_t sizels; ///< Fru Inventory area size in bytes, LS Byte
+ uint8_t sizems; ///< Fru Inventory are size in bytes, MS Byte
+ uint8_t access; ///< 0b Devices is accessed by bytes, 1b - by words
+}__attribute__ ((packed));
+
#endif
OpenPOWER on IntegriCloud