9 #include <linux/types.h>
10 #include <linux/leds.h>
11 #include <linux/workqueue.h>
14 #define B43_LED_MAX_NAME_LEN 31
18 /* The LED class device */
19 struct led_classdev led_dev
;
20 /* The index number of the LED. */
22 /* If activelow is true, the LED is ON if the
23 * bit is switched off. */
25 /* The unique name string for this LED device. */
26 char name
[B43_LED_MAX_NAME_LEN
+ 1];
27 /* The current status of the LED. This is updated locklessly. */
29 /* The active state in hardware. */
34 struct b43_led led_tx
;
35 struct b43_led led_rx
;
36 struct b43_led led_radio
;
37 struct b43_led led_assoc
;
40 struct work_struct work
;
43 #define B43_MAX_NR_LEDS 4
45 #define B43_LED_BEHAVIOUR 0x7F
46 #define B43_LED_ACTIVELOW 0x80
47 /* LED behaviour values */
48 enum b43_led_behaviour
{
58 B43_LED_WEIRD
, //FIXME
63 void b43_leds_register(struct b43_wldev
*dev
);
64 void b43_leds_unregister(struct b43_wl
*wl
);
65 void b43_leds_init(struct b43_wldev
*dev
);
66 void b43_leds_exit(struct b43_wldev
*dev
);
67 void b43_leds_stop(struct b43_wldev
*dev
);
70 #else /* CONFIG_B43_LEDS */
71 /* LED support disabled */
77 static inline void b43_leds_register(struct b43_wldev
*dev
)
80 static inline void b43_leds_unregister(struct b43_wl
*wl
)
83 static inline void b43_leds_init(struct b43_wldev
*dev
)
86 static inline void b43_leds_exit(struct b43_wldev
*dev
)
89 static inline void b43_leds_stop(struct b43_wldev
*dev
)
92 #endif /* CONFIG_B43_LEDS */
94 #endif /* B43_LEDS_H_ */