blob: 497b24b0df18f116caa3dc2200e64ebba57e3ba5 [file] [log] [blame]
vishwabmcba0bd5f2015-09-30 16:50:23 +05301#ifndef __HOST_IPMI_APP_HANDLER_H__
2#define __HOST_IPMI_APP_HANDLER_H__
3
vishwa36993272015-11-20 12:43:49 -06004#include <stdint.h>
5
Adriana Kobylakdfc8d772015-10-20 09:34:48 -05006// IPMI commands for App net functions.
vishwabmcba0bd5f2015-09-30 16:50:23 +05307enum ipmi_netfn_app_cmds
8{
9 // Get capability bits
Adriana Kobylakdfc8d772015-10-20 09:34:48 -050010 IPMI_CMD_GET_DEVICE_ID = 0x01,
Nan Li41fa24a2016-11-10 20:12:37 +080011 IPMI_CMD_GET_SELF_TEST_RESULTS = 0x04,
Adriana Kobylakdfc8d772015-10-20 09:34:48 -050012 IPMI_CMD_SET_ACPI = 0x06,
Adriana Kobylakd100ee52015-10-20 17:02:37 -050013 IPMI_CMD_GET_DEVICE_GUID = 0x08,
Adriana Kobylakdfc8d772015-10-20 09:34:48 -050014 IPMI_CMD_RESET_WD = 0x22,
15 IPMI_CMD_SET_WD = 0x24,
Adriana Kobylakdfc8d772015-10-20 09:34:48 -050016 IPMI_CMD_GET_CAP_BIT = 0x36,
Nan Li3d0df912016-10-18 19:51:41 +080017 IPMI_CMD_SET_CHAN_ACCESS = 0x40,
Tom Joseph69fabfe2017-08-04 10:15:01 +053018 IPMI_CMD_GET_CHANNEL_ACCESS = 0x41,
Chris Austenc2cd29d2016-02-05 20:02:29 -060019 IPMI_CMD_GET_CHAN_INFO = 0x42,
vishwabmcba0bd5f2015-09-30 16:50:23 +053020};
21
Tom Joseph69fabfe2017-08-04 10:15:01 +053022/** @struct GetChannelAccessRequest
23 *
24 * IPMI payload for Get Channel access command request.
25 */
26struct 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 */
36struct GetChannelAccessResponse
37{
38 uint8_t settings; //!< Channel settings.
39 uint8_t privilegeLimit; //!< Channel privilege level limit.
40} __attribute__((packed));
41
vishwabmcba0bd5f2015-09-30 16:50:23 +053042#endif