blob: b6f7d93da3ee3986c074a80eaf2d499796af41d3 [file] [log] [blame]
Adriana Kobylak40814c62015-10-27 15:58:44 -05001#ifndef __HOST_IPMI_CHASSIS_HANDLER_H__
2#define __HOST_IPMI_CHASSIS_HANDLER_H__
3
vishwa36993272015-11-20 12:43:49 -06004#include <stdint.h>
5
Adriana Kobylak40814c62015-10-27 15:58:44 -05006// IPMI commands for Chassis net functions.
7enum ipmi_netfn_app_cmds
8{
vishwa36993272015-11-20 12:43:49 -06009 // Chassis Control
10 IPMI_CMD_CHASSIS_CONTROL = 0x02,
Adriana Kobylak40814c62015-10-27 15:58:44 -050011 // Get capability bits
shgoupfd84fbbf2015-12-17 10:05:51 +080012 IPMI_CMD_SET_SYS_BOOT_OPTIONS = 0x08,
Adriana Kobylak40814c62015-10-27 15:58:44 -050013 IPMI_CMD_GET_SYS_BOOT_OPTIONS = 0x09,
14};
15
16// Command specific completion codes
17enum ipmi_chassis_return_codes
18{
shgoupfd84fbbf2015-12-17 10:05:51 +080019 IPMI_OK = 0x0,
Adriana Kobylak40814c62015-10-27 15:58:44 -050020 IPMI_CC_PARM_NOT_SUPPORTED = 0x80,
21};
22
shgoupfd84fbbf2015-12-17 10:05:51 +080023// Generic completion codes,
24// see IPMI doc section 5.2
25enum ipmi_generic_return_codes
26{
27 IPMI_OUT_OF_SPACE = 0xC4,
28};
29
vishwa36993272015-11-20 12:43:49 -060030// Various Chassis operations under a single command.
31enum 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 Kobylak40814c62015-10-27 15:58:44 -050041#endif