aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-xp/xp.h')
-rw-r--r--drivers/misc/sgi-xp/xp.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
index a258fa6705c7..03a87a307e32 100644
--- a/drivers/misc/sgi-xp/xp.h
+++ b/drivers/misc/sgi-xp/xp.h
@@ -264,7 +264,7 @@ enum xp_retval {
264 * When a failure reason code is received, one can assume that the channel 264 * When a failure reason code is received, one can assume that the channel
265 * is not connected. 265 * is not connected.
266 */ 266 */
267typedef void (*xpc_channel_func) (enum xp_retval reason, partid_t partid, 267typedef void (*xpc_channel_func) (enum xp_retval reason, short partid,
268 int ch_number, void *data, void *key); 268 int ch_number, void *data, void *key);
269 269
270/* 270/*
@@ -286,7 +286,7 @@ typedef void (*xpc_channel_func) (enum xp_retval reason, partid_t partid,
286 * 286 *
287 * All other reason codes indicate failure. 287 * All other reason codes indicate failure.
288 */ 288 */
289typedef void (*xpc_notify_func) (enum xp_retval reason, partid_t partid, 289typedef void (*xpc_notify_func) (enum xp_retval reason, short partid,
290 int ch_number, void *key); 290 int ch_number, void *key);
291 291
292/* 292/*
@@ -322,24 +322,24 @@ struct xpc_registration {
322struct xpc_interface { 322struct xpc_interface {
323 void (*connect) (int); 323 void (*connect) (int);
324 void (*disconnect) (int); 324 void (*disconnect) (int);
325 enum xp_retval (*allocate) (partid_t, int, u32, void **); 325 enum xp_retval (*allocate) (short, int, u32, void **);
326 enum xp_retval (*send) (partid_t, int, void *); 326 enum xp_retval (*send) (short, int, void *);
327 enum xp_retval (*send_notify) (partid_t, int, void *, 327 enum xp_retval (*send_notify) (short, int, void *,
328 xpc_notify_func, void *); 328 xpc_notify_func, void *);
329 void (*received) (partid_t, int, void *); 329 void (*received) (short, int, void *);
330 enum xp_retval (*partid_to_nasids) (partid_t, void *); 330 enum xp_retval (*partid_to_nasids) (short, void *);
331}; 331};
332 332
333extern struct xpc_interface xpc_interface; 333extern struct xpc_interface xpc_interface;
334 334
335extern void xpc_set_interface(void (*)(int), 335extern void xpc_set_interface(void (*)(int),
336 void (*)(int), 336 void (*)(int),
337 enum xp_retval (*)(partid_t, int, u32, void **), 337 enum xp_retval (*)(short, int, u32, void **),
338 enum xp_retval (*)(partid_t, int, void *), 338 enum xp_retval (*)(short, int, void *),
339 enum xp_retval (*)(partid_t, int, void *, 339 enum xp_retval (*)(short, int, void *,
340 xpc_notify_func, void *), 340 xpc_notify_func, void *),
341 void (*)(partid_t, int, void *), 341 void (*)(short, int, void *),
342 enum xp_retval (*)(partid_t, void *)); 342 enum xp_retval (*)(short, void *));
343extern void xpc_clear_interface(void); 343extern void xpc_clear_interface(void);
344 344
345extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16, 345extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16,
@@ -347,32 +347,32 @@ extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16,
347extern void xpc_disconnect(int); 347extern void xpc_disconnect(int);
348 348
349static inline enum xp_retval 349static inline enum xp_retval
350xpc_allocate(partid_t partid, int ch_number, u32 flags, void **payload) 350xpc_allocate(short partid, int ch_number, u32 flags, void **payload)
351{ 351{
352 return xpc_interface.allocate(partid, ch_number, flags, payload); 352 return xpc_interface.allocate(partid, ch_number, flags, payload);
353} 353}
354 354
355static inline enum xp_retval 355static inline enum xp_retval
356xpc_send(partid_t partid, int ch_number, void *payload) 356xpc_send(short partid, int ch_number, void *payload)
357{ 357{
358 return xpc_interface.send(partid, ch_number, payload); 358 return xpc_interface.send(partid, ch_number, payload);
359} 359}
360 360
361static inline enum xp_retval 361static inline enum xp_retval
362xpc_send_notify(partid_t partid, int ch_number, void *payload, 362xpc_send_notify(short partid, int ch_number, void *payload,
363 xpc_notify_func func, void *key) 363 xpc_notify_func func, void *key)
364{ 364{
365 return xpc_interface.send_notify(partid, ch_number, payload, func, key); 365 return xpc_interface.send_notify(partid, ch_number, payload, func, key);
366} 366}
367 367
368static inline void 368static inline void
369xpc_received(partid_t partid, int ch_number, void *payload) 369xpc_received(short partid, int ch_number, void *payload)
370{ 370{
371 return xpc_interface.received(partid, ch_number, payload); 371 return xpc_interface.received(partid, ch_number, payload);
372} 372}
373 373
374static inline enum xp_retval 374static inline enum xp_retval
375xpc_partid_to_nasids(partid_t partid, void *nasids) 375xpc_partid_to_nasids(short partid, void *nasids)
376{ 376{
377 return xpc_interface.partid_to_nasids(partid, nasids); 377 return xpc_interface.partid_to_nasids(partid, nasids);
378} 378}