This source file includes following definitions.
- b43legacy_leds_init
- b43legacy_leds_exit
1
2 #ifndef B43legacy_LEDS_H_
3 #define B43legacy_LEDS_H_
4
5 struct b43legacy_wldev;
6
7 #ifdef CONFIG_B43LEGACY_LEDS
8
9 #include <linux/types.h>
10 #include <linux/leds.h>
11
12
13 #define B43legacy_LED_MAX_NAME_LEN 31
14
15 struct b43legacy_led {
16 struct b43legacy_wldev *dev;
17
18 struct led_classdev led_dev;
19
20 u8 index;
21
22
23 bool activelow;
24
25 char name[B43legacy_LED_MAX_NAME_LEN + 1];
26 };
27
28 #define B43legacy_LED_BEHAVIOUR 0x7F
29 #define B43legacy_LED_ACTIVELOW 0x80
30
31 enum b43legacy_led_behaviour {
32 B43legacy_LED_OFF,
33 B43legacy_LED_ON,
34 B43legacy_LED_ACTIVITY,
35 B43legacy_LED_RADIO_ALL,
36 B43legacy_LED_RADIO_A,
37 B43legacy_LED_RADIO_B,
38 B43legacy_LED_MODE_BG,
39 B43legacy_LED_TRANSFER,
40 B43legacy_LED_APTRANSFER,
41 B43legacy_LED_WEIRD,
42 B43legacy_LED_ASSOC,
43 B43legacy_LED_INACTIVE,
44 };
45
46 void b43legacy_leds_init(struct b43legacy_wldev *dev);
47 void b43legacy_leds_exit(struct b43legacy_wldev *dev);
48
49 #else
50
51
52 struct b43legacy_led {
53
54 };
55
56 static inline void b43legacy_leds_init(struct b43legacy_wldev *dev)
57 {
58 }
59 static inline void b43legacy_leds_exit(struct b43legacy_wldev *dev)
60 {
61 }
62 #endif
63
64 #endif