summaryrefslogtreecommitdiffstats
path: root/ipmi.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ipmi.hpp')
-rw-r--r--ipmi.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/ipmi.hpp b/ipmi.hpp
index 3b99e6e..a09d347 100644
--- a/ipmi.hpp
+++ b/ipmi.hpp
@@ -20,6 +20,7 @@ enum BlobOEMCommands
bmcBlobDelete = 7,
bmcBlobStat = 8,
bmcBlobSessionStat = 9,
+ bmcBlobWriteMeta = 10,
};
/* Used by bmcBlobGetCount */
@@ -140,6 +141,16 @@ struct BmcBlobWriteTx
uint8_t data[];
} __attribute__((packed));
+/* Used by bmcBlobWriteMeta */
+struct BmcBlobWriteMetaTx
+{
+ uint8_t cmd; /* bmcBlobWriteMeta */
+ uint16_t crc;
+ uint16_t sessionId; /* Returned from BmcBlobOpen. */
+ uint32_t offset; /* The byte sequence start, 0-based. */
+ uint8_t data[];
+} __attribute__((packed));
+
/**
* Validate the minimum request length if there is one.
*
@@ -223,4 +234,11 @@ ipmi_ret_t readBlob(ManagerInterface* mgr, const uint8_t* reqBuf,
*/
ipmi_ret_t writeBlob(ManagerInterface* mgr, const uint8_t* reqBuf,
uint8_t* replyCmdBuf, size_t* dataLen);
+
+/**
+ * Attempt to write metadata to the blob.
+ */
+ipmi_ret_t writeMeta(ManagerInterface* mgr, const uint8_t* reqBuf,
+ uint8_t* replyCmdBuf, size_t* dataLen);
+
} // namespace blobs
OpenPOWER on IntegriCloud