diff options
| author | Corey Minyard <cminyard@mvista.com> | 2018-04-11 14:11:54 -0400 |
|---|---|---|
| committer | Corey Minyard <cminyard@mvista.com> | 2018-04-18 11:23:06 -0400 |
| commit | 5ce1a7dc806efb2181e93d4a088b281c4cff4eaa (patch) | |
| tree | 5f27c9da75b82198a36a891827de21382fc7544d /include/linux/ipmi.h | |
| parent | 6a0d23ed338ed7015128378e0ceec03eaa3d91e2 (diff) | |
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: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/linux/ipmi.h')
| -rw-r--r-- | include/linux/ipmi.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index d89bea1e457a..41f5c086f670 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h | |||
| @@ -45,7 +45,7 @@ struct ipmi_recv_msg { | |||
| 45 | */ | 45 | */ |
| 46 | int recv_type; | 46 | int recv_type; |
| 47 | 47 | ||
| 48 | ipmi_user_t user; | 48 | struct ipmi_user *user; |
| 49 | struct ipmi_addr addr; | 49 | struct ipmi_addr addr; |
| 50 | long msgid; | 50 | long msgid; |
| 51 | struct kernel_ipmi_msg msg; | 51 | struct kernel_ipmi_msg msg; |
| @@ -111,7 +111,7 @@ struct ipmi_user_hndl { | |||
| 111 | int ipmi_create_user(unsigned int if_num, | 111 | int ipmi_create_user(unsigned int if_num, |
| 112 | const struct ipmi_user_hndl *handler, | 112 | const struct ipmi_user_hndl *handler, |
| 113 | void *handler_data, | 113 | void *handler_data, |
| 114 | ipmi_user_t *user); | 114 | struct ipmi_user **user); |
| 115 | 115 | ||
| 116 | /* | 116 | /* |
| 117 | * Destroy the given user of the IPMI layer. Note that after this | 117 | * 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 | * the users before you destroy the callback structures, it should be | 121 | * the users before you destroy the callback structures, it should be |
| 122 | * safe, too. | 122 | * safe, too. |
| 123 | */ | 123 | */ |
| 124 | int ipmi_destroy_user(ipmi_user_t user); | 124 | int ipmi_destroy_user(struct ipmi_user *user); |
| 125 | 125 | ||
| 126 | /* Get the IPMI version of the BMC we are talking to. */ | 126 | /* Get the IPMI version of the BMC we are talking to. */ |
| 127 | int ipmi_get_version(ipmi_user_t user, | 127 | int ipmi_get_version(struct ipmi_user *user, |
| 128 | unsigned char *major, | 128 | unsigned char *major, |
| 129 | unsigned char *minor); | 129 | unsigned char *minor); |
| 130 | 130 | ||
| @@ -137,16 +137,16 @@ int ipmi_get_version(ipmi_user_t user, | |||
| 137 | * it for everyone else. Note that each channel can have its own | 137 | * it for everyone else. Note that each channel can have its own |
| 138 | * address. | 138 | * address. |
| 139 | */ | 139 | */ |
| 140 | int ipmi_set_my_address(ipmi_user_t user, | 140 | int ipmi_set_my_address(struct ipmi_user *user, |
| 141 | unsigned int channel, | 141 | unsigned int channel, |
| 142 | unsigned char address); | 142 | unsigned char address); |
| 143 | int ipmi_get_my_address(ipmi_user_t user, | 143 | int ipmi_get_my_address(struct ipmi_user *user, |
| 144 | unsigned int channel, | 144 | unsigned int channel, |
| 145 | unsigned char *address); | 145 | unsigned char *address); |
| 146 | int ipmi_set_my_LUN(ipmi_user_t user, | 146 | int ipmi_set_my_LUN(struct ipmi_user *user, |
| 147 | unsigned int channel, | 147 | unsigned int channel, |
| 148 | unsigned char LUN); | 148 | unsigned char LUN); |
| 149 | int ipmi_get_my_LUN(ipmi_user_t user, | 149 | int ipmi_get_my_LUN(struct ipmi_user *user, |
| 150 | unsigned int channel, | 150 | unsigned int channel, |
| 151 | unsigned char *LUN); | 151 | unsigned char *LUN); |
| 152 | 152 | ||
| @@ -163,7 +163,7 @@ int ipmi_get_my_LUN(ipmi_user_t user, | |||
| 163 | * it makes no sense to do it here. However, this can be used if you | 163 | * it makes no sense to do it here. However, this can be used if you |
| 164 | * have unusual requirements. | 164 | * have unusual requirements. |
| 165 | */ | 165 | */ |
| 166 | int ipmi_request_settime(ipmi_user_t user, | 166 | int ipmi_request_settime(struct ipmi_user *user, |
| 167 | struct ipmi_addr *addr, | 167 | struct ipmi_addr *addr, |
| 168 | long msgid, | 168 | long msgid, |
| 169 | struct kernel_ipmi_msg *msg, | 169 | struct kernel_ipmi_msg *msg, |
| @@ -181,7 +181,7 @@ int ipmi_request_settime(ipmi_user_t user, | |||
| 181 | * change as the system changes, so don't use it unless you REALLY | 181 | * change as the system changes, so don't use it unless you REALLY |
| 182 | * have to. | 182 | * have to. |
| 183 | */ | 183 | */ |
| 184 | int ipmi_request_supply_msgs(ipmi_user_t user, | 184 | int ipmi_request_supply_msgs(struct ipmi_user *user, |
| 185 | struct ipmi_addr *addr, | 185 | struct ipmi_addr *addr, |
| 186 | long msgid, | 186 | long msgid, |
| 187 | struct kernel_ipmi_msg *msg, | 187 | struct kernel_ipmi_msg *msg, |
| @@ -197,7 +197,7 @@ int ipmi_request_supply_msgs(ipmi_user_t user, | |||
| 197 | * way. This is useful if you need to spin waiting for something to | 197 | * way. This is useful if you need to spin waiting for something to |
| 198 | * happen in the IPMI driver. | 198 | * happen in the IPMI driver. |
| 199 | */ | 199 | */ |
| 200 | void ipmi_poll_interface(ipmi_user_t user); | 200 | void ipmi_poll_interface(struct ipmi_user *user); |
| 201 | 201 | ||
| 202 | /* | 202 | /* |
| 203 | * When commands come in to the SMS, the user can register to receive | 203 | * 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 | * error. Channels are specified as a bitfield, use IPMI_CHAN_ALL to | 208 | * error. Channels are specified as a bitfield, use IPMI_CHAN_ALL to |
| 209 | * mean all channels. | 209 | * mean all channels. |
| 210 | */ | 210 | */ |
| 211 | int ipmi_register_for_cmd(ipmi_user_t user, | 211 | int ipmi_register_for_cmd(struct ipmi_user *user, |
| 212 | unsigned char netfn, | 212 | unsigned char netfn, |
| 213 | unsigned char cmd, | 213 | unsigned char cmd, |
| 214 | unsigned int chans); | 214 | unsigned int chans); |
| 215 | int ipmi_unregister_for_cmd(ipmi_user_t user, | 215 | int ipmi_unregister_for_cmd(struct ipmi_user *user, |
| 216 | unsigned char netfn, | 216 | unsigned char netfn, |
| 217 | unsigned char cmd, | 217 | unsigned char cmd, |
| 218 | unsigned int chans); | 218 | unsigned int chans); |
| @@ -243,8 +243,8 @@ int ipmi_unregister_for_cmd(ipmi_user_t user, | |||
| 243 | * | 243 | * |
| 244 | * See the IPMI_MAINTENANCE_MODE_xxx defines for what the mode means. | 244 | * See the IPMI_MAINTENANCE_MODE_xxx defines for what the mode means. |
| 245 | */ | 245 | */ |
| 246 | int ipmi_get_maintenance_mode(ipmi_user_t user); | 246 | int ipmi_get_maintenance_mode(struct ipmi_user *user); |
| 247 | int ipmi_set_maintenance_mode(ipmi_user_t user, int mode); | 247 | int ipmi_set_maintenance_mode(struct ipmi_user *user, int mode); |
| 248 | 248 | ||
| 249 | /* | 249 | /* |
| 250 | * When the user is created, it will not receive IPMI events by | 250 | * 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 | * The first user that sets this to TRUE will receive all events that | 252 | * The first user that sets this to TRUE will receive all events that |
| 253 | * have been queued while no one was waiting for events. | 253 | * have been queued while no one was waiting for events. |
| 254 | */ | 254 | */ |
| 255 | int ipmi_set_gets_events(ipmi_user_t user, bool val); | 255 | int ipmi_set_gets_events(struct ipmi_user *user, bool val); |
| 256 | 256 | ||
| 257 | /* | 257 | /* |
| 258 | * Called when a new SMI is registered. This will also be called on | 258 | * Called when a new SMI is registered. This will also be called on |
| @@ -330,7 +330,7 @@ struct ipmi_smi_info { | |||
| 330 | union ipmi_smi_info_union addr_info; | 330 | union ipmi_smi_info_union addr_info; |
| 331 | }; | 331 | }; |
| 332 | 332 | ||
| 333 | /* This is to get the private info of ipmi_smi_t */ | 333 | /* This is to get the private info of struct ipmi_smi */ |
| 334 | extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data); | 334 | extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data); |
| 335 | 335 | ||
| 336 | #endif /* __LINUX_IPMI_H */ | 336 | #endif /* __LINUX_IPMI_H */ |
