summaryrefslogtreecommitdiffstats
path: root/chassishandler.h
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2018-09-12 12:35:13 +0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-09-25 15:17:24 +0000
commitc6713cff6f28a6d78146a7406123e66ce1d5d320 (patch)
tree1edf33dc342edb279aaa1c085e2ad7032165efc1 /chassishandler.h
parent069db2fd856db744a254120ed3054d49f241ae80 (diff)
downloadphosphor-host-ipmid-c6713cff6f28a6d78146a7406123e66ce1d5d320.tar.gz
phosphor-host-ipmid-c6713cff6f28a6d78146a7406123e66ce1d5d320.zip
Implement chassis set power restore policy command
Implement the IPMI set power restore policy command 0x06. This command can be used to configure the power restore policy. This configuration parameter is kept in nonvolatile storage. The power restore policy determines how the system or chassis behaves when AC power returns after an AC power loss Tested: Run the below command to check the current Power Restore Policy: ipmitool -H <IP> -P 0penBmc -I lanplus chassis status Run the below command to change it: ipmitool -H <IP> -P 0penBmc -I lanplus chassis policy always-off Change-Id: I224912890f9a9e8b4dc98f840cd6f223c9f7dfe5 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Diffstat (limited to 'chassishandler.h')
-rw-r--r--chassishandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chassishandler.h b/chassishandler.h
index edbac89..0c6d5a2 100644
--- a/chassishandler.h
+++ b/chassishandler.h
@@ -14,6 +14,8 @@ enum ipmi_netfn_chassis_cmds
// Chassis Control
IPMI_CMD_CHASSIS_CONTROL = 0x02,
IPMI_CMD_CHASSIS_IDENTIFY = 0x04,
+ // Set Power Restore Policy
+ IPMI_CMD_SET_RESTORE_POLICY = 0x06,
// Get capability bits
IPMI_CMD_SET_SYS_BOOT_OPTIONS = 0x08,
IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09,
OpenPOWER on IntegriCloud