spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / drivers / net / wireless / b43 / sdio.h
blobfb633094403aada9b15d1070b51e42ffdfe25b59
1 #ifndef B43_SDIO_H_
2 #define B43_SDIO_H_
4 #include <linux/ssb/ssb.h>
6 struct b43_wldev;
9 #ifdef CONFIG_B43_SDIO
11 struct b43_sdio {
12 struct ssb_bus ssb;
13 void *irq_handler_opaque;
14 void (*irq_handler)(struct b43_wldev *dev);
17 int b43_sdio_request_irq(struct b43_wldev *dev,
18 void (*handler)(struct b43_wldev *dev));
19 void b43_sdio_free_irq(struct b43_wldev *dev);
21 int b43_sdio_init(void);
22 void b43_sdio_exit(void);
25 #else /* CONFIG_B43_SDIO */
28 int b43_sdio_request_irq(struct b43_wldev *dev,
29 void (*handler)(struct b43_wldev *dev))
31 return -ENODEV;
33 void b43_sdio_free_irq(struct b43_wldev *dev)
36 static inline int b43_sdio_init(void)
38 return 0;
40 static inline void b43_sdio_exit(void)
44 #endif /* CONFIG_B43_SDIO */
45 #endif /* B43_SDIO_H_ */