WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / wireless / broadcom / b43 / sdio.h
blobaa5693b123ad12a0b4babf936ed8782fe2324fad
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef B43_SDIO_H_
3 #define B43_SDIO_H_
5 #include <linux/ssb/ssb.h>
7 struct b43_wldev;
10 #ifdef CONFIG_B43_SDIO
12 struct b43_sdio {
13 struct ssb_bus ssb;
14 void *irq_handler_opaque;
15 void (*irq_handler)(struct b43_wldev *dev);
18 int b43_sdio_request_irq(struct b43_wldev *dev,
19 void (*handler)(struct b43_wldev *dev));
20 void b43_sdio_free_irq(struct b43_wldev *dev);
22 int b43_sdio_init(void);
23 void b43_sdio_exit(void);
26 #else /* CONFIG_B43_SDIO */
29 static inline int b43_sdio_request_irq(struct b43_wldev *dev,
30 void (*handler)(struct b43_wldev *dev))
32 return -ENODEV;
34 static inline void b43_sdio_free_irq(struct b43_wldev *dev)
37 static inline int b43_sdio_init(void)
39 return 0;
41 static inline void b43_sdio_exit(void)
45 #endif /* CONFIG_B43_SDIO */
46 #endif /* B43_SDIO_H_ */