brintos

brintos / linux-shallow public Read only

0
0
Text · 3.3 KiB · 0934af3 Raw
105 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */2/*3 * ipmi_smi.h4 *5 * MontaVista IPMI system management interface6 *7 * Author: MontaVista Software, Inc.8 *         Corey Minyard <minyard@mvista.com>9 *         source@mvista.com10 *11 * Copyright 2002 MontaVista Software Inc.12 *13 */14 15#ifndef __LINUX_IPMI_MSGDEFS_H16#define __LINUX_IPMI_MSGDEFS_H17 18/* Various definitions for IPMI messages used by almost everything in19   the IPMI stack. */20 21/* NetFNs and commands used inside the IPMI stack. */22 23#define IPMI_NETFN_SENSOR_EVENT_REQUEST		0x0424#define IPMI_NETFN_SENSOR_EVENT_RESPONSE	0x0525#define IPMI_GET_EVENT_RECEIVER_CMD	0x0126 27#define IPMI_NETFN_APP_REQUEST			0x0628#define IPMI_NETFN_APP_RESPONSE			0x0729#define IPMI_GET_DEVICE_ID_CMD		0x0130#define IPMI_COLD_RESET_CMD		0x0231#define IPMI_WARM_RESET_CMD		0x0332#define IPMI_CLEAR_MSG_FLAGS_CMD	0x3033#define IPMI_GET_DEVICE_GUID_CMD	0x0834#define IPMI_GET_MSG_FLAGS_CMD		0x3135#define IPMI_SEND_MSG_CMD		0x3436#define IPMI_GET_MSG_CMD		0x3337#define IPMI_SET_BMC_GLOBAL_ENABLES_CMD	0x2e38#define IPMI_GET_BMC_GLOBAL_ENABLES_CMD	0x2f39#define IPMI_READ_EVENT_MSG_BUFFER_CMD	0x3540#define IPMI_GET_CHANNEL_INFO_CMD	0x4241 42/* Bit for BMC global enables. */43#define IPMI_BMC_RCV_MSG_INTR     0x0144#define IPMI_BMC_EVT_MSG_INTR     0x0245#define IPMI_BMC_EVT_MSG_BUFF     0x0446#define IPMI_BMC_SYS_LOG          0x0847 48#define IPMI_NETFN_STORAGE_REQUEST		0x0a49#define IPMI_NETFN_STORAGE_RESPONSE		0x0b50#define IPMI_ADD_SEL_ENTRY_CMD		0x4451 52#define IPMI_NETFN_FIRMWARE_REQUEST		0x0853#define IPMI_NETFN_FIRMWARE_RESPONSE		0x0954 55/* The default slave address */56#define IPMI_BMC_SLAVE_ADDR	0x2057 58/* The BT interface on high-end HP systems supports up to 255 bytes in59 * one transfer.  Its "virtual" BMC supports some commands that are longer60 * than 128 bytes.  Use the full 256, plus NetFn/LUN, Cmd, cCode, plus61 * some overhead; it's not worth the effort to dynamically size this based62 * on the results of the "Get BT Capabilities" command. */63#define IPMI_MAX_MSG_LENGTH	272	/* multiple of 16 */64 65#define IPMI_CC_NO_ERROR		0x0066#define IPMI_NODE_BUSY_ERR		0xc067#define IPMI_INVALID_COMMAND_ERR	0xc168#define IPMI_TIMEOUT_ERR		0xc369#define IPMI_ERR_MSG_TRUNCATED		0xc670#define IPMI_REQ_LEN_INVALID_ERR	0xc771#define IPMI_REQ_LEN_EXCEEDED_ERR	0xc872#define IPMI_DEVICE_IN_FW_UPDATE_ERR	0xd173#define IPMI_DEVICE_IN_INIT_ERR		0xd274#define IPMI_NOT_IN_MY_STATE_ERR	0xd5	/* IPMI 2.0 */75#define IPMI_LOST_ARBITRATION_ERR	0x8176#define IPMI_BUS_ERR			0x8277#define IPMI_NAK_ON_WRITE_ERR		0x8378#define IPMI_ERR_UNSPECIFIED		0xff79 80#define IPMI_CHANNEL_PROTOCOL_IPMB	181#define IPMI_CHANNEL_PROTOCOL_ICMB	282#define IPMI_CHANNEL_PROTOCOL_SMBUS	483#define IPMI_CHANNEL_PROTOCOL_KCS	584#define IPMI_CHANNEL_PROTOCOL_SMIC	685#define IPMI_CHANNEL_PROTOCOL_BT10	786#define IPMI_CHANNEL_PROTOCOL_BT15	887#define IPMI_CHANNEL_PROTOCOL_TMODE	988 89#define IPMI_CHANNEL_MEDIUM_IPMB	190#define IPMI_CHANNEL_MEDIUM_ICMB10	291#define IPMI_CHANNEL_MEDIUM_ICMB09	392#define IPMI_CHANNEL_MEDIUM_8023LAN	493#define IPMI_CHANNEL_MEDIUM_ASYNC	594#define IPMI_CHANNEL_MEDIUM_OTHER_LAN	695#define IPMI_CHANNEL_MEDIUM_PCI_SMBUS	796#define IPMI_CHANNEL_MEDIUM_SMBUS1	897#define IPMI_CHANNEL_MEDIUM_SMBUS2	998#define IPMI_CHANNEL_MEDIUM_USB1	1099#define IPMI_CHANNEL_MEDIUM_USB2	11100#define IPMI_CHANNEL_MEDIUM_SYSINTF	12101#define IPMI_CHANNEL_MEDIUM_OEM_MIN	0x60102#define IPMI_CHANNEL_MEDIUM_OEM_MAX	0x7f103 104#endif /* __LINUX_IPMI_MSGDEFS_H */105