linux/include/uapi/linux/ipmi_msgdefs.h

/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
 * ipmi_smi.h
 *
 * MontaVista IPMI system management interface
 *
 * Author: MontaVista Software, Inc.
 *         Corey Minyard <[email protected]>
 *         [email protected]
 *
 * Copyright 2002 MontaVista Software Inc.
 *
 */

#ifndef __LINUX_IPMI_MSGDEFS_H
#define __LINUX_IPMI_MSGDEFS_H

/* Various definitions for IPMI messages used by almost everything in
   the IPMI stack. */

/* NetFNs and commands used inside the IPMI stack. */

#define IPMI_NETFN_SENSOR_EVENT_REQUEST
#define IPMI_NETFN_SENSOR_EVENT_RESPONSE
#define IPMI_GET_EVENT_RECEIVER_CMD

#define IPMI_NETFN_APP_REQUEST
#define IPMI_NETFN_APP_RESPONSE
#define IPMI_GET_DEVICE_ID_CMD
#define IPMI_COLD_RESET_CMD
#define IPMI_WARM_RESET_CMD
#define IPMI_CLEAR_MSG_FLAGS_CMD
#define IPMI_GET_DEVICE_GUID_CMD
#define IPMI_GET_MSG_FLAGS_CMD
#define IPMI_SEND_MSG_CMD
#define IPMI_GET_MSG_CMD
#define IPMI_SET_BMC_GLOBAL_ENABLES_CMD
#define IPMI_GET_BMC_GLOBAL_ENABLES_CMD
#define IPMI_READ_EVENT_MSG_BUFFER_CMD
#define IPMI_GET_CHANNEL_INFO_CMD

/* Bit for BMC global enables. */
#define IPMI_BMC_RCV_MSG_INTR
#define IPMI_BMC_EVT_MSG_INTR
#define IPMI_BMC_EVT_MSG_BUFF
#define IPMI_BMC_SYS_LOG

#define IPMI_NETFN_STORAGE_REQUEST
#define IPMI_NETFN_STORAGE_RESPONSE
#define IPMI_ADD_SEL_ENTRY_CMD

#define IPMI_NETFN_FIRMWARE_REQUEST
#define IPMI_NETFN_FIRMWARE_RESPONSE

/* The default slave address */
#define IPMI_BMC_SLAVE_ADDR

/* The BT interface on high-end HP systems supports up to 255 bytes in
 * one transfer.  Its "virtual" BMC supports some commands that are longer
 * than 128 bytes.  Use the full 256, plus NetFn/LUN, Cmd, cCode, plus
 * some overhead; it's not worth the effort to dynamically size this based
 * on the results of the "Get BT Capabilities" command. */
#define IPMI_MAX_MSG_LENGTH

#define IPMI_CC_NO_ERROR
#define IPMI_NODE_BUSY_ERR
#define IPMI_INVALID_COMMAND_ERR
#define IPMI_TIMEOUT_ERR
#define IPMI_ERR_MSG_TRUNCATED
#define IPMI_REQ_LEN_INVALID_ERR
#define IPMI_REQ_LEN_EXCEEDED_ERR
#define IPMI_DEVICE_IN_FW_UPDATE_ERR
#define IPMI_DEVICE_IN_INIT_ERR
#define IPMI_NOT_IN_MY_STATE_ERR
#define IPMI_LOST_ARBITRATION_ERR
#define IPMI_BUS_ERR
#define IPMI_NAK_ON_WRITE_ERR
#define IPMI_ERR_UNSPECIFIED

#define IPMI_CHANNEL_PROTOCOL_IPMB
#define IPMI_CHANNEL_PROTOCOL_ICMB
#define IPMI_CHANNEL_PROTOCOL_SMBUS
#define IPMI_CHANNEL_PROTOCOL_KCS
#define IPMI_CHANNEL_PROTOCOL_SMIC
#define IPMI_CHANNEL_PROTOCOL_BT10
#define IPMI_CHANNEL_PROTOCOL_BT15
#define IPMI_CHANNEL_PROTOCOL_TMODE

#define IPMI_CHANNEL_MEDIUM_IPMB
#define IPMI_CHANNEL_MEDIUM_ICMB10
#define IPMI_CHANNEL_MEDIUM_ICMB09
#define IPMI_CHANNEL_MEDIUM_8023LAN
#define IPMI_CHANNEL_MEDIUM_ASYNC
#define IPMI_CHANNEL_MEDIUM_OTHER_LAN
#define IPMI_CHANNEL_MEDIUM_PCI_SMBUS
#define IPMI_CHANNEL_MEDIUM_SMBUS1
#define IPMI_CHANNEL_MEDIUM_SMBUS2
#define IPMI_CHANNEL_MEDIUM_USB1
#define IPMI_CHANNEL_MEDIUM_USB2
#define IPMI_CHANNEL_MEDIUM_SYSINTF
#define IPMI_CHANNEL_MEDIUM_OEM_MIN
#define IPMI_CHANNEL_MEDIUM_OEM_MAX

#endif /* __LINUX_IPMI_MSGDEFS_H */