diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rio.h | 10 | ||||
-rw-r--r-- | include/linux/rio_drv.h | 12 |
2 files changed, 12 insertions, 10 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h index 5c29f2f477c2..c7e907faae9c 100644 --- a/include/linux/rio.h +++ b/include/linux/rio.h | |||
@@ -132,7 +132,7 @@ struct rio_dev { | |||
132 | */ | 132 | */ |
133 | struct rio_msg { | 133 | struct rio_msg { |
134 | struct resource *res; | 134 | struct resource *res; |
135 | void (*mcback) (struct rio_mport * mport, int mbox, int slot); | 135 | void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot); |
136 | }; | 136 | }; |
137 | 137 | ||
138 | /** | 138 | /** |
@@ -140,11 +140,13 @@ struct rio_msg { | |||
140 | * @node: Node in list of doorbell events | 140 | * @node: Node in list of doorbell events |
141 | * @res: Doorbell resource | 141 | * @res: Doorbell resource |
142 | * @dinb: Doorbell event callback | 142 | * @dinb: Doorbell event callback |
143 | * @dev_id: Device specific pointer to pass on event | ||
143 | */ | 144 | */ |
144 | struct rio_dbell { | 145 | struct rio_dbell { |
145 | struct list_head node; | 146 | struct list_head node; |
146 | struct resource *res; | 147 | struct resource *res; |
147 | void (*dinb) (struct rio_mport * mport, u16 src, u16 dst, u16 info); | 148 | void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info); |
149 | void *dev_id; | ||
148 | }; | 150 | }; |
149 | 151 | ||
150 | /** | 152 | /** |
@@ -314,9 +316,9 @@ extern int rio_hw_add_outb_message(struct rio_mport *, struct rio_dev *, int, | |||
314 | void *, size_t); | 316 | void *, size_t); |
315 | extern int rio_hw_add_inb_buffer(struct rio_mport *, int, void *); | 317 | extern int rio_hw_add_inb_buffer(struct rio_mport *, int, void *); |
316 | extern void *rio_hw_get_inb_message(struct rio_mport *, int); | 318 | extern void *rio_hw_get_inb_message(struct rio_mport *, int); |
317 | extern int rio_open_inb_mbox(struct rio_mport *, int, int); | 319 | extern int rio_open_inb_mbox(struct rio_mport *, void *, int, int); |
318 | extern void rio_close_inb_mbox(struct rio_mport *, int); | 320 | extern void rio_close_inb_mbox(struct rio_mport *, int); |
319 | extern int rio_open_outb_mbox(struct rio_mport *, int, int); | 321 | extern int rio_open_outb_mbox(struct rio_mport *, void *, int, int); |
320 | extern void rio_close_outb_mbox(struct rio_mport *, int); | 322 | extern void rio_close_outb_mbox(struct rio_mport *, int); |
321 | 323 | ||
322 | #endif /* __KERNEL__ */ | 324 | #endif /* __KERNEL__ */ |
diff --git a/include/linux/rio_drv.h b/include/linux/rio_drv.h index 7483dfc0dfa3..3bd7cce19e26 100644 --- a/include/linux/rio_drv.h +++ b/include/linux/rio_drv.h | |||
@@ -348,8 +348,8 @@ static inline void rio_init_dbell_res(struct resource *res, u16 start, u16 end) | |||
348 | .asm_did = RIO_ANY_ID, .asm_vid = RIO_ANY_ID | 348 | .asm_did = RIO_ANY_ID, .asm_vid = RIO_ANY_ID |
349 | 349 | ||
350 | /* Mailbox management */ | 350 | /* Mailbox management */ |
351 | extern int rio_request_outb_mbox(struct rio_mport *, int, int, | 351 | extern int rio_request_outb_mbox(struct rio_mport *, void *, int, int, |
352 | void (*)(struct rio_mport *, int, int)); | 352 | void (*)(struct rio_mport *, void *,int, int)); |
353 | extern int rio_release_outb_mbox(struct rio_mport *, int); | 353 | extern int rio_release_outb_mbox(struct rio_mport *, int); |
354 | 354 | ||
355 | /** | 355 | /** |
@@ -370,8 +370,8 @@ static inline int rio_add_outb_message(struct rio_mport *mport, | |||
370 | return rio_hw_add_outb_message(mport, rdev, mbox, buffer, len); | 370 | return rio_hw_add_outb_message(mport, rdev, mbox, buffer, len); |
371 | } | 371 | } |
372 | 372 | ||
373 | extern int rio_request_inb_mbox(struct rio_mport *, int, int, | 373 | extern int rio_request_inb_mbox(struct rio_mport *, void *, int, int, |
374 | void (*)(struct rio_mport *, int, int)); | 374 | void (*)(struct rio_mport *, void *, int, int)); |
375 | extern int rio_release_inb_mbox(struct rio_mport *, int); | 375 | extern int rio_release_inb_mbox(struct rio_mport *, int); |
376 | 376 | ||
377 | /** | 377 | /** |
@@ -403,8 +403,8 @@ static inline void *rio_get_inb_message(struct rio_mport *mport, int mbox) | |||
403 | } | 403 | } |
404 | 404 | ||
405 | /* Doorbell management */ | 405 | /* Doorbell management */ |
406 | extern int rio_request_inb_dbell(struct rio_mport *, u16, u16, | 406 | extern int rio_request_inb_dbell(struct rio_mport *, void *, u16, u16, |
407 | void (*)(struct rio_mport *, u16, u16, u16)); | 407 | void (*)(struct rio_mport *, void *, u16, u16, u16)); |
408 | extern int rio_release_inb_dbell(struct rio_mport *, u16, u16); | 408 | extern int rio_release_inb_dbell(struct rio_mport *, u16, u16); |
409 | extern struct resource *rio_request_outb_dbell(struct rio_dev *, u16, u16); | 409 | extern struct resource *rio_request_outb_dbell(struct rio_dev *, u16, u16); |
410 | extern int rio_release_outb_dbell(struct rio_dev *, struct resource *); | 410 | extern int rio_release_outb_dbell(struct rio_dev *, struct resource *); |