diff options
author | Dean Nelson <dcn@sgi.com> | 2008-05-12 17:02:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-13 11:02:23 -0400 |
commit | 64d032ba434ad41586460811148f01511e5612f9 (patch) | |
tree | 678de014b030aaa91ff42d409a120daa8de58de9 /drivers/misc/sgi-xp/xp.h | |
parent | 65c17b801e03e40acdca0cd34e8eb1b8a347b539 (diff) |
drivers/misc/sgi-xp: replace partid_t with a short
In preparation for supporting greater than 64 partitions replace partid_t by
short in drivers/misc/sgi-xp.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Acked-by: Robin Holt <holt@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-xp/xp.h')
-rw-r--r-- | drivers/misc/sgi-xp/xp.h | 34 |
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 | */ |
267 | typedef void (*xpc_channel_func) (enum xp_retval reason, partid_t partid, | 267 | typedef 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 | */ |
289 | typedef void (*xpc_notify_func) (enum xp_retval reason, partid_t partid, | 289 | typedef 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 { | |||
322 | struct xpc_interface { | 322 | struct 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 | ||
333 | extern struct xpc_interface xpc_interface; | 333 | extern struct xpc_interface xpc_interface; |
334 | 334 | ||
335 | extern void xpc_set_interface(void (*)(int), | 335 | extern 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 *)); |
343 | extern void xpc_clear_interface(void); | 343 | extern void xpc_clear_interface(void); |
344 | 344 | ||
345 | extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16, | 345 | extern 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, | |||
347 | extern void xpc_disconnect(int); | 347 | extern void xpc_disconnect(int); |
348 | 348 | ||
349 | static inline enum xp_retval | 349 | static inline enum xp_retval |
350 | xpc_allocate(partid_t partid, int ch_number, u32 flags, void **payload) | 350 | xpc_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 | ||
355 | static inline enum xp_retval | 355 | static inline enum xp_retval |
356 | xpc_send(partid_t partid, int ch_number, void *payload) | 356 | xpc_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 | ||
361 | static inline enum xp_retval | 361 | static inline enum xp_retval |
362 | xpc_send_notify(partid_t partid, int ch_number, void *payload, | 362 | xpc_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 | ||
368 | static inline void | 368 | static inline void |
369 | xpc_received(partid_t partid, int ch_number, void *payload) | 369 | xpc_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 | ||
374 | static inline enum xp_retval | 374 | static inline enum xp_retval |
375 | xpc_partid_to_nasids(partid_t partid, void *nasids) | 375 | xpc_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 | } |