xref: /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/include/rtl8192f_led.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2017 Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  *****************************************************************************/
15 #ifndef __RTL8192F_LED_H__
16 #define __RTL8192F_LED_H__
17 
18 #include <drv_conf.h>
19 #include <osdep_service.h>
20 #include <drv_types.h>
21 
22 #ifdef CONFIG_RTW_SW_LED
23 /* ********************************************************************************
24  * Interface to manipulate LED objects.
25  * ******************************************************************************** */
26 #ifdef CONFIG_USB_HCI
27 /** REG_LED_CFG (0x4C) **/
28 /* LED0 GPIO Enable, 0: disable, 1: enable*/
29 #define LED0_GPIO_ENABLE_8192FU (BIT21)
30 /* LED0 Disabled for analog signal usage, 0:Enable (output mode), 1: disable (input mode) */
31 #define LED0_DISABLE_ANALOGSIGNAL_8192FU (BIT7)
32 /* LED0 software value, 0: turn off, 1:turn on */
33 #define LED0_SW_VALUE_8192FU (BIT3)
34 
35 /** REG_GPIO_MUXCFG (0x40) **/
36 /* Enable LED[1:0] for RFE CTRL[7:6], 0: BT, 1: Wi-Fi */
37 #define ENABLE_LED0_AND_LED1_CTRL_BY_WIFI_8192FU (BIT3)
38 
39 /** REG_SW_GPIO_SHARE_CTRL_0 (0x1038) **/
40 /* LED Output PIN Location, 0: GPIOA_0, 1:GPIOB_4*/
41 #define LED_OUTPUT_PIN_LOCATION_8192FU (BIT16)
42 
43 u8 rtl8192fu_CfgLed0Hw(PADAPTER padapter);
44 void rtl8192fu_InitSwLeds(PADAPTER padapter);
45 void rtl8192fu_DeInitSwLeds(PADAPTER padapter);
46 #endif
47 
48 #ifdef CONFIG_SDIO_HCI
49 void rtl8192fs_InitSwLeds(PADAPTER padapter);
50 void rtl8192fs_DeInitSwLeds(PADAPTER padapter);
51 #endif
52 
53 #ifdef CONFIG_PCI_HCI
54 void rtl8192fe_InitSwLeds(PADAPTER padapter);
55 void rtl8192fe_DeInitSwLeds(PADAPTER padapter);
56 #endif
57 #endif /*#ifdef CONFIG_RTW_SW_LED*/
58 
59 #endif
60