fix typo
[openwrt.git] / package / b43 / src / leds.h
1 #ifndef B43_LEDS_H_
2 #define B43_LEDS_H_
3
4 struct b43_wldev;
5
6 #ifdef CONFIG_B43_LEDS
7
8 #include <linux/types.h>
9 #include <linux/leds.h>
10
11
12 #define B43_LED_MAX_NAME_LEN 31
13
14 struct b43_led {
15 struct b43_wldev *dev;
16 /* The LED class device */
17 struct led_classdev led_dev;
18 /* The index number of the LED. */
19 u8 index;
20 /* If activelow is true, the LED is ON if the
21 * bit is switched off. */
22 bool activelow;
23 /* The unique name string for this LED device. */
24 char name[B43_LED_MAX_NAME_LEN + 1];
25 };
26 #define b43_led_index(led) ((int)((led) - (led)->dev->leds))
27
28 #define B43_LED_BEHAVIOUR 0x7F
29 #define B43_LED_ACTIVELOW 0x80
30 /* LED behaviour values */
31 enum b43_led_behaviour {
32 B43_LED_OFF,
33 B43_LED_ON,
34 B43_LED_ACTIVITY,
35 B43_LED_RADIO_ALL,
36 B43_LED_RADIO_A,
37 B43_LED_RADIO_B,
38 B43_LED_MODE_BG,
39 B43_LED_TRANSFER,
40 B43_LED_APTRANSFER,
41 B43_LED_WEIRD, //FIXME
42 B43_LED_ASSOC,
43 B43_LED_INACTIVE,
44 };
45
46 void b43_leds_init(struct b43_wldev *dev);
47 void b43_leds_exit(struct b43_wldev *dev);
48
49
50 #else /* CONFIG_B43_LEDS */
51 /* LED support disabled */
52
53 struct b43_led {
54 /* empty */
55 };
56
57 static inline void b43_leds_init(struct b43_wldev *dev)
58 {
59 }
60 static inline void b43_leds_exit(struct b43_wldev *dev)
61 {
62 }
63 #endif /* CONFIG_B43_LEDS */
64
65 #endif /* B43_LEDS_H_ */
This page took 0.044302 seconds and 5 git commands to generate.