├── ifcfg-wlan0 ├── clean ├── hal ├── OUTSRC │ ├── odm.h │ ├── rtl8192e │ │ ├── HalHWImg8192E_MAC.h │ │ ├── odm_RTL8192E.h │ │ ├── HalHWImg8192E_BB.h │ │ ├── HalHWImg8192E_FW.h │ │ └── HalHWImg8192E_FW_v18.h │ └── odm_RegDefine11AC.h ├── phydm │ ├── rtchnlplan.c │ ├── rtchnlplan.h │ ├── txbf │ │ ├── haltxbf8821b.h │ │ └── haltxbf8192e.h │ ├── rtl8192e │ │ ├── phydm_rtl8192e.h │ │ ├── version_rtl8192e.h │ │ ├── phydm_rtl8192e.c │ │ ├── halhwimg8192e_mac.h │ │ ├── phydm_regconfig8192e.h │ │ └── halhwimg8192e_bb.h │ ├── mp_precomp.h │ ├── halrf │ │ ├── halrf_txgapcal.h │ │ ├── halrf_psd.h │ │ ├── halrf_features.h │ │ └── halrf_powertracking.h │ ├── phydm_noisemonitor.h │ ├── phydm_dynamicbbpowersaving.h │ ├── phydm_rssi_monitor.h │ └── phydm_psd.h ├── btc │ ├── HalBtc8723a1Ant.c │ ├── HalBtc8723a2Ant.c │ ├── HalBtc8812a2Ant.c │ ├── HalBtc8821a2Ant.c │ └── HalBtc8821aCsr2Ant.c ├── rtl8192e │ ├── rtl8192e_hal_init.c │ ├── usb │ │ ├── usb_halinit.c │ │ └── rtl8192eu_recv.c │ └── hal8192e_fw.h ├── OUTSRC-BTCoexist │ ├── HalBtc8192e1Ant.c │ ├── HalBtc8192e2Ant.c │ ├── HalBtc8723a1Ant.c │ ├── HalBtc8723a2Ant.c │ ├── HalBtc8723b1Ant.c │ ├── HalBtc8723b2Ant.c │ ├── HalBtc8812a1Ant.c │ ├── HalBtc8812a2Ant.c │ ├── HalBtc8821a1Ant.c │ ├── HalBtc8821a2Ant.c │ └── Mp_Precomp.h └── efuse │ └── rtl8192e │ ├── HalEfuseMask8192E_SDIO.h │ ├── HalEfuseMask8192E_USB.h │ ├── HalEfuseMask8192E_PCIE.h │ ├── HalEfuseMask8192E_PCIE.c │ ├── HalEfuseMask8192E_SDIO.c │ └── HalEfuseMask8192E_USB.c ├── include ├── rtw_mlme.h ├── Hal8821APwrSeq.h ├── rtw_version.h ├── gspi_ops_linux.h ├── drv_types_linux.h ├── rtl8710b_rf.h ├── rtl8821cs_hal.h ├── rtl8723d_rf.h ├── rtl8821ce_hal.h ├── circ_buf.h ├── h2clbk.h ├── rtl8188f_rf.h ├── rtl8192f_rf.h ├── rtl8703b_rf.h ├── rtl8723b_rf.h ├── rtl8821c_dm.h ├── rtl8821cu_hal.h ├── rtl8814a_dm.h ├── rtl8192e_rf.h ├── rtl8812a_rf.h ├── rtl8814a_rf.h ├── hal_phy_reg.h ├── rtl8188e_sreset.h ├── rtl8188f_sreset.h ├── rtl8192e_sreset.h ├── rtl8703b_sreset.h ├── rtl8710b_sreset.h ├── rtl8723b_sreset.h ├── rtl8723d_sreset.h ├── rtl8812a_sreset.h ├── rtl8814a_sreset.h ├── gspi_osintf.h ├── sdio_osintf.h ├── rtw_ioctl_query.h ├── rtl8723a_pg.h ├── usb_osintf.h ├── rtl8192f_sreset.h ├── rtl8188e_rf.h ├── gspi_hal.h ├── rtl8822be_hal.h ├── rtl8192c_event.h ├── rtl8723a_rf.h ├── rtl8812a_dm.h ├── rtl8188e_dm.h ├── rtl8192f_dm.h ├── mlme_osdep.h ├── rtl8192e_dm.h ├── rtw_btcoex_wifionly.h ├── rtw_wifi_regd.h ├── cmd_osdep.h ├── rtl8822bs_hal.h ├── rtw_sdio.h ├── hal_gspi.h ├── rtw_byteorder.h ├── rtl8192c_sreset.h ├── rtl8723a_sreset.h ├── rtw_mem.h ├── nic_spec.h ├── custom_gpio.h ├── rtl8192e_led.h ├── Hal8723APhyCfg.h ├── rtl8188e_led.h ├── rtl8723b_dm.h ├── drv_types_gspi.h ├── rtl8188f_dm.h ├── rtl8703b_dm.h ├── rtl8710b_dm.h ├── rtl8723d_dm.h ├── rtl8814a_led.h ├── rtl8192c_led.h ├── rtl8192d_led.h ├── rtl8192f_led.h ├── pci_hal.h ├── rtl8812a_led.h ├── ethernet.h ├── rtl8188f_led.h ├── rtl8723b_led.h ├── rtl8710b_led.h ├── rtl8723d_led.h ├── sdio_hal.h ├── rtl8703b_led.h ├── rtl8192c_rf.h ├── rtl8723a_recv.h ├── rtl8723a_dm.h ├── rtl8723a_led.h ├── pci_osintf.h ├── rtl8192d_rf.h ├── sdio_ops_xp.h ├── sdio_ops_ce.h ├── rtw_sreset.h ├── rtl8822bu_hal.h ├── usb_vendor_req.h ├── rtw_br_ext.h ├── rtl8192d_dm.h ├── usb_hal.h └── rtw_qos.h ├── Kconfig ├── dkms.conf ├── wlan0dhcp ├── runwpa ├── platform ├── platform_ops.h ├── platform_ops.c ├── platform_RTK_DMP_usb.c ├── platform_zte_zx296716_sdio.h ├── custom_country_chplan.h ├── platform_aml_s905_sdio.h ├── platform_hisilicon_hi3798_sdio.h ├── platform_arm_act_sdio.c ├── platform_zte_zx296716_sdio.c ├── platform_aml_s905_sdio.c ├── platform_ARM_WMT_sdio.c └── platform_sprd_sdio.c ├── core ├── rtw_btcoex_wifionly.c └── mesh │ └── rtw_mesh_hwmp.h └── os_dep └── linux └── rtw_proc.h /ifcfg-wlan0: -------------------------------------------------------------------------------- 1 | #DHCP client 2 | DEVICE=wlan0 3 | BOOTPROTO=dhcp 4 | ONBOOT=yes -------------------------------------------------------------------------------- /clean: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | rmmod 8192cu 3 | rmmod 8192ce 4 | rmmod 8192du 5 | rmmod 8192de 6 | -------------------------------------------------------------------------------- /hal/OUTSRC/odm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC/odm.h -------------------------------------------------------------------------------- /include/rtw_mlme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/include/rtw_mlme.h -------------------------------------------------------------------------------- /hal/phydm/rtchnlplan.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/phydm/rtchnlplan.c -------------------------------------------------------------------------------- /hal/phydm/rtchnlplan.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/phydm/rtchnlplan.h -------------------------------------------------------------------------------- /include/Hal8821APwrSeq.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/include/Hal8821APwrSeq.h -------------------------------------------------------------------------------- /hal/btc/HalBtc8723a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/btc/HalBtc8723a1Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8723a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/btc/HalBtc8723a2Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8812a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/btc/HalBtc8812a2Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8821a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/btc/HalBtc8821a2Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8821aCsr2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/btc/HalBtc8821aCsr2Ant.c -------------------------------------------------------------------------------- /hal/rtl8192e/rtl8192e_hal_init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/rtl8192e/rtl8192e_hal_init.c -------------------------------------------------------------------------------- /hal/rtl8192e/usb/usb_halinit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/rtl8192e/usb/usb_halinit.c -------------------------------------------------------------------------------- /include/rtw_version.h: -------------------------------------------------------------------------------- 1 | #define DRIVERVERSION "v5.6.4_35685.20191108_COEX20171113-0047" 2 | #define BTCOEXVERSION "COEX20171113-0047" 3 | -------------------------------------------------------------------------------- /Kconfig: -------------------------------------------------------------------------------- 1 | config RTL8192EU 2 | tristate "Realtek 8192E USB WiFi" 3 | depends on USB 4 | ---help--- 5 | Help message of RTL8192EU 6 | 7 | -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8192e1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8192e1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8192e2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8192e2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723a1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723a2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723b1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723b1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723b2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723b2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8812a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8812a1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8812a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8812a2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8821a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8821a1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8821a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lord2y/rtl8192eu-arm-linux-driver/HEAD/hal/OUTSRC-BTCoexist/HalBtc8821a2Ant.c -------------------------------------------------------------------------------- /dkms.conf: -------------------------------------------------------------------------------- 1 | PACKAGE_NAME="rtl8192eu" 2 | PACKAGE_VERSION="1.0" 3 | BUILT_MODULE_NAME="8192eu" 4 | DEST_MODULE_LOCATION="/kernel/drivers/net/wireless/" 5 | REMAKE_INITRD="yes" 6 | AUTOINSTALL="yes" 7 | MAKE="'make' all KVER=${kernelver}" 8 | CLEAN="make clean" 9 | 10 | -------------------------------------------------------------------------------- /wlan0dhcp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | var0=`ps aux|awk '/dhclient wlan0/'|awk '$11!="awk"{print $2}'` 4 | 5 | kill $var0 6 | cp ifcfg-wlan0 /etc/sysconfig/network-scripts/ 7 | 8 | dhclient wlan0 9 | 10 | var1=`ifconfig wlan0 |awk '/inet/{print $2}'|awk -F: '{print $2}'` 11 | 12 | 13 | rm -f /etc/sysconfig/network-scripts/ifcfg-wlan0 14 | 15 | echo "get ip: $var1" 16 | 17 | -------------------------------------------------------------------------------- /runwpa: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ "`which iwconfig`" = "" ] ; then 4 | echo "WARNING:Wireless tool not exist!" 5 | echo " Please install it!" 6 | exit 7 | else 8 | if [ `uname -r | cut -d. -f2` -eq 4 ]; then 9 | wpa_supplicant -D ipw -c wpa1.conf -i wlan0 10 | else 11 | if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then 12 | wpa_supplicant -D ipw -c wpa1.conf -i wlan0 13 | else 14 | wpa_supplicant -D wext -c wpa1.conf -i wlan0 15 | fi 16 | 17 | fi 18 | fi 19 | 20 | 21 | -------------------------------------------------------------------------------- /include/gspi_ops_linux.h: -------------------------------------------------------------------------------- 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 __SDIO_OPS_LINUX_H__ 16 | #define __SDIO_OPS_LINUX_H__ 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /include/drv_types_linux.h: -------------------------------------------------------------------------------- 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 __DRV_TYPES_LINUX_H__ 16 | #define __DRV_TYPES_LINUX_H__ 17 | 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /include/rtl8710b_rf.h: -------------------------------------------------------------------------------- 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 __RTL8710B_RF_H__ 16 | #define __RTL8710B_RF_H__ 17 | 18 | int PHY_RF6052_Config8710B(IN PADAPTER pdapter); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /hal/phydm/txbf/haltxbf8821b.h: -------------------------------------------------------------------------------- 1 | #ifndef __HAL_TXBF_8821B_H__ 2 | #define __HAL_TXBF_8821B_H__ 3 | #if (BEAMFORMING_SUPPORT == 1) 4 | #if (RTL8821B_SUPPORT == 1) 5 | VOID 6 | HalTxbf8821B_Enter( 7 | IN PVOID pDM_VOID, 8 | IN u1Byte Idx 9 | ); 10 | 11 | 12 | VOID 13 | HalTxbf8821B_Leave( 14 | IN PVOID pDM_VOID, 15 | IN u1Byte Idx 16 | ); 17 | 18 | 19 | VOID 20 | HalTxbf8821B_Status( 21 | IN PVOID pDM_VOID, 22 | IN u1Byte Idx 23 | ); 24 | 25 | 26 | VOID 27 | HalTxbf8821B_FwTxBF( 28 | IN PVOID pDM_VOID, 29 | IN u1Byte Idx 30 | ); 31 | 32 | #else 33 | #define HalTxbf8821B_Enter(pDM_VOID, Idx) 34 | #define HalTxbf8821B_Leave(pDM_VOID, Idx) 35 | #define HalTxbf8821B_Status(pDM_VOID, Idx) 36 | #define HalTxbf8821B_FwTxBF(pDM_VOID, Idx) 37 | #endif 38 | 39 | 40 | #endif 41 | 42 | #endif // #ifndef __HAL_TXBF_8821B_H__ 43 | 44 | -------------------------------------------------------------------------------- /hal/phydm/rtl8192e/phydm_rtl8192e.h: -------------------------------------------------------------------------------- 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 __ODM_RTL8192E_H__ 16 | #define __ODM_RTL8192E_H__ 17 | #if (RTL8192E_SUPPORT == 1) 18 | s8 phydm_cck_rssi_8192e(struct dm_struct *dm, u16 lna_idx, u8 vga_idx); 19 | #endif 20 | #endif 21 | -------------------------------------------------------------------------------- /include/rtl8821cs_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 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 _RTL8821CS_HAL_H_ 16 | #define _RTL8821CS_HAL_H_ 17 | 18 | #include /* PADAPTER */ 19 | 20 | /* rtl8821cs_ops.c */ 21 | u8 rtl8821cs_set_hal_ops(PADAPTER); 22 | 23 | #endif /* _RTL8821CS_HAL_H_ */ 24 | -------------------------------------------------------------------------------- /include/rtl8723d_rf.h: -------------------------------------------------------------------------------- 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 __RTL8723D_RF_H__ 16 | #define __RTL8723D_RF_H__ 17 | 18 | int PHY_RF6052_Config8723D(IN PADAPTER pdapter); 19 | 20 | void PHY_RF6052SetBandwidth8723D(IN PADAPTER Adapter, IN enum channel_width Bandwidth); 21 | #endif 22 | -------------------------------------------------------------------------------- /include/rtl8821ce_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 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 _RTL8821CE_HAL_H_ 16 | #define _RTL8821CE_HAL_H_ 17 | 18 | #include /* PADAPTER */ 19 | 20 | /* rtl8821ce_ops.c */ 21 | void rtl8821ce_set_hal_ops(PADAPTER); 22 | 23 | #endif /* _RTL8821CE_HAL_H_ */ 24 | -------------------------------------------------------------------------------- /include/circ_buf.h: -------------------------------------------------------------------------------- 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 __CIRC_BUF_H_ 16 | #define __CIRC_BUF_H_ 1 17 | 18 | #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 19 | 20 | #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 21 | 22 | #endif //_CIRC_BUF_H_ 23 | 24 | -------------------------------------------------------------------------------- /include/h2clbk.h: -------------------------------------------------------------------------------- 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 | 16 | 17 | #define _H2CLBK_H_ 18 | 19 | 20 | void _lbk_cmd(PADAPTER Adapter); 21 | 22 | void _lbk_rsp(PADAPTER Adapter); 23 | 24 | void _lbk_evt(IN PADAPTER Adapter); 25 | 26 | void h2c_event_callback(unsigned char *dev, unsigned char *pbuf); 27 | -------------------------------------------------------------------------------- /include/rtl8188f_rf.h: -------------------------------------------------------------------------------- 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 __RTL8188F_RF_H__ 16 | #define __RTL8188F_RF_H__ 17 | 18 | int PHY_RF6052_Config8188F(IN PADAPTER Adapter); 19 | 20 | VOID 21 | PHY_RF6052SetBandwidth8188F( 22 | IN PADAPTER Adapter, 23 | IN enum channel_width Bandwidth); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/rtl8192f_rf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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_RF_H__ 16 | #define __RTL8192F_RF_H__ 17 | 18 | int PHY_RF6052_Config8192F(IN PADAPTER pdapter); 19 | 20 | void PHY_RF6052SetBandwidth8192F(IN PADAPTER Adapter, IN enum channel_width Bandwidth); 21 | 22 | #endif/* __RTL8192F_RF_H__ */ 23 | -------------------------------------------------------------------------------- /include/rtl8703b_rf.h: -------------------------------------------------------------------------------- 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 __RTL8703B_RF_H__ 16 | #define __RTL8703B_RF_H__ 17 | 18 | int PHY_RF6052_Config8703B(IN PADAPTER Adapter); 19 | 20 | VOID 21 | PHY_RF6052SetBandwidth8703B( 22 | IN PADAPTER Adapter, 23 | IN enum channel_width Bandwidth); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/rtl8723b_rf.h: -------------------------------------------------------------------------------- 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 __RTL8723B_RF_H__ 16 | #define __RTL8723B_RF_H__ 17 | 18 | int PHY_RF6052_Config8723B(IN PADAPTER Adapter); 19 | 20 | VOID 21 | PHY_RF6052SetBandwidth8723B( 22 | IN PADAPTER Adapter, 23 | IN enum channel_width Bandwidth); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/rtl8821c_dm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 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 __RTL8812C_DM_H__ 16 | #define __RTL8812C_DM_H__ 17 | 18 | void rtl8821c_phy_init_dm_priv(PADAPTER); 19 | void rtl8821c_phy_deinit_dm_priv(PADAPTER); 20 | void rtl8821c_phy_init_haldm(PADAPTER); 21 | void rtl8821c_phy_haldm_watchdog(PADAPTER); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /include/rtl8821cu_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 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 _RTL8821CU_HAL_H_ 16 | #define _RTL8821CU_HAL_H_ 17 | 18 | #include /* PADAPTER */ 19 | 20 | /* rtl8821cu_ops.c */ 21 | u8 rtl8821cu_set_hal_ops(PADAPTER); 22 | void rtl8821cu_set_hw_type(struct dvobj_priv *pdvobj); 23 | 24 | #endif /* _RTL8821CU_HAL_H_ */ 25 | -------------------------------------------------------------------------------- /platform/platform_ops.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 __PLATFORM_OPS_H__ 16 | #define __PLATFORM_OPS_H__ 17 | 18 | /* 19 | * Return: 20 | * 0: power on successfully 21 | * others: power on failed 22 | */ 23 | int platform_wifi_power_on(void); 24 | void platform_wifi_power_off(void); 25 | 26 | #endif /* __PLATFORM_OPS_H__ */ 27 | -------------------------------------------------------------------------------- /include/rtl8814a_dm.h: -------------------------------------------------------------------------------- 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 __RTL8814A_DM_H__ 16 | #define __RTL8814A_DM_H__ 17 | 18 | void rtl8814_init_dm_priv(IN PADAPTER Adapter); 19 | void rtl8814_deinit_dm_priv(IN PADAPTER Adapter); 20 | void rtl8814_InitHalDm(IN PADAPTER Adapter); 21 | void rtl8814_HalDmWatchDog(IN PADAPTER Adapter); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /include/rtl8192e_rf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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 __RTL8192E_RF_H__ 16 | #define __RTL8192E_RF_H__ 17 | 18 | VOID 19 | PHY_RF6052SetBandwidth8192E( 20 | IN PADAPTER Adapter, 21 | IN enum channel_width Bandwidth); 22 | 23 | 24 | int 25 | PHY_RF6052_Config_8192E( 26 | IN PADAPTER Adapter); 27 | 28 | #endif/* __RTL8192E_RF_H__ */ 29 | -------------------------------------------------------------------------------- /include/rtl8812a_rf.h: -------------------------------------------------------------------------------- 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 __RTL8812A_RF_H__ 16 | #define __RTL8812A_RF_H__ 17 | 18 | VOID 19 | PHY_RF6052SetBandwidth8812( 20 | IN PADAPTER Adapter, 21 | IN enum channel_width Bandwidth); 22 | 23 | 24 | int 25 | PHY_RF6052_Config_8812( 26 | IN PADAPTER Adapter); 27 | 28 | #endif/* __RTL8188E_RF_H__ */ 29 | -------------------------------------------------------------------------------- /include/rtl8814a_rf.h: -------------------------------------------------------------------------------- 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 __RTL8814A_RF_H__ 16 | #define __RTL8814A_RF_H__ 17 | 18 | VOID 19 | PHY_RF6052SetBandwidth8814A( 20 | IN PADAPTER Adapter, 21 | IN enum channel_width Bandwidth); 22 | 23 | 24 | int 25 | PHY_RF6052_Config_8814A( 26 | IN PADAPTER Adapter); 27 | 28 | #endif/* __RTL8188E_RF_H__ */ 29 | -------------------------------------------------------------------------------- /include/hal_phy_reg.h: -------------------------------------------------------------------------------- 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 __HAL_PHY_REG_H__ 16 | #define __HAL_PHY_REG_H__ 17 | 18 | /* for PutRFRegsetting & GetRFRegSetting BitMask 19 | * #if (RTL92SE_FPGA_VERIFY == 1) 20 | * #define bRFRegOffsetMask 0xfff 21 | * #else */ 22 | #define bRFRegOffsetMask 0xfffff 23 | /* #endif */ 24 | 25 | #endif /* __HAL_PHY_REG_H__ */ 26 | -------------------------------------------------------------------------------- /include/rtl8188e_sreset.h: -------------------------------------------------------------------------------- 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 _RTL8188E_SRESET_H_ 16 | #define _RTL8188E_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8188e_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8188e_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8188f_sreset.h: -------------------------------------------------------------------------------- 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 _RTL8188F_SRESET_H_ 16 | #define _RTL8188F_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8188f_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8188f_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8192e_sreset.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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 _RTL88812A_SRESET_H_ 16 | #define _RTL8812A_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8192e_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8192e_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8703b_sreset.h: -------------------------------------------------------------------------------- 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 _RTL8703B_SRESET_H_ 16 | #define _RTL8703B_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8703b_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8703b_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8710b_sreset.h: -------------------------------------------------------------------------------- 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 _RTL8710B_SRESET_H_ 16 | #define _RTL8710B_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8710b_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8710b_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8723b_sreset.h: -------------------------------------------------------------------------------- 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 _RTL8723B_SRESET_H_ 16 | #define _RTL8723B_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8723b_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8723b_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8723d_sreset.h: -------------------------------------------------------------------------------- 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 _RTL8723D_SRESET_H_ 16 | #define _RTL8723D_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8723d_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8723d_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8812a_sreset.h: -------------------------------------------------------------------------------- 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 _RTL88812A_SRESET_H_ 16 | #define _RTL8812A_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8812_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8812_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtl8814a_sreset.h: -------------------------------------------------------------------------------- 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 _RTL88814A_SRESET_H_ 16 | #define _RTL8814A_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8814_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8814_sreset_linked_status_check(_adapter *padapter); 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /include/gspi_osintf.h: -------------------------------------------------------------------------------- 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 __SDIO_OSINTF_H__ 16 | #define __SDIO_OSINTF_H__ 17 | 18 | 19 | #ifdef PLATFORM_OS_CE 20 | extern NDIS_STATUS ce_sd_get_dev_hdl(PADAPTER padapter); 21 | SD_API_STATUS ce_sd_int_callback(SD_DEVICE_HANDLE hDevice, PADAPTER padapter); 22 | extern void sd_setup_irs(PADAPTER padapter); 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/sdio_osintf.h: -------------------------------------------------------------------------------- 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 __SDIO_OSINTF_H__ 16 | #define __SDIO_OSINTF_H__ 17 | 18 | 19 | #ifdef PLATFORM_OS_CE 20 | extern NDIS_STATUS ce_sd_get_dev_hdl(PADAPTER padapter); 21 | SD_API_STATUS ce_sd_int_callback(SD_DEVICE_HANDLE hDevice, PADAPTER padapter); 22 | extern void sd_setup_irs(PADAPTER padapter); 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /platform/platform_ops.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 CONFIG_PLATFORM_OPS 16 | /* 17 | * Return: 18 | * 0: power on successfully 19 | * others: power on failed 20 | */ 21 | int platform_wifi_power_on(void) 22 | { 23 | int ret = 0; 24 | 25 | 26 | return ret; 27 | } 28 | 29 | void platform_wifi_power_off(void) 30 | { 31 | } 32 | #endif /* !CONFIG_PLATFORM_OPS */ 33 | -------------------------------------------------------------------------------- /include/rtw_ioctl_query.h: -------------------------------------------------------------------------------- 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 _RTW_IOCTL_QUERY_H_ 16 | #define _RTW_IOCTL_QUERY_H_ 17 | 18 | 19 | #ifdef PLATFORM_WINDOWS 20 | u8 query_802_11_capability(_adapter *padapter, u8 *pucBuf, u32 *pulOutLen); 21 | u8 query_802_11_association_information(_adapter *padapter, PNDIS_802_11_ASSOCIATION_INFORMATION pAssocInfo); 22 | #endif 23 | 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/rtl8723a_pg.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8723A_PG_H__ 21 | #define __RTL8723A_PG_H__ 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /include/usb_osintf.h: -------------------------------------------------------------------------------- 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 __USB_OSINTF_H 16 | #define __USB_OSINTF_H 17 | 18 | #include 19 | 20 | #define USBD_HALTED(Status) ((ULONG)(Status) >> 30 == 3) 21 | 22 | 23 | u8 usbvendorrequest(struct dvobj_priv *pdvobjpriv, RT_USB_BREQUEST brequest, RT_USB_WVALUE wvalue, u8 windex, void *data, u8 datalen, u8 isdirectionin); 24 | 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /hal/phydm/mp_precomp.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | -------------------------------------------------------------------------------- /include/rtl8192f_sreset.h: -------------------------------------------------------------------------------- 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_SRESET_H_ 16 | #define _RTL8192F_SRESET_H_ 17 | 18 | #include 19 | 20 | #ifdef DBG_CONFIG_ERROR_DETECT 21 | extern void rtl8192f_sreset_xmit_status_check(_adapter *padapter); 22 | extern void rtl8192f_sreset_linked_status_check(_adapter *padapter); 23 | #endif /* DBG_CONFIG_ERROR_DETECT */ 24 | #endif /* _RTL8192F_SRESET_H_ */ -------------------------------------------------------------------------------- /include/rtl8188e_rf.h: -------------------------------------------------------------------------------- 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 __RTL8188E_RF_H__ 16 | #define __RTL8188E_RF_H__ 17 | 18 | 19 | 20 | int PHY_RF6052_Config8188E(IN PADAPTER Adapter); 21 | void rtl8188e_RF_ChangeTxPath(IN PADAPTER Adapter, 22 | IN u16 DataRate); 23 | void rtl8188e_PHY_RF6052SetBandwidth( 24 | IN PADAPTER Adapter, 25 | IN enum channel_width Bandwidth); 26 | 27 | #endif/* __RTL8188E_RF_H__ */ 28 | -------------------------------------------------------------------------------- /hal/rtl8192e/usb/rtl8192eu_recv.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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 | #define _RTL8192E_RECV_C_ 16 | 17 | /* #include */ 18 | #include 19 | 20 | int rtl8192eu_init_recv_priv(_adapter *padapter) 21 | { 22 | return usb_init_recv_priv(padapter, INTERRUPT_MSG_FORMAT_LEN); 23 | } 24 | 25 | void rtl8192eu_free_recv_priv(_adapter *padapter) 26 | { 27 | usb_free_recv_priv(padapter, INTERRUPT_MSG_FORMAT_LEN); 28 | } 29 | -------------------------------------------------------------------------------- /platform/platform_RTK_DMP_usb.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 | #include 16 | 17 | int platform_wifi_power_on(void) 18 | { 19 | int ret = 0; 20 | u32 tmp; 21 | tmp = readl((volatile unsigned int *)0xb801a608); 22 | tmp &= 0xffffff00; 23 | tmp |= 0x55; 24 | writel(tmp, (volatile unsigned int *)0xb801a608); /* write dummy register for 1055 */ 25 | return ret; 26 | } 27 | 28 | void platform_wifi_power_off(void) 29 | { 30 | } 31 | -------------------------------------------------------------------------------- /include/gspi_hal.h: -------------------------------------------------------------------------------- 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 __GSPI_HAL_H__ 16 | #define __GSPI_HAL_H__ 17 | 18 | 19 | void spi_int_dpc(PADAPTER padapter, u32 sdio_hisr); 20 | u8 rtw_set_hal_ops(_adapter *padapter); 21 | 22 | #ifdef CONFIG_RTL8188E 23 | void rtl8188es_set_hal_ops(PADAPTER padapter); 24 | #endif 25 | 26 | #ifdef CONFIG_RTL8723B 27 | void rtl8723bs_set_hal_ops(PADAPTER padapter); 28 | #endif 29 | 30 | #endif /* __GSPI_HAL_H__ */ 31 | -------------------------------------------------------------------------------- /include/rtl8822be_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 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 _RTL8822BE_HAL_H_ 16 | #define _RTL8822BE_HAL_H_ 17 | 18 | #include /* PADAPTER */ 19 | 20 | #define RT_BCN_INT_MASKS (BIT20 | BIT25 | BIT26 | BIT16) 21 | 22 | /* rtl8822be_ops.c */ 23 | void UpdateInterruptMask8822BE(PADAPTER, u32 AddMSR, u32 AddMSR1, u32 RemoveMSR, u32 RemoveMSR1); 24 | u16 get_txbd_rw_reg(u16 q_idx); 25 | 26 | 27 | #endif /* _RTL8822BE_HAL_H_ */ 28 | -------------------------------------------------------------------------------- /platform/platform_zte_zx296716_sdio.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 2018 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 __PLATFORM_ZTE_ZX296716_SDIO_H__ 16 | #define __PLATFORM_ZTE_ZX296716_SDIO_H__ 17 | 18 | extern void sdio_reinit(void); 19 | extern void extern_wifi_set_enable(int val); 20 | #ifdef CONFIG_A16T03_BOARD 21 | extern int sdio_host_is_null(void); 22 | extern void remove_card(void); 23 | #endif /* CONFIG_A16T03_BOARD */ 24 | 25 | #endif /* __PLATFORM_ZTE_ZX296716_SDIO_H__ */ 26 | -------------------------------------------------------------------------------- /include/rtl8192c_event.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8192C_EVENT_H_ 21 | #define _RTL8192C_EVENT_H_ 22 | 23 | 24 | 25 | 26 | #endif 27 | 28 | 29 | -------------------------------------------------------------------------------- /include/rtl8723a_rf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8723A_RF_H__ 21 | #define __RTL8723A_RF_H__ 22 | 23 | #include "rtl8192c_rf.h" 24 | int PHY_RF6052_Config8723A( IN PADAPTER Adapter ); 25 | 26 | #endif 27 | 28 | -------------------------------------------------------------------------------- /platform/custom_country_chplan.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 | 16 | #error "You have defined CONFIG_CUSTOMIZED_COUNTRY_CHPLAN_MAP to use a customized map of your own instead of the default one" 17 | #error "Before removing these error notifications, please make sure regulatory certification requirements of your target markets" 18 | 19 | static const struct country_chplan CUSTOMIZED_country_chplan_map[] = { 20 | COUNTRY_CHPLAN_ENT("TW", 0x76, 1, 0x3FF), /* Taiwan */ 21 | }; 22 | 23 | -------------------------------------------------------------------------------- /include/rtl8812a_dm.h: -------------------------------------------------------------------------------- 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 __RTL8812A_DM_H__ 16 | #define __RTL8812A_DM_H__ 17 | 18 | void rtl8812_init_dm_priv(IN PADAPTER Adapter); 19 | void rtl8812_deinit_dm_priv(IN PADAPTER Adapter); 20 | void rtl8812_InitHalDm(IN PADAPTER Adapter); 21 | void rtl8812_HalDmWatchDog(IN PADAPTER Adapter); 22 | 23 | /* VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */ 24 | 25 | /* void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /include/rtl8188e_dm.h: -------------------------------------------------------------------------------- 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 __RTL8188E_DM_H__ 16 | #define __RTL8188E_DM_H__ 17 | 18 | void rtl8188e_init_dm_priv(IN PADAPTER Adapter); 19 | void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter); 20 | void rtl8188e_InitHalDm(IN PADAPTER Adapter); 21 | void rtl8188e_HalDmWatchDog(IN PADAPTER Adapter); 22 | 23 | /* VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */ 24 | 25 | /* void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /include/rtl8192f_dm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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_DM_H__ 16 | #define __RTL8192F_DM_H__ 17 | 18 | void rtl8192f_init_dm_priv(IN PADAPTER Adapter); 19 | void rtl8192f_deinit_dm_priv(IN PADAPTER Adapter); 20 | void rtl8192f_InitHalDm(IN PADAPTER Adapter); 21 | void rtl8192f_HalDmWatchDog(IN PADAPTER Adapter); 22 | 23 | /* VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */ 24 | 25 | /* void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); */ 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /include/mlme_osdep.h: -------------------------------------------------------------------------------- 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 __MLME_OSDEP_H_ 16 | #define __MLME_OSDEP_H_ 17 | 18 | extern void rtw_os_indicate_disconnect(_adapter *adapter, u16 reason, u8 locally_generated); 19 | extern void rtw_os_indicate_connect(_adapter *adapter); 20 | void rtw_os_indicate_scan_done(_adapter *padapter, bool aborted); 21 | extern void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie); 22 | 23 | void rtw_reset_securitypriv(_adapter *adapter); 24 | 25 | #endif /* _MLME_OSDEP_H_ */ 26 | -------------------------------------------------------------------------------- /include/rtl8192e_dm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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 __RTL8192E_DM_H__ 16 | #define __RTL8192E_DM_H__ 17 | 18 | 19 | void rtl8192e_init_dm_priv(IN PADAPTER Adapter); 20 | void rtl8192e_deinit_dm_priv(IN PADAPTER Adapter); 21 | void rtl8192e_InitHalDm(IN PADAPTER Adapter); 22 | void rtl8192e_HalDmWatchDog(IN PADAPTER Adapter); 23 | 24 | /* VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); */ 25 | 26 | /* void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); */ 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /platform/platform_aml_s905_sdio.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 2018 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 __PLATFORM_AML_S905_SDIO_H__ 16 | #define __PLATFORM_AML_S905_SDIO_H__ 17 | 18 | #include /* Linux vresion */ 19 | 20 | extern void sdio_reinit(void); 21 | extern void extern_wifi_set_enable(int is_on); 22 | 23 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)) 24 | extern void wifi_teardown_dt(void); 25 | extern int wifi_setup_dt(void); 26 | #endif /* kernel < 3.14.0 */ 27 | 28 | #endif /* __PLATFORM_AML_S905_SDIO_H__ */ 29 | -------------------------------------------------------------------------------- /platform/platform_hisilicon_hi3798_sdio.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2017 - 2018 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 __PLATFORM_HISILICON_HI3798_SDIO_H__ 16 | #define __PLATFORM_HISILICON_HI3798_SDIO_H__ 17 | 18 | typedef unsigned int HI_U32; 19 | 20 | typedef int HI_S32; 21 | 22 | #define HI_SUCCESS 0 23 | #define HI_FAILURE (-1) 24 | 25 | extern HI_S32 HI_DRV_GPIO_SetDirBit(HI_U32 u32GpioNo, HI_U32 u32DirBit); 26 | extern HI_S32 HI_DRV_GPIO_WriteBit(HI_U32 u32GpioNo, HI_U32 u32BitValue); 27 | 28 | #endif /* __PLATFORM_HISILICON_HI3798_SDIO_H__ */ 29 | -------------------------------------------------------------------------------- /hal/efuse/rtl8192e/HalEfuseMask8192E_SDIO.h: -------------------------------------------------------------------------------- 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 | 16 | 17 | 18 | /****************************************************************************** 19 | * MSDIO.TXT 20 | ******************************************************************************/ 21 | u2Byte EFUSE_GetArrayLen_MP_8192E_MSDIO(VOID); 22 | 23 | VOID EFUSE_GetMaskArray_MP_8192E_MSDIO(pu1Byte Array); 24 | 25 | BOOLEAN EFUSE_IsAddressMasked_MP_8192E_MSDIO(/* TC: Test Chip, MP: MP Chip */ 26 | u2Byte Offset); 27 | -------------------------------------------------------------------------------- /include/rtw_btcoex_wifionly.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 __RTW_BTCOEX_WIFIONLY_H__ 16 | #define __RTW_BTCOEX_WIFIONLY_H__ 17 | 18 | void rtw_btcoex_wifionly_switchband_notify(PADAPTER padapter); 19 | void rtw_btcoex_wifionly_scan_notify(PADAPTER padapter); 20 | void rtw_btcoex_wifionly_connect_notify(PADAPTER padapter); 21 | void rtw_btcoex_wifionly_hw_config(PADAPTER padapter); 22 | void rtw_btcoex_wifionly_initialize(PADAPTER padapter); 23 | void rtw_btcoex_wifionly_AntInfoSetting(PADAPTER padapter); 24 | #endif 25 | -------------------------------------------------------------------------------- /include/rtw_wifi_regd.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2009-2010 - 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 | 16 | #ifndef __RTW_WIFI_REGD_H__ 17 | #define __RTW_WIFI_REGD_H__ 18 | 19 | struct country_code_to_enum_rd { 20 | u16 countrycode; 21 | const char *iso_name; 22 | }; 23 | 24 | enum country_code_type_t { 25 | COUNTRY_CODE_USER = 0, 26 | 27 | /*add new channel plan above this line */ 28 | COUNTRY_CODE_MAX 29 | }; 30 | 31 | void rtw_regd_apply_flags(struct wiphy *wiphy); 32 | int rtw_regd_init(struct wiphy *wiphy); 33 | 34 | #endif /* __RTW_WIFI_REGD_H__ */ 35 | -------------------------------------------------------------------------------- /include/cmd_osdep.h: -------------------------------------------------------------------------------- 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 __CMD_OSDEP_H_ 16 | #define __CMD_OSDEP_H_ 17 | 18 | 19 | extern sint _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv); 20 | extern sint _rtw_init_evt_priv(struct evt_priv *pevtpriv); 21 | extern void _rtw_free_evt_priv(struct evt_priv *pevtpriv); 22 | extern void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv); 23 | extern sint _rtw_enqueue_cmd(_queue *queue, struct cmd_obj *obj, bool to_head); 24 | extern struct cmd_obj *_rtw_dequeue_cmd(_queue *queue); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /hal/efuse/rtl8192e/HalEfuseMask8192E_USB.h: -------------------------------------------------------------------------------- 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 | 16 | 17 | 18 | /****************************************************************************** 19 | * MUSB.TXT 20 | ******************************************************************************/ 21 | u2Byte EFUSE_GetArrayLen_MP_8192E_MUSB(VOID); 22 | 23 | VOID 24 | EFUSE_GetMaskArray_MP_8192E_MUSB( 25 | IN OUT pu1Byte Array 26 | ); 27 | 28 | BOOLEAN EFUSE_IsAddressMasked_MP_8192E_MUSB(/* TC: Test Chip, MP: MP Chip */ 29 | IN u2Byte Offset 30 | ); 31 | -------------------------------------------------------------------------------- /include/rtl8822bs_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 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 _RTL8822BS_HAL_H_ 16 | #define _RTL8822BS_HAL_H_ 17 | 18 | #include /* PADAPTER */ 19 | 20 | /* rtl8822bs_ops.c */ 21 | void rtl8822bs_set_hal_ops(PADAPTER); 22 | 23 | #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN) 24 | void rtl8822bs_disable_interrupt_but_cpwm2(PADAPTER adapter); 25 | #endif 26 | 27 | /* rtl8822bs_xmit.c */ 28 | s32 rtl8822bs_dequeue_writeport(PADAPTER); 29 | #define _dequeue_writeport(a) rtl8822bs_dequeue_writeport(a) 30 | 31 | #endif /* _RTL8822BS_HAL_H_ */ 32 | -------------------------------------------------------------------------------- /hal/efuse/rtl8192e/HalEfuseMask8192E_PCIE.h: -------------------------------------------------------------------------------- 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 | 16 | 17 | 18 | /****************************************************************************** 19 | * MPCIE.TXT 20 | ******************************************************************************/ 21 | 22 | 23 | u2Byte 24 | EFUSE_GetArrayLen_MP_8192E_MPCIE(VOID); 25 | 26 | VOID 27 | EFUSE_GetMaskArray_MP_8192E_MPCIE( 28 | IN OUT pu1Byte Array 29 | ); 30 | 31 | BOOLEAN 32 | EFUSE_IsAddressMasked_MP_8192E_MPCIE(/* TC: Test Chip, MP: MP Chip */ 33 | IN u2Byte Offset 34 | ); 35 | -------------------------------------------------------------------------------- /hal/phydm/halrf/halrf_txgapcal.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | #ifndef __HALRF_TXGAPCAL_H__ 27 | #define __HALRF_TXGAPCAL_H__ 28 | 29 | void odm_tx_gain_gap_calibration(void *dm_void); 30 | 31 | #endif /*__HALRF_TXGAPCAL_H__*/ 32 | -------------------------------------------------------------------------------- /include/rtw_sdio.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 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 _RTW_SDIO_H_ 16 | #define _RTW_SDIO_H_ 17 | 18 | #include /* struct dvobj_priv and etc. */ 19 | 20 | u8 rtw_sdio_read_cmd52(struct dvobj_priv *, u32 addr, void *buf, size_t len); 21 | u8 rtw_sdio_read_cmd53(struct dvobj_priv *, u32 addr, void *buf, size_t len); 22 | u8 rtw_sdio_write_cmd52(struct dvobj_priv *, u32 addr, void *buf, size_t len); 23 | u8 rtw_sdio_write_cmd53(struct dvobj_priv *, u32 addr, void *buf, size_t len); 24 | u8 rtw_sdio_f0_read(struct dvobj_priv *, u32 addr, void *buf, size_t len); 25 | 26 | #endif /* _RTW_SDIO_H_ */ 27 | -------------------------------------------------------------------------------- /include/hal_gspi.h: -------------------------------------------------------------------------------- 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 __HAL_GSPI_H_ 16 | #define __HAL_GSPI_H_ 17 | 18 | #define ffaddr2deviceId(pdvobj, addr) (pdvobj->Queue2Pipe[addr]) 19 | 20 | u8 rtw_hal_gspi_max_txoqt_free_space(_adapter *padapter); 21 | u8 rtw_hal_gspi_query_tx_freepage(_adapter *padapter, u8 PageIdx, u8 RequiredPageNum); 22 | void rtw_hal_gspi_update_tx_freepage(_adapter *padapter, u8 PageIdx, u8 RequiredPageNum); 23 | void rtw_hal_set_gspi_tx_max_length(PADAPTER padapter, u8 numHQ, u8 numNQ, u8 numLQ, u8 numPubQ); 24 | u32 rtw_hal_get_gspi_tx_max_length(PADAPTER padapter, u8 queue_idx); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /include/rtw_byteorder.h: -------------------------------------------------------------------------------- 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 _RTL871X_BYTEORDER_H_ 16 | #define _RTL871X_BYTEORDER_H_ 17 | 18 | 19 | #if defined(CONFIG_LITTLE_ENDIAN) && defined (CONFIG_BIG_ENDIAN) 20 | #error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n" 21 | #endif 22 | 23 | #if defined(CONFIG_LITTLE_ENDIAN) 24 | #ifndef CONFIG_PLATFORM_MSTAR389 25 | #include 26 | #endif 27 | #elif defined (CONFIG_BIG_ENDIAN) 28 | #include 29 | #else 30 | # error "Must be LITTLE/BIG Endian Host" 31 | #endif 32 | 33 | #endif /* _RTL871X_BYTEORDER_H_ */ 34 | -------------------------------------------------------------------------------- /include/rtl8192c_sreset.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8192C_SRESET_H_ 21 | #define _RTL8192C_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8192c_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8192c_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /include/rtl8723a_sreset.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8723A_SRESET_H_ 21 | #define _RTL8723A_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8723a_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8723a_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /include/rtw_mem.h: -------------------------------------------------------------------------------- 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 __RTW_MEM_H__ 16 | #define __RTW_MEM_H__ 17 | 18 | #include 19 | #include 20 | #include 21 | 22 | #ifdef CONFIG_PLATFORM_MSTAR_HIGH 23 | #define MAX_RTKM_RECVBUF_SZ (31744) /* 31k */ 24 | #else 25 | #define MAX_RTKM_RECVBUF_SZ (15360) /* 15k */ 26 | #endif /* CONFIG_PLATFORM_MSTAR_HIGH */ 27 | #define MAX_RTKM_NR_PREALLOC_RECV_SKB 16 28 | 29 | u16 rtw_rtkm_get_buff_size(void); 30 | u8 rtw_rtkm_get_nr_recv_skb(void); 31 | struct u8 *rtw_alloc_revcbuf_premem(void); 32 | struct sk_buff *rtw_alloc_skb_premem(u16 in_size); 33 | int rtw_free_skb_premem(struct sk_buff *pskb); 34 | 35 | 36 | #endif /* __RTW_MEM_H__ */ 37 | -------------------------------------------------------------------------------- /include/nic_spec.h: -------------------------------------------------------------------------------- 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 | 16 | 17 | #ifndef __NIC_SPEC_H__ 18 | #define __NIC_SPEC_H__ 19 | 20 | #include 21 | 22 | #define RTL8711_MCTRL_ (0x20000) 23 | #define RTL8711_UART_ (0x30000) 24 | #define RTL8711_TIMER_ (0x40000) 25 | #define RTL8711_FINT_ (0x50000) 26 | #define RTL8711_HINT_ (0x50000) 27 | #define RTL8711_GPIO_ (0x60000) 28 | #define RTL8711_WLANCTRL_ (0x200000) 29 | #define RTL8711_WLANFF_ (0xe00000) 30 | #define RTL8711_HCICTRL_ (0x600000) 31 | #define RTL8711_SYSCFG_ (0x620000) 32 | #define RTL8711_SYSCTRL_ (0x620000) 33 | #define RTL8711_MCCTRL_ (0x020000) 34 | 35 | 36 | #include 37 | 38 | #include 39 | 40 | 41 | #endif /* __RTL8711_SPEC_H__ */ 42 | -------------------------------------------------------------------------------- /include/custom_gpio.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 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 __CUSTOM_GPIO_H__ 16 | #define __CUSTOM_GPIO_H___ 17 | 18 | #include 19 | #include 20 | 21 | #ifdef PLATFORM_OS_XP 22 | #include 23 | #endif 24 | 25 | #ifdef PLATFORM_OS_CE 26 | #include 27 | #endif 28 | 29 | #ifdef PLATFORM_LINUX 30 | #include 31 | #endif 32 | 33 | typedef enum cust_gpio_modes { 34 | WLAN_PWDN_ON, 35 | WLAN_PWDN_OFF, 36 | WLAN_POWER_ON, 37 | WLAN_POWER_OFF, 38 | WLAN_BT_PWDN_ON, 39 | WLAN_BT_PWDN_OFF 40 | } cust_gpio_modes_t; 41 | 42 | extern int rtw_wifi_gpio_init(void); 43 | extern int rtw_wifi_gpio_deinit(void); 44 | extern void rtw_wifi_gpio_wlan_ctrl(int onoff); 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /hal/phydm/rtl8192e/version_rtl8192e.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | /*RTL8192E PHY Parameters*/ 26 | /* 27 | [Caution] 28 | Since 01/Aug/2015, the commit rules will be simplified. 29 | You do not need to fill up the version.h anymore, 30 | only the maintenance supervisor fills it before formal release. 31 | */ 32 | #define RELEASE_DATE_8192E 20180719 33 | #define COMMIT_BY_8192E "BB_Dino" 34 | #define RELEASE_VERSION_8192E 60 35 | -------------------------------------------------------------------------------- /hal/phydm/halrf/halrf_psd.h: -------------------------------------------------------------------------------- 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 | 16 | #ifndef __HALRF_PSD_H__ 17 | #define __HALRF_PSD_H__ 18 | 19 | #if (DM_ODM_SUPPORT_TYPE & ODM_WIN) 20 | 21 | struct _halrf_psd_data { 22 | u32 point; 23 | u32 start_point; 24 | u32 stop_point; 25 | u32 average; 26 | u32 buf_size; 27 | u32 psd_data[256]; 28 | u32 psd_progress; 29 | }; 30 | 31 | enum rt_status 32 | halrf_psd_init( 33 | struct dm_struct *dm); 34 | 35 | enum rt_status 36 | halrf_psd_query( 37 | struct dm_struct *dm, 38 | u32 *outbuf, 39 | u32 buf_size); 40 | 41 | enum rt_status 42 | halrf_psd_init_query( 43 | struct dm_struct *dm, 44 | u32 *outbuf, 45 | u32 point, 46 | u32 start_point, 47 | u32 stop_point, 48 | u32 average, 49 | u32 buf_size); 50 | 51 | #endif /*#if (DM_ODM_SUPPORT_TYPE & ODM_WIN)*/ 52 | #endif /*#__HALRF_PSD_H__*/ 53 | -------------------------------------------------------------------------------- /hal/phydm/halrf/halrf_features.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | #ifndef __HALRF_FEATURES_H__ 27 | #define __HALRF_FEATURES_H__ 28 | 29 | #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 30 | 31 | #define CONFIG_HALRF_POWERTRACKING 1 32 | 33 | #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 34 | 35 | #define CONFIG_HALRF_POWERTRACKING 1 36 | 37 | #elif (DM_ODM_SUPPORT_TYPE == ODM_CE) 38 | 39 | #define CONFIG_HALRF_POWERTRACKING 1 40 | 41 | #endif 42 | 43 | #endif /*#ifndef __HALRF_FEATURES_H__*/ 44 | -------------------------------------------------------------------------------- /hal/phydm/rtl8192e/phydm_rtl8192e.c: -------------------------------------------------------------------------------- 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 | 16 | /* ************************************************************ 17 | * include files 18 | * ************************************************************ */ 19 | 20 | #include "mp_precomp.h" 21 | #include "../phydm_precomp.h" 22 | #if (RTL8192E_SUPPORT == 1) 23 | s8 phydm_cck_rssi_8192e(struct dm_struct *dm, u16 lna_idx, u8 vga_idx) 24 | { 25 | s8 rx_pwr_all = 0; 26 | s8 lna_gain = 0; 27 | s8 lna_gain_table_0[8] = {15, 9, -10, -21, -23, -27, -43, -44}; 28 | s8 lna_gain_table_1[8] = {24, 18, 13, -4, -11, -18, -31, -36}; 29 | 30 | if (dm->cck_agc_report_type == 0) 31 | lna_gain = lna_gain_table_0[lna_idx]; 32 | else 33 | lna_gain = lna_gain_table_1[lna_idx]; 34 | 35 | rx_pwr_all = lna_gain - (2 * vga_idx); 36 | 37 | return rx_pwr_all; 38 | } 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /include/rtl8192e_led.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2012 - 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 __RTL8192E_LED_H__ 16 | #define __RTL8192E_LED_H__ 17 | 18 | #ifdef CONFIG_RTW_SW_LED 19 | /* ******************************************************************************** 20 | * Interface to manipulate LED objects. 21 | * ******************************************************************************** */ 22 | #ifdef CONFIG_USB_HCI 23 | void rtl8192eu_InitSwLeds(PADAPTER padapter); 24 | void rtl8192eu_DeInitSwLeds(PADAPTER padapter); 25 | #endif 26 | #ifdef CONFIG_PCI_HCI 27 | void rtl8192ee_InitSwLeds(PADAPTER padapter); 28 | void rtl8192ee_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8192es_InitSwLeds(PADAPTER padapter); 32 | void rtl8192es_DeInitSwLeds(PADAPTER padapter); 33 | #endif 34 | 35 | #endif 36 | #endif/*CONFIG_RTW_SW_LED*/ 37 | -------------------------------------------------------------------------------- /include/Hal8723APhyCfg.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __INC_HAL8723PHYCFG_H__ 21 | #define __INC_HAL8723PHYCFG_H__ 22 | 23 | #include 24 | /* MAC/BB/RF HAL config */ 25 | int PHY_BBConfig8723A( IN PADAPTER Adapter ); 26 | int PHY_RFConfig8723A( IN PADAPTER Adapter ); 27 | s32 PHY_MACConfig8723A(PADAPTER padapter); 28 | 29 | VOID 30 | PHY_SetSwChnlBWMode8723A( 31 | IN PADAPTER Adapter, 32 | IN u8 channel, 33 | IN CHANNEL_WIDTH Bandwidth, 34 | IN u8 Offset40, 35 | IN u8 Offset80 36 | ); 37 | 38 | #endif 39 | 40 | -------------------------------------------------------------------------------- /hal/phydm/halrf/halrf_powertracking.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | #ifndef __HALRF_POWER_TRACKING_H__ 27 | #define __HALRF_POWER_TRACKING_H__ 28 | 29 | boolean 30 | odm_check_power_status(void *dm_void); 31 | 32 | #if (DM_ODM_SUPPORT_TYPE & (ODM_WIN | ODM_CE)) 33 | void halrf_update_pwr_track(void *dm_void, u8 rate); 34 | #endif 35 | 36 | #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 37 | void halrf_update_init_rate_work_item_callback( 38 | void *context); 39 | #endif 40 | 41 | #endif /*#ifndef __HALRF_POWERTRACKING_H__*/ 42 | -------------------------------------------------------------------------------- /include/rtl8188e_led.h: -------------------------------------------------------------------------------- 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 __RTL8188E_LED_H__ 16 | #define __RTL8188E_LED_H__ 17 | 18 | #ifdef CONFIG_RTW_SW_LED 19 | 20 | /* ******************************************************************************** 21 | * Interface to manipulate LED objects. 22 | * ******************************************************************************** */ 23 | #ifdef CONFIG_USB_HCI 24 | void rtl8188eu_InitSwLeds(PADAPTER padapter); 25 | void rtl8188eu_DeInitSwLeds(PADAPTER padapter); 26 | #endif 27 | #ifdef CONFIG_PCI_HCI 28 | void rtl8188ee_InitSwLeds(PADAPTER padapter); 29 | void rtl8188ee_DeInitSwLeds(PADAPTER padapter); 30 | #endif 31 | #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 32 | void rtl8188es_InitSwLeds(PADAPTER padapter); 33 | void rtl8188es_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | 36 | #endif 37 | #endif /*CONFIG_RTW_SW_LED*/ 38 | -------------------------------------------------------------------------------- /include/rtl8723b_dm.h: -------------------------------------------------------------------------------- 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 __RTL8723B_DM_H__ 16 | #define __RTL8723B_DM_H__ 17 | /* ************************************************************ 18 | * Description: 19 | * 20 | * This file is for 8723B dynamic mechanism only 21 | * 22 | * 23 | * ************************************************************ */ 24 | 25 | /* ************************************************************ 26 | * structure and define 27 | * ************************************************************ */ 28 | 29 | /* ************************************************************ 30 | * function prototype 31 | * ************************************************************ */ 32 | 33 | void rtl8723b_init_dm_priv(PADAPTER padapter); 34 | void rtl8723b_deinit_dm_priv(PADAPTER padapter); 35 | 36 | void rtl8723b_InitHalDm(PADAPTER padapter); 37 | void rtl8723b_HalDmWatchDog(PADAPTER padapter); 38 | #endif 39 | -------------------------------------------------------------------------------- /include/drv_types_gspi.h: -------------------------------------------------------------------------------- 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 __DRV_TYPES_GSPI_H__ 16 | #define __DRV_TYPES_GSPI_H__ 17 | 18 | /* SPI Header Files */ 19 | #ifdef PLATFORM_LINUX 20 | #include 21 | #include 22 | #include 23 | /* #include */ 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #endif 32 | 33 | 34 | typedef struct gspi_data { 35 | u8 func_number; 36 | 37 | u8 tx_block_mode; 38 | u8 rx_block_mode; 39 | u32 block_transfer_len; 40 | 41 | #ifdef PLATFORM_LINUX 42 | struct spi_device *func; 43 | 44 | struct workqueue_struct *priv_wq; 45 | struct delayed_work irq_work; 46 | #endif 47 | } GSPI_DATA, *PGSPI_DATA; 48 | 49 | #endif /* #ifndef __DRV_TYPES_GSPI_H__ */ 50 | -------------------------------------------------------------------------------- /include/rtl8188f_dm.h: -------------------------------------------------------------------------------- 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 __RTL8188F_DM_H__ 16 | #define __RTL8188F_DM_H__ 17 | /* ************************************************************ 18 | * Description: 19 | * 20 | * This file is for 8188F dynamic mechanism only 21 | * 22 | * 23 | * ************************************************************ */ 24 | 25 | /* ************************************************************ 26 | * structure and define 27 | * ************************************************************ */ 28 | 29 | /* ************************************************************ 30 | * function prototype 31 | * ************************************************************ */ 32 | 33 | void rtl8188f_init_dm_priv(PADAPTER padapter); 34 | void rtl8188f_deinit_dm_priv(PADAPTER padapter); 35 | 36 | void rtl8188f_InitHalDm(PADAPTER padapter); 37 | void rtl8188f_HalDmWatchDog(PADAPTER padapter); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /include/rtl8703b_dm.h: -------------------------------------------------------------------------------- 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 __RTL8703B_DM_H__ 16 | #define __RTL8703B_DM_H__ 17 | /* ************************************************************ 18 | * Description: 19 | * 20 | * This file is for 8703B dynamic mechanism only 21 | * 22 | * 23 | * ************************************************************ */ 24 | 25 | /* ************************************************************ 26 | * structure and define 27 | * ************************************************************ */ 28 | 29 | /* ************************************************************ 30 | * function prototype 31 | * ************************************************************ */ 32 | 33 | void rtl8703b_init_dm_priv(PADAPTER padapter); 34 | void rtl8703b_deinit_dm_priv(PADAPTER padapter); 35 | 36 | void rtl8703b_InitHalDm(PADAPTER padapter); 37 | void rtl8703b_HalDmWatchDog(PADAPTER padapter); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /include/rtl8710b_dm.h: -------------------------------------------------------------------------------- 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 __RTL8710B_DM_H__ 16 | #define __RTL8710B_DM_H__ 17 | /* ************************************************************ 18 | * Description: 19 | * 20 | * This file is for 8710B dynamic mechanism only 21 | * 22 | * 23 | * ************************************************************ */ 24 | 25 | /* ************************************************************ 26 | * structure and define 27 | * ************************************************************ */ 28 | 29 | /* ************************************************************ 30 | * function prototype 31 | * ************************************************************ */ 32 | 33 | void rtl8710b_init_dm_priv(PADAPTER padapter); 34 | void rtl8710b_deinit_dm_priv(PADAPTER padapter); 35 | 36 | void rtl8710b_InitHalDm(PADAPTER padapter); 37 | void rtl8710b_HalDmWatchDog(PADAPTER padapter); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /include/rtl8723d_dm.h: -------------------------------------------------------------------------------- 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 __RTL8723D_DM_H__ 16 | #define __RTL8723D_DM_H__ 17 | /* ************************************************************ 18 | * Description: 19 | * 20 | * This file is for 8723D dynamic mechanism only 21 | * 22 | * 23 | * ************************************************************ */ 24 | 25 | /* ************************************************************ 26 | * structure and define 27 | * ************************************************************ */ 28 | 29 | /* ************************************************************ 30 | * function prototype 31 | * ************************************************************ */ 32 | 33 | void rtl8723d_init_dm_priv(PADAPTER padapter); 34 | void rtl8723d_deinit_dm_priv(PADAPTER padapter); 35 | 36 | void rtl8723d_InitHalDm(PADAPTER padapter); 37 | void rtl8723d_HalDmWatchDog(PADAPTER padapter); 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /core/rtw_btcoex_wifionly.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 | #include 16 | #include 17 | #include 18 | 19 | void rtw_btcoex_wifionly_switchband_notify(PADAPTER padapter) 20 | { 21 | hal_btcoex_wifionly_switchband_notify(padapter); 22 | } 23 | 24 | void rtw_btcoex_wifionly_scan_notify(PADAPTER padapter) 25 | { 26 | hal_btcoex_wifionly_scan_notify(padapter); 27 | } 28 | 29 | void rtw_btcoex_wifionly_connect_notify(PADAPTER padapter) 30 | { 31 | hal_btcoex_wifionly_connect_notify(padapter); 32 | } 33 | 34 | void rtw_btcoex_wifionly_hw_config(PADAPTER padapter) 35 | { 36 | hal_btcoex_wifionly_hw_config(padapter); 37 | } 38 | 39 | void rtw_btcoex_wifionly_initialize(PADAPTER padapter) 40 | { 41 | hal_btcoex_wifionly_initlizevariables(padapter); 42 | } 43 | 44 | void rtw_btcoex_wifionly_AntInfoSetting(PADAPTER padapter) 45 | { 46 | hal_btcoex_wifionly_AntInfoSetting(padapter); 47 | } 48 | -------------------------------------------------------------------------------- /include/rtl8814a_led.h: -------------------------------------------------------------------------------- 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 __RTL8814A_LED_H__ 16 | #define __RTL8814A_LED_H__ 17 | 18 | #ifdef CONFIG_RTW_SW_LED 19 | /* ******************************************************************************** 20 | * Interface to manipulate LED objects. 21 | * ******************************************************************************** */ 22 | #ifdef CONFIG_USB_HCI 23 | void rtl8814au_InitSwLeds(PADAPTER padapter); 24 | void rtl8814au_DeInitSwLeds(PADAPTER padapter); 25 | #endif /* CONFIG_USB_HCI */ 26 | #ifdef CONFIG_PCI_HCI 27 | void rtl8814ae_InitSwLeds(PADAPTER padapter); 28 | void rtl8814ae_DeInitSwLeds(PADAPTER padapter); 29 | #endif /* CONFIG_PCI_HCI */ 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8814s_InitSwLeds(PADAPTER padapter); 32 | void rtl8814s_DeInitSwLeds(PADAPTER padapter); 33 | #endif /* CONFIG_SDIO_HCI */ 34 | 35 | #endif /* __RTL8814A_LED_H__ */ 36 | #endif /*CONFIG_RTW_SW_LED*/ 37 | -------------------------------------------------------------------------------- /platform/platform_arm_act_sdio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 | /* 16 | * Description: 17 | * This file can be applied to following platforms: 18 | * CONFIG_PLATFORM_ACTIONS_ATM703X 19 | */ 20 | #include 21 | 22 | #ifdef CONFIG_PLATFORM_ACTIONS_ATM705X 23 | extern int acts_wifi_init(void); 24 | extern void acts_wifi_cleanup(void); 25 | #endif 26 | 27 | /* 28 | * Return: 29 | * 0: power on successfully 30 | * others: power on failed 31 | */ 32 | int platform_wifi_power_on(void) 33 | { 34 | int ret = 0; 35 | 36 | #ifdef CONFIG_PLATFORM_ACTIONS_ATM705X 37 | ret = acts_wifi_init(); 38 | if (unlikely(ret < 0)) { 39 | pr_err("%s Failed to register the power control driver.\n", __FUNCTION__); 40 | goto exit; 41 | } 42 | #endif 43 | 44 | exit: 45 | return ret; 46 | } 47 | 48 | void platform_wifi_power_off(void) 49 | { 50 | #ifdef CONFIG_PLATFORM_ACTIONS_ATM705X 51 | acts_wifi_cleanup(); 52 | #endif 53 | } 54 | -------------------------------------------------------------------------------- /include/rtl8192c_led.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8192C_LED_H_ 21 | #define __RTL8192C_LED_H_ 22 | 23 | 24 | //================================================================================ 25 | // Interface to manipulate LED objects. 26 | //================================================================================ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8192cu_InitSwLeds(_adapter *padapter); 29 | void rtl8192cu_DeInitSwLeds(_adapter *padapter); 30 | #endif 31 | #ifdef CONFIG_PCI_HCI 32 | void rtl8192ce_InitSwLeds(_adapter *padapter); 33 | void rtl8192ce_DeInitSwLeds(_adapter *padapter); 34 | #endif 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /include/rtl8192d_led.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8192D_LED_H_ 21 | #define __RTL8192D_LED_H_ 22 | 23 | 24 | //================================================================================ 25 | // Interface to manipulate LED objects. 26 | //================================================================================ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8192du_InitSwLeds(_adapter *padapter); 29 | void rtl8192du_DeInitSwLeds(_adapter *padapter); 30 | #endif 31 | 32 | #ifdef CONFIG_PCI_HCI 33 | void rtl8192de_InitSwLeds(_adapter *padapter); 34 | void rtl8192de_DeInitSwLeds(_adapter *padapter); 35 | #endif 36 | 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /include/rtl8192f_led.h: -------------------------------------------------------------------------------- 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 19 | #include 20 | #include 21 | 22 | #ifdef CONFIG_RTW_SW_LED 23 | /* ******************************************************************************** 24 | * Interface to manipulate LED objects. 25 | * ******************************************************************************** */ 26 | #ifdef CONFIG_USB_HCI 27 | void rtl8192fu_InitSwLeds(PADAPTER padapter); 28 | void rtl8192fu_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | 31 | #ifdef CONFIG_SDIO_HCI 32 | void rtl8192fs_InitSwLeds(PADAPTER padapter); 33 | void rtl8192fs_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | 36 | #ifdef CONFIG_PCI_HCI 37 | void rtl8192fe_InitSwLeds(PADAPTER padapter); 38 | void rtl8192fe_DeInitSwLeds(PADAPTER padapter); 39 | #endif 40 | #endif /*#ifdef CONFIG_RTW_SW_LED*/ 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8192e/HalHWImg8192E_MAC.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #if (RTL8192E_SUPPORT == 1) 22 | #ifndef __INC_MP_MAC_HW_IMG_8192E_H 23 | #define __INC_MP_MAC_HW_IMG_8192E_H 24 | 25 | //static BOOLEAN CheckCondition(const u4Byte Condition, const u4Byte Hex); 26 | 27 | /****************************************************************************** 28 | * MAC_REG.TXT 29 | ******************************************************************************/ 30 | 31 | void 32 | ODM_ReadAndConfig_MP_8192E_MAC_REG( // TC: Test Chip, MP: MP Chip 33 | IN PDM_ODM_T pDM_Odm 34 | ); 35 | 36 | #endif 37 | #endif // end of HWIMG_SUPPORT 38 | 39 | -------------------------------------------------------------------------------- /hal/phydm/phydm_noisemonitor.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | #ifndef __ODMNOISEMONITOR_H__ 26 | #define __ODMNOISEMONITOR_H__ 27 | 28 | #define VALID_CNT 5 29 | 30 | struct noise_level { 31 | u8 value[PHYDM_MAX_RF_PATH]; 32 | s8 sval[PHYDM_MAX_RF_PATH]; 33 | s32 sum[PHYDM_MAX_RF_PATH]; 34 | u8 valid[PHYDM_MAX_RF_PATH]; 35 | u8 valid_cnt[PHYDM_MAX_RF_PATH]; 36 | }; 37 | 38 | struct odm_noise_monitor { 39 | s8 noise[PHYDM_MAX_RF_PATH]; 40 | s16 noise_all; 41 | }; 42 | 43 | s16 odm_inband_noise_monitor(void *dm_void, u8 is_pause_dig, u8 igi_value, 44 | u32 max_time); 45 | 46 | void phydm_noisy_detection(void *dm_void); 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /include/pci_hal.h: -------------------------------------------------------------------------------- 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 __PCI_HAL_H__ 16 | #define __PCI_HAL_H__ 17 | 18 | #ifdef CONFIG_RTL8188E 19 | void rtl8188ee_set_hal_ops(_adapter *padapter); 20 | #endif 21 | 22 | #if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) 23 | void rtl8812ae_set_hal_ops(_adapter *padapter); 24 | #endif 25 | 26 | #if defined(CONFIG_RTL8192E) 27 | void rtl8192ee_set_hal_ops(_adapter *padapter); 28 | #endif 29 | 30 | #if defined(CONFIG_RTL8192F) 31 | void rtl8192fe_set_hal_ops(_adapter *padapter); 32 | #endif 33 | 34 | #ifdef CONFIG_RTL8723B 35 | void rtl8723be_set_hal_ops(_adapter *padapter); 36 | #endif 37 | 38 | #ifdef CONFIG_RTL8723D 39 | void rtl8723de_set_hal_ops(_adapter *padapter); 40 | #endif 41 | 42 | #ifdef CONFIG_RTL8814A 43 | void rtl8814ae_set_hal_ops(_adapter *padapter); 44 | #endif 45 | 46 | #ifdef CONFIG_RTL8822B 47 | void rtl8822be_set_hal_ops(PADAPTER padapter); 48 | #endif 49 | 50 | u8 rtw_set_hal_ops(_adapter *padapter); 51 | 52 | #endif /* __PCIE_HAL_H__ */ 53 | -------------------------------------------------------------------------------- /hal/phydm/rtl8192e/halhwimg8192e_mac.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | /*Image2HeaderVersion: R3 1.5.0*/ 27 | #if (RTL8192E_SUPPORT == 1) 28 | #ifndef __INC_MP_MAC_HW_IMG_8192E_H 29 | #define __INC_MP_MAC_HW_IMG_8192E_H 30 | 31 | /****************************************************************************** 32 | * mac_reg.TXT 33 | ******************************************************************************/ 34 | 35 | /* tc: Test Chip, mp: mp Chip*/ 36 | void 37 | odm_read_and_config_mp_8192e_mac_reg(struct dm_struct *dm); 38 | u32 odm_get_version_mp_8192e_mac_reg(void); 39 | 40 | #endif 41 | #endif /* end of HWIMG_SUPPORT*/ 42 | 43 | -------------------------------------------------------------------------------- /include/rtl8812a_led.h: -------------------------------------------------------------------------------- 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 __RTL8812A_LED_H__ 16 | #define __RTL8812A_LED_H__ 17 | #ifdef CONFIG_RTW_LED 18 | #ifdef CONFIG_RTW_SW_LED 19 | /* ******************************************************************************** 20 | * Interface to manipulate LED objects. 21 | * ******************************************************************************** */ 22 | #ifdef CONFIG_USB_HCI 23 | void rtl8812au_InitSwLeds(PADAPTER padapter); 24 | void rtl8812au_DeInitSwLeds(PADAPTER padapter); 25 | #endif 26 | #ifdef CONFIG_PCI_HCI 27 | void rtl8812ae_InitSwLeds(PADAPTER padapter); 28 | void rtl8812ae_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8821as_InitSwLeds(PADAPTER padapter); 32 | void rtl8821as_DeInitSwLeds(PADAPTER padapter); 33 | #endif 34 | #endif/*CONFIG_RTW_SW_LED*/ 35 | #endif/*#ifdef CONFIG_RTW_LED*/ 36 | 37 | #ifdef CONFIG_SDIO_HCI 38 | void rtl8821as_init_led_circuit(PADAPTER adapter); 39 | #endif 40 | 41 | #endif /*__RTL8812A_LED_H__*/ 42 | -------------------------------------------------------------------------------- /platform/platform_zte_zx296716_sdio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 2018 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 | #include /* pr_info(() */ 16 | #include /* msleep() */ 17 | #include "platform_zte_zx296716_sdio.h" /* sdio_reinit() and etc */ 18 | 19 | 20 | /* 21 | * Return: 22 | * 0: power on successfully 23 | * others: power on failed 24 | */ 25 | int platform_wifi_power_on(void) 26 | { 27 | int ret = 0; 28 | 29 | pr_info("######%s: disable--1--\n", __func__); 30 | extern_wifi_set_enable(0); 31 | /*msleep(500);*/ /* add in function:extern_wifi_set_enable */ 32 | pr_info("######%s: enable--2---\n", __func__); 33 | extern_wifi_set_enable(1); 34 | /*msleep(500);*/ 35 | sdio_reinit(); 36 | 37 | return ret; 38 | } 39 | 40 | void platform_wifi_power_off(void) 41 | { 42 | int card_val; 43 | 44 | pr_info("######%s:\n", __func__); 45 | #ifdef CONFIG_A16T03_BOARD 46 | card_val = sdio_host_is_null(); 47 | if (card_val) 48 | remove_card(); 49 | #endif /* CONFIG_A16T03_BOARD */ 50 | extern_wifi_set_enable(0); 51 | 52 | /*msleep(500);*/ 53 | } 54 | -------------------------------------------------------------------------------- /include/ethernet.h: -------------------------------------------------------------------------------- 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 | /*! \file */ 16 | #ifndef __INC_ETHERNET_H 17 | #define __INC_ETHERNET_H 18 | 19 | #define ETHERNET_ADDRESS_LENGTH 6 /* !< Ethernet Address Length */ 20 | #define ETHERNET_HEADER_SIZE 14 /* !< Ethernet Header Length */ 21 | #define LLC_HEADER_SIZE 6 /* !< LLC Header Length */ 22 | #define TYPE_LENGTH_FIELD_SIZE 2 /* !< Type/Length Size */ 23 | #define MINIMUM_ETHERNET_PACKET_SIZE 60 /* !< Minimum Ethernet Packet Size */ 24 | #define MAXIMUM_ETHERNET_PACKET_SIZE 1514 /* !< Maximum Ethernet Packet Size */ 25 | 26 | #define RT_ETH_IS_MULTICAST(_pAddr) ((((UCHAR *)(_pAddr))[0]&0x01) != 0) /* !< Is Multicast Address? */ 27 | #define RT_ETH_IS_BROADCAST(_pAddr) (\ 28 | ((UCHAR *)(_pAddr))[0] == 0xff && \ 29 | ((UCHAR *)(_pAddr))[1] == 0xff && \ 30 | ((UCHAR *)(_pAddr))[2] == 0xff && \ 31 | ((UCHAR *)(_pAddr))[3] == 0xff && \ 32 | ((UCHAR *)(_pAddr))[4] == 0xff && \ 33 | ((UCHAR *)(_pAddr))[5] == 0xff) /* !< Is Broadcast Address? */ 34 | 35 | 36 | #endif /* #ifndef __INC_ETHERNET_H */ 37 | -------------------------------------------------------------------------------- /platform/platform_aml_s905_sdio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 - 2018 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 | #include /* pr_info(() */ 16 | #include /* msleep() */ 17 | #include "platform_aml_s905_sdio.h" /* sdio_reinit() and etc */ 18 | 19 | 20 | /* 21 | * Return: 22 | * 0: power on successfully 23 | * others: power on failed 24 | */ 25 | int platform_wifi_power_on(void) 26 | { 27 | int ret = 0; 28 | 29 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)) 30 | ret = wifi_setup_dt(); 31 | if (ret) { 32 | pr_err("%s: setup dt failed!!(%d)\n", __func__, ret); 33 | return -1; 34 | } 35 | #endif /* kernel < 3.14.0 */ 36 | 37 | #if 0 /* Seems redundancy? Already done before insert driver */ 38 | pr_info("######%s:\n", __func__); 39 | extern_wifi_set_enable(0); 40 | msleep(500); 41 | extern_wifi_set_enable(1); 42 | msleep(500); 43 | sdio_reinit(); 44 | #endif 45 | 46 | return ret; 47 | } 48 | 49 | void platform_wifi_power_off(void) 50 | { 51 | #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)) 52 | wifi_teardown_dt(); 53 | #endif /* kernel < 3.14.0 */ 54 | } 55 | -------------------------------------------------------------------------------- /platform/platform_ARM_WMT_sdio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 | #include 16 | #include 17 | #include 18 | 19 | extern void wmt_detect_sdio2(void); 20 | extern void force_remove_sdio2(void); 21 | 22 | int platform_wifi_power_on(void) 23 | { 24 | int err = 0; 25 | err = gpio_request(WMT_PIN_GP62_SUSGPIO1, "wifi_chip_en"); 26 | if (err < 0) { 27 | printk("request gpio for rtl8188eu failed!\n"); 28 | return err; 29 | } 30 | gpio_direction_output(WMT_PIN_GP62_SUSGPIO1, 0);/* pull sus_gpio1 to 0 to open vcc_wifi. */ 31 | printk("power on rtl8189.\n"); 32 | msleep(500); 33 | wmt_detect_sdio2(); 34 | printk("[rtl8189es] %s: new card, power on.\n", __FUNCTION__); 35 | return err; 36 | } 37 | 38 | void platform_wifi_power_off(void) 39 | { 40 | force_remove_sdio2(); 41 | 42 | gpio_direction_output(WMT_PIN_GP62_SUSGPIO1, 1);/* pull sus_gpio1 to 1 to close vcc_wifi. */ 43 | printk("power off rtl8189.\n"); 44 | gpio_free(WMT_PIN_GP62_SUSGPIO1); 45 | printk("[rtl8189es] %s: remove card, power off.\n", __FUNCTION__); 46 | } 47 | -------------------------------------------------------------------------------- /include/rtl8188f_led.h: -------------------------------------------------------------------------------- 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 __RTL8188F_LED_H__ 16 | #define __RTL8188F_LED_H__ 17 | #ifdef CONFIG_RTW_SW_LED 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | 24 | /* ******************************************************************************** 25 | * Interface to manipulate LED objects. 26 | * ******************************************************************************** */ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8188fu_InitSwLeds(PADAPTER padapter); 29 | void rtl8188fu_DeInitSwLeds(PADAPTER padapter); 30 | #endif 31 | #ifdef CONFIG_SDIO_HCI 32 | void rtl8188fs_InitSwLeds(PADAPTER padapter); 33 | void rtl8188fs_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_GSPI_HCI 36 | void rtl8188fs_InitSwLeds(PADAPTER padapter); 37 | void rtl8188fs_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | #ifdef CONFIG_PCI_HCI 40 | void rtl8188fe_InitSwLeds(PADAPTER padapter); 41 | void rtl8188fe_DeInitSwLeds(PADAPTER padapter); 42 | #endif 43 | 44 | #endif 45 | #endif/*CONFIG_RTW_SW_LED*/ 46 | -------------------------------------------------------------------------------- /include/rtl8723b_led.h: -------------------------------------------------------------------------------- 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 __RTL8723B_LED_H__ 16 | #define __RTL8723B_LED_H__ 17 | 18 | #include 19 | #include 20 | #include 21 | 22 | #ifdef CONFIG_RTW_SW_LED 23 | /* ******************************************************************************** 24 | * Interface to manipulate LED objects. 25 | * ******************************************************************************** */ 26 | #ifdef CONFIG_USB_HCI 27 | void rtl8723bu_InitSwLeds(PADAPTER padapter); 28 | void rtl8723bu_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8723bs_InitSwLeds(PADAPTER padapter); 32 | void rtl8723bs_DeInitSwLeds(PADAPTER padapter); 33 | #endif 34 | #ifdef CONFIG_GSPI_HCI 35 | void rtl8723bs_InitSwLeds(PADAPTER padapter); 36 | void rtl8723bs_DeInitSwLeds(PADAPTER padapter); 37 | #endif 38 | #ifdef CONFIG_PCI_HCI 39 | void rtl8723be_InitSwLeds(PADAPTER padapter); 40 | void rtl8723be_DeInitSwLeds(PADAPTER padapter); 41 | #endif 42 | 43 | #endif 44 | #endif/*CONFIG_RTW_SW_LED*/ 45 | -------------------------------------------------------------------------------- /hal/rtl8192e/hal8192e_fw.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #ifdef CONFIG_RTL8192E 22 | 23 | #ifndef _FW_HEADER_8192E_H 24 | #define _FW_HEADER_8192E_H 25 | 26 | #ifdef LOAD_FW_HEADER_FROM_DRIVER 27 | #if (defined(CONFIG_AP_WOWLAN) || (DM_ODM_SUPPORT_TYPE & (ODM_AP))) 28 | extern u8 array_mp_8192e_fw_ap[25816]; 29 | extern u32 array_length_mp_8192e_fw_ap; 30 | #endif 31 | 32 | #if (DM_ODM_SUPPORT_TYPE & (ODM_WIN)) || (DM_ODM_SUPPORT_TYPE & (ODM_CE)) 33 | extern u8 array_mp_8192e_fw_nic[32286]; 34 | extern u32 array_length_mp_8192e_fw_nic; 35 | extern u8 array_mp_8192e_fw_nic_setupbox[28554]; 36 | extern u32 array_length_mp_8192e_fw_nic_setupbox; 37 | extern u8 array_mp_8192e_fw_wowlan[29008]; 38 | extern u32 array_length_mp_8192e_fw_wowlan; 39 | #endif 40 | #endif /* end of LOAD_FW_HEADER_FROM_DRIVER */ 41 | 42 | #endif 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /include/rtl8710b_led.h: -------------------------------------------------------------------------------- 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 __RTL8710B_LED_H__ 16 | #define __RTL8710B_LED_H__ 17 | 18 | #include 19 | #include 20 | #include 21 | 22 | #ifdef CONFIG_RTW_SW_LED 23 | /* ******************************************************************************** 24 | * Interface to manipulate LED objects. 25 | * ******************************************************************************** */ 26 | #ifdef CONFIG_USB_HCI 27 | void rtl8710bu_InitSwLeds(PADAPTER padapter); 28 | void rtl8710bu_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8710bs_InitSwLeds(PADAPTER padapter); 32 | void rtl8710bs_DeInitSwLeds(PADAPTER padapter); 33 | #endif 34 | #ifdef CONFIG_GSPI_HCI 35 | void rtl8710bs_InitSwLeds(PADAPTER padapter); 36 | void rtl8710bs_DeInitSwLeds(PADAPTER padapter); 37 | #endif 38 | #ifdef CONFIG_PCI_HCI 39 | void rtl8710be_InitSwLeds(PADAPTER padapter); 40 | void rtl8710be_DeInitSwLeds(PADAPTER padapter); 41 | #endif 42 | 43 | #endif /*#ifdef CONFIG_RTW_SW_LED*/ 44 | #endif 45 | -------------------------------------------------------------------------------- /include/rtl8723d_led.h: -------------------------------------------------------------------------------- 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 __RTL8723D_LED_H__ 16 | #define __RTL8723D_LED_H__ 17 | 18 | #include 19 | #include 20 | #include 21 | 22 | #ifdef CONFIG_RTW_SW_LED 23 | /* ******************************************************************************** 24 | * Interface to manipulate LED objects. 25 | * ******************************************************************************** */ 26 | #ifdef CONFIG_USB_HCI 27 | void rtl8723du_InitSwLeds(PADAPTER padapter); 28 | void rtl8723du_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8723ds_InitSwLeds(PADAPTER padapter); 32 | void rtl8723ds_DeInitSwLeds(PADAPTER padapter); 33 | #endif 34 | #ifdef CONFIG_GSPI_HCI 35 | void rtl8723ds_InitSwLeds(PADAPTER padapter); 36 | void rtl8723ds_DeInitSwLeds(PADAPTER padapter); 37 | #endif 38 | #ifdef CONFIG_PCI_HCI 39 | void rtl8723de_InitSwLeds(PADAPTER padapter); 40 | void rtl8723de_DeInitSwLeds(PADAPTER padapter); 41 | #endif 42 | 43 | #endif /*#ifdef CONFIG_RTW_SW_LED*/ 44 | #endif 45 | -------------------------------------------------------------------------------- /include/sdio_hal.h: -------------------------------------------------------------------------------- 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 __SDIO_HAL_H__ 16 | #define __SDIO_HAL_H__ 17 | 18 | void sd_int_dpc(PADAPTER padapter); 19 | u8 rtw_set_hal_ops(_adapter *padapter); 20 | 21 | #ifdef CONFIG_RTL8188E 22 | void rtl8188es_set_hal_ops(PADAPTER padapter); 23 | #endif 24 | 25 | #ifdef CONFIG_RTL8723B 26 | void rtl8723bs_set_hal_ops(PADAPTER padapter); 27 | #endif 28 | 29 | #ifdef CONFIG_RTL8821A 30 | void rtl8821as_set_hal_ops(PADAPTER padapter); 31 | #endif 32 | 33 | #ifdef CONFIG_RTL8192E 34 | void rtl8192es_set_hal_ops(PADAPTER padapter); 35 | #endif 36 | 37 | #ifdef CONFIG_RTL8703B 38 | void rtl8703bs_set_hal_ops(PADAPTER padapter); 39 | #endif 40 | 41 | #ifdef CONFIG_RTL8723D 42 | void rtl8723ds_set_hal_ops(PADAPTER padapter); 43 | #endif 44 | 45 | #ifdef CONFIG_RTL8188F 46 | void rtl8188fs_set_hal_ops(PADAPTER padapter); 47 | #endif 48 | 49 | #ifdef CONFIG_RTL8188GTV 50 | void rtl8188gtvs_set_hal_ops(PADAPTER padapter); 51 | #endif 52 | 53 | #ifdef CONFIG_RTL8192F 54 | void rtl8192fs_set_hal_ops(PADAPTER padapter); 55 | #endif 56 | 57 | #endif /* __SDIO_HAL_H__ */ 58 | -------------------------------------------------------------------------------- /include/rtl8703b_led.h: -------------------------------------------------------------------------------- 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 __RTL8703B_LED_H__ 16 | #define __RTL8703B_LED_H__ 17 | 18 | #include 19 | #include 20 | #include 21 | 22 | #ifdef CONFIG_RTW_SW_LED 23 | /* ******************************************************************************** 24 | * Interface to manipulate LED objects. 25 | * ******************************************************************************** */ 26 | #ifdef CONFIG_USB_HCI 27 | void rtl8703bu_InitSwLeds(PADAPTER padapter); 28 | void rtl8703bu_DeInitSwLeds(PADAPTER padapter); 29 | #endif 30 | #ifdef CONFIG_SDIO_HCI 31 | void rtl8703bs_InitSwLeds(PADAPTER padapter); 32 | void rtl8703bs_DeInitSwLeds(PADAPTER padapter); 33 | #endif 34 | #ifdef CONFIG_GSPI_HCI 35 | void rtl8703bs_InitSwLeds(PADAPTER padapter); 36 | void rtl8703bs_DeInitSwLeds(PADAPTER padapter); 37 | #endif 38 | #ifdef CONFIG_PCI_HCI 39 | void rtl8703be_InitSwLeds(PADAPTER padapter); 40 | void rtl8703be_DeInitSwLeds(PADAPTER padapter); 41 | #endif 42 | 43 | #endif/*CONFIG_RTW_SW_LED*/ 44 | #endif /*__RTL8703B_LED_H__*/ 45 | -------------------------------------------------------------------------------- /include/rtl8192c_rf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8192C_RF_H_ 21 | #define _RTL8192C_RF_H_ 22 | 23 | 24 | // 25 | // RF RL6052 Series API 26 | // 27 | void rtl8192c_RF_ChangeTxPath( IN PADAPTER Adapter, 28 | IN u16 DataRate); 29 | void rtl8192c_PHY_RF6052SetBandwidth( 30 | IN PADAPTER Adapter, 31 | IN CHANNEL_WIDTH Bandwidth); 32 | VOID rtl8192c_PHY_RF6052SetCckTxPower( 33 | IN PADAPTER Adapter, 34 | IN u8* pPowerlevel); 35 | VOID rtl8192c_PHY_RF6052SetOFDMTxPower( 36 | IN PADAPTER Adapter, 37 | IN u8* pPowerLevel, 38 | IN u8 Channel); 39 | int PHY_RF6052_Config8192C( IN PADAPTER Adapter ); 40 | 41 | /*--------------------------Exported Function prototype---------------------*/ 42 | 43 | 44 | #endif/* End of HalRf.h */ 45 | 46 | -------------------------------------------------------------------------------- /include/rtl8723a_recv.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8723A_RECV_H__ 21 | #define __RTL8723A_RECV_H__ 22 | 23 | #include 24 | 25 | 26 | #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 27 | #ifdef CONFIG_DIRECT_RECV 28 | void rtl8723as_recv(PADAPTER padapter, struct recv_buf *precvbuf); 29 | #endif 30 | s32 rtl8723as_init_recv_priv(PADAPTER padapter); 31 | void rtl8723as_free_recv_priv(PADAPTER padapter); 32 | #endif 33 | 34 | void rtl8192c_query_rx_phy_status(union recv_frame *prframe, struct phy_stat *pphy_stat); 35 | void rtl8192c_process_phy_info(PADAPTER padapter, void *prframe); 36 | #ifdef CONFIG_USB_HCI 37 | void update_recvframe_attrib(union recv_frame *precvframe, struct recv_stat *prxstat); 38 | void update_recvframe_phyinfo(union recv_frame *precvframe, struct phy_stat *pphy_info); 39 | #endif 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /include/rtl8723a_dm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8723A_DM_H__ 21 | #define __RTL8723A_DM_H__ 22 | //============================================================ 23 | // Description: 24 | // 25 | // This file is for 8723A dynamic mechanism only 26 | // 27 | // 28 | //============================================================ 29 | 30 | //============================================================ 31 | // structure and define 32 | //============================================================ 33 | //============================================================ 34 | // function prototype 35 | //============================================================ 36 | 37 | void rtl8723a_init_dm_priv(PADAPTER padapter); 38 | void rtl8723a_deinit_dm_priv(PADAPTER padapter); 39 | 40 | void rtl8723a_InitHalDm(PADAPTER padapter); 41 | void rtl8723a_HalDmWatchDog(PADAPTER padapter); 42 | 43 | 44 | 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /hal/phydm/rtl8192e/phydm_regconfig8192e.h: -------------------------------------------------------------------------------- 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 __INC_ODM_REGCONFIG_H_8192E 16 | #define __INC_ODM_REGCONFIG_H_8192E 17 | 18 | #if (RTL8192E_SUPPORT == 1) 19 | 20 | void odm_config_rf_reg_8192e(struct dm_struct *dm, u32 addr, u32 data, 21 | enum rf_path RF_PATH, u32 reg_addr); 22 | 23 | void odm_config_rf_radio_a_8192e(struct dm_struct *dm, u32 addr, u32 data); 24 | 25 | void odm_config_rf_radio_b_8192e(struct dm_struct *dm, u32 addr, u32 data); 26 | 27 | void odm_config_mac_8192e(struct dm_struct *dm, u32 addr, u8 data); 28 | 29 | void odm_config_bb_agc_8192e(struct dm_struct *dm, u32 addr, u32 bitmask, 30 | u32 data); 31 | 32 | void odm_config_bb_phy_reg_pg_8192e(struct dm_struct *dm, u32 band, u32 rf_path, 33 | u32 tx_num, u32 addr, u32 bitmask, 34 | u32 data); 35 | 36 | void odm_config_bb_phy_8192e(struct dm_struct *dm, u32 addr, u32 bitmask, 37 | u32 data); 38 | 39 | void odm_config_bb_txpwr_lmt_8192e(struct dm_struct *dm, u8 *regulation, 40 | u8 *band, u8 *bandwidth, u8 *rate_section, 41 | u8 *rf_path, u8 *channel, u8 *power_limit); 42 | 43 | #endif 44 | #endif /* end of SUPPORT */ 45 | -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/Mp_Precomp.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __MP_PRECOMP_H__ 21 | #define __MP_PRECOMP_H__ 22 | 23 | #include 24 | #include 25 | 26 | #define BT_TMP_BUF_SIZE 100 27 | 28 | #ifdef PLATFORM_LINUX 29 | #define rsprintf snprintf 30 | #elif defined(PLATFORM_WINDOWS) 31 | #define rsprintf sprintf_s 32 | #endif 33 | 34 | #define DCMD_Printf DBG_BT_INFO 35 | 36 | #define delay_ms(ms) rtw_mdelay_os(ms) 37 | 38 | #ifdef bEnable 39 | #undef bEnable 40 | #endif 41 | 42 | #include "HalBtcOutSrc.h" 43 | #include "HalBtc8188c2Ant.h" 44 | #include "HalBtc8192d2Ant.h" 45 | #include "HalBtc8192e1Ant.h" 46 | #include "HalBtc8192e2Ant.h" 47 | #include "HalBtc8723a1Ant.h" 48 | #include "HalBtc8723a2Ant.h" 49 | #include "HalBtc8723b1Ant.h" 50 | #include "HalBtc8723b2Ant.h" 51 | #include "HalBtc8812a1Ant.h" 52 | #include "HalBtc8812a2Ant.h" 53 | #include "HalBtc8821a1Ant.h" 54 | #include "HalBtc8821a2Ant.h" 55 | 56 | #endif // __MP_PRECOMP_H__ 57 | -------------------------------------------------------------------------------- /include/rtl8723a_led.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8723A_LED_H__ 21 | #define __RTL8723A_LED_H__ 22 | 23 | 24 | //================================================================================ 25 | // Interface to manipulate LED objects. 26 | //================================================================================ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8723au_InitSwLeds(PADAPTER padapter); 29 | void rtl8723au_DeInitSwLeds(PADAPTER padapter); 30 | #endif 31 | #ifdef CONFIG_PCI_HCI 32 | void rtl8723ae_InitSwLeds(PADAPTER padapter); 33 | void rtl8723ae_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8723as_InitSwLeds(PADAPTER padapter); 37 | void rtl8723as_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | #ifdef CONFIG_GSPI_HCI 40 | void rtl8723as_InitSwLeds(PADAPTER padapter); 41 | void rtl8723as_DeInitSwLeds(PADAPTER padapter); 42 | #endif 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /hal/phydm/phydm_dynamicbbpowersaving.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #ifndef __PHYDMDYNAMICBBPOWERSAVING_H__ 22 | #define __PHYDMDYNAMICBBPOWERSAVING_H__ 23 | 24 | #define DYNAMIC_BBPWRSAV_VERSION "1.0" 25 | 26 | typedef struct _Dynamic_Power_Saving_ 27 | { 28 | u1Byte PreCCAState; 29 | u1Byte CurCCAState; 30 | 31 | u1Byte PreRFState; 32 | u1Byte CurRFState; 33 | 34 | int Rssi_val_min; 35 | 36 | u1Byte initialize; 37 | u4Byte Reg874,RegC70,Reg85C,RegA74; 38 | 39 | }PS_T,*pPS_T; 40 | 41 | #define dm_RF_Saving ODM_RF_Saving 42 | 43 | void ODM_RF_Saving( 44 | IN PVOID pDM_VOID, 45 | IN u1Byte bForceInNormal 46 | ); 47 | 48 | VOID 49 | odm_DynamicBBPowerSavingInit( 50 | IN PVOID pDM_VOID 51 | ); 52 | 53 | VOID 54 | odm_DynamicBBPowerSaving( 55 | IN PVOID pDM_VOID 56 | ); 57 | 58 | VOID 59 | odm_1R_CCA( 60 | IN PVOID pDM_VOID 61 | ); 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /hal/OUTSRC/odm_RegDefine11AC.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #ifndef __ODM_REGDEFINE11AC_H__ 22 | #define __ODM_REGDEFINE11AC_H__ 23 | 24 | //2 RF REG LIST 25 | 26 | 27 | 28 | //2 BB REG LIST 29 | //PAGE 8 30 | #define ODM_REG_CCK_RPT_FORMAT_11AC 0x804 31 | #define ODM_REG_BB_RX_PATH_11AC 0x808 32 | //PAGE 9 33 | #define ODM_REG_OFDM_FA_RST_11AC 0x9A4 34 | //PAGE A 35 | #define ODM_REG_CCK_CCA_11AC 0xA0A 36 | #define ODM_REG_CCK_FA_RST_11AC 0xA2C 37 | #define ODM_REG_CCK_FA_11AC 0xA5C 38 | //PAGE C 39 | #define ODM_REG_IGI_A_11AC 0xC50 40 | //PAGE E 41 | #define ODM_REG_IGI_B_11AC 0xE50 42 | //PAGE F 43 | #define ODM_REG_OFDM_FA_11AC 0xF48 44 | 45 | 46 | //2 MAC REG LIST 47 | #define ODM_REG_RESP_TX_11AC 0x6D8 48 | 49 | 50 | 51 | //DIG Related 52 | #define ODM_BIT_IGI_11AC 0xFFFFFFFF 53 | #define ODM_BIT_CCK_RPT_FORMAT_11AC BIT16 54 | #define ODM_BIT_BB_RX_PATH_11AC 0xF 55 | 56 | #endif 57 | 58 | -------------------------------------------------------------------------------- /include/pci_osintf.h: -------------------------------------------------------------------------------- 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 __PCI_OSINTF_H 16 | #define __PCI_OSINTF_H 17 | 18 | #ifdef RTK_129X_PLATFORM 19 | #define PCIE_SLOT1_MEM_START 0x9804F000 20 | #define PCIE_SLOT1_MEM_LEN 0x1000 21 | #define PCIE_SLOT1_CTRL_START 0x9804EC00 22 | 23 | #define PCIE_SLOT2_MEM_START 0x9803C000 24 | #define PCIE_SLOT2_MEM_LEN 0x1000 25 | #define PCIE_SLOT2_CTRL_START 0x9803BC00 26 | 27 | #define PCIE_MASK_OFFSET 0x100 /* mask offset from CTRL_START */ 28 | #define PCIE_TRANSLATE_OFFSET 0x104 /* translate offset from CTRL_START */ 29 | #endif 30 | 31 | #define PCI_BC_CLK_REQ BIT0 32 | #define PCI_BC_ASPM_L0s BIT1 33 | #define PCI_BC_ASPM_L1 BIT2 34 | #define PCI_BC_ASPM_L1Off BIT3 35 | //#define PCI_BC_ASPM_LTR BIT4 36 | //#define PCI_BC_ASPM_OBFF BIT5 37 | 38 | void rtw_pci_disable_aspm(_adapter *padapter); 39 | void rtw_pci_enable_aspm(_adapter *padapter); 40 | void PlatformClearPciPMEStatus(PADAPTER Adapter); 41 | void rtw_pci_aspm_config(_adapter *padapter); 42 | void rtw_pci_aspm_config_l1off_general(_adapter *padapter, u8 eanble); 43 | #ifdef CONFIG_PCI_DYNAMIC_ASPM 44 | void rtw_pci_aspm_config_dynamic_l1_ilde_time(_adapter *padapter); 45 | #endif 46 | #ifdef CONFIG_64BIT_DMA 47 | u8 PlatformEnableDMA64(PADAPTER Adapter); 48 | #endif 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8192e/odm_RTL8192E.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __ODM_RTL8192E_H__ 21 | #define __ODM_RTL8192E_H__ 22 | 23 | #define OFDMCCA_TH 500 24 | #define BW_Ind_Bias 500 25 | #define MF_USC 2 26 | #define MF_LSC 1 27 | #define MF_USC_LSC 0 28 | #define Monitor_TIME 30 29 | 30 | VOID 31 | odm_Write_Dynamic_CCA( 32 | IN PDM_ODM_T pDM_Odm, 33 | IN u1Byte CurrentMFstate 34 | ); 35 | 36 | VOID 37 | odm_PrimaryCCA_Check_Init( 38 | IN PDM_ODM_T pDM_Odm 39 | ); 40 | 41 | VOID 42 | odm_DynamicPrimaryCCA_Check( 43 | IN PDM_ODM_T pDM_Odm 44 | ); 45 | 46 | #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 47 | 48 | VOID 49 | odm_DynamicPrimaryCCAMP( 50 | IN PDM_ODM_T pDM_Odm 51 | ); 52 | 53 | #elif (DM_ODM_SUPPORT_TYPE == ODM_AP) 54 | 55 | VOID 56 | odm_DynamicPrimaryCCAAP( 57 | IN PDM_ODM_T pDM_Odm 58 | ); 59 | 60 | VOID 61 | odm_Intf_Detection( 62 | IN PDM_ODM_T pDM_Odm 63 | ); 64 | 65 | #endif 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /include/rtl8192d_rf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8192D_RF_H_ 21 | #define _RTL8192D_RF_H_ 22 | 23 | 24 | // 25 | // RF RL6052 Series API 26 | // 27 | void rtl8192d_RF_ChangeTxPath( IN PADAPTER Adapter, 28 | IN u16 DataRate); 29 | void rtl8192d_PHY_RF6052SetBandwidth( 30 | IN PADAPTER Adapter, 31 | IN CHANNEL_WIDTH Bandwidth); 32 | VOID rtl8192d_PHY_RF6052SetCckTxPower( 33 | IN PADAPTER Adapter, 34 | IN u8* pPowerlevel); 35 | VOID rtl8192d_PHY_RF6052SetOFDMTxPower( 36 | IN PADAPTER Adapter, 37 | IN u8* pPowerLevel, 38 | IN u8 Channel); 39 | int PHY_RF6052_Config8192D( IN PADAPTER Adapter ); 40 | 41 | BOOLEAN rtl8192d_PHY_EnableAnotherPHY(IN PADAPTER Adapter, IN BOOLEAN bMac0); 42 | 43 | void rtl8192d_PHY_PowerDownAnotherPHY(IN PADAPTER Adapter, IN BOOLEAN bMac0); 44 | 45 | 46 | /*--------------------------Exported Function prototype---------------------*/ 47 | 48 | 49 | #endif/* End of HalRf.h */ 50 | 51 | -------------------------------------------------------------------------------- /include/sdio_ops_xp.h: -------------------------------------------------------------------------------- 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 _SDIO_OPS_XP_H_ 16 | #define _SDIO_OPS_XP_H_ 17 | 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | 24 | #ifdef PLATFORM_OS_XP 25 | 26 | 27 | extern u8 sdbus_cmd52r_xp(struct intf_priv *pintfpriv, u32 addr); 28 | 29 | 30 | extern void sdbus_cmd52w_xp(struct intf_priv *pintfpriv, u32 addr, u8 val8); 31 | 32 | 33 | uint sdbus_read_blocks_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 34 | 35 | extern uint sdbus_read_bytes_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 36 | 37 | 38 | extern uint sdbus_write_blocks_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf, u8 async); 39 | 40 | extern uint sdbus_write_bytes_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 41 | extern u8 sdbus_func1cmd52r_xp(struct intf_priv *pintfpriv, u32 addr); 42 | extern void sdbus_func1cmd52w_xp(struct intf_priv *pintfpriv, u32 addr, u8 val8); 43 | extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata); 44 | extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata); 45 | extern void sdio_read_int(_adapter *padapter, u32 addr, u8 sz, void *pdata); 46 | 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /include/sdio_ops_ce.h: -------------------------------------------------------------------------------- 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 _SDIO_OPS_WINCE_H_ 16 | #define _SDIO_OPS_WINCE_H_ 17 | 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | 24 | #ifdef PLATFORM_OS_CE 25 | 26 | 27 | extern u8 sdbus_cmd52r_ce(struct intf_priv *pintfpriv, u32 addr); 28 | 29 | 30 | extern void sdbus_cmd52w_ce(struct intf_priv *pintfpriv, u32 addr, u8 val8); 31 | 32 | 33 | uint sdbus_read_blocks_to_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 34 | 35 | extern uint sdbus_read_bytes_to_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 36 | 37 | 38 | extern uint sdbus_write_blocks_from_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf, u8 async); 39 | 40 | extern uint sdbus_write_bytes_from_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 41 | extern u8 sdbus_func1cmd52r_ce(struct intf_priv *pintfpriv, u32 addr); 42 | extern void sdbus_func1cmd52w_ce(struct intf_priv *pintfpriv, u32 addr, u8 val8); 43 | extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata); 44 | extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt, void *pdata); 45 | extern void sdio_read_int(_adapter *padapter, u32 addr, u8 sz, void *pdata); 46 | 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /hal/phydm/phydm_rssi_monitor.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | #ifndef __PHYDM_RSSI_MONITOR_H__ 27 | #define __PHYDM_RSSI_MONITOR_H__ 28 | 29 | #define RSSI_MONITOR_VERSION "2.0" 30 | 31 | /* @1 ============================================================ 32 | * 1 Definition 33 | * 1 ============================================================ 34 | */ 35 | 36 | /* @1 ============================================================ 37 | * 1 structure 38 | * 1 ============================================================ 39 | */ 40 | 41 | /* @1 ============================================================ 42 | * 1 enumeration 43 | * 1 ============================================================ 44 | */ 45 | 46 | /* @1 ============================================================ 47 | * 1 function prototype 48 | * 1 ============================================================ 49 | */ 50 | 51 | void phydm_rssi_monitor_check(void *dm_void); 52 | 53 | void phydm_rssi_monitor_init(void *dm_void); 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /include/rtw_sreset.h: -------------------------------------------------------------------------------- 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 _RTW_SRESET_H_ 16 | #define _RTW_SRESET_H_ 17 | 18 | /* #include */ 19 | 20 | enum { 21 | SRESET_TGP_NULL = 0, 22 | SRESET_TGP_XMIT_STATUS = 1, 23 | SRESET_TGP_LINK_STATUS = 2, 24 | SRESET_TGP_INFO = 99, 25 | }; 26 | 27 | struct sreset_priv { 28 | _mutex silentreset_mutex; 29 | u8 silent_reset_inprogress; 30 | u8 Wifi_Error_Status; 31 | systime last_tx_time; 32 | systime last_tx_complete_time; 33 | 34 | s32 dbg_trigger_point; 35 | u64 self_dect_tx_cnt; 36 | u64 self_dect_rx_cnt; 37 | u64 self_dect_fw_cnt; 38 | u64 tx_dma_status_cnt; 39 | u64 rx_dma_status_cnt; 40 | u8 rx_cnt; 41 | u8 self_dect_fw; 42 | u8 self_dect_case; 43 | u16 last_mac_rxff_ptr; 44 | u8 dbg_sreset_ctrl; 45 | }; 46 | 47 | 48 | 49 | #define WIFI_STATUS_SUCCESS 0 50 | #define USB_VEN_REQ_CMD_FAIL BIT0 51 | #define USB_READ_PORT_FAIL BIT1 52 | #define USB_WRITE_PORT_FAIL BIT2 53 | #define WIFI_MAC_TXDMA_ERROR BIT3 54 | #define WIFI_TX_HANG BIT4 55 | #define WIFI_RX_HANG BIT5 56 | #define WIFI_IF_NOT_EXIST BIT6 57 | 58 | void sreset_init_value(_adapter *padapter); 59 | void sreset_reset_value(_adapter *padapter); 60 | u8 sreset_get_wifi_status(_adapter *padapter); 61 | void sreset_set_wifi_error_status(_adapter *padapter, u32 status); 62 | void sreset_set_trigger_point(_adapter *padapter, s32 tgp); 63 | bool sreset_inprogress(_adapter *padapter); 64 | void sreset_reset(_adapter *padapter); 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /hal/phydm/txbf/haltxbf8192e.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | #ifndef __HAL_TXBF_8192E_H__ 26 | #define __HAL_TXBF_8192E_H__ 27 | 28 | #if (RTL8192E_SUPPORT == 1) 29 | #ifdef PHYDM_BEAMFORMING_SUPPORT 30 | 31 | void hal_txbf_8192e_set_ndpa_rate( 32 | void *dm_void, 33 | u8 BW, 34 | u8 rate); 35 | 36 | void hal_txbf_8192e_enter( 37 | void *dm_void, 38 | u8 idx); 39 | 40 | void hal_txbf_8192e_leave( 41 | void *dm_void, 42 | u8 idx); 43 | 44 | void hal_txbf_8192e_status( 45 | void *dm_void, 46 | u8 idx); 47 | 48 | void hal_txbf_8192e_fw_tx_bf( 49 | void *dm_void, 50 | u8 idx); 51 | #else 52 | 53 | #define hal_txbf_8192e_set_ndpa_rate(dm_void, BW, rate) 54 | #define hal_txbf_8192e_enter(dm_void, idx) 55 | #define hal_txbf_8192e_leave(dm_void, idx) 56 | #define hal_txbf_8192e_status(dm_void, idx) 57 | #define hal_txbf_8192e_fw_tx_bf(dm_void, idx) 58 | 59 | #endif 60 | 61 | #else 62 | 63 | #define hal_txbf_8192e_set_ndpa_rate(dm_void, BW, rate) 64 | #define hal_txbf_8192e_enter(dm_void, idx) 65 | #define hal_txbf_8192e_leave(dm_void, idx) 66 | #define hal_txbf_8192e_status(dm_void, idx) 67 | #define hal_txbf_8192e_fw_tx_bf(dm_void, idx) 68 | 69 | #endif 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /include/rtl8822bu_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 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 _RTL8822BU_HAL_H_ 16 | #define _RTL8822BU_HAL_H_ 17 | 18 | #ifdef CONFIG_USB_HCI 19 | #include /* PADAPTER */ 20 | 21 | #ifdef CONFIG_USB_HCI 22 | #ifdef USB_PACKET_OFFSET_SZ 23 | #define PACKET_OFFSET_SZ (USB_PACKET_OFFSET_SZ) 24 | #else 25 | #define PACKET_OFFSET_SZ (8) 26 | #endif 27 | #define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ) 28 | #endif 29 | 30 | /* undefine MAX_RECVBUF_SZ from rtl8822b_hal.h */ 31 | #ifdef MAX_RECVBUF_SZ 32 | #undef MAX_RECVBUF_SZ 33 | #endif 34 | 35 | /* recv_buffer must be large than usb agg size */ 36 | #ifndef MAX_RECVBUF_SZ 37 | #ifdef PLATFORM_OS_CE 38 | #define MAX_RECVBUF_SZ (8192+1024) 39 | #else /* !PLATFORM_OS_CE */ 40 | #ifndef CONFIG_MINIMAL_MEMORY_USAGE 41 | #ifdef CONFIG_PLATFORM_NOVATEK_NT72668 42 | #define MAX_RECVBUF_SZ (15360) /* 15k */ 43 | #elif defined(CONFIG_PLATFORM_HISILICON) 44 | /* use 16k to workaround for HISILICON platform */ 45 | #define MAX_RECVBUF_SZ (16384) 46 | #else 47 | #define MAX_RECVBUF_SZ (32768) 48 | #endif 49 | #else 50 | #define MAX_RECVBUF_SZ (4000) 51 | #endif 52 | #endif /* PLATFORM_OS_CE */ 53 | #endif /* !MAX_RECVBUF_SZ */ 54 | 55 | /* rtl8822bu_ops.c */ 56 | void rtl8822bu_set_hal_ops(PADAPTER padapter); 57 | void rtl8822bu_set_hw_type(struct dvobj_priv *pdvobj); 58 | 59 | /* rtl8822bu_io.c */ 60 | void rtl8822bu_set_intf_ops(struct _io_ops *pops); 61 | 62 | #endif /* CONFIG_USB_HCI */ 63 | 64 | 65 | #endif /* _RTL8822BU_HAL_H_ */ 66 | -------------------------------------------------------------------------------- /include/usb_vendor_req.h: -------------------------------------------------------------------------------- 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 _USB_VENDOR_REQUEST_H_ 16 | #define _USB_VENDOR_REQUEST_H_ 17 | 18 | /* 4 Set/Get Register related wIndex/Data */ 19 | #define RT_USB_RESET_MASK_OFF 0 20 | #define RT_USB_RESET_MASK_ON 1 21 | #define RT_USB_SLEEP_MASK_OFF 0 22 | #define RT_USB_SLEEP_MASK_ON 1 23 | #define RT_USB_LDO_ON 1 24 | #define RT_USB_LDO_OFF 0 25 | 26 | /* 4 Set/Get SYSCLK related wValue or Data */ 27 | #define RT_USB_SYSCLK_32KHZ 0 28 | #define RT_USB_SYSCLK_40MHZ 1 29 | #define RT_USB_SYSCLK_60MHZ 2 30 | 31 | 32 | typedef enum _RT_USB_BREQUEST { 33 | RT_USB_SET_REGISTER = 1, 34 | RT_USB_SET_SYSCLK = 2, 35 | RT_USB_GET_SYSCLK = 3, 36 | RT_USB_GET_REGISTER = 4 37 | } RT_USB_BREQUEST; 38 | 39 | 40 | typedef enum _RT_USB_WVALUE { 41 | RT_USB_RESET_MASK = 1, 42 | RT_USB_SLEEP_MASK = 2, 43 | RT_USB_USB_HRCPWM = 3, 44 | RT_USB_LDO = 4, 45 | RT_USB_BOOT_TYPE = 5 46 | } RT_USB_WVALUE; 47 | 48 | 49 | #if 0 50 | BOOLEAN usbvendorrequest(PCE_USB_DEVICE CEdevice, RT_USB_BREQUEST bRequest, RT_USB_WVALUE wValue, UCHAR wIndex, PVOID Data, UCHAR DataLength, BOOLEAN isDirectionIn); 51 | BOOLEAN CEusbGetStatusRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT Index, PVOID Data); 52 | BOOLEAN CEusbFeatureRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT FeatureSelector, IN USHORT Index); 53 | BOOLEAN CEusbGetDescriptorRequest(PCE_USB_DEVICE CEdevice, IN short urbLength, IN UCHAR DescriptorType, IN UCHAR Index, IN USHORT LanguageId, IN PVOID TransferBuffer, IN ULONG TransferBufferLength); 54 | #endif 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /hal/phydm/phydm_psd.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | #ifndef __PHYDMPSD_H__ 27 | #define __PHYDMPSD_H__ 28 | 29 | /*@#define PSD_VERSION "1.0"*/ /*@2016.09.22 Dino*/ 30 | #define PSD_VERSION "1.1" /*@2016.10.07 Dino, Add Option for PSD Tone index Selection */ 31 | 32 | #ifdef CONFIG_PSD_TOOL 33 | 34 | 35 | struct psd_info { 36 | u8 psd_in_progress; 37 | u32 psd_reg; 38 | u32 psd_report_reg; 39 | u8 psd_pwr_common_offset; 40 | u16 sw_avg_time; 41 | u16 fft_smp_point; 42 | u32 rf_0x18_bkp; 43 | u32 rf_0x18_bkp_b; 44 | u16 psd_fc_channel; 45 | u32 psd_bw_rf_reg; 46 | u8 psd_result[128]; 47 | u8 noise_k_en; 48 | }; 49 | 50 | u32 phydm_get_psd_data(void *dm_void, u32 psd_tone_idx, u32 igi); 51 | 52 | void phydm_psd_debug(void *dm_void, char input[][16], u32 *_used, 53 | char *output, u32 *_out_len); 54 | 55 | u8 phydm_psd(void *dm_void, u32 igi, u16 start_point, u16 stop_point); 56 | 57 | void phydm_psd_para_setting(void *dm_void, u8 sw_avg_time, u8 hw_avg_time, 58 | u8 i_q_setting, u16 fft_smp_point, u8 ant_sel, 59 | u8 psd_input, u8 channel, u8 noise_k_en); 60 | 61 | void phydm_psd_init(void *dm_void); 62 | 63 | u8 phydm_get_psd_result_table(void *dm_void, int index); 64 | 65 | #endif 66 | #endif 67 | -------------------------------------------------------------------------------- /os_dep/linux/rtw_proc.h: -------------------------------------------------------------------------------- 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 __RTW_PROC_H__ 16 | #define __RTW_PROC_H__ 17 | 18 | #include 19 | #include 20 | 21 | #define RTW_PROC_HDL_TYPE_SEQ 0 22 | #define RTW_PROC_HDL_TYPE_SSEQ 1 23 | 24 | struct rtw_proc_hdl { 25 | char *name; 26 | u8 type; 27 | union { 28 | int (*show)(struct seq_file *, void *); 29 | struct seq_operations *seq_op; 30 | } u; 31 | ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data); 32 | }; 33 | 34 | #define RTW_PROC_HDL_SEQ(_name, _seq_op, _write) \ 35 | { .name = _name, .type = RTW_PROC_HDL_TYPE_SEQ, .u.seq_op = _seq_op, .write = _write} 36 | 37 | #define RTW_PROC_HDL_SSEQ(_name, _show, _write) \ 38 | { .name = _name, .type = RTW_PROC_HDL_TYPE_SSEQ, .u.show = _show, .write = _write} 39 | 40 | #ifdef CONFIG_PROC_DEBUG 41 | 42 | struct proc_dir_entry *get_rtw_drv_proc(void); 43 | int rtw_drv_proc_init(void); 44 | void rtw_drv_proc_deinit(void); 45 | struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev); 46 | void rtw_adapter_proc_deinit(struct net_device *dev); 47 | void rtw_adapter_proc_replace(struct net_device *dev); 48 | 49 | #else /* !CONFIG_PROC_DEBUG */ 50 | 51 | #define get_rtw_drv_proc() NULL 52 | #define rtw_drv_proc_init() 0 53 | #define rtw_drv_proc_deinit() do {} while (0) 54 | #define rtw_adapter_proc_init(dev) NULL 55 | #define rtw_adapter_proc_deinit(dev) do {} while (0) 56 | #define rtw_adapter_proc_replace(dev) do {} while (0) 57 | 58 | #endif /* !CONFIG_PROC_DEBUG */ 59 | 60 | #endif /* __RTW_PROC_H__ */ 61 | -------------------------------------------------------------------------------- /include/rtw_br_ext.h: -------------------------------------------------------------------------------- 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 _RTW_BR_EXT_H_ 16 | #define _RTW_BR_EXT_H_ 17 | 18 | #if 1 /* rtw_wifi_driver */ 19 | #define CL_IPV6_PASS 1 20 | #define MACADDRLEN 6 21 | #define _DEBUG_ERR RTW_INFO 22 | #define _DEBUG_INFO /* RTW_INFO */ 23 | #define DEBUG_WARN RTW_INFO 24 | #define DEBUG_INFO /* RTW_INFO */ 25 | #define DEBUG_ERR RTW_INFO 26 | /* #define GET_MY_HWADDR ((GET_MIB(priv))->dot11OperationEntry.hwaddr) */ 27 | #define GET_MY_HWADDR(padapter) (adapter_mac_addr(padapter)) 28 | #endif /* rtw_wifi_driver */ 29 | 30 | #define NAT25_HASH_BITS 4 31 | #define NAT25_HASH_SIZE (1 << NAT25_HASH_BITS) 32 | #define NAT25_AGEING_TIME 300 33 | 34 | #ifdef CL_IPV6_PASS 35 | #define MAX_NETWORK_ADDR_LEN 17 36 | #else 37 | #define MAX_NETWORK_ADDR_LEN 11 38 | #endif 39 | 40 | struct nat25_network_db_entry { 41 | struct nat25_network_db_entry *next_hash; 42 | struct nat25_network_db_entry **pprev_hash; 43 | atomic_t use_count; 44 | unsigned char macAddr[6]; 45 | unsigned long ageing_timer; 46 | unsigned char networkAddr[MAX_NETWORK_ADDR_LEN]; 47 | }; 48 | 49 | enum NAT25_METHOD { 50 | NAT25_MIN, 51 | NAT25_CHECK, 52 | NAT25_INSERT, 53 | NAT25_LOOKUP, 54 | NAT25_PARSE, 55 | NAT25_MAX 56 | }; 57 | 58 | struct br_ext_info { 59 | unsigned int nat25_disable; 60 | unsigned int macclone_enable; 61 | unsigned int dhcp_bcst_disable; 62 | int addPPPoETag; /* 1: Add PPPoE relay-SID, 0: disable */ 63 | unsigned char nat25_dmzMac[MACADDRLEN]; 64 | unsigned int nat25sc_disable; 65 | }; 66 | 67 | void nat25_db_cleanup(_adapter *priv); 68 | 69 | #endif /* _RTW_BR_EXT_H_ */ 70 | -------------------------------------------------------------------------------- /hal/efuse/rtl8192e/HalEfuseMask8192E_PCIE.c: -------------------------------------------------------------------------------- 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 | 16 | /* #include "Mp_Precomp.h" */ 17 | /* #include "../odm_precomp.h" */ 18 | 19 | #include 20 | 21 | #include "HalEfuseMask8192E_PCIE.h" 22 | 23 | /****************************************************************************** 24 | * MPCIE.TXT 25 | ******************************************************************************/ 26 | 27 | u1Byte Array_MP_8192E_MPCIE[] = { 28 | 0xFF, 29 | 0xF7, 30 | 0x00, 31 | 0x0E, 32 | 0xF0, 33 | 0x00, 34 | 0x00, 35 | 0x00, 36 | 0x00, 37 | 0x00, 38 | 0x00, 39 | 0x07, 40 | 0xF3, 41 | 0xF7, 42 | 0x10, 43 | 0x00, 44 | 0x00, 45 | 0x00, 46 | 0x00, 47 | 0x00, 48 | 0x00, 49 | 0x00, 50 | 0x00, 51 | 0x00, 52 | 0x00, 53 | 0x00, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 61 | }; 62 | 63 | u2Byte 64 | EFUSE_GetArrayLen_MP_8192E_MPCIE(VOID) 65 | { 66 | return sizeof(Array_MP_8192E_MPCIE) / sizeof(u1Byte); 67 | } 68 | 69 | VOID 70 | EFUSE_GetMaskArray_MP_8192E_MPCIE( 71 | IN OUT pu1Byte Array 72 | ) 73 | { 74 | u2Byte len = EFUSE_GetArrayLen_MP_8192E_MPCIE(), i = 0; 75 | 76 | for (i = 0; i < len; ++i) 77 | Array[i] = Array_MP_8192E_MPCIE[i]; 78 | } 79 | BOOLEAN 80 | EFUSE_IsAddressMasked_MP_8192E_MPCIE( 81 | IN u2Byte Offset 82 | ) 83 | { 84 | int r = Offset / 16; 85 | int c = (Offset % 16) / 2; 86 | int result = 0; 87 | 88 | if (c < 4) /* Upper double word */ 89 | result = (Array_MP_8192E_MPCIE[r] & (0x10 << c)); 90 | else 91 | result = (Array_MP_8192E_MPCIE[r] & (0x01 << (c - 4))); 92 | 93 | return (result > 0) ? 0 : 1; 94 | } 95 | -------------------------------------------------------------------------------- /include/rtl8192d_dm.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef __RTL8192D_DM_H__ 21 | #define __RTL8192D_DM_H__ 22 | //============================================================ 23 | // Description: 24 | // 25 | // This file is for 92CE/92CU dynamic mechanism only 26 | // 27 | // 28 | //============================================================ 29 | 30 | /*------------------------Export global variable----------------------------*/ 31 | /*------------------------Export global variable----------------------------*/ 32 | /*------------------------Export Marco Definition---------------------------*/ 33 | //#define DM_MultiSTA_InitGainChangeNotify(Event) {DM_DigTable.CurMultiSTAConnectState = Event;} 34 | //============================================================ 35 | // structure and define 36 | //============================================================ 37 | #define Rx_index_mapping_NUM 15 38 | #define index_mapping_NUM 13 39 | 40 | //============================================================ 41 | // function prototype 42 | //============================================================ 43 | void rtl8192d_init_dm_priv(IN PADAPTER Adapter); 44 | void rtl8192d_deinit_dm_priv(IN PADAPTER Adapter); 45 | 46 | void rtl8192d_InitHalDm(IN PADAPTER Adapter); 47 | void rtl8192d_HalDmWatchDog(IN PADAPTER Adapter); 48 | 49 | #endif //__HAL8190PCIDM_H__ 50 | 51 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8192e/HalHWImg8192E_BB.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #if (RTL8192E_SUPPORT == 1) 22 | #ifndef __INC_MP_BB_HW_IMG_8192E_H 23 | #define __INC_MP_BB_HW_IMG_8192E_H 24 | 25 | //static BOOLEAN CheckCondition(const u4Byte Condition, const u4Byte Hex); 26 | 27 | /****************************************************************************** 28 | * AGC_TAB.TXT 29 | ******************************************************************************/ 30 | 31 | void 32 | ODM_ReadAndConfig_MP_8192E_AGC_TAB( // TC: Test Chip, MP: MP Chip 33 | IN PDM_ODM_T pDM_Odm 34 | ); 35 | 36 | /****************************************************************************** 37 | * PHY_REG.TXT 38 | ******************************************************************************/ 39 | 40 | void 41 | ODM_ReadAndConfig_MP_8192E_PHY_REG( // TC: Test Chip, MP: MP Chip 42 | IN PDM_ODM_T pDM_Odm 43 | ); 44 | 45 | /****************************************************************************** 46 | * PHY_REG_PG.TXT 47 | ******************************************************************************/ 48 | 49 | void 50 | ODM_ReadAndConfig_MP_8192E_PHY_REG_PG( // TC: Test Chip, MP: MP Chip 51 | IN PDM_ODM_T pDM_Odm 52 | ); 53 | 54 | #endif 55 | #endif // end of HWIMG_SUPPORT 56 | 57 | -------------------------------------------------------------------------------- /include/usb_hal.h: -------------------------------------------------------------------------------- 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 __USB_HAL_H__ 16 | #define __USB_HAL_H__ 17 | 18 | int usb_init_recv_priv(_adapter *padapter, u16 ini_in_buf_sz); 19 | void usb_free_recv_priv(_adapter *padapter, u16 ini_in_buf_sz); 20 | #ifdef CONFIG_FW_C2H_REG 21 | void usb_c2h_hisr_hdl(_adapter *adapter, u8 *buf); 22 | #endif 23 | 24 | u8 rtw_set_hal_ops(_adapter *padapter); 25 | 26 | #ifdef CONFIG_RTL8188E 27 | void rtl8188eu_set_hal_ops(_adapter *padapter); 28 | #endif 29 | 30 | #if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) 31 | void rtl8812au_set_hal_ops(_adapter *padapter); 32 | #endif 33 | 34 | #ifdef CONFIG_RTL8192E 35 | void rtl8192eu_set_hal_ops(_adapter *padapter); 36 | #endif 37 | 38 | 39 | #ifdef CONFIG_RTL8723B 40 | void rtl8723bu_set_hal_ops(_adapter *padapter); 41 | #endif 42 | 43 | #ifdef CONFIG_RTL8814A 44 | void rtl8814au_set_hal_ops(_adapter *padapter); 45 | #endif /* CONFIG_RTL8814A */ 46 | 47 | #ifdef CONFIG_RTL8188F 48 | void rtl8188fu_set_hal_ops(_adapter *padapter); 49 | #endif 50 | 51 | #ifdef CONFIG_RTL8188GTV 52 | void rtl8188gtvu_set_hal_ops(_adapter *padapter); 53 | #endif 54 | 55 | #ifdef CONFIG_RTL8703B 56 | void rtl8703bu_set_hal_ops(_adapter *padapter); 57 | #endif 58 | 59 | #ifdef CONFIG_RTL8723D 60 | void rtl8723du_set_hal_ops(_adapter *padapter); 61 | #endif 62 | 63 | #ifdef CONFIG_RTL8710B 64 | void rtl8710bu_set_hal_ops(_adapter *padapter); 65 | #endif 66 | 67 | #ifdef CONFIG_RTL8192F 68 | void rtl8192fu_set_hal_ops(_adapter *padapter); 69 | #endif /* CONFIG_RTL8192F */ 70 | 71 | #ifdef CONFIG_INTEL_PROXIM 72 | extern _adapter *rtw_usb_get_sw_pointer(void); 73 | #endif /* CONFIG_INTEL_PROXIM */ 74 | #endif /* __USB_HAL_H__ */ 75 | -------------------------------------------------------------------------------- /include/rtw_qos.h: -------------------------------------------------------------------------------- 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 | 16 | 17 | #ifndef _RTW_QOS_H_ 18 | #define _RTW_QOS_H_ 19 | 20 | #define DRV_CFG_UAPSD_VO BIT0 21 | #define DRV_CFG_UAPSD_VI BIT1 22 | #define DRV_CFG_UAPSD_BK BIT2 23 | #define DRV_CFG_UAPSD_BE BIT3 24 | 25 | #define WMM_IE_UAPSD_VO BIT0 26 | #define WMM_IE_UAPSD_VI BIT1 27 | #define WMM_IE_UAPSD_BK BIT2 28 | #define WMM_IE_UAPSD_BE BIT3 29 | 30 | #define WMM_TID0 BIT0 31 | #define WMM_TID1 BIT1 32 | #define WMM_TID2 BIT2 33 | #define WMM_TID3 BIT3 34 | #define WMM_TID4 BIT4 35 | #define WMM_TID5 BIT5 36 | #define WMM_TID6 BIT6 37 | #define WMM_TID7 BIT7 38 | 39 | #define AP_SUPPORTED_UAPSD BIT7 40 | /* TC = Traffic Category, TID0~7 represents TC */ 41 | #define BIT_MASK_TID_TC 0xff 42 | /* TS = Traffic Stream, TID8~15 represents TS */ 43 | #define BIT_MASK_TID_TS 0xff00 44 | #define ALL_TID_TC_SUPPORTED_UAPSD 0xff 45 | 46 | struct qos_priv { 47 | 48 | unsigned int qos_option; /* bit mask option: u-apsd, s-apsd, ts, block ack... */ 49 | 50 | #ifdef CONFIG_WMMPS_STA 51 | /* uapsd (unscheduled automatic power-save delivery) = a kind of wmmps */ 52 | u8 uapsd_max_sp_len; 53 | /* declare uapsd_tid as a bitmap for the uapsd setting of TID 0~15 */ 54 | u16 uapsd_tid; 55 | /* declare uapsd_tid_delivery_enabled as a bitmap for the delivery-enabled setting of TID 0~7 */ 56 | u8 uapsd_tid_delivery_enabled; 57 | /* declare uapsd_tid_trigger_enabled as a bitmap for the trigger-enabled setting of TID 0~7 */ 58 | u8 uapsd_tid_trigger_enabled; 59 | /* declare uapsd_ap_supported to record whether the connected ap supports uapsd or not */ 60 | u8 uapsd_ap_supported; 61 | #endif /* CONFIG_WMMPS_STA */ 62 | 63 | }; 64 | 65 | 66 | #endif /* _RTL871X_QOS_H_ */ -------------------------------------------------------------------------------- /core/mesh/rtw_mesh_hwmp.h: -------------------------------------------------------------------------------- 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 __RTW_MESH_HWMP_H_ 16 | #define __RTW_MESH_HWMP_H_ 17 | 18 | #ifndef DBG_RTW_HWMP 19 | #define DBG_RTW_HWMP 0 20 | #endif 21 | #if DBG_RTW_HWMP 22 | #define RTW_HWMP_DBG(fmt, arg...) RTW_PRINT(fmt, ##arg) 23 | #else 24 | #define RTW_HWMP_DBG(fmt, arg...) RTW_DBG(fmt, ##arg) 25 | #endif 26 | 27 | #ifndef INFO_RTW_HWMP 28 | #define INFO_RTW_HWMP 0 29 | #endif 30 | #if INFO_RTW_HWMP 31 | #define RTW_HWMP_INFO(fmt, arg...) RTW_PRINT(fmt, ##arg) 32 | #else 33 | #define RTW_HWMP_INFO(fmt, arg...) RTW_INFO(fmt, ##arg) 34 | #endif 35 | 36 | 37 | void rtw_ewma_err_rate_init(struct rtw_ewma_err_rate *e); 38 | unsigned long rtw_ewma_err_rate_read(struct rtw_ewma_err_rate *e); 39 | void rtw_ewma_err_rate_add(struct rtw_ewma_err_rate *e, unsigned long val); 40 | int rtw_mesh_path_error_tx(_adapter *adapter, 41 | u8 ttl, const u8 *target, u32 target_sn, 42 | u16 target_rcode, const u8 *ra); 43 | void rtw_ieee80211s_update_metric(_adapter *adapter, u8 mac_id, 44 | u8 per, u8 rate, 45 | u8 bw, u8 total_pkt); 46 | void rtw_mesh_rx_path_sel_frame(_adapter *adapter, union recv_frame *rframe); 47 | void rtw_mesh_queue_preq(struct rtw_mesh_path *mpath, u8 flags); 48 | void rtw_mesh_path_start_discovery(_adapter *adapter); 49 | void rtw_mesh_path_timer(void *ctx); 50 | void rtw_mesh_path_tx_root_frame(_adapter *adapter); 51 | void rtw_mesh_work_hdl(_workitem *work); 52 | void rtw_ieee80211_mesh_path_timer(void *ctx); 53 | void rtw_ieee80211_mesh_path_root_timer(void *ctx); 54 | BOOLEAN rtw_ieee80211_mesh_root_setup(_adapter *adapter); 55 | void rtw_mesh_work(_workitem *work); 56 | void rtw_mesh_atlm_param_req_timer(void *ctx); 57 | 58 | #endif /* __RTW_MESH_HWMP_H_ */ 59 | 60 | 61 | -------------------------------------------------------------------------------- /hal/efuse/rtl8192e/HalEfuseMask8192E_SDIO.c: -------------------------------------------------------------------------------- 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 | 16 | /* #include "Mp_Precomp.h" */ 17 | /* #include "../odm_precomp.h" */ 18 | 19 | #include 20 | 21 | #include "HalEfuseMask8192E_SDIO.h" 22 | 23 | 24 | 25 | /****************************************************************************** 26 | * MSDIO.TXT 27 | ******************************************************************************/ 28 | 29 | u1Byte Array_MP_8192E_MSDIO[] = { 30 | 0xFF, 31 | 0xF3, 32 | 0x00, 33 | 0x00, 34 | 0x00, 35 | 0x00, 36 | 0x00, 37 | 0x00, 38 | 0x00, 39 | 0x00, 40 | 0x00, 41 | 0x0F, 42 | 0xF1, 43 | 0xFF, 44 | 0xFF, 45 | 0xFF, 46 | 0xFF, 47 | 0xFF, 48 | 0x00, 49 | 0x00, 50 | 0x00, 51 | 0x00, 52 | 0x00, 53 | 0x00, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 63 | }; 64 | 65 | u2Byte EFUSE_GetArrayLen_MP_8192E_MSDIO(VOID) 66 | { 67 | return sizeof(Array_MP_8192E_MSDIO) / sizeof(u1Byte); 68 | } 69 | 70 | VOID EFUSE_GetMaskArray_MP_8192E_MSDIO(pu1Byte Array) 71 | { 72 | u2Byte len = EFUSE_GetArrayLen_MP_8192E_MSDIO(), i = 0; 73 | 74 | for (i = 0; i < len; ++i) 75 | Array[i] = Array_MP_8192E_MSDIO[i]; 76 | } 77 | 78 | BOOLEAN EFUSE_IsAddressMasked_MP_8192E_MSDIO(u2Byte Offset) 79 | { 80 | int r = Offset / 16; 81 | int c = (Offset % 16) / 2; 82 | int result = 0; 83 | 84 | /* RTW_INFO(" %s ,Offset=%x r= %d , c=%d , Array_MP_8192E_MSDIO[r]= %x\n",__func__,Offset,r,c,Array_MP_8192E_MSDIO[r]); */ 85 | 86 | if (c < 4) /* Upper double word */ 87 | result = (Array_MP_8192E_MSDIO[r] & (0x10 << c)); 88 | else 89 | result = (Array_MP_8192E_MSDIO[r] & (0x01 << (c - 4))); 90 | 91 | return (result > 0) ? 0 : 1; 92 | } 93 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8192e/HalHWImg8192E_FW.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #if (RTL8192E_SUPPORT == 1) 22 | #ifndef __INC_MP_FW_HW_IMG_8192E_H 23 | #define __INC_MP_FW_HW_IMG_8192E_H 24 | 25 | 26 | /****************************************************************************** 27 | * FW_AP.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadFirmware_MP_8192E_FW_AP( 32 | IN PDM_ODM_T pDM_Odm, 33 | OUT u1Byte *pFirmware, 34 | OUT u4Byte *pFirmwareSize 35 | ); 36 | 37 | /****************************************************************************** 38 | * FW_NIC.TXT 39 | ******************************************************************************/ 40 | 41 | void 42 | ODM_ReadFirmware_MP_8192E_FW_NIC( 43 | IN PDM_ODM_T pDM_Odm, 44 | OUT u1Byte *pFirmware, 45 | OUT u4Byte *pFirmwareSize 46 | ); 47 | 48 | /****************************************************************************** 49 | * FW_WoWLAN.TXT 50 | ******************************************************************************/ 51 | 52 | void 53 | ODM_ReadFirmware_MP_8192E_FW_WoWLAN( 54 | IN PDM_ODM_T pDM_Odm, 55 | OUT u1Byte *pFirmware, 56 | OUT u4Byte *pFirmwareSize 57 | ); 58 | 59 | #endif 60 | #endif // end of HWIMG_SUPPORT 61 | 62 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8192e/HalHWImg8192E_FW_v18.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #if (RTL8192E_SUPPORT == 1) 22 | #ifndef __INC_MP_FW_HW_IMG_8192E_H 23 | #define __INC_MP_FW_HW_IMG_8192E_H 24 | 25 | 26 | /****************************************************************************** 27 | * FW_AP.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadFirmware_MP_8192E_FW_AP_WoWLAN( 32 | IN PDM_ODM_T pDM_Odm, 33 | OUT u1Byte *pFirmware, 34 | OUT u4Byte *pFirmwareSize 35 | ); 36 | 37 | /****************************************************************************** 38 | * FW_NIC.TXT 39 | ******************************************************************************/ 40 | 41 | void 42 | ODM_ReadFirmware_MP_8192E_FW_NIC( 43 | IN PDM_ODM_T pDM_Odm, 44 | OUT u1Byte *pFirmware, 45 | OUT u4Byte *pFirmwareSize 46 | ); 47 | 48 | /****************************************************************************** 49 | * FW_WoWLAN.TXT 50 | ******************************************************************************/ 51 | 52 | void 53 | ODM_ReadFirmware_MP_8192E_FW_WoWLAN( 54 | IN PDM_ODM_T pDM_Odm, 55 | OUT u1Byte *pFirmware, 56 | OUT u4Byte *pFirmwareSize 57 | ); 58 | 59 | #endif 60 | #endif // end of HWIMG_SUPPORT 61 | 62 | -------------------------------------------------------------------------------- /platform/platform_sprd_sdio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2013 - 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 | #include 16 | 17 | extern void sdhci_bus_scan(void); 18 | #ifndef ANDROID_2X 19 | extern int sdhci_device_attached(void); 20 | #endif 21 | 22 | /* 23 | * Return: 24 | * 0: power on successfully 25 | * others: power on failed 26 | */ 27 | int platform_wifi_power_on(void) 28 | { 29 | int ret = 0; 30 | 31 | 32 | #ifdef CONFIG_RTL8188E 33 | rtw_wifi_gpio_wlan_ctrl(WLAN_POWER_ON); 34 | #endif /* CONFIG_RTL8188E */ 35 | 36 | /* Pull up pwd pin, make wifi leave power down mode. */ 37 | rtw_wifi_gpio_init(); 38 | rtw_wifi_gpio_wlan_ctrl(WLAN_PWDN_ON); 39 | 40 | #if (MP_DRIVER == 1) && (defined(CONFIG_RTL8723A) || defined(CONFIG_RTL8723B)) 41 | /* Pull up BT reset pin. */ 42 | rtw_wifi_gpio_wlan_ctrl(WLAN_BT_PWDN_ON); 43 | #endif 44 | rtw_mdelay_os(5); 45 | 46 | sdhci_bus_scan(); 47 | #ifdef CONFIG_RTL8723B 48 | /* YJ,test,130305 */ 49 | rtw_mdelay_os(1000); 50 | #endif 51 | #ifdef ANDROID_2X 52 | rtw_mdelay_os(200); 53 | #else /* !ANDROID_2X */ 54 | if (1) { 55 | int i = 0; 56 | 57 | for (i = 0; i <= 50; i++) { 58 | msleep(10); 59 | if (sdhci_device_attached()) 60 | break; 61 | printk("%s delay times:%d\n", __func__, i); 62 | } 63 | } 64 | #endif /* !ANDROID_2X */ 65 | 66 | return ret; 67 | } 68 | 69 | void platform_wifi_power_off(void) 70 | { 71 | /* Pull down pwd pin, make wifi enter power down mode. */ 72 | rtw_wifi_gpio_wlan_ctrl(WLAN_PWDN_OFF); 73 | rtw_mdelay_os(5); 74 | rtw_wifi_gpio_deinit(); 75 | 76 | #ifdef CONFIG_RTL8188E 77 | rtw_wifi_gpio_wlan_ctrl(WLAN_POWER_OFF); 78 | #endif /* CONFIG_RTL8188E */ 79 | 80 | #ifdef CONFIG_WOWLAN 81 | if (mmc_host) 82 | mmc_host->pm_flags &= ~MMC_PM_KEEP_POWER; 83 | #endif /* CONFIG_WOWLAN */ 84 | } 85 | -------------------------------------------------------------------------------- /hal/efuse/rtl8192e/HalEfuseMask8192E_USB.c: -------------------------------------------------------------------------------- 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 | 16 | /* #include "Mp_Precomp.h" */ 17 | /* #include "../odm_precomp.h" */ 18 | 19 | #include 20 | 21 | #include "HalEfuseMask8192E_USB.h" 22 | 23 | 24 | 25 | /****************************************************************************** 26 | * MUSB.TXT 27 | ******************************************************************************/ 28 | 29 | u1Byte Array_MP_8192E_MUSB[] = { 30 | 0xFF, 31 | 0xF7, 32 | 0x00, 33 | 0x0E, 34 | 0xF0, 35 | 0x00, 36 | 0x00, 37 | 0x00, 38 | 0x00, 39 | 0x00, 40 | 0x00, 41 | 0x07, 42 | 0xF3, 43 | 0xFF, 44 | 0xFF, 45 | 0xFF, 46 | 0xFF, 47 | 0xFF, 48 | 0xFF, 49 | 0x00, 50 | 0x00, 51 | 0x00, 52 | 0x00, 53 | 0x00, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 63 | }; 64 | 65 | u2Byte 66 | EFUSE_GetArrayLen_MP_8192E_MUSB(VOID) 67 | { 68 | return sizeof(Array_MP_8192E_MUSB) / sizeof(u1Byte); 69 | } 70 | 71 | VOID 72 | EFUSE_GetMaskArray_MP_8192E_MUSB( 73 | IN OUT pu1Byte Array 74 | ) 75 | { 76 | u2Byte len = EFUSE_GetArrayLen_MP_8192E_MUSB(), i = 0; 77 | 78 | for (i = 0; i < len; ++i) 79 | Array[i] = Array_MP_8192E_MUSB[i]; 80 | } 81 | BOOLEAN 82 | EFUSE_IsAddressMasked_MP_8192E_MUSB( 83 | IN u2Byte Offset 84 | ) 85 | { 86 | int r = Offset / 16; 87 | int c = (Offset % 16) / 2; 88 | int result = 0; 89 | 90 | /* RTW_INFO(" %s ,Offset=%x r= %d , c=%d , Array_MP_8192E_MUSB[r]= %x\n",__func__,Offset,r,c,Array_MP_8192E_MUSB[r]); */ 91 | 92 | if (c < 4) /* Upper double word */ 93 | result = (Array_MP_8192E_MUSB[r] & (0x10 << c)); 94 | else 95 | result = (Array_MP_8192E_MUSB[r] & (0x01 << (c - 4))); 96 | 97 | return (result > 0) ? 0 : 1; 98 | } 99 | -------------------------------------------------------------------------------- /hal/phydm/rtl8192e/halhwimg8192e_bb.h: -------------------------------------------------------------------------------- 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 | * The full GNU General Public License is included in this distribution in the 15 | * file called LICENSE. 16 | * 17 | * Contact Information: 18 | * wlanfae 19 | * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20 | * Hsinchu 300, Taiwan. 21 | * 22 | * Larry Finger 23 | * 24 | *****************************************************************************/ 25 | 26 | /*Image2HeaderVersion: R3 1.5.0*/ 27 | #if (RTL8192E_SUPPORT == 1) 28 | #ifndef __INC_MP_BB_HW_IMG_8192E_H 29 | #define __INC_MP_BB_HW_IMG_8192E_H 30 | 31 | /****************************************************************************** 32 | * agc_tab.TXT 33 | ******************************************************************************/ 34 | 35 | /* tc: Test Chip, mp: mp Chip*/ 36 | void 37 | odm_read_and_config_mp_8192e_agc_tab(struct dm_struct *dm); 38 | u32 odm_get_version_mp_8192e_agc_tab(void); 39 | 40 | /****************************************************************************** 41 | * phy_reg.TXT 42 | ******************************************************************************/ 43 | 44 | /* tc: Test Chip, mp: mp Chip*/ 45 | void 46 | odm_read_and_config_mp_8192e_phy_reg(struct dm_struct *dm); 47 | u32 odm_get_version_mp_8192e_phy_reg(void); 48 | 49 | /****************************************************************************** 50 | * phy_reg_pg.TXT 51 | ******************************************************************************/ 52 | 53 | /* tc: Test Chip, mp: mp Chip*/ 54 | void 55 | odm_read_and_config_mp_8192e_phy_reg_pg(struct dm_struct *dm); 56 | u32 odm_get_version_mp_8192e_phy_reg_pg(void); 57 | 58 | #endif 59 | #endif /* end of HWIMG_SUPPORT*/ 60 | 61 | --------------------------------------------------------------------------------