Go to the documentation of this file.
34 #ifndef _UAPI__LINUX_IPMI_H
35 #define _UAPI__LINUX_IPMI_H
38 #include <linux/compiler.h>
77 #define IPMI_MAX_ADDR_SIZE 32
91 #define IPMI_SYSTEM_INTERFACE_ADDR_TYPE 0x0c
99 #define IPMI_IPMB_ADDR_TYPE 0x01
102 #define IPMI_IPMB_BROADCAST_ADDR_TYPE 0x41
127 #define IPMI_LAN_ADDR_TYPE 0x04
144 #define IPMI_BMC_CHANNEL 0xf
145 #define IPMI_NUM_CHANNELS 0x10
152 #define IPMI_CHAN_ALL (~0)
178 #define IPMI_INVALID_CMD_COMPLETION_CODE 0xC1
179 #define IPMI_TIMEOUT_COMPLETION_CODE 0xC3
180 #define IPMI_UNKNOWN_ERR_COMPLETION_CODE 0xff
192 #define IPMI_RESPONSE_RECV_TYPE 1
193 #define IPMI_ASYNC_EVENT_RECV_TYPE 2
194 #define IPMI_CMD_RECV_TYPE 3
195 #define IPMI_RESPONSE_RESPONSE_TYPE 4
201 #define IPMI_OEM_RECV_TYPE 5
213 #define IPMI_MAINTENANCE_MODE_AUTO 0
214 #define IPMI_MAINTENANCE_MODE_OFF 1
215 #define IPMI_MAINTENANCE_MODE_ON 2
256 #define IPMI_IOC_MAGIC 'i'
280 #define IPMICTL_SEND_COMMAND _IOR(IPMI_IOC_MAGIC, 13, \
302 #define IPMICTL_SEND_COMMAND_SETTIME _IOR(IPMI_IOC_MAGIC, 21, \
303 struct ipmi_req_settime)
340 #define IPMICTL_RECEIVE_MSG _IOWR(IPMI_IOC_MAGIC, 12, \
348 #define IPMICTL_RECEIVE_MSG_TRUNC _IOWR(IPMI_IOC_MAGIC, 11, \
363 #define IPMICTL_REGISTER_FOR_CMD _IOR(IPMI_IOC_MAGIC, 14, \
370 #define IPMICTL_UNREGISTER_FOR_CMD _IOR(IPMI_IOC_MAGIC, 15, \
392 #define IPMICTL_REGISTER_FOR_CMD_CHANS _IOR(IPMI_IOC_MAGIC, 28, \
393 struct ipmi_cmdspec_chans)
399 #define IPMICTL_UNREGISTER_FOR_CMD_CHANS _IOR(IPMI_IOC_MAGIC, 29, \
400 struct ipmi_cmdspec_chans)
408 #define IPMICTL_SET_GETS_EVENTS_CMD _IOR(IPMI_IOC_MAGIC, 16, int)
422 #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD \
423 _IOR(IPMI_IOC_MAGIC, 24, struct ipmi_channel_lun_address_set)
424 #define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD \
425 _IOR(IPMI_IOC_MAGIC, 25, struct ipmi_channel_lun_address_set)
426 #define IPMICTL_SET_MY_CHANNEL_LUN_CMD \
427 _IOR(IPMI_IOC_MAGIC, 26, struct ipmi_channel_lun_address_set)
428 #define IPMICTL_GET_MY_CHANNEL_LUN_CMD \
429 _IOR(IPMI_IOC_MAGIC, 27, struct ipmi_channel_lun_address_set)
431 #define IPMICTL_SET_MY_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 17, unsigned int)
432 #define IPMICTL_GET_MY_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 18, unsigned int)
433 #define IPMICTL_SET_MY_LUN_CMD _IOR(IPMI_IOC_MAGIC, 19, unsigned int)
434 #define IPMICTL_GET_MY_LUN_CMD _IOR(IPMI_IOC_MAGIC, 20, unsigned int)
444 #define IPMICTL_SET_TIMING_PARMS_CMD _IOR(IPMI_IOC_MAGIC, 22, \
445 struct ipmi_timing_parms)
446 #define IPMICTL_GET_TIMING_PARMS_CMD _IOR(IPMI_IOC_MAGIC, 23, \
447 struct ipmi_timing_parms)
453 #define IPMICTL_GET_MAINTENANCE_MODE_CMD _IOR(IPMI_IOC_MAGIC, 30, int)
454 #define IPMICTL_SET_MAINTENANCE_MODE_CMD _IOW(IPMI_IOC_MAGIC, 31, int)