diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2017-07-12 20:20:49 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-18 21:21:28 +0000 |
commit | 545dd23205bf90e0e84de028356105d0c898f288 (patch) | |
tree | 4a17c821efc7223e1af7fbf41e3c6267604ab859 /dcmihandler.hpp | |
parent | 6f6dd4d733339d8e3783dd1630f365b903035dcf (diff) | |
download | phosphor-host-ipmid-545dd23205bf90e0e84de028356105d0c898f288.tar.gz phosphor-host-ipmid-545dd23205bf90e0e84de028356105d0c898f288.zip |
dcmi: asset-tag: Implement Set Asset tag command
Resolves openbmc/openbmc#1854
Change-Id: Iba00a732aa30fb60fc0b1550daec0e4055af74fa
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'dcmihandler.hpp')
-rw-r--r-- | dcmihandler.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dcmihandler.hpp b/dcmihandler.hpp index f2369a0..c64e56b 100644 --- a/dcmihandler.hpp +++ b/dcmihandler.hpp @@ -11,6 +11,7 @@ enum ipmi_netfn_sen_cmds // Get capability bits IPMI_CMD_DCMI_GET_POWER = 0x03, IPMI_CMD_DCMI_GET_ASSET_TAG = 0x06, + IPMI_CMD_DCMI_SET_ASSET_TAG = 0x08, }; namespace dcmi @@ -58,6 +59,27 @@ struct GetAssetTagResponse uint8_t tagLength; //!< Total asset tag length. } __attribute__((packed)); +/** @struct SetAssetTagRequest + * + * DCMI payload for Set Asset Tag command request. + */ +struct SetAssetTagRequest +{ + uint8_t groupID; //!< Group extension identification. + uint8_t offset; //!< Offset to write. + uint8_t bytes; //!< Number of bytes to write. +} __attribute__((packed)); + +/** @struct SetAssetTagResponse + * + * DCMI payload for Set Asset Tag command response. + */ +struct SetAssetTagResponse +{ + uint8_t groupID; //!< Group extension identification. + uint8_t tagLength; //!< Total asset tag length. +} __attribute__((packed)); + /** @brief Read the object tree to fetch the object path that implemented the * Asset tag interface. * |