linux/drivers/net/wireless/b43/sdio.h
<<
>>
Prefs
   1#ifndef B43_SDIO_H_
   2#define B43_SDIO_H_
   3
   4#include <linux/ssb/ssb.h>
   5
   6struct b43_wldev;
   7
   8
   9#ifdef CONFIG_B43_SDIO
  10
  11struct b43_sdio {
  12        struct ssb_bus ssb;
  13        void *irq_handler_opaque;
  14        void (*irq_handler)(struct b43_wldev *dev);
  15};
  16
  17int b43_sdio_request_irq(struct b43_wldev *dev,
  18                         void (*handler)(struct b43_wldev *dev));
  19void b43_sdio_free_irq(struct b43_wldev *dev);
  20
  21int b43_sdio_init(void);
  22void b43_sdio_exit(void);
  23
  24
  25#else /* CONFIG_B43_SDIO */
  26
  27
  28static inline int b43_sdio_request_irq(struct b43_wldev *dev,
  29                         void (*handler)(struct b43_wldev *dev))
  30{
  31        return -ENODEV;
  32}
  33static inline void b43_sdio_free_irq(struct b43_wldev *dev)
  34{
  35}
  36static inline int b43_sdio_init(void)
  37{
  38        return 0;
  39}
  40static inline void b43_sdio_exit(void)
  41{
  42}
  43
  44#endif /* CONFIG_B43_SDIO */
  45#endif /* B43_SDIO_H_ */
  46