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

Go to the source code of this file.

Data Structures

struct  ipmi_recv_msg
 
struct  ipmi_user_hndl
 
struct  ipmi_smi_watcher
 
union  ipmi_smi_info_union
 
struct  ipmi_smi_info
 

Typedefs

typedef struct ipmi_useripmi_user_t
 

Enumerations

enum  ipmi_addr_src {
  SI_INVALID = 0, SI_HOTMOD, SI_HARDCODED, SI_SPMI,
  SI_ACPI, SI_SMBIOS, SI_PCI, SI_DEVICETREE,
  SI_DEFAULT
}
 

Functions

void ipmi_free_recv_msg (struct ipmi_recv_msg *msg)
 
int ipmi_create_user (unsigned int if_num, struct ipmi_user_hndl *handler, void *handler_data, ipmi_user_t *user)
 
int ipmi_destroy_user (ipmi_user_t user)
 
void ipmi_get_version (ipmi_user_t user, unsigned char *major, unsigned char *minor)
 
int ipmi_set_my_address (ipmi_user_t user, unsigned int channel, unsigned char address)
 
int ipmi_get_my_address (ipmi_user_t user, unsigned int channel, unsigned char *address)
 
int ipmi_set_my_LUN (ipmi_user_t user, unsigned int channel, unsigned char LUN)
 
int ipmi_get_my_LUN (ipmi_user_t user, unsigned int channel, unsigned char *LUN)
 
int ipmi_request_settime (ipmi_user_t user, struct ipmi_addr *addr, long msgid, struct kernel_ipmi_msg *msg, void *user_msg_data, int priority, int max_retries, unsigned int retry_time_ms)
 
int ipmi_request_supply_msgs (ipmi_user_t user, struct ipmi_addr *addr, long msgid, struct kernel_ipmi_msg *msg, void *user_msg_data, void *supplied_smi, struct ipmi_recv_msg *supplied_recv, int priority)
 
void ipmi_poll_interface (ipmi_user_t user)
 
int ipmi_register_for_cmd (ipmi_user_t user, unsigned char netfn, unsigned char cmd, unsigned int chans)
 
int ipmi_unregister_for_cmd (ipmi_user_t user, unsigned char netfn, unsigned char cmd, unsigned int chans)
 
int ipmi_get_maintenance_mode (ipmi_user_t user)
 
int ipmi_set_maintenance_mode (ipmi_user_t user, int mode)
 
int ipmi_set_gets_events (ipmi_user_t user, int val)
 
int ipmi_smi_watcher_register (struct ipmi_smi_watcher *watcher)
 
int ipmi_smi_watcher_unregister (struct ipmi_smi_watcher *watcher)
 
unsigned int ipmi_addr_length (int addr_type)
 
int ipmi_validate_addr (struct ipmi_addr *addr, int len)
 
int ipmi_get_smi_info (int if_num, struct ipmi_smi_info *data)
 

Typedef Documentation

Definition at line 50 of file ipmi.h.

Enumeration Type Documentation

Enumerator:
SI_INVALID 
SI_HOTMOD 
SI_HARDCODED 
SI_SPMI 
SI_ACPI 
SI_SMBIOS 
SI_PCI 
SI_DEVICETREE 
SI_DEFAULT 

Definition at line 281 of file ipmi.h.

Function Documentation

unsigned int ipmi_addr_length ( int  addr_type)

Definition at line 690 of file ipmi_msghandler.c.

int ipmi_create_user ( unsigned int  if_num,
struct ipmi_user_hndl handler,
void handler_data,
ipmi_user_t user 
)

Definition at line 885 of file ipmi_msghandler.c.

int ipmi_destroy_user ( ipmi_user_t  user)

Definition at line 1014 of file ipmi_msghandler.c.

void ipmi_free_recv_msg ( struct ipmi_recv_msg msg)

Definition at line 4198 of file ipmi_msghandler.c.

int ipmi_get_maintenance_mode ( ipmi_user_t  user)

Definition at line 1128 of file ipmi_msghandler.c.

int ipmi_get_my_address ( ipmi_user_t  user,
unsigned int  channel,
unsigned char address 
)

Definition at line 1095 of file ipmi_msghandler.c.

int ipmi_get_my_LUN ( ipmi_user_t  user,
unsigned int  channel,
unsigned char LUN 
)

Definition at line 1117 of file ipmi_msghandler.c.

int ipmi_get_smi_info ( int  if_num,
struct ipmi_smi_info data 
)

Definition at line 981 of file ipmi_msghandler.c.

void ipmi_get_version ( ipmi_user_t  user,
unsigned char major,
unsigned char minor 
)

Definition at line 1075 of file ipmi_msghandler.c.

void ipmi_poll_interface ( ipmi_user_t  user)

Definition at line 2804 of file ipmi_msghandler.c.

int ipmi_register_for_cmd ( ipmi_user_t  user,
unsigned char  netfn,
unsigned char  cmd,
unsigned int  chans 
)

Definition at line 1267 of file ipmi_msghandler.c.

int ipmi_request_settime ( ipmi_user_t  user,
struct ipmi_addr addr,
long  msgid,
struct kernel_ipmi_msg msg,
void user_msg_data,
int  priority,
int  max_retries,
unsigned int  retry_time_ms 
)

Definition at line 1842 of file ipmi_msghandler.c.

int ipmi_request_supply_msgs ( ipmi_user_t  user,
struct ipmi_addr addr,
long  msgid,
struct kernel_ipmi_msg msg,
void user_msg_data,
void supplied_smi,
struct ipmi_recv_msg supplied_recv,
int  priority 
)

Definition at line 1874 of file ipmi_msghandler.c.

int ipmi_set_gets_events ( ipmi_user_t  user,
int  val 
)

Definition at line 1187 of file ipmi_msghandler.c.

int ipmi_set_maintenance_mode ( ipmi_user_t  user,
int  mode 
)

Definition at line 1148 of file ipmi_msghandler.c.

int ipmi_set_my_address ( ipmi_user_t  user,
unsigned int  channel,
unsigned char  address 
)

Definition at line 1084 of file ipmi_msghandler.c.

int ipmi_set_my_LUN ( ipmi_user_t  user,
unsigned int  channel,
unsigned char  LUN 
)

Definition at line 1106 of file ipmi_msghandler.c.

int ipmi_smi_watcher_register ( struct ipmi_smi_watcher watcher)

Definition at line 539 of file ipmi_msghandler.c.

int ipmi_smi_watcher_unregister ( struct ipmi_smi_watcher watcher)

Definition at line 590 of file ipmi_msghandler.c.

int ipmi_unregister_for_cmd ( ipmi_user_t  user,
unsigned char  netfn,
unsigned char  cmd,
unsigned int  chans 
)

Definition at line 1303 of file ipmi_msghandler.c.

int ipmi_validate_addr ( struct ipmi_addr addr,
int  len 
)

Definition at line 658 of file ipmi_msghandler.c.