diff options
author | Albert Herranz <albert_herranz@yahoo.es> | 2009-09-10 13:34:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-23 11:35:43 -0400 |
commit | 3dbba8e281552da640080f08a0f127d48456669f (patch) | |
tree | 111f1db7448c7e3214e02e6d09d7e8f285727188 /drivers/net/wireless/b43/sdio.h | |
parent | a78b3bb2f3ab9afcf78dbcff18fd7bf900c7c27e (diff) |
b43: Add Soft-MAC SDIO device support
This adds support for Soft-MAC SDIO devices to b43.
The driver still lacks some fixes for SDIO devices, so it's currently
marked as BROKEN.
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/sdio.h')
-rw-r--r-- | drivers/net/wireless/b43/sdio.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/sdio.h b/drivers/net/wireless/b43/sdio.h new file mode 100644 index 000000000000..fb633094403a --- /dev/null +++ b/drivers/net/wireless/b43/sdio.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef B43_SDIO_H_ | ||
2 | #define B43_SDIO_H_ | ||
3 | |||
4 | #include <linux/ssb/ssb.h> | ||
5 | |||
6 | struct b43_wldev; | ||
7 | |||
8 | |||
9 | #ifdef CONFIG_B43_SDIO | ||
10 | |||
11 | struct b43_sdio { | ||
12 | struct ssb_bus ssb; | ||
13 | void *irq_handler_opaque; | ||
14 | void (*irq_handler)(struct b43_wldev *dev); | ||
15 | }; | ||
16 | |||
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); | ||
20 | |||
21 | int b43_sdio_init(void); | ||
22 | void b43_sdio_exit(void); | ||
23 | |||
24 | |||
25 | #else /* CONFIG_B43_SDIO */ | ||
26 | |||
27 | |||
28 | int b43_sdio_request_irq(struct b43_wldev *dev, | ||
29 | void (*handler)(struct b43_wldev *dev)) | ||
30 | { | ||
31 | return -ENODEV; | ||
32 | } | ||
33 | void b43_sdio_free_irq(struct b43_wldev *dev) | ||
34 | { | ||
35 | } | ||
36 | static inline int b43_sdio_init(void) | ||
37 | { | ||
38 | return 0; | ||
39 | } | ||
40 | static inline void b43_sdio_exit(void) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | #endif /* CONFIG_B43_SDIO */ | ||
45 | #endif /* B43_SDIO_H_ */ | ||