├── ifcfg-wlan0 ├── clean ├── hal ├── OUTSRC │ ├── phydm.h │ ├── rtl8812a │ │ ├── HalPhyRf_8812A.c │ │ ├── Mp_Precomp.h │ │ ├── phydm_RTL8812A.h │ │ ├── HalHWImg8812A_MAC.h │ │ ├── HalHWImg8812A_FW.h │ │ └── phydm_RegConfig8812A.h │ ├── rtl8821a │ │ ├── PhyDM_IQK_8821A.c │ │ ├── Mp_Precomp.h │ │ ├── phydm_RTL8821A.h │ │ ├── HalHWImg8821A_MAC.h │ │ ├── PhyDM_IQK_8821A.h │ │ ├── HalPhyRf_8821A.h │ │ ├── phydm_RTL8821A.c │ │ ├── HalHWImg8821A_BB.h │ │ ├── phydm_RegConfig8821A.h │ │ └── HalHWImg8821A_FW.h │ ├── Mp_Precomp.h │ ├── phydm_NoiseMonitor.h │ ├── phydm_DynamicBBPowerSaving.h │ ├── phydm_ACS.h │ ├── phydm_CfoTracking.h │ ├── phydm_DynamicTxPower.h │ ├── HalPhyRf.h │ ├── phydm_AntDect.h │ ├── phydm_RegDefine11AC.h │ └── phydm_RXHP.h ├── rtl8812a │ ├── usb │ │ ├── usb_halinit.c │ │ └── rtl8812au_recv.c │ └── Hal8821APwrSeq.c ├── OUTSRC-BTCoexist │ ├── HalBtc8192e1Ant.c │ ├── HalBtc8192e2Ant.c │ ├── HalBtc8723a1Ant.c │ ├── HalBtc8723a2Ant.c │ ├── HalBtc8723b1Ant.c │ ├── HalBtc8723b2Ant.c │ ├── HalBtc8812a1Ant.c │ ├── HalBtc8812a2Ant.c │ ├── HalBtc8821a1Ant.c │ ├── HalBtc8821a2Ant.c │ ├── HalBtc8821aCsr2Ant.c │ └── Mp_Precomp.h ├── hal_dm.h └── efuse │ ├── efuse_mask.h │ └── rtl8812a │ ├── HalEfuseMask8821A_USB.h │ ├── HalEfuseMask8812A_PCIE.h │ ├── HalEfuseMask8812A_USB.h │ ├── HalEfuseMask8821A_PCIE.h │ ├── HalEfuseMask8812A_USB.c │ ├── HalEfuseMask8812A_PCIE.c │ ├── HalEfuseMask8821A_PCIE.c │ └── HalEfuseMask8821A_USB.c ├── include ├── Hal8821APwrSeq.h ├── rtw_version.h ├── custom_gpio.h ├── rtw_wifi_regd.h ├── rtl8723a_pg.h ├── gspi_ops_linux.h ├── drv_types_linux.h ├── rtl8192c_event.h ├── rtl8723a_rf.h ├── circ_buf.h ├── rtw_qos.h ├── h2clbk.h ├── rtw_compat.h ├── rtl8723b_rf.h ├── rtl8812a_rf.h ├── hal_phy_reg.h ├── rtl8192e_rf.h ├── rtl8188e_sreset.h ├── rtl8192c_sreset.h ├── rtl8192e_sreset.h ├── rtl8723a_sreset.h ├── rtl8723b_sreset.h ├── rtl8812a_sreset.h ├── gspi_osintf.h ├── pci_osintf.h ├── rtw_ioctl_query.h ├── rtl8188e_rf.h ├── rtw_mem.h ├── usb_osintf.h ├── sdio_osintf.h ├── cmd_osdep.h ├── gspi_hal.h ├── Hal8723APhyCfg.h ├── rtl8723a_recv.h ├── hal_gspi.h ├── hal_sdio.h ├── rtl8192c_led.h ├── rtl8192d_led.h ├── mlme_osdep.h ├── rtl8812a_dm.h ├── rtl8188e_dm.h ├── rtl8192e_dm.h ├── nic_spec.h ├── rtl8192e_led.h ├── rtl8812a_led.h ├── pci_hal.h ├── rtl8188e_led.h ├── rtl8192c_rf.h ├── sdio_hal.h ├── drv_types_gspi.h ├── rtl8723a_dm.h ├── rtl8723a_led.h ├── rtl8192d_rf.h ├── rtl8723b_led.h ├── rtl8723b_dm.h ├── rtw_byteorder.h ├── ethernet.h ├── rtl8723b_recv.h ├── rtw_odm.h ├── usb_hal.h ├── rtw_sreset.h ├── rtl8192d_dm.h ├── sdio_ops_xp.h ├── sdio_ops_ce.h ├── drv_types_sdio.h ├── Hal8723APhyReg.h ├── usb_vendor_req.h ├── rtw_br_ext.h ├── sdio_ops_linux.h ├── Hal8723BPhyReg.h ├── recv_osdep.h └── rtl8192d_recv.h ├── Kconfig ├── dkms.conf ├── wlan0dhcp ├── contributors.sh ├── .gitignore ├── runwpa ├── .mailmap ├── CONTRIBUTORS.md ├── Makefile.dkms ├── fetch.sh ├── platform ├── platform_ops.h ├── platform_ops.c ├── platform_RTK_DMP_usb.c ├── platform_arm_act_sdio.c ├── platform_ARM_WMT_sdio.c └── platform_sprd_sdio.c ├── contrib └── auto-install.sh ├── os_dep └── linux │ └── rtw_proc.h └── core ├── rtw_mem.c └── rtw_rf.c /ifcfg-wlan0: -------------------------------------------------------------------------------- 1 | #DHCP client 2 | DEVICE=wlan0 3 | BOOTPROTO=dhcp 4 | ONBOOT=yes 5 | -------------------------------------------------------------------------------- /clean: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | rmmod 8192cu 3 | rmmod 8192ce 4 | rmmod 8192du 5 | rmmod 8192de 6 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC/phydm.h -------------------------------------------------------------------------------- /include/Hal8821APwrSeq.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/include/Hal8821APwrSeq.h -------------------------------------------------------------------------------- /hal/rtl8812a/usb/usb_halinit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/rtl8812a/usb/usb_halinit.c -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8812a/HalPhyRf_8812A.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC/rtl8812a/HalPhyRf_8812A.c -------------------------------------------------------------------------------- /include/rtw_version.h: -------------------------------------------------------------------------------- 1 | #define DRIVERVERSION "v4.3.14_13455.20150212_BTCOEX20150128-51" 2 | #define BTCOEXVERSION "BTCOEX20150128-51" 3 | -------------------------------------------------------------------------------- /Kconfig: -------------------------------------------------------------------------------- 1 | config RTL8812AU 2 | tristate "Realtek 8812A USB WiFi" 3 | depends on USB 4 | ---help--- 5 | Help message of RTL8812AU 6 | 7 | -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8192e1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8192e1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8192e2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8192e2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723a1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723a2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723b1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723b1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8723b2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8723b2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8812a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8812a1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8812a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8812a2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8821a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8821a1Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8821a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8821a2Ant.c -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/PhyDM_IQK_8821A.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC/rtl8821a/PhyDM_IQK_8821A.c -------------------------------------------------------------------------------- /hal/OUTSRC-BTCoexist/HalBtc8821aCsr2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scrivy/rtl8812AU_8821AU_linux/HEAD/hal/OUTSRC-BTCoexist/HalBtc8821aCsr2Ant.c -------------------------------------------------------------------------------- /dkms.conf: -------------------------------------------------------------------------------- 1 | PACKAGE_NAME="rtl8812au" 2 | PACKAGE_VERSION="#MODULE_VERSION#" 3 | MAKE[0]="make KVER=$kernelver" 4 | CLEAN="make clean" 5 | BUILT_MODULE_NAME[0]="rtl8812au" 6 | DEST_MODULE_LOCATION[0]="/kernel/drivers/net" 7 | AUTOINSTALL="yes" 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /contributors.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" 5 | 6 | # see also ".mailmap" for how email addresses and names are deduplicated 7 | 8 | { 9 | cat <<-'EOH' 10 | ## Contributors 11 | 12 | EOH 13 | echo 14 | git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf | cut -f1 -d'<' | sed 's/^/- /g' | sort | uniq 15 | } > CONTRIBUTORS.md 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | *.obj 5 | *.elf 6 | *.o.cmd 7 | *.ko.cmd 8 | .tmp_versions 9 | Module.symvers 10 | modules.order 11 | *.mod.c 12 | cscope.* 13 | 14 | # Precompiled Headers 15 | *.gch 16 | *.pch 17 | 18 | # Libraries 19 | *.lib 20 | *.a 21 | *.la 22 | *.lo 23 | 24 | # Shared objects (inc. Windows DLLs) 25 | *.dll 26 | *.so 27 | *.so.* 28 | *.dylib 29 | 30 | # Executables 31 | *.exe 32 | *.out 33 | *.app 34 | *.i*86 35 | *.x86_64 36 | *.hex 37 | 38 | # Debug files 39 | *.dSYM/ 40 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | # Generate CONTRIBUTORS.md: contributors.sh 2 | 3 | # Tip for finding duplicates (besides scanning the output of CONTRIBUTORS.md for name 4 | # duplicates that aren't also email duplicates): scan the output of: 5 | # git log --format='%aE - %aN' | sort -uf 6 | # 7 | # For explanation on this file format: man git-shortlog 8 | 9 | Anand Babu (AB) Periasamy 10 | Harshavardhana 11 | Joe Acosta 12 | -------------------------------------------------------------------------------- /include/custom_gpio.h: -------------------------------------------------------------------------------- 1 | #ifndef __CUSTOM_GPIO_H__ 2 | #define __CUSTOM_GPIO_H___ 3 | 4 | #include 5 | #include 6 | 7 | #ifdef PLATFORM_OS_XP 8 | #include 9 | #endif 10 | 11 | #ifdef PLATFORM_OS_CE 12 | #include 13 | #endif 14 | 15 | #ifdef PLATFORM_LINUX 16 | #include 17 | #endif 18 | 19 | typedef enum cust_gpio_modes { 20 | WLAN_PWDN_ON, 21 | WLAN_PWDN_OFF, 22 | WLAN_POWER_ON, 23 | WLAN_POWER_OFF, 24 | WLAN_BT_PWDN_ON, 25 | WLAN_BT_PWDN_OFF 26 | } cust_gpio_modes_t; 27 | 28 | extern int rtw_wifi_gpio_init(void); 29 | extern int rtw_wifi_gpio_deinit(void); 30 | extern void rtw_wifi_gpio_wlan_ctrl(int onoff); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /include/rtw_wifi_regd.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2009-2010 Realtek Corporation. 4 | * 5 | *****************************************************************************/ 6 | 7 | #ifndef __RTW_WIFI_REGD_H__ 8 | #define __RTW_WIFI_REGD_H__ 9 | 10 | struct country_code_to_enum_rd { 11 | u16 countrycode; 12 | const char *iso_name; 13 | }; 14 | 15 | enum country_code_type_t { 16 | COUNTRY_CODE_USER = 0, 17 | 18 | /*add new channel plan above this line */ 19 | COUNTRY_CODE_MAX 20 | }; 21 | 22 | int rtw_regd_init(_adapter *padapter); 23 | void rtw_reg_notify_by_driver(_adapter *adapter); 24 | 25 | #endif /* __RTW_WIFI_REGD_H__ */ 26 | -------------------------------------------------------------------------------- /CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | ## Contributors 2 | 3 | 4 | - Anand Babu (AB) Periasamy 5 | - Andreas Hofmann 6 | - Andrew Mann 7 | - AndyPi 8 | - Anton 9 | - archshift 10 | - bits3rpent 11 | - Chen Minqiang 12 | - Daiki Tamada 13 | - Fjodor42 14 | - gremsto 15 | - HackDefendr 16 | - Harshavardhana 17 | - jjones-jr 18 | - Joe 19 | - Joe Acosta 20 | - John Lenz 21 | - Jos Dehaes 22 | - Karl-Philipp Richter 23 | - Marco Milanesi 24 | - Mauro Ribeiro 25 | - Maximilian Schwerin 26 | - mpoly 27 | - Nick Bartos 28 | - Peter H. Li 29 | - pgroenbech 30 | - scrivy 31 | - Taehan Stott 32 | - Vicent Llongo 33 | - Victor Azizi 34 | - 赵迤晨 (Zhao, Yichen) 35 | -------------------------------------------------------------------------------- /Makefile.dkms: -------------------------------------------------------------------------------- 1 | modname := rtl8812au 2 | DKMS := dkms 3 | modver := 4.3.14 4 | 5 | # directory in which generated files are stored 6 | DKMS_DEST := /usr/src/$(modname)-$(modver) 7 | 8 | all: install 9 | 10 | src_install: 11 | make clean 12 | mkdir -p '$(DKMS_DEST)' 13 | cp -r dkms.conf Kconfig Makefile.dkms Makefile platform core hal include os_dep '$(DKMS_DEST)' 14 | cp Makefile '$(DKMS_DEST)/Makefile' 15 | sed 's/#MODULE_VERSION#/$(modver)/' dkms.conf > '$(DKMS_DEST)/dkms.conf' 16 | 17 | build: src_install 18 | $(DKMS) add -m $(modname) -v $(modver) 2>/dev/null || true 19 | $(DKMS) build -m $(modname) -v $(modver) 20 | 21 | install: build 22 | $(DKMS) install -m $(modname) -v $(modver) 23 | 24 | uninstall: 25 | $(DKMS) remove -m $(modname) -v $(modver) --all 26 | 27 | .PHONY: all src_install build install uninstall 28 | -------------------------------------------------------------------------------- /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/gspi_ops_linux.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 __SDIO_OPS_LINUX_H__ 21 | #define __SDIO_OPS_LINUX_H__ 22 | 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /include/drv_types_linux.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 __DRV_TYPES_LINUX_H__ 21 | #define __DRV_TYPES_LINUX_H__ 22 | 23 | 24 | #endif 25 | 26 | -------------------------------------------------------------------------------- /hal/OUTSRC/Mp_Precomp.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 | //#include 22 | //#include "phydm_precomp.h" 23 | //#include "../phydm_precomp.h" 24 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8812a/Mp_Precomp.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 | //#include 22 | //#include "phydm_precomp.h" 23 | //#include "../phydm_precomp.h" 24 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/Mp_Precomp.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 | //#include 22 | //#include "phydm_precomp.h" 23 | //#include "../phydm_precomp.h" 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /hal/hal_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 __HAL_DM_H__ 21 | #define __HAL_DM_H__ 22 | 23 | void Init_ODM_ComInfo(_adapter *adapter); 24 | 25 | #endif /* __HAL_DM_H__ */ 26 | -------------------------------------------------------------------------------- /fetch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ "$(md5sum linux-headers-4.0.1-040001_4.0.1-040001.201504290935_all.deb | cut -d ' ' -f 1)" != "d757d51819f8f945ae7715b532ab8d2e" ] ; then wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.1-vivid/linux-headers-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb; else echo "linux-headers-4.0.1-040001_4.0.1-040001.201504290935_all.deb up to date"; fi 3 | if [ "$(md5sum linux-headers-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb | cut -d ' ' -f 1)" != "657f07ae89395f9efd62bead00b42fbb" ] ; then wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.1-vivid/linux-headers-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb; else echo "linux-headers-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb up to date"; fi 4 | if [ "$(md5sum linux-image-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb | cut -d ' ' -f 1)" != "69f423e3888fe56cd5c74658aa7aaea7" ] ; then wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.1-vivid/linux-image-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb; else echo "linux-image-4.0.1-040001-generic_4.0.1-040001.201504290935_i386.deb up to date"; fi 5 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/phydm_RTL8821A.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_RTL8821A_H__ 21 | #define __ODM_RTL8821A_H__ 22 | 23 | VOID 24 | odm_HWSetting_8821A( 25 | IN PDM_ODM_T pDM_Odm 26 | ); 27 | 28 | #endif 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 | -------------------------------------------------------------------------------- /include/circ_buf.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 __CIRC_BUF_H_ 21 | #define __CIRC_BUF_H_ 1 22 | 23 | #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size)-1)) 24 | 25 | #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) 26 | 27 | #endif //_CIRC_BUF_H_ 28 | 29 | -------------------------------------------------------------------------------- /include/rtw_qos.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 | 22 | #ifndef _RTW_QOS_H_ 23 | #define _RTW_QOS_H_ 24 | 25 | 26 | 27 | struct qos_priv { 28 | 29 | unsigned int qos_option; //bit mask option: u-apsd, s-apsd, ts, block ack... 30 | 31 | }; 32 | 33 | 34 | #endif //_RTL871X_QOS_H_ 35 | 36 | -------------------------------------------------------------------------------- /include/h2clbk.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 | 22 | #define _H2CLBK_H_ 23 | 24 | 25 | void _lbk_cmd(PADAPTER Adapter); 26 | 27 | void _lbk_rsp(PADAPTER Adapter); 28 | 29 | void _lbk_evt(IN PADAPTER Adapter); 30 | 31 | void h2c_event_callback(unsigned char *dev, unsigned char *pbuf); 32 | 33 | -------------------------------------------------------------------------------- /platform/platform_ops.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 __PLATFORM_OPS_H__ 21 | #define __PLATFORM_OPS_H__ 22 | 23 | /* 24 | * Return: 25 | * 0: power on successfully 26 | * others: power on failed 27 | */ 28 | int platform_wifi_power_on(void); 29 | void platform_wifi_power_off(void); 30 | 31 | #endif // __PLATFORM_OPS_H__ 32 | -------------------------------------------------------------------------------- /include/rtw_compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Author: Chen Minqiang 3 | * Date : Mon, 03 Oct 2016 23:17:42 +0800 4 | */ 5 | #ifndef _RTW_COMPAT_H_ 6 | #define _RTW_COMPAT_H_ 7 | 8 | #include 9 | 10 | #ifdef CONFIG_COMPAT 11 | #ifdef in_compat_syscall 12 | #define rtw_is_compat_task in_compat_syscall 13 | #else 14 | #define rtw_is_compat_task is_compat_task 15 | #endif 16 | #endif 17 | 18 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) 19 | #else 20 | #define ieee80211_band nl80211_band 21 | #define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ 22 | #define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ 23 | #define IEEE80211_BAND_60GHZ NL80211_BAND_60GHZ 24 | #define IEEE80211_NUM_BANDS NUM_NL80211_BANDS 25 | #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) */ 26 | 27 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0) 28 | #else 29 | #define STATION_INFO_SIGNAL BIT(NL80211_STA_INFO_SIGNAL) 30 | #define STATION_INFO_TX_BITRATE BIT(NL80211_STA_INFO_TX_BITRATE) 31 | #define STATION_INFO_RX_PACKETS BIT(NL80211_STA_INFO_RX_PACKETS) 32 | #define STATION_INFO_TX_PACKETS BIT(NL80211_STA_INFO_RX_PACKETS) 33 | 34 | #define strnicmp strncasecmp 35 | 36 | #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0) */ 37 | 38 | #endif /* _RTW_COMPAT_H_ */ 39 | -------------------------------------------------------------------------------- /hal/efuse/efuse_mask.h: -------------------------------------------------------------------------------- 1 | 2 | #if DEV_BUS_TYPE == RT_USB_INTERFACE 3 | 4 | #if defined(CONFIG_RTL8188E) 5 | #include "rtl8188e/HalEfuseMask8188E_USB.h" 6 | #endif 7 | 8 | #if defined(CONFIG_RTL8812A) 9 | #include "rtl8812a/HalEfuseMask8812A_USB.h" 10 | #endif 11 | 12 | #if defined(CONFIG_RTL8821A) 13 | #include "rtl8812a/HalEfuseMask8821A_USB.h" 14 | #endif 15 | 16 | #if defined(CONFIG_RTL8192E) 17 | #include "rtl8192e/HalEfuseMask8192E_USB.h" 18 | #endif 19 | 20 | #if defined(CONFIG_RTL8723B) 21 | #include "rtl8723b/HalEfuseMask8723B_USB.h" 22 | #endif 23 | 24 | 25 | #elif DEV_BUS_TYPE == RT_PCI_INTERFACE 26 | 27 | #if defined(CONFIG_RTL8188E) 28 | #include "rtl8188e/HalEfuseMask8188E_PCIE.h" 29 | #endif 30 | 31 | #if defined(CONFIG_RTL8812A) 32 | #include "rtl8812a/HalEfuseMask8812A_PCIE.h" 33 | #endif 34 | 35 | #if defined(CONFIG_RTL8821A) 36 | #include "rtl8812a/HalEfuseMask8821A_PCIE.h" 37 | #endif 38 | 39 | #if defined(CONFIG_RTL8192E) 40 | #include "rtl8192e/HalEfuseMask8192E_PCIE.h" 41 | #endif 42 | 43 | #if defined(CONFIG_RTL8723B) 44 | #include "rtl8723b/HalEfuseMask8723B_PCIE.h" 45 | #endif 46 | 47 | #elif DEV_BUS_TYPE == RT_SDIO_INTERFACE 48 | 49 | #if defined(CONFIG_RTL8188E) 50 | #include "rtl8188e/HalEfuseMask8188E_SDIO.h" 51 | #endif 52 | 53 | #endif -------------------------------------------------------------------------------- /include/rtl8723b_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 __RTL8723B_RF_H__ 21 | #define __RTL8723B_RF_H__ 22 | 23 | #include "rtl8192c_rf.h" 24 | 25 | int PHY_RF6052_Config8723B( IN PADAPTER Adapter ); 26 | 27 | VOID 28 | PHY_RF6052SetBandwidth8723B( 29 | IN PADAPTER Adapter, 30 | IN CHANNEL_WIDTH Bandwidth); 31 | 32 | #endif 33 | 34 | -------------------------------------------------------------------------------- /include/rtl8812a_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 __RTL8812A_RF_H__ 21 | #define __RTL8812A_RF_H__ 22 | 23 | VOID 24 | PHY_RF6052SetBandwidth8812( 25 | IN PADAPTER Adapter, 26 | IN CHANNEL_WIDTH Bandwidth); 27 | 28 | 29 | int 30 | PHY_RF6052_Config_8812( 31 | IN PADAPTER Adapter ); 32 | 33 | #endif//__RTL8188E_RF_H__ 34 | 35 | -------------------------------------------------------------------------------- /include/hal_phy_reg.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 __HAL_PHY_REG_H__ 21 | #define __HAL_PHY_REG_H__ 22 | 23 | //for PutRFRegsetting & GetRFRegSetting BitMask 24 | //#if (RTL92SE_FPGA_VERIFY == 1) 25 | //#define bRFRegOffsetMask 0xfff 26 | //#else 27 | #define bRFRegOffsetMask 0xfffff 28 | //#endif 29 | 30 | #endif //__HAL_PHY_REG_H__ 31 | 32 | -------------------------------------------------------------------------------- /include/rtl8192e_rf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 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 __RTL8192E_RF_H__ 21 | #define __RTL8192E_RF_H__ 22 | 23 | VOID 24 | PHY_RF6052SetBandwidth8192E( 25 | IN PADAPTER Adapter, 26 | IN CHANNEL_WIDTH Bandwidth); 27 | 28 | 29 | int 30 | PHY_RF6052_Config_8192E( 31 | IN PADAPTER Adapter ); 32 | 33 | #endif//__RTL8192E_RF_H__ 34 | 35 | -------------------------------------------------------------------------------- /include/rtl8188e_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 _RTL8188E_SRESET_H_ 21 | #define _RTL8188E_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8188e_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8188e_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /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/rtl8192e_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 _RTL88812A_SRESET_H_ 21 | #define _RTL8812A_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8192e_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8192e_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/rtl8723b_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 _RTL8723B_SRESET_H_ 21 | #define _RTL8723B_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8723b_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8723b_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /include/rtl8812a_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 _RTL88812A_SRESET_H_ 21 | #define _RTL8812A_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8812_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8812_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /platform/platform_ops.c: -------------------------------------------------------------------------------- 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 CONFIG_PLATFORM_OPS 21 | /* 22 | * Return: 23 | * 0: power on successfully 24 | * others: power on failed 25 | */ 26 | int platform_wifi_power_on(void) 27 | { 28 | int ret = 0; 29 | 30 | 31 | return ret; 32 | } 33 | 34 | void platform_wifi_power_off(void) 35 | { 36 | } 37 | #endif // !CONFIG_PLATFORM_OPS 38 | -------------------------------------------------------------------------------- /include/gspi_osintf.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 __SDIO_OSINTF_H__ 21 | #define __SDIO_OSINTF_H__ 22 | 23 | 24 | #ifdef PLATFORM_OS_CE 25 | extern NDIS_STATUS ce_sd_get_dev_hdl(PADAPTER padapter); 26 | SD_API_STATUS ce_sd_int_callback(SD_DEVICE_HANDLE hDevice, PADAPTER padapter); 27 | extern void sd_setup_irs(PADAPTER padapter); 28 | #endif 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /include/pci_osintf.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 __PCI_OSINTF_H 21 | #define __PCI_OSINTF_H 22 | 23 | 24 | void rtw_pci_disable_aspm(_adapter *padapter); 25 | void rtw_pci_enable_aspm(_adapter *padapter); 26 | void PlatformClearPciPMEStatus(PADAPTER Adapter); 27 | #ifdef CONFIG_64BIT_DMA 28 | u8 PlatformEnableDMA64(PADAPTER Adapter); 29 | #endif 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /include/rtw_ioctl_query.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 _RTW_IOCTL_QUERY_H_ 21 | #define _RTW_IOCTL_QUERY_H_ 22 | 23 | 24 | #ifdef PLATFORM_WINDOWS 25 | 26 | u8 query_802_11_capability(_adapter* padapter,u8* pucBuf,u32 * pulOutLen); 27 | u8 query_802_11_association_information (_adapter * padapter, PNDIS_802_11_ASSOCIATION_INFORMATION pAssocInfo); 28 | 29 | #endif 30 | 31 | 32 | #endif 33 | 34 | -------------------------------------------------------------------------------- /platform/platform_RTK_DMP_usb.c: -------------------------------------------------------------------------------- 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 | #include 21 | 22 | int platform_wifi_power_on(void) 23 | { 24 | int ret = 0; 25 | u32 tmp; 26 | tmp=readl((volatile unsigned int*)0xb801a608); 27 | tmp &= 0xffffff00; 28 | tmp |= 0x55; 29 | writel(tmp,(volatile unsigned int*)0xb801a608);//write dummy register for 1055 30 | return ret; 31 | } 32 | 33 | void platform_wifi_power_off(void) 34 | { 35 | } 36 | -------------------------------------------------------------------------------- /hal/rtl8812a/usb/rtl8812au_recv.c: -------------------------------------------------------------------------------- 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 | #define _RTL8812AU_RECV_C_ 21 | 22 | //#include 23 | #include 24 | 25 | int rtl8812au_init_recv_priv(_adapter *padapter) 26 | { 27 | return usb_init_recv_priv(padapter, INTERRUPT_MSG_FORMAT_LEN); 28 | } 29 | 30 | void rtl8812au_free_recv_priv(_adapter *padapter) 31 | { 32 | usb_free_recv_priv(padapter, INTERRUPT_MSG_FORMAT_LEN); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /include/rtl8188e_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 __RTL8188E_RF_H__ 21 | #define __RTL8188E_RF_H__ 22 | 23 | 24 | 25 | int PHY_RF6052_Config8188E( IN PADAPTER Adapter ); 26 | void rtl8188e_RF_ChangeTxPath( IN PADAPTER Adapter, 27 | IN u16 DataRate); 28 | void rtl8188e_PHY_RF6052SetBandwidth( 29 | IN PADAPTER Adapter, 30 | IN CHANNEL_WIDTH Bandwidth); 31 | 32 | #endif//__RTL8188E_RF_H__ 33 | 34 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8812a/phydm_RTL8812A.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_RTL8812A_H__ 22 | #define __ODM_RTL8812A_H__ 23 | #if(defined(CONFIG_PATH_DIVERSITY)) 24 | VOID 25 | ODM_PathDiversityInit_8812A( IN PDM_ODM_T pDM_Odm); 26 | 27 | VOID 28 | ODM_PathDiversity_8812A( IN PDM_ODM_T pDM_Odm); 29 | 30 | VOID 31 | ODM_SetTxPathByTxInfo_8812A( 32 | IN PDM_ODM_T pDM_Odm, 33 | IN pu1Byte pDesc, 34 | IN u1Byte macId 35 | ); 36 | #endif 37 | #endif -------------------------------------------------------------------------------- /include/rtw_mem.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 __RTW_MEM_H__ 21 | #define __RTW_MEM_H__ 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | 28 | #ifndef MAX_RECVBUF_SZ 29 | #define MAX_RECVBUF_SZ (32768-RECVBUFF_ALIGN_SZ) // 32k 30 | #endif 31 | 32 | struct u8* rtw_alloc_revcbuf_premem(void); 33 | struct sk_buff *rtw_alloc_skb_premem(void); 34 | int rtw_free_skb_premem(struct sk_buff *pskb); 35 | 36 | 37 | #endif //__RTW_MEM_H__ 38 | -------------------------------------------------------------------------------- /include/usb_osintf.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 __USB_OSINTF_H 21 | #define __USB_OSINTF_H 22 | 23 | #include 24 | 25 | #define USBD_HALTED(Status) ((ULONG)(Status) >> 30 == 3) 26 | 27 | 28 | //uint usb_dvobj_init(_adapter * adapter); 29 | //void usb_dvobj_deinit(_adapter * adapter); 30 | 31 | u8 usbvendorrequest(struct dvobj_priv *pdvobjpriv, RT_USB_BREQUEST brequest, RT_USB_WVALUE wvalue, u8 windex, void* data, u8 datalen, u8 isdirectionin); 32 | 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /include/sdio_osintf.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 __SDIO_OSINTF_H__ 21 | #define __SDIO_OSINTF_H__ 22 | 23 | 24 | 25 | u8 sd_hal_bus_init(PADAPTER padapter); 26 | u8 sd_hal_bus_deinit(PADAPTER padapter); 27 | void sd_c2h_hdl(PADAPTER padapter); 28 | 29 | #ifdef PLATFORM_OS_CE 30 | extern NDIS_STATUS ce_sd_get_dev_hdl(PADAPTER padapter); 31 | SD_API_STATUS ce_sd_int_callback(SD_DEVICE_HANDLE hDevice, PADAPTER padapter); 32 | extern void sd_setup_irs(PADAPTER padapter); 33 | #endif 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /include/cmd_osdep.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 __CMD_OSDEP_H_ 21 | #define __CMD_OSDEP_H_ 22 | 23 | 24 | extern sint _rtw_init_cmd_priv (struct cmd_priv *pcmdpriv); 25 | extern sint _rtw_init_evt_priv(struct evt_priv *pevtpriv); 26 | extern void _rtw_free_evt_priv (struct evt_priv *pevtpriv); 27 | extern void _rtw_free_cmd_priv (struct cmd_priv *pcmdpriv); 28 | extern sint _rtw_enqueue_cmd(_queue *queue, struct cmd_obj *obj); 29 | extern struct cmd_obj *_rtw_dequeue_cmd(_queue *queue); 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /include/gspi_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2012 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 __GSPI_HAL_H__ 21 | #define __GSPI_HAL_H__ 22 | 23 | 24 | void spi_int_dpc(PADAPTER padapter, u32 sdio_hisr); 25 | void rtw_set_hal_ops(_adapter *padapter); 26 | 27 | #ifdef CONFIG_RTL8723A 28 | void rtl8723as_set_hal_ops(PADAPTER padapter); 29 | #endif 30 | 31 | #ifdef CONFIG_RTL8188E 32 | void rtl8188es_set_hal_ops(PADAPTER padapter); 33 | #endif 34 | 35 | #ifdef CONFIG_RTL8723B 36 | void rtl8723bs_set_hal_ops(PADAPTER padapter); 37 | #endif 38 | 39 | #endif //__GSPI_HAL_H__ 40 | 41 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8821A_USB.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 | /****************************************************************************** 22 | * MUSB.TXT 23 | ******************************************************************************/ 24 | 25 | u2Byte 26 | EFUSE_GetArrayLen_MP_8821A_MUSB(VOID); 27 | 28 | VOID 29 | EFUSE_GetMaskArray_MP_8821A_MUSB( 30 | IN OUT pu1Byte Array 31 | ); 32 | 33 | BOOLEAN 34 | EFUSE_IsAddressMasked_MP_8821A_MUSB( // TC: Test Chip, MP: MP Chip 35 | IN u2Byte Offset 36 | ); 37 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8812A_PCIE.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 | 22 | /****************************************************************************** 23 | * MPCIE.TXT 24 | ******************************************************************************/ 25 | 26 | 27 | u2Byte 28 | EFUSE_GetArrayLen_MP_8812A_MPCIE(VOID); 29 | 30 | VOID 31 | EFUSE_GetMaskArray_MP_8812A_MPCIE( 32 | IN OUT pu1Byte Array 33 | ); 34 | 35 | BOOLEAN 36 | EFUSE_IsAddressMasked_MP_8812A_MPCIE( // TC: Test Chip, MP: MP Chip 37 | IN u2Byte Offset 38 | ); 39 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8812A_USB.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 | 22 | 23 | /****************************************************************************** 24 | * MUSB.TXT 25 | ******************************************************************************/ 26 | 27 | 28 | u2Byte 29 | EFUSE_GetArrayLen_MP_8812A_MUSB(VOID); 30 | 31 | VOID 32 | EFUSE_GetMaskArray_MP_8812A_MUSB( 33 | IN OUT pu1Byte Array 34 | ); 35 | 36 | BOOLEAN 37 | EFUSE_IsAddressMasked_MP_8812A_MUSB( // TC: Test Chip, MP: MP Chip 38 | IN u2Byte Offset 39 | ); 40 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8821A_PCIE.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 | 22 | /****************************************************************************** 23 | * MPCIE.TXT 24 | ******************************************************************************/ 25 | 26 | 27 | u2Byte 28 | EFUSE_GetArrayLen_MP_8821A_MPCIE(VOID); 29 | 30 | VOID 31 | EFUSE_GetMaskArray_MP_8821A_MPCIE( 32 | IN OUT pu1Byte Array 33 | ); 34 | 35 | BOOLEAN 36 | EFUSE_IsAddressMasked_MP_8821A_MPCIE( // TC: Test Chip, MP: MP Chip 37 | IN u2Byte Offset 38 | ); 39 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 rtl8723a_query_rx_desc_status(union recv_frame *precvframe, struct recv_stat *prxstat); 35 | 36 | #endif /* __RTL8723A_RECV_H__ */ 37 | 38 | -------------------------------------------------------------------------------- /include/hal_gspi.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 __HAL_GSPI_H_ 21 | #define __HAL_GSPI_H_ 22 | 23 | #define ffaddr2deviceId(pdvobj, addr) (pdvobj->Queue2Pipe[addr]) 24 | 25 | u8 rtw_hal_gspi_max_txoqt_free_space(_adapter *padapter); 26 | u8 rtw_hal_gspi_query_tx_freepage(_adapter *padapter, u8 PageIdx, u8 RequiredPageNum); 27 | void rtw_hal_gspi_update_tx_freepage(_adapter *padapter, u8 PageIdx, u8 RequiredPageNum); 28 | void rtw_hal_set_gspi_tx_max_length(PADAPTER padapter, u8 numHQ, u8 numNQ, u8 numLQ, u8 numPubQ); 29 | u32 rtw_hal_get_gspi_tx_max_length(PADAPTER padapter, u8 queue_idx); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/HalHWImg8821A_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 (RTL8821A_SUPPORT == 1) 22 | #ifndef __INC_MP_MAC_HW_IMG_8821A_H 23 | #define __INC_MP_MAC_HW_IMG_8821A_H 24 | 25 | 26 | /****************************************************************************** 27 | * MAC_REG.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadAndConfig_MP_8821A_MAC_REG( // TC: Test Chip, MP: MP Chip 32 | IN PDM_ODM_T pDM_Odm 33 | ); 34 | u4Byte ODM_GetVersion_MP_8821A_MAC_REG(void); 35 | 36 | #endif 37 | #endif // end of HWIMG_SUPPORT 38 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8812a/HalHWImg8812A_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 (RTL8812A_SUPPORT == 1) 22 | #ifndef __INC_MP_MAC_HW_IMG_8812A_H 23 | #define __INC_MP_MAC_HW_IMG_8812A_H 24 | 25 | 26 | /****************************************************************************** 27 | * MAC_REG.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadAndConfig_MP_8812A_MAC_REG( // TC: Test Chip, MP: MP Chip 32 | IN PDM_ODM_T pDM_Odm 33 | ); 34 | u4Byte ODM_GetVersion_MP_8812A_MAC_REG(void); 35 | 36 | #endif 37 | #endif // end of HWIMG_SUPPORT 38 | 39 | -------------------------------------------------------------------------------- /include/hal_sdio.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 __HAL_SDIO_H_ 21 | #define __HAL_SDIO_H_ 22 | 23 | #define ffaddr2deviceId(pdvobj, addr) (pdvobj->Queue2Pipe[addr]) 24 | 25 | u8 rtw_hal_sdio_max_txoqt_free_space(_adapter *padapter); 26 | u8 rtw_hal_sdio_query_tx_freepage(_adapter *padapter, u8 PageIdx, u8 RequiredPageNum); 27 | void rtw_hal_sdio_update_tx_freepage(_adapter *padapter, u8 PageIdx, u8 RequiredPageNum); 28 | void rtw_hal_set_sdio_tx_max_length(PADAPTER padapter, u8 numHQ, u8 numNQ, u8 numLQ, u8 numPubQ); 29 | u32 rtw_hal_get_sdio_tx_max_length(PADAPTER padapter, u8 queue_idx); 30 | 31 | #endif //__RTW_LED_H_ 32 | -------------------------------------------------------------------------------- /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/mlme_osdep.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 __MLME_OSDEP_H_ 21 | #define __MLME_OSDEP_H_ 22 | 23 | 24 | #if defined(PLATFORM_WINDOWS) || defined(PLATFORM_MPIXEL) 25 | extern int time_after(u32 now, u32 old); 26 | #endif 27 | 28 | extern void rtw_init_mlme_timer(_adapter *padapter); 29 | extern void rtw_os_indicate_disconnect( _adapter *adapter ); 30 | extern void rtw_os_indicate_connect( _adapter *adapter ); 31 | void rtw_os_indicate_scan_done( _adapter *padapter, bool aborted); 32 | extern void rtw_report_sec_ie(_adapter *adapter,u8 authmode,u8 *sec_ie); 33 | 34 | void rtw_reset_securitypriv( _adapter *adapter ); 35 | 36 | #endif //_MLME_OSDEP_H_ 37 | 38 | -------------------------------------------------------------------------------- /include/rtl8812a_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 __RTL8812A_DM_H__ 21 | #define __RTL8812A_DM_H__ 22 | 23 | void rtl8812_init_dm_priv(IN PADAPTER Adapter); 24 | void rtl8812_deinit_dm_priv(IN PADAPTER Adapter); 25 | void rtl8812_InitHalDm(IN PADAPTER Adapter); 26 | void rtl8812_HalDmWatchDog(IN PADAPTER Adapter); 27 | 28 | //VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); 29 | 30 | //void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); 31 | 32 | #ifdef CONFIG_ANTENNA_DIVERSITY 33 | void AntDivCompare8812(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src); 34 | u8 AntDivBeforeLink8812(PADAPTER Adapter ); 35 | #endif 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /include/rtl8188e_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 __RTL8188E_DM_H__ 21 | #define __RTL8188E_DM_H__ 22 | 23 | void rtl8188e_init_dm_priv(IN PADAPTER Adapter); 24 | void rtl8188e_deinit_dm_priv(IN PADAPTER Adapter); 25 | void rtl8188e_InitHalDm(IN PADAPTER Adapter); 26 | void rtl8188e_HalDmWatchDog(IN PADAPTER Adapter); 27 | 28 | //VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); 29 | 30 | //void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); 31 | 32 | #ifdef CONFIG_ANTENNA_DIVERSITY 33 | void AntDivCompare8188E(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src); 34 | u8 AntDivBeforeLink8188E(PADAPTER Adapter ); 35 | #endif 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /include/rtl8192e_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 __RTL8192E_DM_H__ 21 | #define __RTL8192E_DM_H__ 22 | 23 | 24 | void rtl8192e_init_dm_priv(IN PADAPTER Adapter); 25 | void rtl8192e_deinit_dm_priv(IN PADAPTER Adapter); 26 | void rtl8192e_InitHalDm(IN PADAPTER Adapter); 27 | void rtl8192e_HalDmWatchDog(IN PADAPTER Adapter); 28 | 29 | //VOID rtl8192c_dm_CheckTXPowerTracking(IN PADAPTER Adapter); 30 | 31 | //void rtl8192c_dm_RF_Saving(IN PADAPTER pAdapter, IN u8 bForceInNormal); 32 | 33 | #ifdef CONFIG_ANTENNA_DIVERSITY 34 | void AntDivCompare8192e(PADAPTER Adapter, WLAN_BSSID_EX *dst, WLAN_BSSID_EX *src); 35 | u8 AntDivBeforeLink8192e(PADAPTER Adapter ); 36 | #endif 37 | #endif 38 | 39 | -------------------------------------------------------------------------------- /include/nic_spec.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 | 22 | #ifndef __NIC_SPEC_H__ 23 | #define __NIC_SPEC_H__ 24 | 25 | #include 26 | 27 | #define RTL8711_MCTRL_ (0x20000) 28 | #define RTL8711_UART_ (0x30000) 29 | #define RTL8711_TIMER_ (0x40000) 30 | #define RTL8711_FINT_ (0x50000) 31 | #define RTL8711_HINT_ (0x50000) 32 | #define RTL8711_GPIO_ (0x60000) 33 | #define RTL8711_WLANCTRL_ (0x200000) 34 | #define RTL8711_WLANFF_ (0xe00000) 35 | #define RTL8711_HCICTRL_ (0x600000) 36 | #define RTL8711_SYSCFG_ (0x620000) 37 | #define RTL8711_SYSCTRL_ (0x620000) 38 | #define RTL8711_MCCTRL_ (0x020000) 39 | 40 | 41 | #include 42 | 43 | #include 44 | 45 | 46 | #endif // __RTL8711_SPEC_H__ 47 | 48 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/PhyDM_IQK_8821A.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 __PHYDM_IQK_8821A_H__ 22 | #define __PHYDM_IQK_8821A_H__ 23 | 24 | /*--------------------------Define Parameters-------------------------------*/ 25 | 26 | 27 | /*---------------------------End Define Parameters-------------------------------*/ 28 | #if !(DM_ODM_SUPPORT_TYPE & ODM_AP) 29 | void 30 | DoIQK_8821A( 31 | PDM_ODM_T pDM_Odm, 32 | u1Byte DeltaThermalIndex, 33 | u1Byte ThermalValue, 34 | u1Byte Threshold 35 | ); 36 | void 37 | PHY_IQCalibrate_8821A( 38 | IN PDM_ODM_T pDM_Odm, 39 | IN BOOLEAN bReCovery 40 | ); 41 | #else 42 | VOID 43 | phy_IQCalibrate_8821A( 44 | IN PDM_ODM_T pDM_Odm 45 | ); 46 | #endif 47 | #endif // #ifndef __PHYDM_IQK_8821A_H__ 48 | -------------------------------------------------------------------------------- /include/rtl8192e_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 __RTL8192E_LED_H__ 21 | #define __RTL8192E_LED_H__ 22 | 23 | 24 | //================================================================================ 25 | // Interface to manipulate LED objects. 26 | //================================================================================ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8192eu_InitSwLeds(PADAPTER padapter); 29 | void rtl8192eu_DeInitSwLeds(PADAPTER padapter); 30 | #endif 31 | #ifdef CONFIG_PCI_HCI 32 | void rtl8192ee_InitSwLeds(PADAPTER padapter); 33 | void rtl8192ee_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8192es_InitSwLeds(PADAPTER padapter); 37 | void rtl8192es_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /include/rtl8812a_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 __RTL8812A_LED_H__ 21 | #define __RTL8812A_LED_H__ 22 | 23 | 24 | //================================================================================ 25 | // Interface to manipulate LED objects. 26 | //================================================================================ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8812au_InitSwLeds(PADAPTER padapter); 29 | void rtl8812au_DeInitSwLeds(PADAPTER padapter); 30 | #endif 31 | #ifdef CONFIG_PCI_HCI 32 | void rtl8812ae_InitSwLeds(PADAPTER padapter); 33 | void rtl8812ae_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8812s_InitSwLeds(PADAPTER padapter); 37 | void rtl8812s_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /include/pci_hal.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 __PCI_HAL_H__ 21 | #define __PCI_HAL_H__ 22 | 23 | #ifdef CONFIG_RTL8192C 24 | void rtl8192ce_set_hal_ops(_adapter * padapter); 25 | #endif 26 | 27 | #ifdef CONFIG_RTL8192D 28 | void rtl8192de_set_hal_ops(_adapter * padapter); 29 | #endif 30 | 31 | #ifdef CONFIG_RTL8188E 32 | void rtl8188ee_set_hal_ops(_adapter * padapter); 33 | #endif 34 | 35 | #if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) 36 | void rtl8812ae_set_hal_ops(_adapter * padapter); 37 | #endif 38 | 39 | #if defined(CONFIG_RTL8192E) 40 | void rtl8192ee_set_hal_ops(_adapter * padapter); 41 | #endif 42 | 43 | #ifdef CONFIG_RTL8723B 44 | void rtl8723be_set_hal_ops(_adapter * padapter); 45 | #endif 46 | 47 | void rtw_set_hal_ops(_adapter *padapter); 48 | 49 | #endif //__PCIE_HAL_H__ 50 | 51 | -------------------------------------------------------------------------------- /include/rtl8188e_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 __RTL8188E_LED_H__ 21 | #define __RTL8188E_LED_H__ 22 | 23 | 24 | //================================================================================ 25 | // Interface to manipulate LED objects. 26 | //================================================================================ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8188eu_InitSwLeds(PADAPTER padapter); 29 | void rtl8188eu_DeInitSwLeds(PADAPTER padapter); 30 | #endif 31 | #ifdef CONFIG_PCI_HCI 32 | void rtl8188ee_InitSwLeds(PADAPTER padapter); 33 | void rtl8188ee_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #if defined (CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 36 | void rtl8188es_InitSwLeds(PADAPTER padapter); 37 | void rtl8188es_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_NoiseMonitor.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 __ODMNOISEMONITOR_H__ 21 | #define __ODMNOISEMONITOR_H__ 22 | 23 | #define ODM_MAX_CHANNEL_NUM 38//14+24 24 | struct noise_level { 25 | //u1Byte value_a, value_b; 26 | u1Byte value[MAX_RF_PATH]; 27 | //s1Byte sval_a, sval_b; 28 | s1Byte sval[MAX_RF_PATH]; 29 | 30 | //s4Byte noise_a=0, noise_b=0,sum_a=0, sum_b=0; 31 | //s4Byte noise[ODM_RF_PATH_MAX]; 32 | s4Byte sum[MAX_RF_PATH]; 33 | //u1Byte valid_cnt_a=0, valid_cnt_b=0, 34 | u1Byte valid[MAX_RF_PATH]; 35 | u1Byte valid_cnt[MAX_RF_PATH]; 36 | 37 | }; 38 | 39 | 40 | typedef struct _ODM_NOISE_MONITOR_ { 41 | s1Byte noise[MAX_RF_PATH]; 42 | s2Byte noise_all; 43 | } ODM_NOISE_MONITOR; 44 | 45 | s2Byte ODM_InbandNoise_Monitor(PVOID pDM_VOID,u8 bPauseDIG,u8 IGIValue,u32 max_time); 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /include/sdio_hal.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 __SDIO_HAL_H__ 21 | #define __SDIO_HAL_H__ 22 | 23 | 24 | extern u8 sd_hal_bus_init(PADAPTER padapter); 25 | extern u8 sd_hal_bus_deinit(PADAPTER padapter); 26 | 27 | u8 sd_int_isr(PADAPTER padapter); 28 | void sd_int_dpc(PADAPTER padapter); 29 | void rtw_set_hal_ops(_adapter *padapter); 30 | 31 | #ifdef CONFIG_RTL8723A 32 | void rtl8723as_set_hal_ops(PADAPTER padapter); 33 | #endif 34 | 35 | #ifdef CONFIG_RTL8188E 36 | void rtl8188es_set_hal_ops(PADAPTER padapter); 37 | #endif 38 | 39 | #ifdef CONFIG_RTL8723B 40 | void rtl8723bs_set_hal_ops(PADAPTER padapter); 41 | #endif 42 | 43 | #ifdef CONFIG_RTL8821A 44 | void rtl8821as_set_hal_ops(PADAPTER padapter); 45 | #endif 46 | 47 | #ifdef CONFIG_RTL8192E 48 | void rtl8192es_set_hal_ops(PADAPTER padapter); 49 | #endif 50 | 51 | #endif //__SDIO_HAL_H__ 52 | 53 | -------------------------------------------------------------------------------- /contrib/auto-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ## 3 | ## Automated setup for Netgear A6100 AC600 usb wifi adapter drivers 4 | ## Designed for Ubuntu Xenial 16.04 LTS (and Debian distros generally) 5 | ## 6 | ## This is a simple bash script to automate the installation of the latest rtl8812AU linux drivers for 7 | ## the NETGEAR A6100 AC600 usb wifi dongle from https://github.com/abperiasamy/rtl8812AU_8821AU_linux . 8 | ## This script was created specifically for Ubuntu Xenial 16.04 LTS, but should work as is, or with 9 | ## minor modifications, on any Debian based linux distribution. 10 | ## 11 | ## This script: 12 | ## (1) installs git to pull the repository and gcc (and associated build tools) 13 | ## (2) compiles the driver binary and installs it to the system 14 | ## (3) creates a udev rule to rename the interface to "wlan0" (optional) 15 | ## (4) loads the driver and adds a modprobe rule to do this at boot 16 | ## 17 | 18 | ## Install Dependencies 19 | apt update 20 | apt install -y git build-essential make autoconf libtool gcc gettext 21 | 22 | ## Clone latest github repository 23 | cd /var/lib/git 24 | git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git 25 | 26 | ## Compile and install driver binary 27 | cd rtl8812AU_8821AU_linux 28 | make 29 | make install 30 | 31 | ## Make udev rule (you can omit this line to have the system automatically name the device, or change NAME="wlan0" to a diffrent device name) 32 | echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="rtl8812au", ATTR{type}=="1", NAME="wlan0"' >> /lib/udev/rules.d/70-persistent-network.rules 33 | 34 | ## Load driver module 35 | modprobe rtl8812au 36 | 37 | ## Add module at boot (file may be /etc/modules on other distribution) 38 | echo -e '# Netgear A600 usb wifi dongle\nrtl8812au' > /etc/modules-load.d/rtl8812au.conf 39 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/HalPhyRf_8821A.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 __HAL_PHY_RF_8821A_H__ 22 | #define __HAL_PHY_RF_8821A_H__ 23 | 24 | /*--------------------------Define Parameters-------------------------------*/ 25 | 26 | void ConfigureTxpowerTrack_8821A( 27 | PTXPWRTRACK_CFG pConfig 28 | ); 29 | 30 | VOID 31 | ODM_TxPwrTrackSetPwr8821A( 32 | PDM_ODM_T pDM_Odm, 33 | PWRTRACK_METHOD Method, 34 | u1Byte RFPath, 35 | u1Byte ChannelMappedIndex 36 | ); 37 | 38 | VOID 39 | PHY_LCCalibrate_8821A( 40 | IN PDM_ODM_T pDM_Odm 41 | ); 42 | 43 | VOID 44 | GetDeltaSwingTable_8821A( 45 | IN PDM_ODM_T pDM_Odm, 46 | OUT pu1Byte *TemperatureUP_A, 47 | OUT pu1Byte *TemperatureDOWN_A, 48 | OUT pu1Byte *TemperatureUP_B, 49 | OUT pu1Byte *TemperatureDOWN_B 50 | ); 51 | #endif // #ifndef __HAL_PHY_RF_8821A_H__ 52 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/phydm_RTL8821A.c: -------------------------------------------------------------------------------- 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 | //============================================================ 22 | // include files 23 | //============================================================ 24 | 25 | #include "Mp_Precomp.h" 26 | 27 | #include "../phydm_precomp.h" 28 | 29 | #if (RTL8821A_SUPPORT == 1) 30 | 31 | VOID 32 | odm_DynamicTryStateAgg_8821A( 33 | IN PDM_ODM_T pDM_Odm 34 | ) 35 | { 36 | if((pDM_Odm->SupportICType == ODM_RTL8821) && (pDM_Odm->SupportInterface == ODM_ITRF_USB)) { 37 | if(pDM_Odm->RSSI_Min > 25) 38 | ODM_Write1Byte(pDM_Odm, 0x4CF, 0x02); 39 | else if(pDM_Odm->RSSI_Min < 20) 40 | ODM_Write1Byte(pDM_Odm, 0x4CF, 0x00); 41 | } 42 | } 43 | 44 | VOID 45 | odm_HWSetting_8821A( 46 | IN PDM_ODM_T pDM_Odm 47 | ) 48 | { 49 | odm_DynamicTryStateAgg_8821A(pDM_Odm); 50 | } 51 | 52 | #endif //#if (RTL8821A_SUPPORT == 1) 53 | -------------------------------------------------------------------------------- /include/drv_types_gspi.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2012 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 __DRV_TYPES_GSPI_H__ 21 | #define __DRV_TYPES_GSPI_H__ 22 | 23 | // SPI Header Files 24 | #ifdef PLATFORM_LINUX 25 | #include 26 | #include 27 | #include 28 | //#include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #endif 37 | 38 | 39 | typedef struct gspi_data { 40 | u8 func_number; 41 | 42 | u8 tx_block_mode; 43 | u8 rx_block_mode; 44 | u32 block_transfer_len; 45 | 46 | #ifdef PLATFORM_LINUX 47 | struct spi_device *func; 48 | 49 | struct workqueue_struct *priv_wq; 50 | struct delayed_work irq_work; 51 | #endif 52 | } GSPI_DATA, *PGSPI_DATA; 53 | 54 | #endif // #ifndef __DRV_TYPES_GSPI_H__ 55 | 56 | -------------------------------------------------------------------------------- /hal/OUTSRC/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 | u1Byte PreCCAState; 28 | u1Byte CurCCAState; 29 | 30 | u1Byte PreRFState; 31 | u1Byte CurRFState; 32 | 33 | int Rssi_val_min; 34 | 35 | u1Byte initialize; 36 | u4Byte Reg874,RegC70,Reg85C,RegA74; 37 | 38 | } PS_T,*pPS_T; 39 | 40 | #define dm_RF_Saving ODM_RF_Saving 41 | 42 | void ODM_RF_Saving( 43 | IN PVOID pDM_VOID, 44 | IN u1Byte bForceInNormal 45 | ); 46 | 47 | VOID 48 | odm_DynamicBBPowerSavingInit( 49 | IN PVOID pDM_VOID 50 | ); 51 | 52 | VOID 53 | odm_DynamicBBPowerSaving( 54 | IN PVOID pDM_VOID 55 | ); 56 | 57 | VOID 58 | odm_1R_CCA( 59 | IN PVOID pDM_VOID 60 | ); 61 | 62 | #endif -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /platform/platform_arm_act_sdio.c: -------------------------------------------------------------------------------- 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 | /* 21 | * Description: 22 | * This file can be applied to following platforms: 23 | * CONFIG_PLATFORM_ACTIONS_ATM703X 24 | */ 25 | #include 26 | 27 | #ifdef CONFIG_PLATFORM_ACTIONS_ATM705X 28 | extern int acts_wifi_init(void); 29 | extern void acts_wifi_cleanup(void); 30 | #endif 31 | 32 | /* 33 | * Return: 34 | * 0: power on successfully 35 | * others: power on failed 36 | */ 37 | int platform_wifi_power_on(void) 38 | { 39 | int ret = 0; 40 | 41 | #ifdef CONFIG_PLATFORM_ACTIONS_ATM705X 42 | ret = acts_wifi_init(); 43 | if (unlikely(ret < 0)) { 44 | pr_err("%s Failed to register the power control driver.\n", __FUNCTION__); 45 | goto exit; 46 | } 47 | #endif 48 | 49 | exit: 50 | return ret; 51 | } 52 | 53 | void platform_wifi_power_off(void) 54 | { 55 | #ifdef CONFIG_PLATFORM_ACTIONS_ATM705X 56 | acts_wifi_cleanup(); 57 | #endif 58 | } 59 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_ACS.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 __PHYDMACS_H__ 22 | #define __PHYDMACS_H__ 23 | 24 | #define ACS_VERSION "1.0" 25 | 26 | #define ODM_MAX_CHANNEL_2G 14 27 | #define ODM_MAX_CHANNEL_5G 24 28 | 29 | typedef struct _ACS_ { 30 | BOOLEAN bForceACSResult; 31 | u1Byte CleanChannel_2G; 32 | u1Byte CleanChannel_5G; 33 | u2Byte Channel_Info_2G[2][ODM_MAX_CHANNEL_2G]; //Channel_Info[1]: Channel Score, Channel_Info[2]:Channel_Scan_Times 34 | u2Byte Channel_Info_5G[2][ODM_MAX_CHANNEL_5G]; 35 | } ACS, *PACS; 36 | 37 | 38 | VOID 39 | odm_AutoChannelSelectInit( 40 | IN PVOID pDM_VOID 41 | ); 42 | 43 | VOID 44 | odm_AutoChannelSelectReset( 45 | IN PVOID pDM_VOID 46 | ); 47 | 48 | VOID 49 | odm_AutoChannelSelect( 50 | IN PVOID pDM_VOID, 51 | IN u1Byte Channel 52 | ); 53 | 54 | u1Byte 55 | ODM_GetAutoChannelSelectResult( 56 | IN PVOID pDM_VOID, 57 | IN u1Byte Band 58 | ); 59 | 60 | #endif -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | #include "HalBtc8821aCsr2Ant.h" 56 | 57 | #endif // __MP_PRECOMP_H__ 58 | -------------------------------------------------------------------------------- /include/rtl8723b_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 __RTL8723B_LED_H__ 21 | #define __RTL8723B_LED_H__ 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | 28 | //================================================================================ 29 | // Interface to manipulate LED objects. 30 | //================================================================================ 31 | #ifdef CONFIG_USB_HCI 32 | void rtl8723bu_InitSwLeds(PADAPTER padapter); 33 | void rtl8723bu_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8723bs_InitSwLeds(PADAPTER padapter); 37 | void rtl8723bs_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | #ifdef CONFIG_GSPI_HCI 40 | void rtl8723bs_InitSwLeds(PADAPTER padapter); 41 | void rtl8723bs_DeInitSwLeds(PADAPTER padapter); 42 | #endif 43 | #ifdef CONFIG_PCI_HCI 44 | void rtl8723be_InitSwLeds(PADAPTER padapter); 45 | void rtl8723be_DeInitSwLeds(PADAPTER padapter); 46 | #endif 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /include/rtl8723b_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 __RTL8723B_DM_H__ 21 | #define __RTL8723B_DM_H__ 22 | //============================================================ 23 | // Description: 24 | // 25 | // This file is for 8723B dynamic mechanism only 26 | // 27 | // 28 | //============================================================ 29 | 30 | //============================================================ 31 | // structure and define 32 | //============================================================ 33 | 34 | //============================================================ 35 | // function prototype 36 | //============================================================ 37 | 38 | void rtl8723b_init_dm_priv(PADAPTER padapter); 39 | void rtl8723b_deinit_dm_priv(PADAPTER padapter); 40 | 41 | void rtl8723b_InitHalDm(PADAPTER padapter); 42 | void rtl8723b_HalDmWatchDog(PADAPTER padapter); 43 | void rtl8723b_HalDmWatchDog_in_LPS(PADAPTER padapter); 44 | void rtl8723b_hal_dm_in_lps(PADAPTER padapter); 45 | 46 | 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /include/rtw_byteorder.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 _RTL871X_BYTEORDER_H_ 21 | #define _RTL871X_BYTEORDER_H_ 22 | 23 | 24 | #if defined (CONFIG_LITTLE_ENDIAN) && defined (CONFIG_BIG_ENDIAN) 25 | #error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n" 26 | #endif 27 | 28 | #if !((defined CONFIG_LITTLE_ENDIAN) || (defined CONFIG_BIG_ENDIAN)) 29 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ 30 | #define CONFIG_LITTLE_ENDIAN 31 | //#warning "Auto-detected little-endian system...hope it is correct!" 32 | #else 33 | #if __BYTE_ORDER == __BIG_ENDIAN 34 | //#warning "Auto-detected big-endian system...hope it is correct!" 35 | #define CONFIG_BIG_ENDIAN 36 | #endif 37 | #endif 38 | #endif 39 | 40 | #if defined (CONFIG_LITTLE_ENDIAN) 41 | #ifndef CONFIG_PLATFORM_MSTAR389 42 | # include 43 | #endif 44 | #elif defined (CONFIG_BIG_ENDIAN) 45 | # include 46 | #else 47 | # error "Must be LITTLE/BIG Endian Host" 48 | #endif 49 | 50 | #endif /* _RTL871X_BYTEORDER_H_ */ 51 | 52 | -------------------------------------------------------------------------------- /platform/platform_ARM_WMT_sdio.c: -------------------------------------------------------------------------------- 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 | #include 21 | #include 22 | #include 23 | 24 | extern void wmt_detect_sdio2(void); 25 | extern void force_remove_sdio2(void); 26 | 27 | int platform_wifi_power_on(void) 28 | { 29 | int err = 0; 30 | err = gpio_request(WMT_PIN_GP62_SUSGPIO1, "wifi_chip_en"); 31 | if (err < 0) { 32 | printk("request gpio for rtl8188eu failed!\n"); 33 | return err; 34 | } 35 | gpio_direction_output(WMT_PIN_GP62_SUSGPIO1, 0);//pull sus_gpio1 to 0 to open vcc_wifi. 36 | printk("power on rtl8189.\n"); 37 | msleep(500); 38 | wmt_detect_sdio2(); 39 | printk("[rtl8189es] %s: new card, power on.\n", __FUNCTION__); 40 | return err; 41 | } 42 | 43 | void platform_wifi_power_off(void) 44 | { 45 | force_remove_sdio2(); 46 | 47 | gpio_direction_output(WMT_PIN_GP62_SUSGPIO1, 1);//pull sus_gpio1 to 1 to close vcc_wifi. 48 | printk("power off rtl8189.\n"); 49 | gpio_free(WMT_PIN_GP62_SUSGPIO1); 50 | printk("[rtl8189es] %s: remove card, power off.\n", __FUNCTION__); 51 | } 52 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_CfoTracking.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 __PHYDMCFOTRACK_H__ 22 | #define __PHYDMCFOTRACK_H__ 23 | 24 | #define CFO_TRACKING_VERSION "1.0" 25 | 26 | #define CFO_TH_XTAL_HIGH 20 // kHz 27 | #define CFO_TH_XTAL_LOW 10 // kHz 28 | #define CFO_TH_ATC 80 // kHz 29 | 30 | typedef struct _CFO_TRACKING_ { 31 | BOOLEAN bATCStatus; 32 | BOOLEAN largeCFOHit; 33 | BOOLEAN bAdjust; 34 | u1Byte CrystalCap; 35 | u1Byte DefXCap; 36 | int CFO_tail[2]; 37 | int CFO_ave_pre; 38 | u4Byte packetCount; 39 | u4Byte packetCount_pre; 40 | 41 | BOOLEAN bForceXtalCap; 42 | BOOLEAN bReset; 43 | } CFO_TRACKING, *PCFO_TRACKING; 44 | 45 | VOID 46 | ODM_CfoTrackingReset( 47 | IN PVOID pDM_VOID 48 | ); 49 | 50 | VOID 51 | ODM_CfoTrackingInit( 52 | IN PVOID pDM_VOID 53 | ); 54 | 55 | VOID 56 | ODM_CfoTracking( 57 | IN PVOID pDM_VOID 58 | ); 59 | 60 | VOID 61 | ODM_ParsingCFO( 62 | IN PVOID pDM_VOID, 63 | IN PVOID pPktinfo_VOID, 64 | IN s1Byte* pcfotail 65 | ); 66 | 67 | #endif -------------------------------------------------------------------------------- /include/ethernet.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 | /*! \file */ 21 | #ifndef __INC_ETHERNET_H 22 | #define __INC_ETHERNET_H 23 | 24 | #define ETHERNET_ADDRESS_LENGTH 6 //!< Ethernet Address Length 25 | #define ETHERNET_HEADER_SIZE 14 //!< Ethernet Header Length 26 | #define LLC_HEADER_SIZE 6 //!< LLC Header Length 27 | #define TYPE_LENGTH_FIELD_SIZE 2 //!< Type/Length Size 28 | #define MINIMUM_ETHERNET_PACKET_SIZE 60 //!< Minimum Ethernet Packet Size 29 | #define MAXIMUM_ETHERNET_PACKET_SIZE 1514 //!< Maximum Ethernet Packet Size 30 | 31 | #define RT_ETH_IS_MULTICAST(_pAddr) ((((UCHAR *)(_pAddr))[0]&0x01)!=0) //!< Is Multicast Address? 32 | #define RT_ETH_IS_BROADCAST(_pAddr) ( \ 33 | ((UCHAR *)(_pAddr))[0]==0xff && \ 34 | ((UCHAR *)(_pAddr))[1]==0xff && \ 35 | ((UCHAR *)(_pAddr))[2]==0xff && \ 36 | ((UCHAR *)(_pAddr))[3]==0xff && \ 37 | ((UCHAR *)(_pAddr))[4]==0xff && \ 38 | ((UCHAR *)(_pAddr))[5]==0xff ) //!< Is Broadcast Address? 39 | 40 | 41 | #endif // #ifndef __INC_ETHERNET_H 42 | 43 | -------------------------------------------------------------------------------- /include/rtl8723b_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 __RTL8723B_RECV_H__ 21 | #define __RTL8723B_RECV_H__ 22 | 23 | #include 24 | 25 | #ifdef CONFIG_SDIO_HCI 26 | #ifndef CONFIG_SDIO_RX_COPY 27 | #undef MAX_RECVBUF_SZ 28 | #define MAX_RECVBUF_SZ (RX_DMA_SIZE_8723B - RX_DMA_RESERVED_SIZE_8723B) 29 | #endif // !CONFIG_SDIO_RX_COPY 30 | #endif // CONFIG_SDIO_HCI 31 | 32 | #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 33 | s32 rtl8723bs_init_recv_priv(PADAPTER padapter); 34 | void rtl8723bs_free_recv_priv(PADAPTER padapter); 35 | #endif 36 | 37 | #ifdef CONFIG_USB_HCI 38 | int rtl8723bu_init_recv_priv(_adapter *padapter); 39 | void rtl8723bu_free_recv_priv (_adapter *padapter); 40 | void rtl8723bu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf); 41 | #endif 42 | 43 | #ifdef CONFIG_PCI_HCI 44 | s32 rtl8723be_init_recv_priv(PADAPTER padapter); 45 | void rtl8723be_free_recv_priv(PADAPTER padapter); 46 | #endif 47 | 48 | void rtl8723b_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc); 49 | 50 | #endif /* __RTL8723B_RECV_H__ */ 51 | 52 | -------------------------------------------------------------------------------- /os_dep/linux/rtw_proc.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 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 __RTW_PROC_H__ 21 | #define __RTW_PROC_H__ 22 | 23 | #include 24 | #include 25 | 26 | struct rtw_proc_hdl { 27 | char *name; 28 | int (*show)(struct seq_file *, void *); 29 | ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data); 30 | }; 31 | 32 | #ifdef CONFIG_PROC_DEBUG 33 | 34 | struct proc_dir_entry *get_rtw_drv_proc(void); 35 | int rtw_drv_proc_init(void); 36 | void rtw_drv_proc_deinit(void); 37 | struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev); 38 | void rtw_adapter_proc_deinit(struct net_device *dev); 39 | void rtw_adapter_proc_replace(struct net_device *dev); 40 | 41 | #else //!CONFIG_PROC_DEBUG 42 | 43 | #define get_rtw_drv_proc() NULL 44 | #define rtw_drv_proc_init() 0 45 | #define rtw_drv_proc_deinit() do {} while (0) 46 | #define rtw_adapter_proc_init(dev) NULL 47 | #define rtw_adapter_proc_deinit(dev) do {} while (0) 48 | #define rtw_adapter_proc_replace(dev) do {} while (0) 49 | 50 | #endif //!CONFIG_PROC_DEBUG 51 | 52 | #endif //__RTW_PROC_H__ 53 | -------------------------------------------------------------------------------- /include/rtw_odm.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 __RTW_ODM_H__ 21 | #define __RTW_ODM_H__ 22 | 23 | #include 24 | #include "../hal/OUTSRC/phydm_types.h" 25 | /* 26 | * This file provides utilities/wrappers for rtw driver to use ODM 27 | */ 28 | 29 | void rtw_odm_dbg_comp_msg(void *sel,_adapter *adapter); 30 | void rtw_odm_dbg_comp_set(_adapter *adapter, u64 comps); 31 | void rtw_odm_dbg_level_msg(void *sel,_adapter *adapter); 32 | void rtw_odm_dbg_level_set(_adapter *adapter, u32 level); 33 | 34 | void rtw_odm_ability_msg(void *sel, _adapter *adapter); 35 | void rtw_odm_ability_set(_adapter *adapter, u32 ability); 36 | 37 | bool rtw_odm_adaptivity_needed(_adapter *adapter); 38 | void rtw_odm_adaptivity_parm_msg(void *sel,_adapter *adapter); 39 | void rtw_odm_adaptivity_parm_set(_adapter *adapter, s8 TH_L2H_ini, s8 TH_EDCCA_HL_diff, 40 | s8 IGI_Base, u32 FABound); 41 | void rtw_odm_get_perpkt_rssi(void *sel, _adapter *adapter); 42 | void rtw_odm_acquirespinlock(_adapter *adapter, RT_SPINLOCK_TYPE type); 43 | void rtw_odm_releasespinlock(_adapter *adapter, RT_SPINLOCK_TYPE type); 44 | #endif // __RTW_ODM_H__ 45 | -------------------------------------------------------------------------------- /include/usb_hal.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 __USB_HAL_H__ 21 | #define __USB_HAL_H__ 22 | 23 | int usb_init_recv_priv(_adapter *padapter, u16 ini_in_buf_sz); 24 | void usb_free_recv_priv (_adapter *padapter, u16 ini_in_buf_sz); 25 | 26 | void rtw_set_hal_ops(_adapter *padapter); 27 | 28 | #ifdef CONFIG_RTL8192C 29 | void rtl8192cu_set_hal_ops(_adapter * padapter); 30 | #endif 31 | 32 | #ifdef CONFIG_RTL8192D 33 | void rtl8192du_set_hal_ops(_adapter * padapter); 34 | #endif 35 | 36 | #ifdef CONFIG_RTL8723A 37 | void rtl8723au_set_hal_ops(_adapter * padapter); 38 | #endif 39 | 40 | #ifdef CONFIG_RTL8188E 41 | void rtl8188eu_set_hal_ops(_adapter * padapter); 42 | #endif 43 | 44 | #if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) 45 | void rtl8812au_set_hal_ops(_adapter * padapter); 46 | #endif 47 | 48 | #ifdef CONFIG_RTL8192E 49 | void rtl8192eu_set_hal_ops(_adapter * padapter); 50 | #endif 51 | 52 | 53 | #ifdef CONFIG_RTL8723B 54 | void rtl8723bu_set_hal_ops(_adapter * padapter); 55 | #endif 56 | 57 | #ifdef CONFIG_INTEL_PROXIM 58 | extern _adapter *rtw_usb_get_sw_pointer(void); 59 | #endif //CONFIG_INTEL_PROXIM 60 | #endif //__USB_HAL_H__ 61 | 62 | -------------------------------------------------------------------------------- /include/rtw_sreset.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2012 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 _RTW_SRESET_H_ 21 | #define _RTW_SRESET_H_ 22 | 23 | //#include 24 | 25 | enum { 26 | SRESET_TGP_NULL = 0, 27 | SRESET_TGP_XMIT_STATUS = 1, 28 | SRESET_TGP_LINK_STATUS = 2, 29 | }; 30 | 31 | struct sreset_priv { 32 | _mutex silentreset_mutex; 33 | u8 silent_reset_inprogress; 34 | u8 Wifi_Error_Status; 35 | unsigned long last_tx_time; 36 | unsigned long last_tx_complete_time; 37 | 38 | s32 dbg_trigger_point; 39 | }; 40 | 41 | 42 | 43 | #define WIFI_STATUS_SUCCESS 0 44 | #define USB_VEN_REQ_CMD_FAIL BIT0 45 | #define USB_READ_PORT_FAIL BIT1 46 | #define USB_WRITE_PORT_FAIL BIT2 47 | #define WIFI_MAC_TXDMA_ERROR BIT3 48 | #define WIFI_TX_HANG BIT4 49 | #define WIFI_RX_HANG BIT5 50 | #define WIFI_IF_NOT_EXIST BIT6 51 | 52 | void sreset_init_value(_adapter *padapter); 53 | void sreset_reset_value(_adapter *padapter); 54 | u8 sreset_get_wifi_status(_adapter *padapter); 55 | void sreset_set_wifi_error_status(_adapter *padapter, u32 status); 56 | void sreset_set_trigger_point(_adapter *padapter, s32 tgp); 57 | bool sreset_inprogress(_adapter *padapter); 58 | void sreset_reset(_adapter *padapter); 59 | 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/sdio_ops_xp.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 _SDIO_OPS_XP_H_ 21 | #define _SDIO_OPS_XP_H_ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | 29 | #ifdef PLATFORM_OS_XP 30 | 31 | 32 | extern u8 sdbus_cmd52r_xp(struct intf_priv *pintfpriv, u32 addr); 33 | 34 | 35 | extern void sdbus_cmd52w_xp(struct intf_priv *pintfpriv, u32 addr,u8 val8); 36 | 37 | 38 | uint sdbus_read_blocks_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 39 | 40 | extern uint sdbus_read_bytes_to_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 41 | 42 | 43 | extern uint sdbus_write_blocks_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf,u8 async); 44 | 45 | extern uint sdbus_write_bytes_from_membuf_xp(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 46 | extern u8 sdbus_func1cmd52r_xp(struct intf_priv *pintfpriv, u32 addr); 47 | extern void sdbus_func1cmd52w_xp(struct intf_priv *pintfpriv, u32 addr, u8 val8); 48 | extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata); 49 | extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata); 50 | extern void sdio_read_int(_adapter *padapter, u32 addr,u8 sz,void *pdata); 51 | 52 | #endif 53 | 54 | #endif 55 | 56 | -------------------------------------------------------------------------------- /include/sdio_ops_ce.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 _SDIO_OPS_WINCE_H_ 21 | #define _SDIO_OPS_WINCE_H_ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | 29 | #ifdef PLATFORM_OS_CE 30 | 31 | 32 | extern u8 sdbus_cmd52r_ce(struct intf_priv *pintfpriv, u32 addr); 33 | 34 | 35 | extern void sdbus_cmd52w_ce(struct intf_priv *pintfpriv, u32 addr,u8 val8); 36 | 37 | 38 | uint sdbus_read_blocks_to_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 39 | 40 | extern uint sdbus_read_bytes_to_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 41 | 42 | 43 | extern uint sdbus_write_blocks_from_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf,u8 async); 44 | 45 | extern uint sdbus_write_bytes_from_membuf_ce(struct intf_priv *pintfpriv, u32 addr, u32 cnt, u8 *pbuf); 46 | extern u8 sdbus_func1cmd52r_ce(struct intf_priv *pintfpriv, u32 addr); 47 | extern void sdbus_func1cmd52w_ce(struct intf_priv *pintfpriv, u32 addr, u8 val8); 48 | extern uint sdbus_read_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata); 49 | extern uint sdbus_write_reg(struct intf_priv *pintfpriv, u32 addr, u32 cnt,void *pdata); 50 | extern void sdio_read_int(_adapter *padapter, u32 addr,u8 sz,void *pdata); 51 | 52 | #endif 53 | 54 | #endif 55 | 56 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/HalHWImg8821A_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 (RTL8821A_SUPPORT == 1) 22 | #ifndef __INC_MP_BB_HW_IMG_8821A_H 23 | #define __INC_MP_BB_HW_IMG_8821A_H 24 | 25 | 26 | /****************************************************************************** 27 | * AGC_TAB.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadAndConfig_MP_8821A_AGC_TAB( // TC: Test Chip, MP: MP Chip 32 | IN PDM_ODM_T pDM_Odm 33 | ); 34 | u4Byte ODM_GetVersion_MP_8821A_AGC_TAB(void); 35 | 36 | /****************************************************************************** 37 | * PHY_REG.TXT 38 | ******************************************************************************/ 39 | 40 | void 41 | ODM_ReadAndConfig_MP_8821A_PHY_REG( // TC: Test Chip, MP: MP Chip 42 | IN PDM_ODM_T pDM_Odm 43 | ); 44 | u4Byte ODM_GetVersion_MP_8821A_PHY_REG(void); 45 | 46 | /****************************************************************************** 47 | * PHY_REG_PG.TXT 48 | ******************************************************************************/ 49 | 50 | void 51 | ODM_ReadAndConfig_MP_8821A_PHY_REG_PG( // TC: Test Chip, MP: MP Chip 52 | IN PDM_ODM_T pDM_Odm 53 | ); 54 | u4Byte ODM_GetVersion_MP_8821A_PHY_REG_PG(void); 55 | 56 | #endif 57 | #endif // end of HWIMG_SUPPORT 58 | -------------------------------------------------------------------------------- /include/drv_types_sdio.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 __DRV_TYPES_SDIO_H__ 21 | #define __DRV_TYPES_SDIO_H__ 22 | 23 | // SDIO Header Files 24 | #ifdef PLATFORM_LINUX 25 | #include 26 | #include 27 | 28 | #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN) || defined(CONFIG_PLATFORM_SPRD) 29 | #include 30 | #include 31 | #endif 32 | 33 | #ifdef CONFIG_PLATFORM_SPRD 34 | #include 35 | #include 36 | #endif // CONFIG_PLATFORM_SPRD 37 | #endif 38 | 39 | #ifdef PLATFORM_OS_XP 40 | #include 41 | #include 42 | #endif 43 | 44 | #ifdef PLATFORM_OS_CE 45 | #include 46 | #endif 47 | 48 | 49 | typedef struct sdio_data { 50 | u8 func_number; 51 | 52 | u8 tx_block_mode; 53 | u8 rx_block_mode; 54 | u32 block_transfer_len; 55 | 56 | #ifdef PLATFORM_LINUX 57 | struct sdio_func *func; 58 | _thread_hdl_ sys_sdio_irq_thd; 59 | #endif 60 | 61 | #ifdef PLATFORM_OS_XP 62 | PDEVICE_OBJECT pphysdevobj; 63 | PDEVICE_OBJECT pfuncdevobj; 64 | PDEVICE_OBJECT pnextdevobj; 65 | SDBUS_INTERFACE_STANDARD sdbusinft; 66 | u8 nextdevstacksz; 67 | #endif 68 | 69 | #ifdef PLATFORM_OS_CE 70 | SD_DEVICE_HANDLE hDevice; 71 | SD_CARD_RCA sd_rca; 72 | SD_CARD_INTERFACE card_intf; 73 | BOOLEAN enableIsarWithStatus; 74 | WCHAR active_path[MAX_ACTIVE_REG_PATH]; 75 | SD_HOST_BLOCK_CAPABILITY sd_host_blk_cap; 76 | #endif 77 | } SDIO_DATA, *PSDIO_DATA; 78 | 79 | #endif 80 | 81 | -------------------------------------------------------------------------------- /include/Hal8723APhyReg.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_HAL8723APHYREG_H__ 21 | #define __INC_HAL8723APHYREG_H__ 22 | 23 | #include 24 | 25 | // 26 | // PageB(0xB00) 27 | // 28 | #define rPdp_AntA 0xb00 29 | #define rPdp_AntA_4 0xb04 30 | #define rPdp_AntA_8 0xb08 31 | #define rPdp_AntA_C 0xb0c 32 | #define rPdp_AntA_10 0xb10 33 | #define rPdp_AntA_14 0xb14 34 | #define rPdp_AntA_18 0xb18 35 | #define rPdp_AntA_1C 0xb1c 36 | #define rPdp_AntA_20 0xb20 37 | #define rPdp_AntA_24 0xb24 38 | 39 | #define rConfig_Pmpd_AntA 0xb28 40 | #define rConfig_ram64x16 0xb2c 41 | 42 | #define rBndA 0xb30 43 | #define rHssiPar 0xb34 44 | 45 | #define rConfig_AntA 0xb68 46 | #define rConfig_AntB 0xb6c 47 | 48 | #define rPdp_AntB 0xb70 49 | #define rPdp_AntB_4 0xb74 50 | #define rPdp_AntB_8 0xb78 51 | #define rPdp_AntB_C 0xb7c 52 | #define rPdp_AntB_10 0xb80 53 | #define rPdp_AntB_14 0xb84 54 | #define rPdp_AntB_18 0xb88 55 | #define rPdp_AntB_1C 0xb8c 56 | #define rPdp_AntB_20 0xb90 57 | #define rPdp_AntB_24 0xb94 58 | 59 | #define rConfig_Pmpd_AntB 0xb98 60 | 61 | #define rBndB 0xba0 62 | 63 | #define rAPK 0xbd8 64 | #define rPm_Rx0_AntA 0xbdc 65 | #define rPm_Rx1_AntA 0xbe0 66 | #define rPm_Rx2_AntA 0xbe4 67 | #define rPm_Rx3_AntA 0xbe8 68 | #define rPm_Rx0_AntB 0xbec 69 | #define rPm_Rx1_AntB 0xbf0 70 | #define rPm_Rx2_AntB 0xbf4 71 | #define rPm_Rx3_AntB 0xbf8 72 | 73 | #endif 74 | 75 | -------------------------------------------------------------------------------- /include/usb_vendor_req.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 _USB_VENDOR_REQUEST_H_ 21 | #define _USB_VENDOR_REQUEST_H_ 22 | 23 | //4 Set/Get Register related wIndex/Data 24 | #define RT_USB_RESET_MASK_OFF 0 25 | #define RT_USB_RESET_MASK_ON 1 26 | #define RT_USB_SLEEP_MASK_OFF 0 27 | #define RT_USB_SLEEP_MASK_ON 1 28 | #define RT_USB_LDO_ON 1 29 | #define RT_USB_LDO_OFF 0 30 | 31 | //4 Set/Get SYSCLK related wValue or Data 32 | #define RT_USB_SYSCLK_32KHZ 0 33 | #define RT_USB_SYSCLK_40MHZ 1 34 | #define RT_USB_SYSCLK_60MHZ 2 35 | 36 | 37 | typedef enum _RT_USB_BREQUEST { 38 | RT_USB_SET_REGISTER = 1, 39 | RT_USB_SET_SYSCLK = 2, 40 | RT_USB_GET_SYSCLK = 3, 41 | RT_USB_GET_REGISTER = 4 42 | } RT_USB_BREQUEST; 43 | 44 | 45 | typedef enum _RT_USB_WVALUE { 46 | RT_USB_RESET_MASK = 1, 47 | RT_USB_SLEEP_MASK = 2, 48 | RT_USB_USB_HRCPWM = 3, 49 | RT_USB_LDO = 4, 50 | RT_USB_BOOT_TYPE = 5 51 | } RT_USB_WVALUE; 52 | 53 | 54 | //BOOLEAN usbvendorrequest(PCE_USB_DEVICE CEdevice, RT_USB_BREQUEST bRequest, RT_USB_WVALUE wValue, UCHAR wIndex, PVOID Data, UCHAR DataLength, BOOLEAN isDirectionIn); 55 | //BOOLEAN CEusbGetStatusRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT Index, PVOID Data); 56 | //BOOLEAN CEusbFeatureRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT FeatureSelector, IN USHORT Index); 57 | //BOOLEAN CEusbGetDescriptorRequest(PCE_USB_DEVICE CEdevice, IN short urbLength, IN UCHAR DescriptorType, IN UCHAR Index, IN USHORT LanguageId, IN PVOID TransferBuffer, IN ULONG TransferBufferLength); 58 | 59 | #endif 60 | 61 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8812a/HalHWImg8812A_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 (RTL8812A_SUPPORT == 1) 22 | #ifndef __INC_MP_FW_HW_IMG_8812A_H 23 | #define __INC_MP_FW_HW_IMG_8812A_H 24 | 25 | 26 | /****************************************************************************** 27 | * FW_NIC.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadFirmware_MP_8812A_FW_NIC( 32 | IN PDM_ODM_T pDM_Odm, 33 | OUT u1Byte *pFirmware, 34 | OUT u4Byte *pFirmwareSize 35 | ); 36 | u4Byte 37 | ODM_GetVersion_MP_8812A_FW_NIC(VOID); 38 | 39 | /****************************************************************************** 40 | * FW_NIC_BT.TXT 41 | ******************************************************************************/ 42 | 43 | void 44 | ODM_ReadFirmware_MP_8812A_FW_NIC_BT( 45 | IN PDM_ODM_T pDM_Odm, 46 | OUT u1Byte *pFirmware, 47 | OUT u4Byte *pFirmwareSize 48 | ); 49 | u4Byte 50 | ODM_GetVersion_MP_8812A_FW_NIC_BT(VOID); 51 | 52 | /****************************************************************************** 53 | * FW_WoWLAN.TXT 54 | ******************************************************************************/ 55 | 56 | void 57 | ODM_ReadFirmware_MP_8812A_FW_WoWLAN( 58 | IN PDM_ODM_T pDM_Odm, 59 | OUT u1Byte *pFirmware, 60 | OUT u4Byte *pFirmwareSize 61 | ); 62 | u4Byte 63 | ODM_GetVersion_MP_8812A_FW_WoWLAN(VOID); 64 | 65 | #endif 66 | #endif // end of HWIMG_SUPPORT 67 | 68 | -------------------------------------------------------------------------------- /include/rtw_br_ext.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 _RTW_BR_EXT_H_ 21 | #define _RTW_BR_EXT_H_ 22 | 23 | #if 1 // rtw_wifi_driver 24 | #define CL_IPV6_PASS 1 25 | #define MACADDRLEN 6 26 | #define _DEBUG_ERR DBG_8192C 27 | #define _DEBUG_INFO //DBG_8192C 28 | #define DEBUG_WARN DBG_8192C 29 | #define DEBUG_INFO //DBG_8192C 30 | #define DEBUG_ERR DBG_8192C 31 | //#define GET_MY_HWADDR ((GET_MIB(priv))->dot11OperationEntry.hwaddr) 32 | #define GET_MY_HWADDR(padapter) ((padapter)->eeprompriv.mac_addr) 33 | #endif // rtw_wifi_driver 34 | 35 | #define NAT25_HASH_BITS 4 36 | #define NAT25_HASH_SIZE (1 << NAT25_HASH_BITS) 37 | #define NAT25_AGEING_TIME 300 38 | 39 | #ifdef CL_IPV6_PASS 40 | #define MAX_NETWORK_ADDR_LEN 17 41 | #else 42 | #define MAX_NETWORK_ADDR_LEN 11 43 | #endif 44 | 45 | struct nat25_network_db_entry { 46 | struct nat25_network_db_entry *next_hash; 47 | struct nat25_network_db_entry **pprev_hash; 48 | atomic_t use_count; 49 | unsigned char macAddr[6]; 50 | unsigned long ageing_timer; 51 | unsigned char networkAddr[MAX_NETWORK_ADDR_LEN]; 52 | }; 53 | 54 | enum NAT25_METHOD { 55 | NAT25_MIN, 56 | NAT25_CHECK, 57 | NAT25_INSERT, 58 | NAT25_LOOKUP, 59 | NAT25_PARSE, 60 | NAT25_MAX 61 | }; 62 | 63 | struct br_ext_info { 64 | unsigned int nat25_disable; 65 | unsigned int macclone_enable; 66 | unsigned int dhcp_bcst_disable; 67 | int addPPPoETag; // 1: Add PPPoE relay-SID, 0: disable 68 | unsigned char nat25_dmzMac[MACADDRLEN]; 69 | unsigned int nat25sc_disable; 70 | }; 71 | 72 | void nat25_db_cleanup(_adapter *priv); 73 | 74 | #endif // _RTW_BR_EXT_H_ 75 | 76 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_DynamicTxPower.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 __PHYDMDYNAMICTXPOWER_H__ 22 | #define __PHYDMDYNAMICTXPOWER_H__ 23 | 24 | #define DYNAMIC_TXPWR_VERSION "1.0" 25 | 26 | #define TX_POWER_NEAR_FIELD_THRESH_LVL2 74 27 | #define TX_POWER_NEAR_FIELD_THRESH_LVL1 67 28 | #define TX_POWER_NEAR_FIELD_THRESH_AP 0x3F 29 | #define TX_POWER_NEAR_FIELD_THRESH_8812 60 30 | 31 | #define TxHighPwrLevel_Normal 0 32 | #define TxHighPwrLevel_Level1 1 33 | #define TxHighPwrLevel_Level2 2 34 | #define TxHighPwrLevel_BT1 3 35 | #define TxHighPwrLevel_BT2 4 36 | #define TxHighPwrLevel_15 5 37 | #define TxHighPwrLevel_35 6 38 | #define TxHighPwrLevel_50 7 39 | #define TxHighPwrLevel_70 8 40 | #define TxHighPwrLevel_100 9 41 | 42 | VOID 43 | odm_DynamicTxPowerInit( 44 | IN PVOID pDM_VOID 45 | ); 46 | 47 | VOID 48 | odm_DynamicTxPowerRestorePowerIndex( 49 | IN PVOID pDM_VOID 50 | ); 51 | 52 | VOID 53 | odm_DynamicTxPowerNIC( 54 | IN PVOID pDM_VOID 55 | ); 56 | 57 | #if(DM_ODM_SUPPORT_TYPE & (ODM_WIN|ODM_CE)) 58 | VOID 59 | odm_DynamicTxPowerSavePowerIndex( 60 | IN PVOID pDM_VOID 61 | ); 62 | 63 | VOID 64 | odm_DynamicTxPowerWritePowerIndex( 65 | IN PVOID pDM_VOID, 66 | IN u1Byte Value); 67 | 68 | VOID 69 | odm_DynamicTxPower_92C( 70 | IN PVOID pDM_VOID 71 | ); 72 | 73 | VOID 74 | odm_DynamicTxPower_92D( 75 | IN PVOID pDM_VOID 76 | ); 77 | #endif 78 | 79 | VOID 80 | odm_DynamicTxPower( 81 | IN PVOID pDM_VOID 82 | ); 83 | 84 | VOID 85 | odm_DynamicTxPowerAP( 86 | IN PVOID pDM_VOID 87 | ); 88 | 89 | #endif 90 | -------------------------------------------------------------------------------- /hal/OUTSRC/HalPhyRf.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 __HAL_PHY_RF_H__ 22 | #define __HAL_PHY_RF_H__ 23 | 24 | typedef enum _SPUR_CAL_METHOD { 25 | PLL_RESET, 26 | AFE_PHASE_SEL 27 | } SPUR_CAL_METHOD; 28 | 29 | typedef enum _PWRTRACK_CONTROL_METHOD { 30 | BBSWING, 31 | TXAGC, 32 | MIX_MODE 33 | } PWRTRACK_METHOD; 34 | 35 | typedef VOID (*FuncSetPwr)(PDM_ODM_T, PWRTRACK_METHOD, u1Byte, u1Byte); 36 | typedef VOID (*FuncIQK)(PDM_ODM_T, u1Byte, u1Byte, u1Byte); 37 | typedef VOID (*FuncLCK)(PDM_ODM_T); 38 | typedef VOID (*FuncSwing)(PDM_ODM_T, pu1Byte*, pu1Byte*, pu1Byte*, pu1Byte*); 39 | 40 | typedef struct _TXPWRTRACK_CFG { 41 | u1Byte SwingTableSize_CCK; 42 | u1Byte SwingTableSize_OFDM; 43 | u1Byte Threshold_IQK; 44 | u1Byte AverageThermalNum; 45 | u1Byte RfPathCount; 46 | u4Byte ThermalRegAddr; 47 | FuncSetPwr ODM_TxPwrTrackSetPwr; 48 | FuncIQK DoIQK; 49 | FuncLCK PHY_LCCalibrate; 50 | FuncSwing GetDeltaSwingTable; 51 | } TXPWRTRACK_CFG, *PTXPWRTRACK_CFG; 52 | 53 | void ConfigureTxpowerTrack( 54 | IN PDM_ODM_T pDM_Odm, 55 | OUT PTXPWRTRACK_CFG pConfig 56 | ); 57 | 58 | 59 | VOID 60 | ODM_ClearTxPowerTrackingState( 61 | IN PDM_ODM_T pDM_Odm 62 | ); 63 | 64 | VOID 65 | ODM_TXPowerTrackingCallback_ThermalMeter( 66 | #if (DM_ODM_SUPPORT_TYPE & ODM_AP) 67 | IN PDM_ODM_T pDM_Odm 68 | #else 69 | IN PADAPTER Adapter 70 | #endif 71 | ); 72 | 73 | 74 | 75 | #define ODM_TARGET_CHNL_NUM_2G_5G 59 76 | 77 | 78 | VOID 79 | ODM_ResetIQKResult( 80 | IN PDM_ODM_T pDM_Odm 81 | ); 82 | u1Byte 83 | ODM_GetRightChnlPlaceforIQK( 84 | IN u1Byte chnl 85 | ); 86 | 87 | 88 | #endif // #ifndef __HAL_PHY_RF_H__ 89 | 90 | -------------------------------------------------------------------------------- /core/rtw_mem.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | MODULE_LICENSE("GPL"); 6 | MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); 7 | MODULE_AUTHOR("Realtek Semiconductor Corp."); 8 | MODULE_VERSION("DRIVERVERSION"); 9 | 10 | struct sk_buff_head rtk_skb_mem_q; 11 | struct u8* rtk_buf_mem[NR_RECVBUFF]; 12 | 13 | struct u8 * rtw_get_buf_premem(int index) 14 | { 15 | printk("%s, rtk_buf_mem index : %d\n", __func__, index); 16 | return rtk_buf_mem[index]; 17 | } 18 | 19 | struct sk_buff *rtw_alloc_skb_premem(void) 20 | { 21 | struct sk_buff *skb = NULL; 22 | 23 | skb = skb_dequeue(&rtk_skb_mem_q); 24 | 25 | printk("%s, rtk_skb_mem_q len : %d\n", __func__, skb_queue_len(&rtk_skb_mem_q)); 26 | 27 | return skb; 28 | } 29 | EXPORT_SYMBOL(rtw_alloc_skb_premem); 30 | 31 | int rtw_free_skb_premem(struct sk_buff *pskb) 32 | { 33 | if(!pskb) 34 | return -1; 35 | 36 | if(skb_queue_len(&rtk_skb_mem_q) >= NR_PREALLOC_RECV_SKB) 37 | return -1; 38 | 39 | skb_queue_tail(&rtk_skb_mem_q, pskb); 40 | 41 | printk("%s, rtk_skb_mem_q len : %d\n", __func__, skb_queue_len(&rtk_skb_mem_q)); 42 | 43 | return 0; 44 | } 45 | EXPORT_SYMBOL(rtw_free_skb_premem); 46 | 47 | static int __init rtw_mem_init(void) 48 | { 49 | int i; 50 | SIZE_PTR tmpaddr=0; 51 | SIZE_PTR alignment=0; 52 | struct sk_buff *pskb=NULL; 53 | 54 | printk("%s\n", __func__); 55 | 56 | #ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX 57 | for(i=0; idata; 68 | alignment = tmpaddr & (RECVBUFF_ALIGN_SZ-1); 69 | skb_reserve(pskb, (RECVBUFF_ALIGN_SZ - alignment)); 70 | 71 | skb_queue_tail(&rtk_skb_mem_q, pskb); 72 | } else { 73 | printk("%s, alloc skb memory fail!\n", __func__); 74 | } 75 | 76 | pskb=NULL; 77 | } 78 | 79 | printk("%s, rtk_skb_mem_q len : %d\n", __func__, skb_queue_len(&rtk_skb_mem_q)); 80 | 81 | return 0; 82 | 83 | } 84 | 85 | static void __exit rtw_mem_exit(void) 86 | { 87 | if (skb_queue_len(&rtk_skb_mem_q)) { 88 | printk("%s, rtk_skb_mem_q len : %d\n", __func__, skb_queue_len(&rtk_skb_mem_q)); 89 | } 90 | 91 | skb_queue_purge(&rtk_skb_mem_q); 92 | 93 | printk("%s\n", __func__); 94 | } 95 | 96 | module_init(rtw_mem_init); 97 | module_exit(rtw_mem_exit); 98 | -------------------------------------------------------------------------------- /platform/platform_sprd_sdio.c: -------------------------------------------------------------------------------- 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 | #include 21 | 22 | extern void sdhci_bus_scan(void); 23 | #ifndef ANDROID_2X 24 | extern int sdhci_device_attached(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 | 37 | #ifdef CONFIG_RTL8188E 38 | rtw_wifi_gpio_wlan_ctrl(WLAN_POWER_ON); 39 | #endif // CONFIG_RTL8188E 40 | 41 | /* Pull up pwd pin, make wifi leave power down mode. */ 42 | rtw_wifi_gpio_init(); 43 | rtw_wifi_gpio_wlan_ctrl(WLAN_PWDN_ON); 44 | 45 | #if (MP_DRIVER == 1) && (defined(CONFIG_RTL8723A)||defined(CONFIG_RTL8723B)) 46 | // Pull up BT reset pin. 47 | rtw_wifi_gpio_wlan_ctrl(WLAN_BT_PWDN_ON); 48 | #endif 49 | rtw_mdelay_os(5); 50 | 51 | sdhci_bus_scan(); 52 | #ifdef CONFIG_RTL8723B 53 | //YJ,test,130305 54 | rtw_mdelay_os(1000); 55 | #endif 56 | #ifdef ANDROID_2X 57 | rtw_mdelay_os(200); 58 | #else // !ANDROID_2X 59 | if (1) { 60 | int i = 0; 61 | 62 | for (i = 0; i <= 50; i++) { 63 | msleep(10); 64 | if (sdhci_device_attached()) 65 | break; 66 | printk("%s delay times:%d\n", __func__, i); 67 | } 68 | } 69 | #endif // !ANDROID_2X 70 | 71 | return ret; 72 | } 73 | 74 | void platform_wifi_power_off(void) 75 | { 76 | /* Pull down pwd pin, make wifi enter power down mode. */ 77 | rtw_wifi_gpio_wlan_ctrl(WLAN_PWDN_OFF); 78 | rtw_mdelay_os(5); 79 | rtw_wifi_gpio_deinit(); 80 | 81 | #ifdef CONFIG_RTL8188E 82 | rtw_wifi_gpio_wlan_ctrl(WLAN_POWER_OFF); 83 | #endif // CONFIG_RTL8188E 84 | 85 | #ifdef CONFIG_WOWLAN 86 | if(mmc_host) 87 | mmc_host->pm_flags &= ~MMC_PM_KEEP_POWER; 88 | #endif // CONFIG_WOWLAN 89 | } 90 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_AntDect.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 __PHYDMANTDECT_H__ 22 | #define __PHYDMANTDECT_H__ 23 | 24 | #define ANTDECT_VERSION "2.0" //2014.11.04 25 | 26 | #if(defined(CONFIG_ANT_DETECTION)) 27 | //#if( DM_ODM_SUPPORT_TYPE & (ODM_WIN |ODM_CE)) 28 | //ANT Test 29 | #define ANTTESTALL 0x00 //Ant A or B will be Testing 30 | #define ANTTESTA 0x01 //Ant A will be Testing 31 | #define ANTTESTB 0x02 //Ant B will be testing 32 | 33 | #define MAX_ANTENNA_DETECTION_CNT 10 34 | 35 | 36 | typedef struct _ANT_DETECTED_INFO { 37 | BOOLEAN bAntDetected; 38 | u4Byte dBForAntA; 39 | u4Byte dBForAntB; 40 | u4Byte dBForAntO; 41 | } ANT_DETECTED_INFO, *PANT_DETECTED_INFO; 42 | 43 | 44 | typedef enum tag_SW_Antenna_Switch_Definition { 45 | Antenna_A = 1, 46 | Antenna_B = 2, 47 | Antenna_MAX = 3, 48 | } DM_SWAS_E; 49 | 50 | 51 | 52 | //1 [1. Single Tone Method] =================================================== 53 | 54 | 55 | 56 | VOID 57 | ODM_SingleDualAntennaDefaultSetting( 58 | IN PVOID pDM_VOID 59 | ); 60 | 61 | BOOLEAN 62 | ODM_SingleDualAntennaDetection( 63 | IN PVOID pDM_VOID, 64 | IN u1Byte mode 65 | ); 66 | 67 | //1 [2. Scan AP RSSI Method] ================================================== 68 | 69 | #define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink 70 | 71 | BOOLEAN 72 | ODM_SwAntDivCheckBeforeLink( 73 | IN PVOID pDM_VOID 74 | ); 75 | 76 | 77 | 78 | 79 | //1 [3. PSD Method] ========================================================== 80 | 81 | 82 | VOID 83 | ODM_SingleDualAntennaDetection_PSD( 84 | IN PVOID pDM_VOID 85 | ); 86 | 87 | #endif 88 | 89 | VOID 90 | odm_SwAntDetectInit( 91 | IN PVOID pDM_VOID 92 | ); 93 | 94 | 95 | #endif 96 | -------------------------------------------------------------------------------- /include/sdio_ops_linux.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 __SDIO_OPS_LINUX_H__ 21 | #define __SDIO_OPS_LINUX_H__ 22 | 23 | #define SDIO_ERR_VAL8 0xEA 24 | #define SDIO_ERR_VAL16 0xEAEA 25 | #define SDIO_ERR_VAL32 0xEAEAEAEA 26 | 27 | u8 sd_f0_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 28 | void sd_f0_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err); 29 | 30 | s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 31 | s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 32 | s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 33 | s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 34 | 35 | u8 _sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 36 | u8 sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 37 | u16 sd_read16(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 38 | u32 _sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 39 | u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 40 | s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 41 | s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 42 | void sd_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err); 43 | void sd_write16(struct intf_hdl *pintfhdl, u32 addr, u16 v, s32 *err); 44 | void _sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err); 45 | void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err); 46 | s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 47 | s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 48 | 49 | 50 | void rtw_sdio_set_irq_thd(struct dvobj_priv *dvobj, _thread_hdl_ thd_hdl); 51 | #endif 52 | 53 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8812A_USB.c: -------------------------------------------------------------------------------- 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 | //#include "Mp_Precomp.h" 22 | //#include "../odm_precomp.h" 23 | 24 | #include 25 | #include "../../../hal/OUTSRC/phydm_precomp.h" 26 | #include "HalEfuseMask8812A_USB.h" 27 | 28 | /****************************************************************************** 29 | * MUSB.TXT 30 | ******************************************************************************/ 31 | 32 | u1Byte Array_MP_8812A_MUSB[] = { 33 | 0xFF, 34 | 0xF7, 35 | 0xEF, 36 | 0xDE, 37 | 0xFC, 38 | 0xFB, 39 | 0x10, 40 | 0x00, 41 | 0x00, 42 | 0x00, 43 | 0x00, 44 | 0x0F, 45 | 0xF3, 46 | 0xFF, 47 | 0xFF, 48 | 0xFF, 49 | 0xFF, 50 | 0xF7, 51 | 0x00, 52 | 0xFF, 53 | 0xFF, 54 | 0xF3, 55 | 0x0F, 56 | 0xFF, 57 | 0xF3, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 0x00, 63 | 0x00, 64 | 0x00, 65 | 66 | }; 67 | 68 | u2Byte 69 | EFUSE_GetArrayLen_MP_8812A_MUSB(VOID) 70 | { 71 | return sizeof(Array_MP_8812A_MUSB)/sizeof(u1Byte); 72 | } 73 | 74 | VOID 75 | EFUSE_GetMaskArray_MP_8812A_MUSB( 76 | IN OUT pu1Byte Array 77 | ) 78 | { 79 | u2Byte len = EFUSE_GetArrayLen_MP_8812A_MUSB(), i = 0; 80 | 81 | for (i = 0; i < len; ++i) 82 | Array[i] = Array_MP_8812A_MUSB[i]; 83 | } 84 | BOOLEAN 85 | EFUSE_IsAddressMasked_MP_8812A_MUSB( 86 | IN u2Byte Offset 87 | ) 88 | { 89 | int r = Offset/16; 90 | int c = (Offset%16) / 2; 91 | int result = 0; 92 | 93 | if (c < 4) // Upper double word 94 | result = (Array_MP_8812A_MUSB[r] & (0x10 << c)); 95 | else 96 | result = (Array_MP_8812A_MUSB[r] & (0x01 << (c-4))); 97 | 98 | return (result > 0) ? 0 : 1; 99 | } 100 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8812A_PCIE.c: -------------------------------------------------------------------------------- 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 | //#include "Mp_Precomp.h" 22 | //#include "../odm_precomp.h" 23 | 24 | #include 25 | #include "../../../hal/OUTSRC/phydm_precomp.h" 26 | #include "HalEfuseMask8812A_PCIE.h" 27 | 28 | /****************************************************************************** 29 | * MPCIE.TXT 30 | ******************************************************************************/ 31 | 32 | u1Byte Array_MP_8812A_MPCIE[] = { 33 | 0xFF, 34 | 0xF7, 35 | 0xEF, 36 | 0xDE, 37 | 0xFD, 38 | 0xFB, 39 | 0x10, 40 | 0x00, 41 | 0x00, 42 | 0x00, 43 | 0x00, 44 | 0x0F, 45 | 0xF3, 46 | 0xFF, 47 | 0xFF, 48 | 0x7C, 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 | 0x00, 63 | 0x00, 64 | 0x00, 65 | 66 | }; 67 | 68 | u2Byte 69 | EFUSE_GetArrayLen_MP_8812A_MPCIE(VOID) 70 | { 71 | return sizeof(Array_MP_8812A_MPCIE)/sizeof(u1Byte); 72 | } 73 | 74 | VOID 75 | EFUSE_GetMaskArray_MP_8812A_MPCIE( 76 | IN OUT pu1Byte Array 77 | ) 78 | { 79 | u2Byte len = EFUSE_GetArrayLen_MP_8812A_MPCIE(), i = 0; 80 | 81 | for (i = 0; i < len; ++i) 82 | Array[i] = Array_MP_8812A_MPCIE[i]; 83 | } 84 | BOOLEAN 85 | EFUSE_IsAddressMasked_MP_8812A_MPCIE( 86 | IN u2Byte Offset 87 | ) 88 | { 89 | int r = Offset/16; 90 | int c = (Offset%16) / 2; 91 | int result = 0; 92 | 93 | if (c < 4) // Upper double word 94 | result = (Array_MP_8812A_MPCIE[r] & (0x10 << c)); 95 | else 96 | result = (Array_MP_8812A_MPCIE[r] & (0x01 << (c-4))); 97 | 98 | return (result > 0) ? 0 : 1; 99 | } 100 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8821A_PCIE.c: -------------------------------------------------------------------------------- 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 | //#include "Mp_Precomp.h" 22 | //#include "../odm_precomp.h" 23 | 24 | #include 25 | #include "../../../hal/OUTSRC/phydm_precomp.h" 26 | #include "HalEfuseMask8821A_PCIE.h" 27 | 28 | /****************************************************************************** 29 | * MPCIE.TXT 30 | ******************************************************************************/ 31 | 32 | u1Byte Array_MP_8821A_MPCIE[] = { 33 | 0xFF, 34 | 0xF3, 35 | 0xEF, 36 | 0x90, 37 | 0x00, 38 | 0x00, 39 | 0x00, 40 | 0x00, 41 | 0x00, 42 | 0x00, 43 | 0x00, 44 | 0x0F, 45 | 0xF1, 46 | 0xFF, 47 | 0xFF, 48 | 0xFF, 49 | 0xFF, 50 | 0xFF, 51 | 0xF1, 52 | 0x00, 53 | 0x80, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 0x00, 63 | 0x00, 64 | 0x00, 65 | 66 | }; 67 | 68 | u2Byte 69 | EFUSE_GetArrayLen_MP_8821A_MPCIE(VOID) 70 | { 71 | return sizeof(Array_MP_8821A_MPCIE)/sizeof(u1Byte); 72 | } 73 | 74 | VOID 75 | EFUSE_GetMaskArray_MP_8821A_MPCIE( 76 | IN OUT pu1Byte Array 77 | ) 78 | { 79 | u2Byte len = EFUSE_GetArrayLen_MP_8821A_MPCIE(), i = 0; 80 | 81 | for (i = 0; i < len; ++i) 82 | Array[i] = Array_MP_8821A_MPCIE[i]; 83 | } 84 | BOOLEAN 85 | EFUSE_IsAddressMasked_MP_8821A_MPCIE( 86 | IN u2Byte Offset 87 | ) 88 | { 89 | int r = Offset/16; 90 | int c = (Offset%16) / 2; 91 | int result = 0; 92 | 93 | if (c < 4) // Upper double word 94 | result = (Array_MP_8821A_MPCIE[r] & (0x10 << c)); 95 | else 96 | result = (Array_MP_8821A_MPCIE[r] & (0x01 << (c-4))); 97 | 98 | return (result > 0) ? 0 : 1; 99 | } 100 | -------------------------------------------------------------------------------- /hal/efuse/rtl8812a/HalEfuseMask8821A_USB.c: -------------------------------------------------------------------------------- 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 | //#include "Mp_Precomp.h" 22 | //#include "../odm_precomp.h" 23 | 24 | #include 25 | #include "../../../hal/OUTSRC/phydm_precomp.h" 26 | #include "HalEfuseMask8821A_USB.h" 27 | 28 | 29 | /****************************************************************************** 30 | * MUSB.TXT 31 | ******************************************************************************/ 32 | 33 | 34 | u1Byte Array_MP_8821A_MUSB[] = { 35 | 0xFF, 36 | 0xF3, 37 | 0xEF, 38 | 0x90, 39 | 0x00, 40 | 0x00, 41 | 0x00, 42 | 0x00, 43 | 0x00, 44 | 0x00, 45 | 0x00, 46 | 0x0F, 47 | 0xF1, 48 | 0x00, 49 | 0x00, 50 | 0x00, 51 | 0xBF, 52 | 0xFF, 53 | 0xFF, 54 | 0xFF, 55 | 0xB0, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 0x00, 63 | 0x00, 64 | 0x00, 65 | 0x00, 66 | 0x00, 67 | 68 | }; 69 | 70 | u2Byte 71 | EFUSE_GetArrayLen_MP_8821A_MUSB(VOID) 72 | { 73 | return sizeof(Array_MP_8821A_MUSB)/sizeof(u1Byte); 74 | } 75 | 76 | VOID 77 | EFUSE_GetMaskArray_MP_8821A_MUSB( 78 | IN OUT pu1Byte Array 79 | ) 80 | { 81 | u2Byte len = EFUSE_GetArrayLen_MP_8821A_MUSB(), i = 0; 82 | 83 | for (i = 0; i < len; ++i) 84 | Array[i] = Array_MP_8821A_MUSB[i]; 85 | } 86 | BOOLEAN 87 | EFUSE_IsAddressMasked_MP_8821A_MUSB( 88 | IN u2Byte Offset 89 | ) 90 | { 91 | int r = Offset/16; 92 | int c = (Offset%16) / 2; 93 | int result = 0; 94 | 95 | if (c < 4) // Upper double word 96 | result = (Array_MP_8821A_MUSB[r] & (0x10 << c)); 97 | else 98 | result = (Array_MP_8821A_MUSB[r] & (0x01 << (c-4))); 99 | 100 | return (result > 0) ? 0 : 1; 101 | } 102 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8812a/phydm_RegConfig8812A.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_ODM_REGCONFIG_H_8812A 21 | #define __INC_ODM_REGCONFIG_H_8812A 22 | 23 | #if (RTL8812A_SUPPORT == 1) 24 | 25 | void 26 | odm_ConfigRFReg_8812A( 27 | IN PDM_ODM_T pDM_Odm, 28 | IN u4Byte Addr, 29 | IN u4Byte Data, 30 | IN ODM_RF_RADIO_PATH_E RF_PATH, 31 | IN u4Byte RegAddr 32 | ); 33 | 34 | void 35 | odm_ConfigRF_RadioA_8812A( 36 | IN PDM_ODM_T pDM_Odm, 37 | IN u4Byte Addr, 38 | IN u4Byte Data 39 | ); 40 | 41 | void 42 | odm_ConfigRF_RadioB_8812A( 43 | IN PDM_ODM_T pDM_Odm, 44 | IN u4Byte Addr, 45 | IN u4Byte Data 46 | ); 47 | 48 | void 49 | odm_ConfigMAC_8812A( 50 | IN PDM_ODM_T pDM_Odm, 51 | IN u4Byte Addr, 52 | IN u1Byte Data 53 | ); 54 | 55 | void 56 | odm_ConfigBB_AGC_8812A( 57 | IN PDM_ODM_T pDM_Odm, 58 | IN u4Byte Addr, 59 | IN u4Byte Bitmask, 60 | IN u4Byte Data 61 | ); 62 | 63 | void 64 | odm_ConfigBB_PHY_REG_PG_8812A( 65 | IN PDM_ODM_T pDM_Odm, 66 | IN u4Byte Band, 67 | IN u4Byte RfPath, 68 | IN u4Byte TxNum, 69 | IN u4Byte Addr, 70 | IN u4Byte Bitmask, 71 | IN u4Byte Data 72 | ); 73 | 74 | void 75 | odm_ConfigBB_PHY_8812A( 76 | IN PDM_ODM_T pDM_Odm, 77 | IN u4Byte Addr, 78 | IN u4Byte Bitmask, 79 | IN u4Byte Data 80 | ); 81 | 82 | void 83 | odm_ConfigBB_TXPWR_LMT_8812A( 84 | IN PDM_ODM_T pDM_Odm, 85 | IN pu1Byte Regulation, 86 | IN pu1Byte Band, 87 | IN pu1Byte Bandwidth, 88 | IN pu1Byte RateSection, 89 | IN pu1Byte RfPath, 90 | IN pu1Byte Channel, 91 | IN pu1Byte PowerLimit 92 | ); 93 | 94 | #endif 95 | #endif // end of SUPPORT 96 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/phydm_RegConfig8821A.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_ODM_REGCONFIG_H_8821A 21 | #define __INC_ODM_REGCONFIG_H_8821A 22 | 23 | #if (RTL8821A_SUPPORT == 1) 24 | 25 | void 26 | odm_ConfigRFReg_8821A( 27 | IN PDM_ODM_T pDM_Odm, 28 | IN u4Byte Addr, 29 | IN u4Byte Data, 30 | IN ODM_RF_RADIO_PATH_E RF_PATH, 31 | IN u4Byte RegAddr 32 | ); 33 | 34 | void 35 | odm_ConfigRF_RadioA_8821A( 36 | IN PDM_ODM_T pDM_Odm, 37 | IN u4Byte Addr, 38 | IN u4Byte Data 39 | ); 40 | 41 | void 42 | odm_ConfigRF_RadioB_8821A( 43 | IN PDM_ODM_T pDM_Odm, 44 | IN u4Byte Addr, 45 | IN u4Byte Data 46 | ); 47 | 48 | void 49 | odm_ConfigMAC_8821A( 50 | IN PDM_ODM_T pDM_Odm, 51 | IN u4Byte Addr, 52 | IN u1Byte Data 53 | ); 54 | 55 | void 56 | odm_ConfigBB_AGC_8821A( 57 | IN PDM_ODM_T pDM_Odm, 58 | IN u4Byte Addr, 59 | IN u4Byte Bitmask, 60 | IN u4Byte Data 61 | ); 62 | 63 | void 64 | odm_ConfigBB_PHY_REG_PG_8821A( 65 | IN PDM_ODM_T pDM_Odm, 66 | IN u4Byte Band, 67 | IN u4Byte RfPath, 68 | IN u4Byte TxNum, 69 | IN u4Byte Addr, 70 | IN u4Byte Bitmask, 71 | IN u4Byte Data 72 | ); 73 | 74 | void 75 | odm_ConfigBB_PHY_8821A( 76 | IN PDM_ODM_T pDM_Odm, 77 | IN u4Byte Addr, 78 | IN u4Byte Bitmask, 79 | IN u4Byte Data 80 | ); 81 | 82 | void 83 | odm_ConfigBB_TXPWR_LMT_8821A( 84 | IN PDM_ODM_T pDM_Odm, 85 | IN pu1Byte Regulation, 86 | IN pu1Byte Band, 87 | IN pu1Byte Bandwidth, 88 | IN pu1Byte RateSection, 89 | IN pu1Byte RfPath, 90 | IN pu1Byte Channel, 91 | IN pu1Byte PowerLimit 92 | ); 93 | 94 | #endif 95 | #endif // end of SUPPORT 96 | -------------------------------------------------------------------------------- /core/rtw_rf.c: -------------------------------------------------------------------------------- 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 | #define _RTW_RF_C_ 21 | 22 | #include 23 | 24 | 25 | struct ch_freq { 26 | u32 channel; 27 | u32 frequency; 28 | }; 29 | 30 | struct ch_freq ch_freq_map[] = { 31 | {1, 2412},{2, 2417},{3, 2422},{4, 2427},{5, 2432}, 32 | {6, 2437},{7, 2442},{8, 2447},{9, 2452},{10, 2457}, 33 | {11, 2462},{12, 2467},{13, 2472},{14, 2484}, 34 | /* UNII */ 35 | {36, 5180},{40, 5200},{44, 5220},{48, 5240},{52, 5260}, 36 | {56, 5280},{60, 5300},{64, 5320},{149, 5745},{153, 5765}, 37 | {157, 5785},{161, 5805},{165, 5825},{167, 5835},{169, 5845}, 38 | {171, 5855},{173, 5865}, 39 | /* HiperLAN2 */ 40 | {100, 5500},{104, 5520},{108, 5540},{112, 5560},{116, 5580}, 41 | {120, 5600},{124, 5620},{128, 5640},{132, 5660},{136, 5680}, 42 | {140, 5700}, 43 | /* Japan MMAC */ 44 | {34, 5170},{38, 5190},{42, 5210},{46, 5230}, 45 | /* Japan */ 46 | {184, 4920},{188, 4940},{192, 4960},{196, 4980}, 47 | {208, 5040},/* Japan, means J08 */ 48 | {212, 5060},/* Japan, means J12 */ 49 | {216, 5080},/* Japan, means J16 */ 50 | }; 51 | 52 | int ch_freq_map_num = (sizeof(ch_freq_map) / sizeof(struct ch_freq)); 53 | 54 | u32 rtw_ch2freq(u32 channel) 55 | { 56 | u8 i; 57 | u32 freq = 0; 58 | 59 | for (i = 0; i < ch_freq_map_num; i++) { 60 | if (channel == ch_freq_map[i].channel) { 61 | freq = ch_freq_map[i].frequency; 62 | break; 63 | } 64 | } 65 | if (i == ch_freq_map_num) 66 | freq = 2412; 67 | 68 | return freq; 69 | } 70 | 71 | u32 rtw_freq2ch(u32 freq) 72 | { 73 | u8 i; 74 | u32 ch = 0; 75 | 76 | for (i = 0; i < ch_freq_map_num; i++) { 77 | if (freq == ch_freq_map[i].frequency) { 78 | ch = ch_freq_map[i].channel; 79 | break; 80 | } 81 | } 82 | if (i == ch_freq_map_num) 83 | ch = 1; 84 | 85 | return ch; 86 | } 87 | 88 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_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 | #define ODM_REG_BB_ATC_11AC 0x860 33 | #define ODM_REG_EDCCA_POWER_CAL 0x8dc 34 | #define ODM_REG_DBG_RPT_11AC 0x8fc 35 | //PAGE 9 36 | #define ODM_REG_EDCCA_DOWN_OPT 0x900 37 | #define ODM_REG_ACBB_EDCCA_ENHANCE 0x944 38 | #define ODM_REG_OFDM_FA_RST_11AC 0x9A4 39 | #define ODM_REG_NHM_TIMER_11AC 0x990 40 | #define ODM_REG_NHM_TH9_TH10_11AC 0x994 41 | #define ODM_REG_NHM_TH3_TO_TH0_11AC 0x998 42 | #define ODM_REG_NHM_TH7_TO_TH4_11AC 0x99c 43 | #define ODM_REG_NHM_TH8_11AC 0x9a0 44 | #define ODM_REG_NHM_9E8_11AC 0x9e8 45 | //PAGE A 46 | #define ODM_REG_CCK_CCA_11AC 0xA0A 47 | #define ODM_REG_CCK_FA_RST_11AC 0xA2C 48 | #define ODM_REG_CCK_FA_11AC 0xA5C 49 | //PAGE B 50 | #define ODM_REG_RST_RPT_11AC 0xB58 51 | //PAGE C 52 | #define ODM_REG_TRMUX_11AC 0xC08 53 | #define ODM_REG_IGI_A_11AC 0xC50 54 | //PAGE E 55 | #define ODM_REG_IGI_B_11AC 0xE50 56 | #define ODM_REG_TRMUX_11AC_B 0xE08 57 | //PAGE F 58 | #define ODM_REG_CCK_CCA_CNT_11AC 0xF08 59 | #define ODM_REG_OFDM_FA_11AC 0xF48 60 | #define ODM_REG_RPT_11AC 0xfa0 61 | #define ODM_REG_NHM_CNT_11AC 0xfa8 62 | //PAGE 18 63 | #define ODM_REG_IGI_C_11AC 0x1850 64 | //PAGE 1A 65 | #define ODM_REG_IGI_D_11AC 0x1A50 66 | 67 | //2 MAC REG LIST 68 | #define ODM_REG_RESP_TX_11AC 0x6D8 69 | 70 | 71 | 72 | //DIG Related 73 | #define ODM_BIT_IGI_11AC 0xFFFFFFFF 74 | #define ODM_BIT_CCK_RPT_FORMAT_11AC BIT16 75 | #define ODM_BIT_BB_RX_PATH_11AC 0xF 76 | #define ODM_BIT_BB_ATC_11AC BIT14 77 | 78 | #endif 79 | -------------------------------------------------------------------------------- /include/Hal8723BPhyReg.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_HAL8723BPHYREG_H__ 21 | #define __INC_HAL8723BPHYREG_H__ 22 | 23 | #include 24 | 25 | #define rSYM_WLBT_PAPE_SEL 0x64 26 | // BB Register Definition 27 | // 28 | // 4. Page9(0x900) 29 | // 30 | #define rDPDT_control 0x92c 31 | #define rfe_ctrl_anta_src 0x930 32 | #define rS0S1_PathSwitch 0x948 33 | #define rAGC_table_select 0xb2c 34 | 35 | // 36 | // PageB(0xB00) 37 | // 38 | #define rPdp_AntA 0xb00 39 | #define rPdp_AntA_4 0xb04 40 | #define rPdp_AntA_8 0xb08 41 | #define rPdp_AntA_C 0xb0c 42 | #define rPdp_AntA_10 0xb10 43 | #define rPdp_AntA_14 0xb14 44 | #define rPdp_AntA_18 0xb18 45 | #define rPdp_AntA_1C 0xb1c 46 | #define rPdp_AntA_20 0xb20 47 | #define rPdp_AntA_24 0xb24 48 | 49 | #define rConfig_Pmpd_AntA 0xb28 50 | #define rConfig_ram64x16 0xb2c 51 | 52 | #define rBndA 0xb30 53 | #define rHssiPar 0xb34 54 | 55 | #define rConfig_AntA 0xb68 56 | #define rConfig_AntB 0xb6c 57 | 58 | #define rPdp_AntB 0xb70 59 | #define rPdp_AntB_4 0xb74 60 | #define rPdp_AntB_8 0xb78 61 | #define rPdp_AntB_C 0xb7c 62 | #define rPdp_AntB_10 0xb80 63 | #define rPdp_AntB_14 0xb84 64 | #define rPdp_AntB_18 0xb88 65 | #define rPdp_AntB_1C 0xb8c 66 | #define rPdp_AntB_20 0xb90 67 | #define rPdp_AntB_24 0xb94 68 | 69 | #define rConfig_Pmpd_AntB 0xb98 70 | 71 | #define rBndB 0xba0 72 | 73 | #define rAPK 0xbd8 74 | #define rPm_Rx0_AntA 0xbdc 75 | #define rPm_Rx1_AntA 0xbe0 76 | #define rPm_Rx2_AntA 0xbe4 77 | #define rPm_Rx3_AntA 0xbe8 78 | #define rPm_Rx0_AntB 0xbec 79 | #define rPm_Rx1_AntB 0xbf0 80 | #define rPm_Rx2_AntB 0xbf4 81 | #define rPm_Rx3_AntB 0xbf8 82 | 83 | #endif 84 | 85 | -------------------------------------------------------------------------------- /include/recv_osdep.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 __RECV_OSDEP_H_ 21 | #define __RECV_OSDEP_H_ 22 | 23 | 24 | extern sint _rtw_init_recv_priv(struct recv_priv *precvpriv, _adapter *padapter); 25 | extern void _rtw_free_recv_priv (struct recv_priv *precvpriv); 26 | 27 | 28 | extern s32 rtw_recv_entry(union recv_frame *precv_frame); 29 | extern int rtw_recv_indicatepkt(_adapter *adapter, union recv_frame *precv_frame); 30 | extern void rtw_recv_returnpacket(IN _nic_hdl cnxt, IN _pkt *preturnedpkt); 31 | 32 | extern int rtw_recv_monitor(_adapter *padapter, union recv_frame *precv_frame); 33 | 34 | extern void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame); 35 | extern void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup); 36 | 37 | 38 | int rtw_init_recv_priv(struct recv_priv *precvpriv, _adapter *padapter); 39 | void rtw_free_recv_priv (struct recv_priv *precvpriv); 40 | 41 | 42 | int rtw_os_recv_resource_init(struct recv_priv *precvpriv, _adapter *padapter); 43 | int rtw_os_recv_resource_alloc(_adapter *padapter, union recv_frame *precvframe); 44 | void rtw_os_recv_resource_free(struct recv_priv *precvpriv); 45 | 46 | 47 | int rtw_os_alloc_recvframe(_adapter *padapter, union recv_frame *precvframe, u8 *pdata, _pkt *pskb); 48 | void rtw_os_free_recvframe(union recv_frame *precvframe); 49 | 50 | 51 | int rtw_os_recvbuf_resource_alloc(_adapter *padapter, struct recv_buf *precvbuf); 52 | int rtw_os_recvbuf_resource_free(_adapter *padapter, struct recv_buf *precvbuf); 53 | 54 | _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata); 55 | void rtw_os_recv_indicate_pkt(_adapter *padapter, _pkt *pkt, struct rx_pkt_attrib *pattrib); 56 | 57 | void rtw_os_read_port(_adapter *padapter, struct recv_buf *precvbuf); 58 | 59 | void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl); 60 | 61 | 62 | #endif // 63 | 64 | -------------------------------------------------------------------------------- /hal/rtl8812a/Hal8821APwrSeq.c: -------------------------------------------------------------------------------- 1 | 2 | /*++ 3 | Copyright (c) Realtek Semiconductor Corp. All rights reserved. 4 | 5 | Module Name: 6 | Hal8821PwrSeq.c 7 | 8 | Abstract: 9 | This file includes all kinds of Power Action event for RTL8821A and corresponding hardware configurtions which are released from HW SD. 10 | 11 | Major Change History: 12 | When Who What 13 | ---------- --------------- ------------------------------- 14 | 2011-08-08 Roger Create. 15 | 16 | --*/ 17 | 18 | 19 | #include "Hal8821APwrSeq.h" 20 | #include 21 | 22 | 23 | /* 24 | drivers should parse below arrays and do the corresponding actions 25 | */ 26 | //3 Power on Array 27 | WLAN_PWR_CFG rtl8821A_power_on_flow[RTL8821A_TRANS_CARDEMU_TO_ACT_STEPS+RTL8821A_TRANS_END_STEPS]= { 28 | RTL8821A_TRANS_CARDEMU_TO_ACT 29 | RTL8821A_TRANS_END 30 | }; 31 | 32 | //3Radio off GPIO Array 33 | WLAN_PWR_CFG rtl8821A_radio_off_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_END_STEPS]= { 34 | RTL8821A_TRANS_ACT_TO_CARDEMU 35 | RTL8821A_TRANS_END 36 | }; 37 | 38 | //3Card Disable Array 39 | WLAN_PWR_CFG rtl8821A_card_disable_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS+RTL8821A_TRANS_END_STEPS]= { 40 | RTL8821A_TRANS_ACT_TO_CARDEMU 41 | RTL8821A_TRANS_CARDEMU_TO_CARDDIS 42 | RTL8821A_TRANS_END 43 | }; 44 | 45 | //3 Card Enable Array 46 | WLAN_PWR_CFG rtl8821A_card_enable_flow[RTL8821A_TRANS_CARDDIS_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_ACT_STEPS+RTL8821A_TRANS_END_STEPS]= { 47 | RTL8821A_TRANS_CARDDIS_TO_CARDEMU 48 | RTL8821A_TRANS_CARDEMU_TO_ACT 49 | RTL8821A_TRANS_END 50 | }; 51 | 52 | //3Suspend Array 53 | WLAN_PWR_CFG rtl8821A_suspend_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_SUS_STEPS+RTL8821A_TRANS_END_STEPS]= { 54 | RTL8821A_TRANS_ACT_TO_CARDEMU 55 | RTL8821A_TRANS_CARDEMU_TO_SUS 56 | RTL8821A_TRANS_END 57 | }; 58 | 59 | //3 Resume Array 60 | WLAN_PWR_CFG rtl8821A_resume_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_SUS_STEPS+RTL8821A_TRANS_END_STEPS]= { 61 | RTL8821A_TRANS_SUS_TO_CARDEMU 62 | RTL8821A_TRANS_CARDEMU_TO_ACT 63 | RTL8821A_TRANS_END 64 | }; 65 | 66 | 67 | 68 | //3HWPDN Array 69 | WLAN_PWR_CFG rtl8821A_hwpdn_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS+RTL8821A_TRANS_END_STEPS]= { 70 | RTL8821A_TRANS_ACT_TO_CARDEMU 71 | RTL8821A_TRANS_CARDEMU_TO_PDN 72 | RTL8821A_TRANS_END 73 | }; 74 | 75 | //3 Enter LPS 76 | WLAN_PWR_CFG rtl8821A_enter_lps_flow[RTL8821A_TRANS_ACT_TO_LPS_STEPS+RTL8821A_TRANS_END_STEPS]= { 77 | //FW behavior 78 | RTL8821A_TRANS_ACT_TO_LPS 79 | RTL8821A_TRANS_END 80 | }; 81 | 82 | //3 Leave LPS 83 | WLAN_PWR_CFG rtl8821A_leave_lps_flow[RTL8821A_TRANS_LPS_TO_ACT_STEPS+RTL8821A_TRANS_END_STEPS]= { 84 | //FW behavior 85 | RTL8821A_TRANS_LPS_TO_ACT 86 | RTL8821A_TRANS_END 87 | }; 88 | -------------------------------------------------------------------------------- /hal/OUTSRC/rtl8821a/HalHWImg8821A_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 (RTL8821A_SUPPORT == 1) 22 | #ifndef __INC_MP_FW_HW_IMG_8821A_H 23 | #define __INC_MP_FW_HW_IMG_8821A_H 24 | 25 | 26 | /****************************************************************************** 27 | * FW_AP.TXT 28 | ******************************************************************************/ 29 | 30 | void 31 | ODM_ReadFirmware_MP_8821A_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_8821A_FW_NIC( 43 | IN PDM_ODM_T pDM_Odm, 44 | OUT u1Byte *pFirmware, 45 | OUT u4Byte *pFirmwareSize 46 | ); 47 | 48 | /****************************************************************************** 49 | * FW_NIC_BT.TXT 50 | ******************************************************************************/ 51 | 52 | void 53 | ODM_ReadFirmware_MP_8821A_FW_NIC_BT( 54 | IN PDM_ODM_T pDM_Odm, 55 | OUT u1Byte *pFirmware, 56 | OUT u4Byte *pFirmwareSize 57 | ); 58 | 59 | /****************************************************************************** 60 | * FW_WoWLAN.TXT 61 | ******************************************************************************/ 62 | 63 | void 64 | ODM_ReadFirmware_MP_8821A_FW_WoWLAN( 65 | IN PDM_ODM_T pDM_Odm, 66 | OUT u1Byte *pFirmware, 67 | OUT u4Byte *pFirmwareSize 68 | ); 69 | 70 | #ifdef CONFIG_MP_INCLUDED 71 | #define Rtl8812BFwBTImgArrayLength 32112 72 | extern u8 Rtl8821A_BT_MP_Patch_FW [Rtl8812BFwBTImgArrayLength]; 73 | #endif //CONFIG_MP_INCLUDED 74 | 75 | #endif 76 | #endif // end of HWIMG_SUPPORT 77 | -------------------------------------------------------------------------------- /include/rtl8192d_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 _RTL8192D_RECV_H_ 21 | #define _RTL8192D_RECV_H_ 22 | 23 | 24 | #define RECV_BLK_SZ 512 25 | #define RECV_BLK_CNT 16 26 | #define RECV_BLK_TH RECV_BLK_CNT 27 | 28 | #if defined(CONFIG_USB_HCI) 29 | 30 | #ifndef MAX_RECVBUF_SZ 31 | #ifdef PLATFORM_OS_CE 32 | #define MAX_RECVBUF_SZ (8192+1024) // 8K+1k 33 | #else 34 | #ifndef CONFIG_MINIMAL_MEMORY_USAGE 35 | //#define MAX_RECVBUF_SZ (32768) // 32k 36 | //#define MAX_RECVBUF_SZ (16384) //16K 37 | //#define MAX_RECVBUF_SZ (10240) //10K 38 | #ifdef CONFIG_PLATFORM_MSTAR 39 | #define MAX_RECVBUF_SZ (8192) // 8K 40 | #else 41 | #define MAX_RECVBUF_SZ (15360) // 15k < 16k 42 | #endif 43 | #else 44 | #define MAX_RECVBUF_SZ (4000) // about 4K 45 | #endif 46 | #endif 47 | #endif //!MAX_RECVBUF_SZ 48 | 49 | #elif defined(CONFIG_PCI_HCI) 50 | //#ifndef CONFIG_MINIMAL_MEMORY_USAGE 51 | // #define MAX_RECVBUF_SZ (9100) 52 | //#else 53 | #define MAX_RECVBUF_SZ (4000) // about 4K 54 | //#endif 55 | 56 | #endif 57 | 58 | // Rx smooth factor 59 | #define Rx_Smooth_Factor (20) 60 | 61 | #ifdef CONFIG_USB_HCI 62 | typedef struct _INTERRUPT_MSG_FORMAT_EX { 63 | unsigned int C2H_MSG0; 64 | unsigned int C2H_MSG1; 65 | unsigned int C2H_MSG2; 66 | unsigned int C2H_MSG3; 67 | unsigned int HISR; // from HISR Reg0x124, read to clear 68 | unsigned int HISRE;// from HISRE Reg0x12c, read to clear 69 | unsigned int MSG_EX; 70 | } INTERRUPT_MSG_FORMAT_EX,*PINTERRUPT_MSG_FORMAT_EX; 71 | 72 | void rtl8192du_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf); 73 | int rtl8192du_init_recv_priv(_adapter * padapter); 74 | void rtl8192du_free_recv_priv(_adapter * padapter); 75 | #endif 76 | 77 | #ifdef CONFIG_PCI_HCI 78 | int rtl8192de_init_recv_priv(_adapter * padapter); 79 | void rtl8192de_free_recv_priv(_adapter * padapter); 80 | #endif 81 | 82 | void rtl8192d_query_rx_desc_status(union recv_frame *precvframe, struct recv_stat *pdesc); 83 | 84 | #endif /* _RTL8192D_RECV_H_ */ 85 | 86 | -------------------------------------------------------------------------------- /hal/OUTSRC/phydm_RXHP.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 __PHYDMRXHP_H__ 21 | #define __PHYDMRXHP_H__ 22 | 23 | #define RXHP_VERSION "1.0" 24 | 25 | #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 26 | 27 | #define AFH_PSD 1 //0:normal PSD scan, 1: only do 20 pts PSD 28 | #define MODE_40M 0 //0:20M, 1:40M 29 | #define PSD_TH2 3 30 | #define PSD_CHMIN 20 // Minimum channel number for BT AFH 31 | #define SIR_STEP_SIZE 3 32 | #define Smooth_Size_1 5 33 | #define Smooth_TH_1 3 34 | #define Smooth_Size_2 10 35 | #define Smooth_TH_2 4 36 | #define Smooth_Size_3 20 37 | #define Smooth_TH_3 4 38 | #define Smooth_Step_Size 5 39 | #define Adaptive_SIR 1 40 | #define PSD_RESCAN 4 41 | #define PSD_SCAN_INTERVAL 700 //ms 42 | 43 | typedef struct _RX_High_Power_ { 44 | u1Byte RXHP_flag; 45 | u1Byte PSD_func_trigger; 46 | u1Byte PSD_bitmap_RXHP[80]; 47 | u1Byte Pre_IGI; 48 | u1Byte Cur_IGI; 49 | u1Byte Pre_pw_th; 50 | u1Byte Cur_pw_th; 51 | BOOLEAN First_time_enter; 52 | BOOLEAN RXHP_enable; 53 | u1Byte TP_Mode; 54 | RT_TIMER PSDTimer; 55 | #if USE_WORKITEM 56 | RT_WORK_ITEM PSDTimeWorkitem; 57 | #endif 58 | } RXHP_T, *pRXHP_T; 59 | 60 | #define dm_PSDMonitorCallback odm_PSDMonitorCallback 61 | VOID odm_PSDMonitorCallback(PRT_TIMER pTimer); 62 | 63 | VOID 64 | odm_PSDMonitorInit( 65 | IN PVOID pDM_VOID 66 | ); 67 | 68 | void odm_RXHPInit( 69 | IN PVOID pDM_VOID); 70 | 71 | void odm_RXHP( 72 | IN PVOID pDM_VOID); 73 | 74 | VOID 75 | odm_PSD_RXHPCallback( 76 | PRT_TIMER pTimer 77 | ); 78 | 79 | VOID 80 | ODM_PSDDbgControl( 81 | IN PADAPTER Adapter, 82 | IN u4Byte mode, 83 | IN u4Byte btRssi 84 | ); 85 | 86 | VOID 87 | odm_PSD_RXHPCallback( 88 | PRT_TIMER pTimer 89 | ); 90 | 91 | VOID 92 | odm_PSD_RXHPWorkitemCallback( 93 | IN PVOID pContext 94 | ); 95 | 96 | VOID 97 | odm_PSDMonitorWorkItemCallback( 98 | IN PVOID pContext 99 | ); 100 | 101 | #endif 102 | 103 | #endif 104 | --------------------------------------------------------------------------------