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