Commit 5ce1a7dc authored by Corey Minyard's avatar Corey Minyard

ipmi: Get rid of ipmi_user_t and ipmi_smi_t in include files

Convert over to struct ipmi_user * and struct ipmi_smi *.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 6a0d23ed
...@@ -45,7 +45,7 @@ struct ipmi_recv_msg { ...@@ -45,7 +45,7 @@ struct ipmi_recv_msg {
*/ */
int recv_type; int recv_type;
ipmi_user_t user; struct ipmi_user *user;
struct ipmi_addr addr; struct ipmi_addr addr;
long msgid; long msgid;
struct kernel_ipmi_msg msg; struct kernel_ipmi_msg msg;
...@@ -111,7 +111,7 @@ struct ipmi_user_hndl { ...@@ -111,7 +111,7 @@ struct ipmi_user_hndl {
int ipmi_create_user(unsigned int if_num, int ipmi_create_user(unsigned int if_num,
const struct ipmi_user_hndl *handler, const struct ipmi_user_hndl *handler,
void *handler_data, void *handler_data,
ipmi_user_t *user); struct ipmi_user **user);
/* /*
* Destroy the given user of the IPMI layer. Note that after this * Destroy the given user of the IPMI layer. Note that after this
...@@ -121,10 +121,10 @@ int ipmi_create_user(unsigned int if_num, ...@@ -121,10 +121,10 @@ int ipmi_create_user(unsigned int if_num,
* the users before you destroy the callback structures, it should be * the users before you destroy the callback structures, it should be
* safe, too. * safe, too.
*/ */
int ipmi_destroy_user(ipmi_user_t user); int ipmi_destroy_user(struct ipmi_user *user);
/* Get the IPMI version of the BMC we are talking to. */ /* Get the IPMI version of the BMC we are talking to. */
int ipmi_get_version(ipmi_user_t user, int ipmi_get_version(struct ipmi_user *user,
unsigned char *major, unsigned char *major,
unsigned char *minor); unsigned char *minor);
...@@ -137,16 +137,16 @@ int ipmi_get_version(ipmi_user_t user, ...@@ -137,16 +137,16 @@ int ipmi_get_version(ipmi_user_t user,
* it for everyone else. Note that each channel can have its own * it for everyone else. Note that each channel can have its own
* address. * address.
*/ */
int ipmi_set_my_address(ipmi_user_t user, int ipmi_set_my_address(struct ipmi_user *user,
unsigned int channel, unsigned int channel,
unsigned char address); unsigned char address);
int ipmi_get_my_address(ipmi_user_t user, int ipmi_get_my_address(struct ipmi_user *user,
unsigned int channel, unsigned int channel,
unsigned char *address); unsigned char *address);
int ipmi_set_my_LUN(ipmi_user_t user, int ipmi_set_my_LUN(struct ipmi_user *user,
unsigned int channel, unsigned int channel,
unsigned char LUN); unsigned char LUN);
int ipmi_get_my_LUN(ipmi_user_t user, int ipmi_get_my_LUN(struct ipmi_user *user,
unsigned int channel, unsigned int channel,
unsigned char *LUN); unsigned char *LUN);
...@@ -163,7 +163,7 @@ int ipmi_get_my_LUN(ipmi_user_t user, ...@@ -163,7 +163,7 @@ int ipmi_get_my_LUN(ipmi_user_t user,
* it makes no sense to do it here. However, this can be used if you * it makes no sense to do it here. However, this can be used if you
* have unusual requirements. * have unusual requirements.
*/ */
int ipmi_request_settime(ipmi_user_t user, int ipmi_request_settime(struct ipmi_user *user,
struct ipmi_addr *addr, struct ipmi_addr *addr,
long msgid, long msgid,
struct kernel_ipmi_msg *msg, struct kernel_ipmi_msg *msg,
...@@ -181,7 +181,7 @@ int ipmi_request_settime(ipmi_user_t user, ...@@ -181,7 +181,7 @@ int ipmi_request_settime(ipmi_user_t user,
* change as the system changes, so don't use it unless you REALLY * change as the system changes, so don't use it unless you REALLY
* have to. * have to.
*/ */
int ipmi_request_supply_msgs(ipmi_user_t user, int ipmi_request_supply_msgs(struct ipmi_user *user,
struct ipmi_addr *addr, struct ipmi_addr *addr,
long msgid, long msgid,
struct kernel_ipmi_msg *msg, struct kernel_ipmi_msg *msg,
...@@ -197,7 +197,7 @@ int ipmi_request_supply_msgs(ipmi_user_t user, ...@@ -197,7 +197,7 @@ int ipmi_request_supply_msgs(ipmi_user_t user,
* way. This is useful if you need to spin waiting for something to * way. This is useful if you need to spin waiting for something to
* happen in the IPMI driver. * happen in the IPMI driver.
*/ */
void ipmi_poll_interface(ipmi_user_t user); void ipmi_poll_interface(struct ipmi_user *user);
/* /*
* When commands come in to the SMS, the user can register to receive * When commands come in to the SMS, the user can register to receive
...@@ -208,11 +208,11 @@ void ipmi_poll_interface(ipmi_user_t user); ...@@ -208,11 +208,11 @@ void ipmi_poll_interface(ipmi_user_t user);
* error. Channels are specified as a bitfield, use IPMI_CHAN_ALL to * error. Channels are specified as a bitfield, use IPMI_CHAN_ALL to
* mean all channels. * mean all channels.
*/ */
int ipmi_register_for_cmd(ipmi_user_t user, int ipmi_register_for_cmd(struct ipmi_user *user,
unsigned char netfn, unsigned char netfn,
unsigned char cmd, unsigned char cmd,
unsigned int chans); unsigned int chans);
int ipmi_unregister_for_cmd(ipmi_user_t user, int ipmi_unregister_for_cmd(struct ipmi_user *user,
unsigned char netfn, unsigned char netfn,
unsigned char cmd, unsigned char cmd,
unsigned int chans); unsigned int chans);
...@@ -243,8 +243,8 @@ int ipmi_unregister_for_cmd(ipmi_user_t user, ...@@ -243,8 +243,8 @@ int ipmi_unregister_for_cmd(ipmi_user_t user,
* *
* See the IPMI_MAINTENANCE_MODE_xxx defines for what the mode means. * See the IPMI_MAINTENANCE_MODE_xxx defines for what the mode means.
*/ */
int ipmi_get_maintenance_mode(ipmi_user_t user); int ipmi_get_maintenance_mode(struct ipmi_user *user);
int ipmi_set_maintenance_mode(ipmi_user_t user, int mode); int ipmi_set_maintenance_mode(struct ipmi_user *user, int mode);
/* /*
* When the user is created, it will not receive IPMI events by * When the user is created, it will not receive IPMI events by
...@@ -252,7 +252,7 @@ int ipmi_set_maintenance_mode(ipmi_user_t user, int mode); ...@@ -252,7 +252,7 @@ int ipmi_set_maintenance_mode(ipmi_user_t user, int mode);
* The first user that sets this to TRUE will receive all events that * The first user that sets this to TRUE will receive all events that
* have been queued while no one was waiting for events. * have been queued while no one was waiting for events.
*/ */
int ipmi_set_gets_events(ipmi_user_t user, bool val); int ipmi_set_gets_events(struct ipmi_user *user, bool val);
/* /*
* Called when a new SMI is registered. This will also be called on * Called when a new SMI is registered. This will also be called on
...@@ -330,7 +330,7 @@ struct ipmi_smi_info { ...@@ -330,7 +330,7 @@ struct ipmi_smi_info {
union ipmi_smi_info_union addr_info; union ipmi_smi_info_union addr_info;
}; };
/* This is to get the private info of ipmi_smi_t */ /* This is to get the private info of struct ipmi_smi */
extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data); extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data);
#endif /* __LINUX_IPMI_H */ #endif /* __LINUX_IPMI_H */
...@@ -69,8 +69,8 @@ struct ipmi_smi_handlers { ...@@ -69,8 +69,8 @@ struct ipmi_smi_handlers {
* not be NULL, the lower layer must take the interface from * not be NULL, the lower layer must take the interface from
* this call. * this call.
*/ */
int (*start_processing)(void *send_info, int (*start_processing)(void *send_info,
ipmi_smi_t new_intf); struct ipmi_smi *new_intf);
/* /*
* When called, the low-level interface should disable all * When called, the low-level interface should disable all
...@@ -220,7 +220,7 @@ int ipmi_register_smi(const struct ipmi_smi_handlers *handlers, ...@@ -220,7 +220,7 @@ int ipmi_register_smi(const struct ipmi_smi_handlers *handlers,
* Remove a low-level interface from the IPMI driver. This will * Remove a low-level interface from the IPMI driver. This will
* return an error if the interface is still in use by a user. * return an error if the interface is still in use by a user.
*/ */
void ipmi_unregister_smi(ipmi_smi_t intf); void ipmi_unregister_smi(struct ipmi_smi *intf);
/* /*
* The lower layer reports received messages through this interface. * The lower layer reports received messages through this interface.
...@@ -228,11 +228,11 @@ void ipmi_unregister_smi(ipmi_smi_t intf); ...@@ -228,11 +228,11 @@ void ipmi_unregister_smi(ipmi_smi_t intf);
* the lower layer gets an error sending a message, it should format * the lower layer gets an error sending a message, it should format
* an error response in the message response. * an error response in the message response.
*/ */
void ipmi_smi_msg_received(ipmi_smi_t intf, void ipmi_smi_msg_received(struct ipmi_smi *intf,
struct ipmi_smi_msg *msg); struct ipmi_smi_msg *msg);
/* The lower layer received a watchdog pre-timeout on interface. */ /* The lower layer received a watchdog pre-timeout on interface. */
void ipmi_smi_watchdog_pretimeout(ipmi_smi_t intf); void ipmi_smi_watchdog_pretimeout(struct ipmi_smi *intf);
struct ipmi_smi_msg *ipmi_alloc_smi_msg(void); struct ipmi_smi_msg *ipmi_alloc_smi_msg(void);
static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg) static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg)
...@@ -246,7 +246,7 @@ static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg) ...@@ -246,7 +246,7 @@ static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg)
* directory for this interface. Note that the entry will * directory for this interface. Note that the entry will
* automatically be dstroyed when the interface is destroyed. * automatically be dstroyed when the interface is destroyed.
*/ */
int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, int ipmi_smi_add_proc_entry(struct ipmi_smi *smi, char *name,
const struct file_operations *proc_ops, const struct file_operations *proc_ops,
void *data); void *data);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment