summaryrefslogtreecommitdiffstats
path: root/chassishandler.hpp
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2019-05-21 14:46:55 +0800
committerYong Li <yong.b.li@intel.com>2019-05-24 02:05:51 +0000
commitf4e385155ec28c45c70742e19b00cb515ae76783 (patch)
tree7692bf0d39915c34c01c018d2e9fe594a9447dc6 /chassishandler.hpp
parent70ce735720983f289c4e7c44987f3b91071c4d4c (diff)
downloadphosphor-host-ipmid-f4e385155ec28c45c70742e19b00cb515ae76783.tar.gz
phosphor-host-ipmid-f4e385155ec28c45c70742e19b00cb515ae76783.zip
Chassishandler: Add chassis identify state support for chassis status command
Return the present chassis identify state in get chassis status command: Off Temporary on Indefinite on Reserved Tested: Set chassis identify in different states: ipmitool raw 0 4 10 0 ipmitool raw 0 4 0 1 ipmitool raw 0 4 0 0 Then query the chassis status and check on the third byte ipmitool raw 0 1 Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I66690b74823a6b819c4fda25d95bc8690b98181a
Diffstat (limited to 'chassishandler.hpp')
-rw-r--r--chassishandler.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/chassishandler.hpp b/chassishandler.hpp
index 49b5ef8..6cffe58 100644
--- a/chassishandler.hpp
+++ b/chassishandler.hpp
@@ -58,3 +58,11 @@ enum class BootOptionResponseSize : size_t
BOOT_FLAGS = 5,
OPAL_NETWORK_SETTINGS = 50
};
+
+enum class ChassisIDState : uint8_t
+{
+ off = 0x0,
+ temporaryOn = 0x1,
+ indefiniteOn = 0x2,
+ reserved = 0x3
+};
OpenPOWER on IntegriCloud