Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ipmi.h File Reference
#include <linux/ipmi_msgdefs.h>
#include <linux/compiler.h>

Go to the source code of this file.

Data Structures

struct  ipmi_addr
 
struct  ipmi_system_interface_addr
 
struct  ipmi_ipmb_addr
 
struct  ipmi_lan_addr
 
struct  ipmi_msg
 
struct  kernel_ipmi_msg
 
struct  ipmi_req
 
struct  ipmi_req_settime
 
struct  ipmi_recv
 
struct  ipmi_cmdspec
 
struct  ipmi_cmdspec_chans
 
struct  ipmi_channel_lun_address_set
 
struct  ipmi_timing_parms
 

Macros

#define IPMI_MAX_ADDR_SIZE   32
 
#define IPMI_SYSTEM_INTERFACE_ADDR_TYPE   0x0c
 
#define IPMI_IPMB_ADDR_TYPE   0x01
 
#define IPMI_IPMB_BROADCAST_ADDR_TYPE   0x41
 
#define IPMI_LAN_ADDR_TYPE   0x04
 
#define IPMI_BMC_CHANNEL   0xf
 
#define IPMI_NUM_CHANNELS   0x10
 
#define IPMI_CHAN_ALL   (~0)
 
#define IPMI_INVALID_CMD_COMPLETION_CODE   0xC1
 
#define IPMI_TIMEOUT_COMPLETION_CODE   0xC3
 
#define IPMI_UNKNOWN_ERR_COMPLETION_CODE   0xff
 
#define IPMI_RESPONSE_RECV_TYPE   1 /* A response to a command */
 
#define IPMI_ASYNC_EVENT_RECV_TYPE   2 /* Something from the event queue */
 
#define IPMI_CMD_RECV_TYPE   3 /* A command from somewhere else */
 
#define IPMI_RESPONSE_RESPONSE_TYPE
 
#define IPMI_OEM_RECV_TYPE   5 /* The response for OEM Channels */
 
#define IPMI_MAINTENANCE_MODE_AUTO   0
 
#define IPMI_MAINTENANCE_MODE_OFF   1
 
#define IPMI_MAINTENANCE_MODE_ON   2
 
#define IPMI_IOC_MAGIC   'i'
 
#define IPMICTL_SEND_COMMAND
 
#define IPMICTL_SEND_COMMAND_SETTIME
 
#define IPMICTL_RECEIVE_MSG
 
#define IPMICTL_RECEIVE_MSG_TRUNC
 
#define IPMICTL_REGISTER_FOR_CMD
 
#define IPMICTL_UNREGISTER_FOR_CMD
 
#define IPMICTL_REGISTER_FOR_CMD_CHANS
 
#define IPMICTL_UNREGISTER_FOR_CMD_CHANS
 
#define IPMICTL_SET_GETS_EVENTS_CMD   _IOR(IPMI_IOC_MAGIC, 16, int)
 
#define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 24, struct ipmi_channel_lun_address_set)
 
#define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 25, struct ipmi_channel_lun_address_set)
 
#define IPMICTL_SET_MY_CHANNEL_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 26, struct ipmi_channel_lun_address_set)
 
#define IPMICTL_GET_MY_CHANNEL_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 27, struct ipmi_channel_lun_address_set)
 
#define IPMICTL_SET_MY_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 17, unsigned int)
 
#define IPMICTL_GET_MY_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 18, unsigned int)
 
#define IPMICTL_SET_MY_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 19, unsigned int)
 
#define IPMICTL_GET_MY_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 20, unsigned int)
 
#define IPMICTL_SET_TIMING_PARMS_CMD
 
#define IPMICTL_GET_TIMING_PARMS_CMD
 
#define IPMICTL_GET_MAINTENANCE_MODE_CMD   _IOR(IPMI_IOC_MAGIC, 30, int)
 
#define IPMICTL_SET_MAINTENANCE_MODE_CMD   _IOW(IPMI_IOC_MAGIC, 31, int)
 

Macro Definition Documentation

#define IPMI_ASYNC_EVENT_RECV_TYPE   2 /* Something from the event queue */

Definition at line 193 of file ipmi.h.

#define IPMI_BMC_CHANNEL   0xf

Definition at line 144 of file ipmi.h.

#define IPMI_CHAN_ALL   (~0)

Definition at line 152 of file ipmi.h.

#define IPMI_CMD_RECV_TYPE   3 /* A command from somewhere else */

Definition at line 194 of file ipmi.h.

#define IPMI_INVALID_CMD_COMPLETION_CODE   0xC1

Definition at line 178 of file ipmi.h.

#define IPMI_IOC_MAGIC   'i'

