summaryrefslogtreecommitdiffstats
path: root/chassishandler.h
diff options
context:
space:
mode:
authorvishwa <vishwanath@in.ibm.com>2015-11-20 12:43:49 -0600
committervishwa <vishwanath@in.ibm.com>2015-11-24 11:45:50 -0600
commit3699327a1dbbfe8a8fd751266fd72dc7bf515108 (patch)
treef2ab0c129b252ac4958d0544abd1f39a47ba3494 /chassishandler.h
parent6872af6e32a93ff54544b2d32302bb236cd891a5 (diff)
downloadphosphor-host-ipmid-3699327a1dbbfe8a8fd751266fd72dc7bf515108.tar.gz
phosphor-host-ipmid-3699327a1dbbfe8a8fd751266fd72dc7bf515108.zip
IPMI soft power off
Diffstat (limited to 'chassishandler.h')
-rw-r--r--chassishandler.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/chassishandler.h b/chassishandler.h
index 99ed366..1a26411 100644
--- a/chassishandler.h
+++ b/chassishandler.h
@@ -1,9 +1,13 @@
#ifndef __HOST_IPMI_CHASSIS_HANDLER_H__
#define __HOST_IPMI_CHASSIS_HANDLER_H__
+#include <stdint.h>
+
// IPMI commands for Chassis net functions.
enum ipmi_netfn_app_cmds
{
+ // Chassis Control
+ IPMI_CMD_CHASSIS_CONTROL = 0x02,
// Get capability bits
IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09,
};
@@ -14,4 +18,15 @@ enum ipmi_chassis_return_codes
IPMI_CC_PARM_NOT_SUPPORTED = 0x80,
};
+// Various Chassis operations under a single command.
+enum ipmi_chassis_control_cmds : uint8_t
+{
+ CMD_POWER_OFF = 0x00,
+ CMD_POWER_ON = 0x01,
+ CMD_POWER_CYCLE = 0x02,
+ CMD_HARD_RESET = 0x03,
+ CMD_PULSE_DIAGNOSTIC_INTR = 0x04,
+ CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05,
+};
+
#endif
OpenPOWER on IntegriCloud