1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Definitions for RTL8187 leds
5 * Copyright 2009 Larry Finger <Larry.Finger@lwfinger.net>
7 * Based on the LED handling in the r8187 driver, which is:
8 * Copyright (c) Realtek Semiconductor Corp. All rights reserved.
14 #ifdef CONFIG_RTL8187_LEDS
16 #define RTL8187_LED_MAX_NAME_LEN 21
18 #include <linux/leds.h>
19 #include <linux/types.h>
29 EEPROM_CID_RSVD0
= 0x00,
30 EEPROM_CID_RSVD1
= 0xFF,
31 EEPROM_CID_ALPHA0
= 0x01,
32 EEPROM_CID_SERCOMM_PS
= 0x02,
34 EEPROM_CID_TOSHIBA
= 0x04,
35 EEPROM_CID_QMI
= 0x07,
36 EEPROM_CID_DELL
= 0x08
40 struct ieee80211_hw
*dev
;
41 /* The LED class device */
42 struct led_classdev led_dev
;
43 /* The pin/method used to control the led */
45 /* The unique name string for this LED device. */
46 char name
[RTL8187_LED_MAX_NAME_LEN
+ 1];
47 /* If the LED is radio or tx/rx */
51 void rtl8187_leds_init(struct ieee80211_hw
*dev
, u16 code
);
52 void rtl8187_leds_exit(struct ieee80211_hw
*dev
);
54 #endif /* def CONFIG_RTL8187_LEDS */
56 #endif /* RTL8187_LED_H */