summaryrefslogtreecommitdiffstats
path: root/dcmihandler.hpp
diff options
context:
space:
mode:
authorVladislav Vovchenko <vlad.vovchenko93@gmail.com>2017-08-17 00:31:14 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-10-16 22:14:33 +0000
commit8f7a6f68d2488cbd6eb2e4af9adec61d97741e99 (patch)
treecc964a5689f4e25e1938a064c22ee388eafba31c /dcmihandler.hpp
parent1fe5c834b9ae4f09726dea8a1c7b3a05d87f1344 (diff)
downloadphosphor-host-ipmid-8f7a6f68d2488cbd6eb2e4af9adec61d97741e99.tar.gz
phosphor-host-ipmid-8f7a6f68d2488cbd6eb2e4af9adec61d97741e99.zip
Add DCMI Get/Set Management Controller Id String
Resolves openbmc/openbmc#1855 Change-Id: I878c7bcb1ea8b46cd3e932b1cbb2290fe612f652 Signed-off-by: Vladislav Vovchenko <vlad.vovchenko93@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'dcmihandler.hpp')
-rw-r--r--dcmihandler.hpp54
1 files changed, 53 insertions, 1 deletions
diff --git a/dcmihandler.hpp b/dcmihandler.hpp
index 212e9ac..91707f3 100644
--- a/dcmihandler.hpp
+++ b/dcmihandler.hpp
@@ -17,13 +17,20 @@ enum Commands
APPLY_POWER_LIMIT = 0x05,
GET_ASSET_TAG = 0x06,
SET_ASSET_TAG = 0x08,
+ GET_MGMNT_CTRL_ID_STR = 0x09,
+ SET_MGMNT_CTRL_ID_STR = 0x0A,
};
-
static constexpr auto propIntf = "org.freedesktop.DBus.Properties";
static constexpr auto assetTagIntf =
"xyz.openbmc_project.Inventory.Decorator.AssetTag";
static constexpr auto assetTagProp = "AssetTag";
+static constexpr auto networkServiceName = "xyz.openbmc_project.Network";
+static constexpr auto networkConfigObj =
+ "/xyz/openbmc_project/network/config";
+static constexpr auto networkConfigIntf =
+ "xyz.openbmc_project.Network.SystemConfiguration";
+static constexpr auto hostNameProp = "HostName";
namespace assettag
{
@@ -40,6 +47,7 @@ static constexpr auto groupExtId = 0xDC;
static constexpr auto assetTagMaxOffset = 62;
static constexpr auto assetTagMaxSize = 63;
static constexpr auto maxBytes = 16;
+static constexpr size_t maxCtrlIdStrLen = 63;
/** @struct GetAssetTagRequest
*
@@ -206,6 +214,50 @@ struct ApplyPowerLimitResponse
uint8_t groupID; //!< Group extension identification.
} __attribute__((packed));
+/** @struct GetMgmntCtrlIdStrRequest
+ *
+ * DCMI payload for Get Management Controller Identifier String cmd request.
+ */
+struct GetMgmntCtrlIdStrRequest
+{
+ uint8_t groupID; //!< Group extension identification.
+ uint8_t offset; //!< Offset to read.
+ uint8_t bytes; //!< Number of bytes to read.
+} __attribute__((packed));
+
+/** @struct GetMgmntCtrlIdStrResponse
+ *
+ * DCMI payload for Get Management Controller Identifier String cmd response.
+ */
+struct GetMgmntCtrlIdStrResponse
+{
+ uint8_t groupID; //!< Group extension identification.
+ uint8_t strLen; //!< ID string length.
+ char data[]; //!< ID string
+} __attribute__((packed));
+
+/** @struct SetMgmntCtrlIdStrRequest
+ *
+ * DCMI payload for Set Management Controller Identifier String cmd request.
+ */
+struct SetMgmntCtrlIdStrRequest
+{
+ uint8_t groupID; //!< Group extension identification.
+ uint8_t offset; //!< Offset to write.
+ uint8_t bytes; //!< Number of bytes to read.
+ char data[]; //!< ID string
+} __attribute__((packed));
+
+/** @struct GetMgmntCtrlIdStrResponse
+ *
+ * DCMI payload for Get Management Controller Identifier String cmd response.
+ */
+struct SetMgmntCtrlIdStrResponse
+{
+ uint8_t groupID; //!< Group extension identification.
+ uint8_t offset; //!< Last Offset Written.
+} __attribute__((packed));
+
} // namespace dcmi
#endif
OpenPOWER on IntegriCloud