Definition at line 251 of file ipmi.h.

#define IPMI_IPMB_ADDR_TYPE   0x01

Definition at line 99 of file ipmi.h.

#define IPMI_IPMB_BROADCAST_ADDR_TYPE   0x41

Definition at line 102 of file ipmi.h.

#define IPMI_LAN_ADDR_TYPE   0x04

Definition at line 127 of file ipmi.h.

#define IPMI_MAINTENANCE_MODE_AUTO   0

Definition at line 208 of file ipmi.h.

#define IPMI_MAINTENANCE_MODE_OFF   1

Definition at line 209 of file ipmi.h.

#define IPMI_MAINTENANCE_MODE_ON   2

Definition at line 210 of file ipmi.h.

#define IPMI_MAX_ADDR_SIZE   32

Definition at line 77 of file ipmi.h.

#define IPMI_NUM_CHANNELS   0x10

Definition at line 145 of file ipmi.h.

#define IPMI_OEM_RECV_TYPE   5 /* The response for OEM Channels */

Definition at line 196 of file ipmi.h.

#define IPMI_RESPONSE_RECV_TYPE   1 /* A response to a command */

Definition at line 192 of file ipmi.h.

#define IPMI_RESPONSE_RESPONSE_TYPE
Value:
4 /* The response for
a sent response, giving any
error status for sending the
response. When you send a
response message, this will
be returned. */

Definition at line 195 of file ipmi.h.

#define IPMI_SYSTEM_INTERFACE_ADDR_TYPE   0x0c

Definition at line 91 of file ipmi.h.

#define IPMI_TIMEOUT_COMPLETION_CODE   0xC3

Definition at line 179 of file ipmi.h.

#define IPMI_UNKNOWN_ERR_COMPLETION_CODE   0xff

Definition at line 180 of file ipmi.h.

#define IPMICTL_GET_MAINTENANCE_MODE_CMD   _IOR(IPMI_IOC_MAGIC, 30, int)

Definition at line 448 of file ipmi.h.

#define IPMICTL_GET_MY_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 18, unsigned int)

Definition at line 427 of file ipmi.h.

#define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 25, struct ipmi_channel_lun_address_set)

Definition at line 419 of file ipmi.h.

#define IPMICTL_GET_MY_CHANNEL_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 27, struct ipmi_channel_lun_address_set)

Definition at line 423 of file ipmi.h.

#define IPMICTL_GET_MY_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 20, unsigned int)

Definition at line 429 of file ipmi.h.

#define IPMICTL_GET_TIMING_PARMS_CMD
Value:

Definition at line 441 of file ipmi.h.

#define IPMICTL_RECEIVE_MSG
Value:

Definition at line 335 of file ipmi.h.

#define IPMICTL_RECEIVE_MSG_TRUNC
Value:

Definition at line 343 of file ipmi.h.

#define IPMICTL_REGISTER_FOR_CMD
Value:

Definition at line 358 of file ipmi.h.

#define IPMICTL_REGISTER_FOR_CMD_CHANS
Value:

Definition at line 387 of file ipmi.h.

#define IPMICTL_SEND_COMMAND
Value:
struct ipmi_req)

Definition at line 275 of file ipmi.h.

#define IPMICTL_SEND_COMMAND_SETTIME
Value:

Definition at line 297 of file ipmi.h.

#define IPMICTL_SET_GETS_EVENTS_CMD   _IOR(IPMI_IOC_MAGIC, 16, int)

Definition at line 403 of file ipmi.h.

#define IPMICTL_SET_MAINTENANCE_MODE_CMD   _IOW(IPMI_IOC_MAGIC, 31, int)

Definition at line 449 of file ipmi.h.

#define IPMICTL_SET_MY_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 17, unsigned int)

Definition at line 426 of file ipmi.h.

#define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD   _IOR(IPMI_IOC_MAGIC, 24, struct ipmi_channel_lun_address_set)

Definition at line 417 of file ipmi.h.

#define IPMICTL_SET_MY_CHANNEL_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 26, struct ipmi_channel_lun_address_set)

Definition at line 421 of file ipmi.h.

#define IPMICTL_SET_MY_LUN_CMD   _IOR(IPMI_IOC_MAGIC, 19, unsigned int)

Definition at line 428 of file ipmi.h.

#define IPMICTL_SET_TIMING_PARMS_CMD
Value:

Definition at line 439 of file ipmi.h.

#define IPMICTL_UNREGISTER_FOR_CMD
Value:

Definition at line 365 of file ipmi.h.

#define IPMICTL_UNREGISTER_FOR_CMD_CHANS
Value:

Definition at line 394 of file ipmi.h.