Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 1 | #ifndef __HOST_IPMI_CHASSIS_HANDLER_H__ |
| 2 | #define __HOST_IPMI_CHASSIS_HANDLER_H__ |
| 3 | |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 6 | // IPMI commands for Chassis net functions. |
| 7 | enum ipmi_netfn_app_cmds |
| 8 | { |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 9 | // Chassis Control |
| 10 | IPMI_CMD_CHASSIS_CONTROL = 0x02, |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 11 | // Get capability bits |
| 12 | IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09, |
| 13 | }; |
| 14 | |
| 15 | // Command specific completion codes |
| 16 | enum ipmi_chassis_return_codes |
| 17 | { |
| 18 | IPMI_CC_PARM_NOT_SUPPORTED = 0x80, |
| 19 | }; |
| 20 | |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 21 | // Various Chassis operations under a single command. |
| 22 | enum ipmi_chassis_control_cmds : uint8_t |
| 23 | { |
| 24 | CMD_POWER_OFF = 0x00, |
| 25 | CMD_POWER_ON = 0x01, |
| 26 | CMD_POWER_CYCLE = 0x02, |
| 27 | CMD_HARD_RESET = 0x03, |
| 28 | CMD_PULSE_DIAGNOSTIC_INTR = 0x04, |
| 29 | CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05, |
| 30 | }; |
| 31 | |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 32 | #endif |