summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/broadcom/b43/sdio.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2015-11-17 19:49:23 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-11-18 11:20:36 +0200
commit58619b14d106e453e3924810fac16a8644b04db1 (patch)
tree46f76b765f3e469cb651ae1d7dc8cafac4fc975e /drivers/net/wireless/broadcom/b43/sdio.h
parent30fe0f9b8c755d9aab04bb7c98ce9c7835c3bd24 (diff)
b43: move under broadcom vendor directory
Part of reorganising wireless drivers directory and Kconfig. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/b43/sdio.h')
-rw-r--r--drivers/net/wireless/broadcom/b43/sdio.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/net/wireless/broadcom/b43/sdio.h b/drivers/net/wireless/broadcom/b43/sdio.h
new file mode 100644
index 000000000000..1e93926f388f
--- /dev/null
+++ b/drivers/net/wireless/broadcom/b43/sdio.h
@@ -0,0 +1,45 @@
+#ifndef B43_SDIO_H_
+#define B43_SDIO_H_
+
+#include <linux/ssb/ssb.h>
+
+struct b43_wldev;
+
+
+#ifdef CONFIG_B43_SDIO
+
+struct b43_sdio {
+ struct ssb_bus ssb;
+ void *irq_handler_opaque;
+ void (*irq_handler)(struct b43_wldev *dev);
+};
+
+int b43_sdio_request_irq(struct b43_wldev *dev,
+ void (*handler)(struct b43_wldev *dev));
+void b43_sdio_free_irq(struct b43_wldev *dev);
+
+int b43_sdio_init(void);
+void b43_sdio_exit(void);
+
+
+#else /* CONFIG_B43_SDIO */
+
+
+static inline int b43_sdio_request_irq(struct b43_wldev *dev,
+ void (*handler)(struct b43_wldev *dev))
+{
+ return -ENODEV;
+}
+static inline void b43_sdio_free_irq(struct b43_wldev *dev)
+{
+}
+static inline int b43_sdio_init(void)
+{
+ return 0;
+}
+static inline void b43_sdio_exit(void)
+{
+}
+
+#endif /* CONFIG_B43_SDIO */
+#endif /* B43_SDIO_H_ */