1
2
3
4
5
6
7
8
9
10
11 #ifndef RTL8187_LED_H
12 #define RTL8187_LED_H
13
14 #ifdef CONFIG_RTL8187_LEDS
15
16 #define RTL8187_LED_MAX_NAME_LEN 21
17
18 #include <linux/leds.h>
19 #include <linux/types.h>
20
21 enum {
22 LED_PIN_LED0,
23 LED_PIN_LED1,
24 LED_PIN_GPIO0,
25 LED_PIN_HW
26 };
27
28 enum {
29 EEPROM_CID_RSVD0 = 0x00,
30 EEPROM_CID_RSVD1 = 0xFF,
31 EEPROM_CID_ALPHA0 = 0x01,
32 EEPROM_CID_SERCOMM_PS = 0x02,
33 EEPROM_CID_HW = 0x03,
34 EEPROM_CID_TOSHIBA = 0x04,
35 EEPROM_CID_QMI = 0x07,
36 EEPROM_CID_DELL = 0x08
37 };
38
39 struct rtl8187_led {
40 struct ieee80211_hw *dev;
41
42 struct led_classdev led_dev;
43
44 u8 ledpin;
45
46 char name[RTL8187_LED_MAX_NAME_LEN + 1];
47
48 bool is_radio;
49 };
50
51 void rtl8187_leds_init(struct ieee80211_hw *dev, u16 code);
52 void rtl8187_leds_exit(struct ieee80211_hw *dev);
53
54 #endif
55
56 #endif