aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-04-11 14:11:54 -0400
committerCorey Minyard <cminyard@mvista.com>2018-04-18 11:23:06 -0400
commit5ce1a7dc806efb2181e93d4a088b281c4cff4eaa (patch)
tree5f27c9da75b82198a36a891827de21382fc7544d /include/linux
parent6a0d23ed338ed7015128378e0ceec03eaa3d91e2 (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')
-rw-r--r--include/linux/ipmi.h34
-rw-r--r--include/linux/ipmi_smi.h12
2 files changed, 23 insertions, 23 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 {
111int ipmi_create_user(unsigned int if_num, 111int 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 */
124int ipmi_destroy_user(ipmi_user_t user); 124int 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. */
127int ipmi_get_version(ipmi_user_t user, 127int 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 */
140int ipmi_set_my_address(ipmi_user_t user, 140int ipmi_set_my_address(struct ipmi_user *user,
141 unsigned int channel, 141 unsigned int channel,
142 unsigned char address); 142 unsigned char address);
143int ipmi_get_my_address(ipmi_user_t user, 143int ipmi_get_my_address(struct ipmi_user *user,
144 unsigned int channel, 144 unsigned int channel,
145 unsigned char *address); 145 unsigned char *address);
146int ipmi_set_my_LUN(ipmi_user_t user, 146int ipmi_set_my_LUN(struct ipmi_user *user,
147 unsigned int channel, 147 unsigned int channel,
148 unsigned char LUN); 148 unsigned char LUN);
149int ipmi_get_my_LUN(ipmi_user_t user, 149int 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 */
166int ipmi_request_settime(ipmi_user_t user, 166int 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 */
184int ipmi_request_supply_msgs(ipmi_user_t user, 184int 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 */
200void ipmi_poll_interface(ipmi_user_t user); 200void 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 */
211int ipmi_register_for_cmd(ipmi_user_t user, 211int 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);
215int ipmi_unregister_for_cmd(ipmi_user_t user, 215int 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 */
246int ipmi_get_maintenance_mode(ipmi_user_t user); 246int ipmi_get_maintenance_mode(struct ipmi_user *user);
247int ipmi_set_maintenance_mode(ipmi_user_t user, int mode); 247int 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 */
255int ipmi_set_gets_events(ipmi_user_t user, bool val); 255int 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 */
334extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data); 334extern 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 */
diff --git a/include/linux/ipmi_smi.h b/include/linux/ipmi_smi.h
index 26ba57c307f0..0d438662a821 100644
--- a/include/linux/ipmi_smi.h
+++ b/include/linux/ipmi_smi.h
@@ -69,8 +69,8 @@ struct ipmi_smi_handlers {
69 * not be NULL, the lower layer must take the interface from 69 * not be NULL, the lower layer must take the interface from
70 * this call. 70 * this call.
71 */ 71 */
72 int (*start_processing)(void *send_info, 72 int (*start_processing)(void *send_info,
73 ipmi_smi_t new_intf); 73 struct ipmi_smi *new_intf);
74 74
75 /* 75 /*
76 * When called, the low-level interface should disable all 76 * When called, the low-level interface should disable all
@@ -220,7 +220,7 @@ int ipmi_register_smi(const struct ipmi_smi_handlers *handlers,
220 * Remove a low-level interface from the IPMI driver. This will 220 * Remove a low-level interface from the IPMI driver. This will
221 * return an error if the interface is still in use by a user. 221 * return an error if the interface is still in use by a user.
222 */ 222 */
223void ipmi_unregister_smi(ipmi_smi_t intf); 223void ipmi_unregister_smi(struct ipmi_smi *intf);
224 224
225/* 225/*
226 * The lower layer reports received messages through this interface. 226 * The lower layer reports received messages through this interface.
@@ -228,11 +228,11 @@ void ipmi_unregister_smi(ipmi_smi_t intf);
228 * the lower layer gets an error sending a message, it should format 228 * the lower layer gets an error sending a message, it should format
229 * an error response in the message response. 229 * an error response in the message response.
230 */ 230 */
231void ipmi_smi_msg_received(ipmi_smi_t intf, 231void ipmi_smi_msg_received(struct ipmi_smi *intf,
232 struct ipmi_smi_msg *msg); 232 struct ipmi_smi_msg *msg);
233 233
234/* The lower layer received a watchdog pre-timeout on interface. */ 234/* The lower layer received a watchdog pre-timeout on interface. */
235void ipmi_smi_watchdog_pretimeout(ipmi_smi_t intf); 235void ipmi_smi_watchdog_pretimeout(struct ipmi_smi *intf);
236 236
237struct ipmi_smi_msg *ipmi_alloc_smi_msg(void); 237struct ipmi_smi_msg *ipmi_alloc_smi_msg(void);
238static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg) 238static 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 * directory for this interface. Note that the entry will 246 * directory for this interface. Note that the entry will
247 * automatically be dstroyed when the interface is destroyed. 247 * automatically be dstroyed when the interface is destroyed.
248 */ 248 */
249int ipmi_smi_add_proc_entry(ipmi_smi_t smi, char *name, 249int ipmi_smi_add_proc_entry(struct ipmi_smi *smi, char *name,
250 const struct file_operations *proc_ops, 250 const struct file_operations *proc_ops,
251 void *data); 251 void *data);
252#endif 252#endif