vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 1 | #ifndef __HOST_IPMI_APP_HANDLER_H__ |
| 2 | #define __HOST_IPMI_APP_HANDLER_H__ |
| 3 | |
vishwa | 3699327 | 2015-11-20 12:43:49 -0600 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | |
Adriana Kobylak | dfc8d77 | 2015-10-20 09:34:48 -0500 | [diff] [blame] | 6 | // IPMI commands for App net functions. |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 7 | enum ipmi_netfn_app_cmds |
| 8 | { |
| 9 | // Get capability bits |
Adriana Kobylak | dfc8d77 | 2015-10-20 09:34:48 -0500 | [diff] [blame] | 10 | IPMI_CMD_GET_DEVICE_ID = 0x01, |
Nan Li | 41fa24a | 2016-11-10 20:12:37 +0800 | [diff] [blame] | 11 | IPMI_CMD_GET_SELF_TEST_RESULTS = 0x04, |
Adriana Kobylak | dfc8d77 | 2015-10-20 09:34:48 -0500 | [diff] [blame] | 12 | IPMI_CMD_SET_ACPI = 0x06, |
Adriana Kobylak | d100ee5 | 2015-10-20 17:02:37 -0500 | [diff] [blame] | 13 | IPMI_CMD_GET_DEVICE_GUID = 0x08, |
Adriana Kobylak | dfc8d77 | 2015-10-20 09:34:48 -0500 | [diff] [blame] | 14 | IPMI_CMD_RESET_WD = 0x22, |
| 15 | IPMI_CMD_SET_WD = 0x24, |
Adriana Kobylak | dfc8d77 | 2015-10-20 09:34:48 -0500 | [diff] [blame] | 16 | IPMI_CMD_GET_CAP_BIT = 0x36, |
Nan Li | 3d0df91 | 2016-10-18 19:51:41 +0800 | [diff] [blame] | 17 | IPMI_CMD_SET_CHAN_ACCESS = 0x40, |
Tom Joseph | 69fabfe | 2017-08-04 10:15:01 +0530 | [diff] [blame] | 18 | IPMI_CMD_GET_CHANNEL_ACCESS = 0x41, |
Chris Austen | c2cd29d | 2016-02-05 20:02:29 -0600 | [diff] [blame] | 19 | IPMI_CMD_GET_CHAN_INFO = 0x42, |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 20 | }; |
| 21 | |
Tom Joseph | 69fabfe | 2017-08-04 10:15:01 +0530 | [diff] [blame] | 22 | /** @struct GetChannelAccessRequest |
| 23 | * |
| 24 | * IPMI payload for Get Channel access command request. |
| 25 | */ |
| 26 | struct GetChannelAccessRequest |
| 27 | { |
| 28 | uint8_t channelNumber; //!< Channel number. |
| 29 | uint8_t volatileSetting; //!< Get non-volatile or the volatile setting. |
| 30 | } __attribute__((packed)); |
| 31 | |
| 32 | /** @struct GetChannelAccessResponse |
| 33 | * |
| 34 | * IPMI payload for Get Channel access command response. |
| 35 | */ |
| 36 | struct GetChannelAccessResponse |
| 37 | { |
| 38 | uint8_t settings; //!< Channel settings. |
| 39 | uint8_t privilegeLimit; //!< Channel privilege level limit. |
| 40 | } __attribute__((packed)); |
| 41 | |
vishwabmc | ba0bd5f | 2015-09-30 16:50:23 +0530 | [diff] [blame] | 42 | #endif |