8 #include <linux/types.h>
9 #include <linux/leds.h>
10 #include <linux/workqueue.h>
13 #define B43_LED_MAX_NAME_LEN 31
17 /* The LED class device */
18 struct led_classdev led_dev;
19 /* The index number of the LED. */
21 /* If activelow is true, the LED is ON if the
22 * bit is switched off. */
24 /* The unique name string for this LED device. */
25 char name[B43_LED_MAX_NAME_LEN + 1];
26 /* The current status of the LED. This is updated locklessly. */
28 /* The active state in hardware. */
33 struct b43_led led_tx;
34 struct b43_led led_rx;
35 struct b43_led led_radio;
36 struct b43_led led_assoc;
38 struct work_struct work;
41 #define B43_MAX_NR_LEDS 4
43 #define B43_LED_BEHAVIOUR 0x7F
44 #define B43_LED_ACTIVELOW 0x80
45 /* LED behaviour values */
46 enum b43_led_behaviour {
56 B43_LED_WEIRD, //FIXME
61 void b43_leds_register(struct b43_wldev *dev);
62 void b43_leds_unregister(struct b43_wldev *dev);
63 void b43_leds_init(struct b43_wldev *dev);
64 void b43_leds_exit(struct b43_wldev *dev);
67 #else /* CONFIG_B43_LEDS */
68 /* LED support disabled */
74 static inline void b43_leds_register(struct b43_wldev *dev)
77 static inline void b43_leds_unregister(struct b43_wldev *dev)
80 static inline void b43_leds_init(struct b43_wldev *dev)
83 static inline void b43_leds_exit(struct b43_wldev *dev)
86 #endif /* CONFIG_B43_LEDS */
88 #endif /* B43_LEDS_H_ */