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 |
shgoupf | d84fbbf | 2015-12-17 10:05:51 +0800 | [diff] [blame] | 12 | IPMI_CMD_SET_SYS_BOOT_OPTIONS = 0x08, |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 13 | IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09, |
| 14 | }; |
| 15 | |
| 16 | // Command specific completion codes |
| 17 | enum ipmi_chassis_return_codes |
| 18 | { |
shgoupf | d84fbbf | 2015-12-17 10:05:51 +0800 | [diff] [blame] | 19 | IPMI_OK = 0x0, |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 20 | IPMI_CC_PARM_NOT_SUPPORTED = 0x80, |
| 21 | }; |
| 22 | |
shgoupf | d84fbbf | 2015-12-17 10:05:51 +0800 | [diff] [blame] | 23 | // Generic completion codes, |
| 24 | // see IPMI doc section 5.2 |
| 25 | enum ipmi_generic_return_codes |
| 26 | { |
| 27 | IPMI_OUT_OF_SPACE = 0xC4, |
| 28 | }; |
| 29 | |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 30 | // Various Chassis operations under a single command. |
| 31 | enum ipmi_chassis_control_cmds : uint8_t |
| 32 | { |
| 33 | CMD_POWER_OFF = 0x00, |
| 34 | CMD_POWER_ON = 0x01, |
| 35 | CMD_POWER_CYCLE = 0x02, |
| 36 | CMD_HARD_RESET = 0x03, |
| 37 | CMD_PULSE_DIAGNOSTIC_INTR = 0x04, |
| 38 | CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05, |
| 39 | }; |
| 40 | |
Adriana Kobylak | 40814c6 | 2015-10-27 15:58:44 -0500 | [diff] [blame] | 41 | #endif |