aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/rfkill.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2007-09-27 15:35:34 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:54:12 -0400
commit8e9f7529fdfe34ed519f048682eb404fbd8004e8 (patch)
treec0ca2c07e9f4124be2bc46c35823f4fb79e99d9d /drivers/net/wireless/b43/rfkill.h
parent21954c367e4088c491122edd263964345bc1d3bf (diff)
[B43]: RF-kill support
This adds full support for the RFKILL button and the RFKILL LED trigger. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43/rfkill.h')
-rw-r--r--drivers/net/wireless/b43/rfkill.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/rfkill.h b/drivers/net/wireless/b43/rfkill.h
new file mode 100644
index 000000000000..05db0d67a92e
--- /dev/null
+++ b/drivers/net/wireless/b43/rfkill.h
@@ -0,0 +1,49 @@
1#ifndef B43_RFKILL_H_
2#define B43_RFKILL_H_
3
4struct b43_wldev;
5
6
7#ifdef CONFIG_B43_RFKILL
8
9#include <linux/rfkill.h>
10
11struct b43_rfkill {
12 /* The RFKILL subsystem data structure */
13 struct rfkill *rfkill;
14 /* The unique name of this rfkill switch */
15 char name[32];
16 /* Workqueue for asynchronous notification. */
17 struct work_struct notify_work;
18};
19
20void b43_rfkill_init(struct b43_wldev *dev);
21void b43_rfkill_exit(struct b43_wldev *dev);
22void b43_rfkill_toggled(struct b43_wldev *dev, bool on);
23char * b43_rfkill_led_name(struct b43_wldev *dev);
24
25
26#else /* CONFIG_B43_RFKILL */
27/* No RFKILL support. */
28
29struct b43_rfkill {
30 /* empty */
31};
32
33static inline void b43_rfkill_init(struct b43_wldev *dev)
34{
35}
36static inline void b43_rfkill_exit(struct b43_wldev *dev)
37{
38}
39static inline void b43_rfkill_toggled(struct b43_wldev *dev, bool on)
40{
41}
42static inline char * b43_rfkill_led_name(struct b43_wldev *dev)
43{
44 return NULL;
45}
46
47#endif /* CONFIG_B43_RFKILL */
48
49#endif /* B43_RFKILL_H_ */