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