4 #include <linux/types.h>
5 #include <linux/timer.h>
10 /* Index in the "leds" array in b43_wldev */
12 struct b43_wldev *dev;
13 struct timer_list blink_timer;
14 unsigned long blink_interval;
17 /* Delay between state changes when blinking in jiffies */
18 #define B43_LEDBLINK_SLOW (HZ / 1)
19 #define B43_LEDBLINK_MEDIUM (HZ / 4)
20 #define B43_LEDBLINK_FAST (HZ / 8)
22 #define B43_LED_XFER_THRES (HZ / 100)
24 #define B43_LED_BEHAVIOUR 0x7F
25 #define B43_LED_ACTIVELOW 0x80
26 enum { /* LED behaviour values */
36 B43_LED_WEIRD, //FIXME
40 /* Behaviour values for testing.
41 * With these values it is easier to figure out
42 * the real behaviour of leds, in case the SPROM
43 * is missing information.
45 B43_LED_TEST_BLINKSLOW,
46 B43_LED_TEST_BLINKMEDIUM,
47 B43_LED_TEST_BLINKFAST,
50 int b43_leds_init(struct b43_wldev *dev);
51 void b43_leds_exit(struct b43_wldev *dev);
52 void b43_leds_update(struct b43_wldev *dev, int activity);
53 void b43_leds_switch_all(struct b43_wldev *dev, int on);
55 #endif /* B43_LEDS_H_ */