├── ifcfg-wlan0 ├── core ├── rtw_cmd.c └── rtw_sdio.c ├── hal ├── phydm │ ├── phydm.h │ ├── rtchnlplan.c │ ├── rtchnlplan.h │ ├── phydm_beamforming.c │ ├── rtl8723d │ │ ├── version_rtl8723d.h │ │ ├── phydm_rtl8723d.h │ │ ├── halhwimg8723d_mac.h │ │ ├── phydm_rtl8723d.c │ │ ├── halhwimg8723d_fw.h │ │ ├── halhwimg8723d_bb.h │ │ └── phydm_regconfig8723d.h │ ├── mp_precomp.h │ ├── txbf │ │ ├── haltxbf8192e.h │ │ ├── haltxbfjaguar.h │ │ ├── haltxbf8814a.h │ │ ├── haltxbf8822b.h │ │ └── phydm_hal_txbf_api.h │ ├── phydm_kfree.h │ ├── phydm_noisemonitor.h │ ├── phydm_dynamicbbpowersaving.h │ ├── phydm_adc_sampling.h │ ├── phydm_cfotracking.h │ ├── phydm_ccx.h │ ├── phydm_iqk.h │ ├── phydm_dfs.h │ └── phydm_antdect.h ├── btc │ ├── HalBtc8723a1Ant.c │ ├── HalBtc8723a2Ant.c │ ├── HalBtc8812a2Ant.c │ ├── HalBtc8821a2Ant.c │ ├── HalBtc8821aCsr2Ant.c │ └── Mp_Precomp.h ├── hal_hci │ └── hal_pci.c ├── hal_dm.h ├── efuse │ ├── rtl8723d │ │ ├── HalEfuseMask8723D_SDIO.h │ │ ├── HalEfuseMask8723D_PCIE.h │ │ ├── HalEfuseMask8723D_USB.h │ │ ├── HalEfuseMask8723D_SDIO.c │ │ ├── HalEfuseMask8723D_PCIE.c │ │ └── HalEfuseMask8723D_USB.c │ └── efuse_mask.h └── rtl8723d │ ├── hal8723d_fw.h │ ├── pci │ └── rtl8723de_recv.c │ ├── rtl8723d_rxdesc.c │ └── Hal8723DPwrSeq.c ├── clean ├── include ├── Hal8821APwrSeq.h ├── rtw_version.h ├── rtw_wifi_regd.h ├── custom_gpio.h ├── gspi_ops_linux.h ├── drv_types_linux.h ├── rtl8821cs_hal.h ├── rtl8723d_rf.h ├── h2clbk.h ├── rtl8188f_rf.h ├── rtl8703b_rf.h ├── rtl8723b_rf.h ├── rtw_qos.h ├── rtl8821cu_hal.h ├── circ_buf.h ├── rtl8192e_rf.h ├── rtl8812a_rf.h ├── rtl8814a_dm.h ├── rtl8814a_rf.h ├── hal_phy_reg.h ├── rtl8188e_sreset.h ├── rtl8188f_sreset.h ├── rtl8703b_sreset.h ├── rtl8723b_sreset.h ├── rtl8723d_sreset.h ├── rtl8812a_sreset.h ├── rtl8814a_sreset.h ├── rtl8192e_sreset.h ├── sdio_osintf.h ├── gspi_osintf.h ├── rtw_ioctl_query.h ├── usb_osintf.h ├── rtl8822be_hal.h ├── rtl8188e_rf.h ├── rtl8822bs_hal.h ├── gspi_hal.h ├── rtl8812a_dm.h ├── rtl8188e_dm.h ├── rtl8192e_dm.h ├── cmd_osdep.h ├── rtw_sdio.h ├── hal_gspi.h ├── rtw_byteorder.h ├── mlme_osdep.h ├── rtw_mem.h ├── pci_osintf.h ├── nic_spec.h ├── hal_sdio.h ├── rtl8192e_led.h ├── rtl8188e_led.h ├── rtl8812a_led.h ├── rtl8814a_led.h ├── sdio_hal.h ├── pci_hal.h ├── drv_types_gspi.h ├── rtl8188f_led.h ├── rtl8703b_led.h ├── rtl8723b_led.h ├── rtl8723d_led.h ├── rtl8188f_dm.h ├── rtl8703b_dm.h ├── rtl8723b_dm.h ├── rtl8723d_dm.h ├── ethernet.h ├── rtl8822bu_hal.h ├── rtw_sreset.h ├── sdio_ops_xp.h ├── sdio_ops_ce.h ├── usb_hal.h ├── usb_vendor_req.h ├── rtw_br_ext.h ├── rtl8821c_hal.h ├── rtw_odm.h ├── sdio_ops_linux.h ├── rtl8188f_recv.h └── drv_types_sdio.h ├── Kconfig ├── .gitignore ├── dkms.conf ├── wlan0dhcp ├── runwpa ├── README.md ├── os_dep └── linux │ ├── pci_ops_linux.c │ └── rtw_proc.h └── platform ├── platform_ops.h ├── platform_ops.c ├── platform_RTK_DMP_usb.c ├── custom_country_chplan.h ├── platform_arm_act_sdio.c ├── platform_ARM_WMT_sdio.c ├── platform_sprd_sdio.c └── platform_ARM_SUN50IW1P1_sdio.c /ifcfg-wlan0: -------------------------------------------------------------------------------- 1 | #DHCP client 2 | DEVICE=wlan0 3 | BOOTPROTO=dhcp 4 | ONBOOT=yes -------------------------------------------------------------------------------- /core/rtw_cmd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/core/rtw_cmd.c -------------------------------------------------------------------------------- /hal/phydm/phydm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/phydm/phydm.h -------------------------------------------------------------------------------- /clean: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | rmmod 8192cu 3 | rmmod 8192ce 4 | rmmod 8192du 5 | rmmod 8192de 6 | -------------------------------------------------------------------------------- /hal/phydm/rtchnlplan.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/phydm/rtchnlplan.c -------------------------------------------------------------------------------- /hal/phydm/rtchnlplan.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/phydm/rtchnlplan.h -------------------------------------------------------------------------------- /hal/btc/HalBtc8723a1Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/btc/HalBtc8723a1Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8723a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/btc/HalBtc8723a2Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8812a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/btc/HalBtc8812a2Ant.c -------------------------------------------------------------------------------- /hal/btc/HalBtc8821a2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/btc/HalBtc8821a2Ant.c -------------------------------------------------------------------------------- /include/Hal8821APwrSeq.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/include/Hal8821APwrSeq.h -------------------------------------------------------------------------------- /hal/btc/HalBtc8821aCsr2Ant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/btc/HalBtc8821aCsr2Ant.c -------------------------------------------------------------------------------- /hal/phydm/phydm_beamforming.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/smlinux/rtl8723de/HEAD/hal/phydm/phydm_beamforming.c -------------------------------------------------------------------------------- /include/rtw_version.h: -------------------------------------------------------------------------------- 1 | #define DRIVERVERSION "v5.1.1.8_21285.20171026" 2 | #define BTCOEXVERSION "BTCOEX20170111-1414" 3 | -------------------------------------------------------------------------------- /Kconfig: -------------------------------------------------------------------------------- 1 | config RTL8723DE 2 | tristate "Realtek 8723DE PCI WiFi" 3 | depends on PCI 4 | ---help--- 5 | Help message of RTL8723DE 6 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Module.symvers 2 | Module.markers 3 | modules.order 4 | .tmp_versions 5 | *.patch 6 | *.mod.c 7 | *.mod 8 | *.cmd 9 | *.ko 10 | *.o 11 | *~ 12 | 13 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/version_rtl8723d.h: -------------------------------------------------------------------------------- 1 | /*RTL8723D PHY Parameters*/ 2 | #define SVN_COMMIT_VERSION_8723D 22597 3 | #define RELEASE_DATE_8723D 20161209 4 | #define COMMIT_BY_8723D "BB_Jessica" 5 | #define RELEASE_VERSION_8723D 31 6 | -------------------------------------------------------------------------------- /dkms.conf: -------------------------------------------------------------------------------- 1 | PACKAGE_NAME="rtl8723de" 2 | PACKAGE_VERSION="5.1.1.8_21285.20171026_COEX20170111-1414" 3 | BUILT_MODULE_NAME[0]="8723de" 4 | DEST_MODULE_NAME[0]="rtl8723de" 5 | MAKE="'make' all KVER=${kernelver}" 6 | CLEAN="'make' clean" 7 | DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless" 8 | AUTOINSTALL="yes" 9 | -------------------------------------------------------------------------------- /wlan0dhcp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | var0=`ps aux|awk '/dhclient wlan0/'|awk '$11!="awk"{print $2}'` 4 | 5 | kill $var0 6 | cp ifcfg-wlan0 /etc/sysconfig/network-scripts/ 7 | 8 | dhclient wlan0 9 | 10 | var1=`ifconfig wlan0 |awk '/inet/{print $2}'|awk -F: '{print $2}'` 11 | 12 | 13 | rm -f /etc/sysconfig/network-scripts/ifcfg-wlan0 14 | 15 | echo "get ip: $var1" 16 | 17 | -------------------------------------------------------------------------------- /runwpa: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ "`which iwconfig`" = "" ] ; then 4 | echo "WARNING:Wireless tool not exist!" 5 | echo " Please install it!" 6 | exit 7 | else 8 | if [ `uname -r | cut -d. -f2` -eq 4 ]; then 9 | wpa_supplicant -D ipw -c wpa1.conf -i wlan0 10 | else 11 | if [ `iwconfig -v |awk '{print $4}' | head -n 1` -lt 18 ] ; then 12 | wpa_supplicant -D ipw -c wpa1.conf -i wlan0 13 | else 14 | wpa_supplicant -D wext -c wpa1.conf -i wlan0 15 | fi 16 | 17 | fi 18 | fi 19 | 20 | 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Test the module on a test PC before using it on a working PC. 2 | 3 | # rtl8723de 4 | Realtek RTL8723DE module for Linux kernel version 5 5 | 6 | Install: 7 | 8 | git clone https://github.com/smlinux/rtl8723de.git -b current 9 | dkms add ./rtl8723de 10 | dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 11 | depmod -a 12 | reboot 13 | 14 | Uninstall: 15 | 16 | rmmod -f 8723de 17 | dkms uninstall rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 18 | dkms remove rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 --all 19 | depmod -a 20 | reboot 21 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /hal/phydm/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 | -------------------------------------------------------------------------------- /os_dep/linux/pci_ops_linux.c: -------------------------------------------------------------------------------- 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 | #define _PCI_OPS_LINUX_C_ 20 | 21 | #include 22 | -------------------------------------------------------------------------------- /hal/hal_hci/hal_pci.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 _HAL_PCI_C_ 21 | 22 | #include 23 | #include 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8821cs_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8821CS_HAL_H_ 21 | #define _RTL8821CS_HAL_H_ 22 | 23 | #include /* PADAPTER */ 24 | 25 | /* rtl8821cs_ops.c */ 26 | u8 rtl8821cs_set_hal_ops(PADAPTER); 27 | 28 | #endif /* _RTL8821CS_HAL_H_ */ 29 | -------------------------------------------------------------------------------- /include/rtl8723d_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 __RTL8723D_RF_H__ 21 | #define __RTL8723D_RF_H__ 22 | 23 | int PHY_RF6052_Config8723D(IN PADAPTER pdapter); 24 | 25 | void PHY_RF6052SetBandwidth8723D(IN PADAPTER Adapter, IN CHANNEL_WIDTH Bandwidth); 26 | #endif 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8188f_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 __RTL8188F_RF_H__ 21 | #define __RTL8188F_RF_H__ 22 | 23 | int PHY_RF6052_Config8188F(IN PADAPTER Adapter); 24 | 25 | VOID 26 | PHY_RF6052SetBandwidth8188F( 27 | IN PADAPTER Adapter, 28 | IN CHANNEL_WIDTH Bandwidth); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /include/rtl8703b_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 __RTL8703B_RF_H__ 21 | #define __RTL8703B_RF_H__ 22 | 23 | int PHY_RF6052_Config8703B(IN PADAPTER Adapter); 24 | 25 | VOID 26 | PHY_RF6052SetBandwidth8703B( 27 | IN PADAPTER Adapter, 28 | IN CHANNEL_WIDTH Bandwidth); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /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 | int PHY_RF6052_Config8723B(IN PADAPTER Adapter); 24 | 25 | VOID 26 | PHY_RF6052SetBandwidth8723B( 27 | IN PADAPTER Adapter, 28 | IN CHANNEL_WIDTH Bandwidth); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8821cu_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8821CU_HAL_H_ 21 | #define _RTL8821CU_HAL_H_ 22 | 23 | #include /* PADAPTER */ 24 | 25 | /* rtl8821cu_ops.c */ 26 | u8 rtl8821cu_set_hal_ops(PADAPTER); 27 | void rtl8821cu_set_hw_type(struct dvobj_priv *pdvobj); 28 | 29 | #endif /* _RTL8821CU_HAL_H_ */ 30 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/phydm_rtl8723d.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_RTL8723D_H__ 21 | #define __ODM_RTL8723D_H__ 22 | 23 | #if (RTL8723D_SUPPORT == 1) 24 | 25 | s1Byte 26 | odm_CCKRSSI_8723D( 27 | IN u1Byte LNA_idx, 28 | IN u1Byte VGA_idx 29 | ); 30 | 31 | #endif 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8814a_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 __RTL8814A_DM_H__ 21 | #define __RTL8814A_DM_H__ 22 | 23 | void rtl8814_init_dm_priv(IN PADAPTER Adapter); 24 | void rtl8814_deinit_dm_priv(IN PADAPTER Adapter); 25 | void rtl8814_InitHalDm(IN PADAPTER Adapter); 26 | void rtl8814_HalDmWatchDog(IN PADAPTER Adapter); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /include/rtl8814a_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 __RTL8814A_RF_H__ 21 | #define __RTL8814A_RF_H__ 22 | 23 | VOID 24 | PHY_RF6052SetBandwidth8814A( 25 | IN PADAPTER Adapter, 26 | IN CHANNEL_WIDTH Bandwidth); 27 | 28 | 29 | int 30 | PHY_RF6052_Config_8814A( 31 | IN PADAPTER Adapter); 32 | 33 | #endif/* __RTL8188E_RF_H__ */ 34 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8188f_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 _RTL8188F_SRESET_H_ 21 | #define _RTL8188F_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8188f_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8188f_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | -------------------------------------------------------------------------------- /include/rtl8703b_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 _RTL8703B_SRESET_H_ 21 | #define _RTL8703B_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8703b_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8703b_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8723d_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 _RTL8723D_SRESET_H_ 21 | #define _RTL8723D_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8723d_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8723d_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8814a_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 _RTL88814A_SRESET_H_ 21 | #define _RTL8814A_SRESET_H_ 22 | 23 | #include 24 | 25 | #ifdef DBG_CONFIG_ERROR_DETECT 26 | extern void rtl8814_sreset_xmit_status_check(_adapter *padapter); 27 | extern void rtl8814_sreset_linked_status_check(_adapter *padapter); 28 | #endif 29 | #endif 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | #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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | u8 query_802_11_capability(_adapter *padapter, u8 *pucBuf, u32 *pulOutLen); 26 | u8 query_802_11_association_information(_adapter *padapter, PNDIS_802_11_ASSOCIATION_INFORMATION pAssocInfo); 27 | #endif 28 | 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /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 | u8 usbvendorrequest(struct dvobj_priv *pdvobjpriv, RT_USB_BREQUEST brequest, RT_USB_WVALUE wvalue, u8 windex, void *data, u8 datalen, u8 isdirectionin); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /hal/phydm/txbf/haltxbf8192e.h: -------------------------------------------------------------------------------- 1 | #ifndef __HAL_TXBF_8192E_H__ 2 | #define __HAL_TXBF_8192E_H__ 3 | 4 | #if (RTL8192E_SUPPORT == 1) 5 | #if (BEAMFORMING_SUPPORT == 1) 6 | 7 | VOID 8 | HalTxbf8192E_setNDPArate( 9 | IN PVOID pDM_VOID, 10 | IN u1Byte BW, 11 | IN u1Byte Rate 12 | ); 13 | 14 | VOID 15 | HalTxbf8192E_Enter( 16 | IN PVOID pDM_VOID, 17 | IN u1Byte Idx 18 | ); 19 | 20 | 21 | VOID 22 | HalTxbf8192E_Leave( 23 | IN PVOID pDM_VOID, 24 | IN u1Byte Idx 25 | ); 26 | 27 | 28 | VOID 29 | HalTxbf8192E_Status( 30 | IN PVOID pDM_VOID, 31 | IN u1Byte Idx 32 | ); 33 | 34 | 35 | VOID 36 | HalTxbf8192E_FwTxBF( 37 | IN PVOID pDM_VOID, 38 | IN u1Byte Idx 39 | ); 40 | #else 41 | 42 | #define HalTxbf8192E_setNDPArate(pDM_VOID, BW, Rate) 43 | #define HalTxbf8192E_Enter(pDM_VOID, Idx) 44 | #define HalTxbf8192E_Leave(pDM_VOID, Idx) 45 | #define HalTxbf8192E_Status(pDM_VOID, Idx) 46 | #define HalTxbf8192E_FwTxBF(pDM_VOID, Idx) 47 | 48 | #endif 49 | 50 | #else 51 | 52 | #define HalTxbf8192E_setNDPArate(pDM_VOID, BW, Rate) 53 | #define HalTxbf8192E_Enter(pDM_VOID, Idx) 54 | #define HalTxbf8192E_Leave(pDM_VOID, Idx) 55 | #define HalTxbf8192E_Status(pDM_VOID, Idx) 56 | #define HalTxbf8192E_FwTxBF(pDM_VOID, Idx) 57 | 58 | #endif 59 | 60 | #endif 61 | 62 | -------------------------------------------------------------------------------- /include/rtl8822be_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8822BE_HAL_H_ 21 | #define _RTL8822BE_HAL_H_ 22 | 23 | #include /* PADAPTER */ 24 | 25 | #define RT_BCN_INT_MASKS (BIT20 | BIT25 | BIT26 | BIT16) 26 | 27 | /* rtl8822be_ops.c */ 28 | void UpdateInterruptMask8822BE(PADAPTER, u32 AddMSR, u32 AddMSR1, u32 RemoveMSR, u32 RemoveMSR1); 29 | 30 | #endif /* _RTL8822BE_HAL_H_ */ 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8822bs_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8822BS_HAL_H_ 21 | #define _RTL8822BS_HAL_H_ 22 | 23 | #include /* PADAPTER */ 24 | 25 | /* rtl8822bs_ops.c */ 26 | void rtl8822bs_set_hal_ops(PADAPTER); 27 | 28 | /* rtl8822bs_xmit.c */ 29 | s32 rtl8822bs_dequeue_writeport(PADAPTER); 30 | #define _dequeue_writeport(a) rtl8822bs_dequeue_writeport(a) 31 | 32 | #endif /* _RTL8822BS_HAL_H_ */ 33 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | u8 rtw_set_hal_ops(_adapter *padapter); 26 | 27 | #ifdef CONFIG_RTL8188E 28 | void rtl8188es_set_hal_ops(PADAPTER padapter); 29 | #endif 30 | 31 | #ifdef CONFIG_RTL8723B 32 | void rtl8723bs_set_hal_ops(PADAPTER padapter); 33 | #endif 34 | 35 | #endif /* __GSPI_HAL_H__ */ 36 | -------------------------------------------------------------------------------- /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 | #endif 33 | -------------------------------------------------------------------------------- /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 | #endif 33 | -------------------------------------------------------------------------------- /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 | #endif 34 | -------------------------------------------------------------------------------- /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, bool to_head); 29 | extern struct cmd_obj *_rtw_dequeue_cmd(_queue *queue); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /hal/efuse/rtl8723d/HalEfuseMask8723D_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 | /****************************************************************************** 21 | * MSDIO.TXT 22 | ******************************************************************************/ 23 | 24 | u2Byte 25 | EFUSE_GetArrayLen_MP_8723D_MSDIO(VOID); 26 | 27 | VOID 28 | EFUSE_GetMaskArray_MP_8723D_MSDIO( 29 | IN OUT pu1Byte Array 30 | ); 31 | /* TC: Test Chip, MP: MP Chip */ 32 | BOOLEAN 33 | EFUSE_IsAddressMasked_MP_8723D_MSDIO( 34 | IN u2Byte Offset 35 | ); 36 | -------------------------------------------------------------------------------- /hal/efuse/rtl8723d/HalEfuseMask8723D_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 | * MPCIE.TXT 23 | ******************************************************************************/ 24 | 25 | 26 | u2Byte 27 | EFUSE_GetArrayLen_MP_8723D_MPCIE(VOID); 28 | 29 | VOID 30 | EFUSE_GetMaskArray_MP_8723D_MPCIE( 31 | IN OUT pu1Byte Array 32 | ); 33 | 34 | BOOLEAN 35 | EFUSE_IsAddressMasked_MP_8723D_MPCIE(/* TC: Test Chip, MP: MP Chip */ 36 | IN u2Byte Offset 37 | ); 38 | -------------------------------------------------------------------------------- /hal/efuse/rtl8723d/HalEfuseMask8723D_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_8723D_MUSB(VOID); 30 | 31 | VOID 32 | EFUSE_GetMaskArray_MP_8723D_MUSB( 33 | IN OUT pu1Byte Array 34 | ); 35 | 36 | BOOLEAN 37 | EFUSE_IsAddressMasked_MP_8723D_MUSB(/* TC: Test Chip, MP: MP Chip */ 38 | IN u2Byte Offset 39 | ); 40 | -------------------------------------------------------------------------------- /platform/custom_country_chplan.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 | 21 | #error "You have defined CONFIG_CUSTOMIZED_COUNTRY_CHPLAN_MAP to use a customized map of your own instead of the default one" 22 | #error "Before removing these error notifications, please make sure regulatory certification requirements of your target markets" 23 | 24 | static const struct country_chplan CUSTOMIZED_country_chplan_map[] = { 25 | COUNTRY_CHPLAN_ENT("TW", 0x39, 1, 0xFF), /* Taiwan */ 26 | }; 27 | 28 | static const u16 CUSTOMIZED_country_chplan_map_sz = sizeof(CUSTOMIZED_country_chplan_map) / sizeof(struct country_chplan); 29 | -------------------------------------------------------------------------------- /include/rtw_sdio.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | ******************************************************************************/ 19 | #ifndef _RTW_SDIO_H_ 20 | #define _RTW_SDIO_H_ 21 | 22 | #include /* struct dvobj_priv and etc. */ 23 | 24 | u8 rtw_sdio_read_cmd52(struct dvobj_priv *, u32 addr, void *buf, size_t len); 25 | u8 rtw_sdio_read_cmd53(struct dvobj_priv *, u32 addr, void *buf, size_t len); 26 | u8 rtw_sdio_write_cmd52(struct dvobj_priv *, u32 addr, void *buf, size_t len); 27 | u8 rtw_sdio_write_cmd53(struct dvobj_priv *, u32 addr, void *buf, size_t len); 28 | u8 rtw_sdio_f0_read(struct dvobj_priv *, u32 addr, void *buf, size_t len); 29 | 30 | #endif /* _RTW_SDIO_H_ */ 31 | -------------------------------------------------------------------------------- /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/phydm/phydm_kfree.h: -------------------------------------------------------------------------------- 1 | 2 | /****************************************************************************** 3 | * 4 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 5 | * 6 | * This program is free software; you can redistribute it and/or modify it 7 | * under the terms of version 2 of the GNU General Public License as 8 | * published by the Free Software Foundation. 9 | * 10 | * This program is distributed in the hope that it will be useful, but WITHOUT 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 | * more details. 14 | * 15 | * You should have received a copy of the GNU General Public License along with 16 | * this program; if not, write to the Free Software Foundation, Inc., 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 18 | * 19 | * 20 | ******************************************************************************/ 21 | 22 | #ifndef __PHYDMKFREE_H__ 23 | #define __PHYDKFREE_H__ 24 | 25 | #define KFREE_VERSION "1.0" 26 | 27 | typedef enum tag_phydm_kfree_channeltosw { 28 | PHYDM_2G = 0, 29 | PHYDM_5GLB1 = 1, 30 | PHYDM_5GLB2 = 2, 31 | PHYDM_5GMB1 = 3, 32 | PHYDM_5GMB2 = 4, 33 | PHYDM_5GHB = 5, 34 | } PHYDM_KFREE_CHANNELTOSW; 35 | 36 | 37 | VOID 38 | phydm_ConfigKFree( 39 | IN PVOID pDM_VOID, 40 | IN u1Byte channelToSW, 41 | IN pu1Byte kfreeTable 42 | ); 43 | 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /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) 29 | #ifndef CONFIG_PLATFORM_MSTAR389 30 | #include 31 | #endif 32 | #elif defined (CONFIG_BIG_ENDIAN) 33 | #include 34 | #else 35 | # error "Must be LITTLE/BIG Endian Host" 36 | #endif 37 | 38 | #endif /* _RTL871X_BYTEORDER_H_ */ 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, u16 reason, u8 locally_generated); 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 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/halhwimg8723d_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 | /*Image2HeaderVersion: 2.26*/ 22 | #if (RTL8723D_SUPPORT == 1) 23 | #ifndef __INC_MP_MAC_HW_IMG_8723D_H 24 | #define __INC_MP_MAC_HW_IMG_8723D_H 25 | 26 | 27 | /****************************************************************************** 28 | * MAC_REG.TXT 29 | ******************************************************************************/ 30 | 31 | void 32 | ODM_ReadAndConfig_MP_8723D_MAC_REG(/* TC: Test Chip, MP: MP Chip*/ 33 | IN PDM_ODM_T pDM_Odm 34 | ); 35 | u4Byte ODM_GetVersion_MP_8723D_MAC_REG(void); 36 | 37 | #endif 38 | #endif /* end of HWIMG_SUPPORT*/ 39 | 40 | -------------------------------------------------------------------------------- /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 | #ifdef CONFIG_PLATFORM_MSTAR_HIGH 28 | #define MAX_RTKM_RECVBUF_SZ (31744) /* 31k */ 29 | #else 30 | #define MAX_RTKM_RECVBUF_SZ (15360) /* 15k */ 31 | #endif /* CONFIG_PLATFORM_MSTAR_HIGH */ 32 | #define MAX_RTKM_NR_PREALLOC_RECV_SKB 16 33 | 34 | u16 rtw_rtkm_get_buff_size(void); 35 | u8 rtw_rtkm_get_nr_recv_skb(void); 36 | struct u8 *rtw_alloc_revcbuf_premem(void); 37 | struct sk_buff *rtw_alloc_skb_premem(u16 in_size); 38 | int rtw_free_skb_premem(struct sk_buff *pskb); 39 | 40 | 41 | #endif /* __RTW_MEM_H__ */ 42 | -------------------------------------------------------------------------------- /hal/rtl8723d/hal8723d_fw.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #ifdef CONFIG_RTL8723D 22 | 23 | #ifndef _FW_HEADER_8723D_H 24 | #define _FW_HEADER_8723D_H 25 | 26 | #ifdef LOAD_FW_HEADER_FROM_DRIVER 27 | #if (defined(CONFIG_AP_WOWLAN) || (DM_ODM_SUPPORT_TYPE & (ODM_AP))) 28 | extern u8 array_mp_8723d_fw_ap[23862]; 29 | extern u32 array_length_mp_8723d_fw_ap; 30 | #endif 31 | 32 | #if (DM_ODM_SUPPORT_TYPE & (ODM_WIN)) || (DM_ODM_SUPPORT_TYPE & (ODM_CE)) 33 | extern u8 array_mp_8723d_fw_nic[27506]; 34 | extern u32 array_length_mp_8723d_fw_nic; 35 | extern u8 array_mp_8723d_fw_wowlan[32334]; 36 | extern u32 array_length_mp_8723d_fw_wowlan; 37 | #endif 38 | #endif /* end of LOAD_FW_HEADER_FROM_DRIVER */ 39 | 40 | #endif 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /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 | #ifdef RTK_129X_PLATFORM 24 | #define PCIE_SLOT1_MEM_START 0x9804F000 25 | #define PCIE_SLOT1_MEM_LEN 0x1000 26 | #define PCIE_SLOT1_MASK 0x9804ED00 27 | 28 | #define PCIE_SLOT2_MEM_START 0x9803C000 29 | #define PCIE_SLOT2_MEM_LEN 0x1000 30 | #define PCIE_SLOT2_MASK 0x9803BD00 31 | 32 | #define PCIE_TRANSLATE_OFFSET 4 /* offset from MASK reg */ 33 | #endif 34 | 35 | void rtw_pci_disable_aspm(_adapter *padapter); 36 | void rtw_pci_enable_aspm(_adapter *padapter); 37 | void PlatformClearPciPMEStatus(PADAPTER Adapter); 38 | #ifdef CONFIG_64BIT_DMA 39 | u8 PlatformEnableDMA64(PADAPTER Adapter); 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | bool sdio_power_on_check(PADAPTER padapter); 31 | 32 | #ifdef CONFIG_FW_C2H_REG 33 | void sd_c2h_hisr_hdl(_adapter *adapter); 34 | #endif 35 | 36 | #endif /* __HAL_SDIO_H_ */ 37 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 rtl8821as_hw_led_config(PADAPTER adapter); 37 | void rtl8821as_InitSwLeds(PADAPTER padapter); 38 | void rtl8821as_DeInitSwLeds(PADAPTER padapter); 39 | #endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /hal/rtl8723d/pci/rtl8723de_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 _RTL8723DE_RECV_C_ 21 | 22 | /*#include */ 23 | #include 24 | 25 | 26 | s32 rtl8723de_init_recv_priv(_adapter *padapter) 27 | { 28 | struct recv_priv *precvpriv = &padapter->recvpriv; 29 | s32 ret = _SUCCESS; 30 | 31 | 32 | #ifdef PLATFORM_LINUX 33 | tasklet_init(&precvpriv->recv_tasklet, 34 | (void(*)(unsigned long))rtl8723de_recv_tasklet, 35 | (unsigned long)padapter); 36 | 37 | tasklet_init(&precvpriv->irq_prepare_beacon_tasklet, 38 | (void(*)(unsigned long))rtl8723de_prepare_bcn_tasklet, 39 | (unsigned long)padapter); 40 | #endif 41 | 42 | 43 | return ret; 44 | } 45 | 46 | void rtl8723de_free_recv_priv(_adapter *padapter) 47 | { 48 | /*struct recv_priv *precvpriv = &padapter->recvpriv;*/ 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /include/rtl8814a_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 __RTL8814A_LED_H__ 21 | #define __RTL8814A_LED_H__ 22 | 23 | 24 | /* ******************************************************************************** 25 | * Interface to manipulate LED objects. 26 | * ******************************************************************************** */ 27 | #ifdef CONFIG_USB_HCI 28 | void rtl8814au_InitSwLeds(PADAPTER padapter); 29 | void rtl8814au_DeInitSwLeds(PADAPTER padapter); 30 | #endif /* CONFIG_USB_HCI */ 31 | #ifdef CONFIG_PCI_HCI 32 | void rtl8814ae_InitSwLeds(PADAPTER padapter); 33 | void rtl8814ae_DeInitSwLeds(PADAPTER padapter); 34 | #endif /* CONFIG_PCI_HCI */ 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8814s_InitSwLeds(PADAPTER padapter); 37 | void rtl8814s_DeInitSwLeds(PADAPTER padapter); 38 | #endif /* CONFIG_SDIO_HCI */ 39 | 40 | #endif /* __RTL8814A_LED_H__ */ 41 | -------------------------------------------------------------------------------- /hal/phydm/txbf/haltxbfjaguar.h: -------------------------------------------------------------------------------- 1 | #ifndef __HAL_TXBF_JAGUAR_H__ 2 | #define __HAL_TXBF_JAGUAR_H__ 3 | #if ((RTL8812A_SUPPORT == 1) || (RTL8821A_SUPPORT == 1)) 4 | #if (BEAMFORMING_SUPPORT == 1) 5 | 6 | VOID 7 | HalTxbf8812A_setNDPArate( 8 | IN PVOID pDM_VOID, 9 | IN u1Byte BW, 10 | IN u1Byte Rate 11 | ); 12 | 13 | 14 | VOID 15 | HalTxbfJaguar_Enter( 16 | IN PVOID pDM_VOID, 17 | IN u1Byte Idx 18 | ); 19 | 20 | 21 | VOID 22 | HalTxbfJaguar_Leave( 23 | IN PVOID pDM_VOID, 24 | IN u1Byte Idx 25 | ); 26 | 27 | 28 | VOID 29 | HalTxbfJaguar_Status( 30 | IN PVOID pDM_VOID, 31 | IN u1Byte Idx 32 | ); 33 | 34 | 35 | VOID 36 | HalTxbfJaguar_FwTxBF( 37 | IN PVOID pDM_VOID, 38 | IN u1Byte Idx 39 | ); 40 | 41 | 42 | VOID 43 | HalTxbfJaguar_Patch( 44 | IN PVOID pDM_VOID, 45 | IN u1Byte Operation 46 | ); 47 | 48 | 49 | VOID 50 | HalTxbfJaguar_Clk_8812A( 51 | IN PVOID pDM_VOID 52 | ); 53 | #else 54 | 55 | #define HalTxbf8812A_setNDPArate(pDM_VOID, BW, Rate) 56 | #define HalTxbfJaguar_Enter(pDM_VOID, Idx) 57 | #define HalTxbfJaguar_Leave(pDM_VOID, Idx) 58 | #define HalTxbfJaguar_Status(pDM_VOID, Idx) 59 | #define HalTxbfJaguar_FwTxBF(pDM_VOID, Idx) 60 | #define HalTxbfJaguar_Patch(pDM_VOID, Operation) 61 | #define HalTxbfJaguar_Clk_8812A(pDM_VOID) 62 | #endif 63 | #else 64 | 65 | #define HalTxbf8812A_setNDPArate(pDM_VOID, BW, Rate) 66 | #define HalTxbfJaguar_Enter(pDM_VOID, Idx) 67 | #define HalTxbfJaguar_Leave(pDM_VOID, Idx) 68 | #define HalTxbfJaguar_Status(pDM_VOID, Idx) 69 | #define HalTxbfJaguar_FwTxBF(pDM_VOID, Idx) 70 | #define HalTxbfJaguar_Patch(pDM_VOID, Operation) 71 | #define HalTxbfJaguar_Clk_8812A(pDM_VOID) 72 | #endif 73 | 74 | #endif // #ifndef __HAL_TXBF_JAGUAR_H__ 75 | 76 | -------------------------------------------------------------------------------- /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 | void sd_int_dpc(PADAPTER padapter); 24 | u8 rtw_set_hal_ops(_adapter *padapter); 25 | 26 | #ifdef CONFIG_RTL8188E 27 | void rtl8188es_set_hal_ops(PADAPTER padapter); 28 | #endif 29 | 30 | #ifdef CONFIG_RTL8723B 31 | void rtl8723bs_set_hal_ops(PADAPTER padapter); 32 | #endif 33 | 34 | #ifdef CONFIG_RTL8821A 35 | void rtl8821as_set_hal_ops(PADAPTER padapter); 36 | #endif 37 | 38 | #ifdef CONFIG_RTL8192E 39 | void rtl8192es_set_hal_ops(PADAPTER padapter); 40 | #endif 41 | 42 | #ifdef CONFIG_RTL8703B 43 | void rtl8703bs_set_hal_ops(PADAPTER padapter); 44 | #endif 45 | 46 | #ifdef CONFIG_RTL8723D 47 | void rtl8723ds_set_hal_ops(PADAPTER padapter); 48 | #endif 49 | 50 | #ifdef CONFIG_RTL8188F 51 | void rtl8188fs_set_hal_ops(PADAPTER padapter); 52 | #endif 53 | 54 | #endif /* __SDIO_HAL_H__ */ 55 | -------------------------------------------------------------------------------- /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_RTL8188E 24 | void rtl8188ee_set_hal_ops(_adapter *padapter); 25 | #endif 26 | 27 | #if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) 28 | void rtl8812ae_set_hal_ops(_adapter *padapter); 29 | #endif 30 | 31 | #if defined(CONFIG_RTL8192E) 32 | void rtl8192ee_set_hal_ops(_adapter *padapter); 33 | #endif 34 | 35 | #ifdef CONFIG_RTL8723B 36 | void rtl8723be_set_hal_ops(_adapter *padapter); 37 | #endif 38 | 39 | #ifdef CONFIG_RTL8723D 40 | void rtl8723de_set_hal_ops(_adapter *padapter); 41 | #endif 42 | 43 | #ifdef CONFIG_RTL8814A 44 | void rtl8814ae_set_hal_ops(_adapter *padapter); 45 | #endif 46 | 47 | #ifdef CONFIG_RTL8822B 48 | void rtl8822be_set_hal_ops(PADAPTER padapter); 49 | #endif 50 | 51 | u8 rtw_set_hal_ops(_adapter *padapter); 52 | 53 | #endif /* __PCIE_HAL_H__ */ 54 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/phydm/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 | { 26 | //u1Byte value_a, value_b; 27 | u1Byte value[MAX_RF_PATH]; 28 | //s1Byte sval_a, sval_b; 29 | s1Byte sval[MAX_RF_PATH]; 30 | 31 | //s4Byte noise_a=0, noise_b=0,sum_a=0, sum_b=0; 32 | //s4Byte noise[ODM_RF_PATH_MAX]; 33 | s4Byte sum[MAX_RF_PATH]; 34 | //u1Byte valid_cnt_a=0, valid_cnt_b=0, 35 | u1Byte valid[MAX_RF_PATH]; 36 | u1Byte valid_cnt[MAX_RF_PATH]; 37 | 38 | }; 39 | 40 | 41 | typedef struct _ODM_NOISE_MONITOR_ 42 | { 43 | s1Byte noise[MAX_RF_PATH]; 44 | s2Byte noise_all; 45 | }ODM_NOISE_MONITOR; 46 | 47 | s2Byte ODM_InbandNoise_Monitor(PVOID pDM_VOID,u8 bPauseDIG,u8 IGIValue,u32 max_time); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/phydm_rtl8723d.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 | #include "../phydm_precomp.h" 27 | 28 | #if (RTL8723D_SUPPORT == 1) 29 | 30 | s1Byte 31 | odm_CCKRSSI_8723D( 32 | IN u1Byte LNA_idx, 33 | IN u1Byte VGA_idx 34 | ) 35 | { 36 | s1Byte rx_pwr_all = 0x00; 37 | 38 | switch (LNA_idx) { 39 | 40 | case 0xf: 41 | rx_pwr_all = -46 - (2 * VGA_idx); 42 | break; 43 | case 0xa: 44 | rx_pwr_all = -20 - (2 * VGA_idx); 45 | break; 46 | case 7: 47 | rx_pwr_all = -10 - (2 * VGA_idx); 48 | break; 49 | case 4: 50 | rx_pwr_all = 4 - (2 * VGA_idx); 51 | break; 52 | default: 53 | break; 54 | } 55 | 56 | return rx_pwr_all; 57 | 58 | } 59 | 60 | #endif 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /hal/phydm/txbf/haltxbf8814a.h: -------------------------------------------------------------------------------- 1 | #ifndef __HAL_TXBF_8814A_H__ 2 | #define __HAL_TXBF_8814A_H__ 3 | 4 | #if (RTL8814A_SUPPORT == 1) 5 | #if (BEAMFORMING_SUPPORT == 1) 6 | 7 | VOID 8 | HalTxbf8814A_setNDPArate( 9 | IN PVOID pDM_VOID, 10 | IN u1Byte BW, 11 | IN u1Byte Rate 12 | ); 13 | 14 | u1Byte 15 | halTxbf8814A_GetNtx( 16 | IN PVOID pDM_VOID 17 | ); 18 | 19 | VOID 20 | HalTxbf8814A_Enter( 21 | IN PVOID pDM_VOID, 22 | IN u1Byte Idx 23 | ); 24 | 25 | 26 | VOID 27 | HalTxbf8814A_Leave( 28 | IN PVOID pDM_VOID, 29 | IN u1Byte Idx 30 | ); 31 | 32 | 33 | VOID 34 | HalTxbf8814A_Status( 35 | IN PVOID pDM_VOID, 36 | IN u1Byte Idx 37 | ); 38 | 39 | VOID 40 | HalTxbf8814A_ResetTxPath( 41 | IN PVOID pDM_VOID, 42 | IN u1Byte Idx 43 | ); 44 | 45 | 46 | VOID 47 | HalTxbf8814A_GetTxRate( 48 | IN PVOID pDM_VOID 49 | ); 50 | 51 | VOID 52 | HalTxbf8814A_FwTxBF( 53 | IN PVOID pDM_VOID, 54 | IN u1Byte Idx 55 | ); 56 | 57 | #else 58 | 59 | #define HalTxbf8814A_setNDPArate(pDM_VOID, BW, Rate) 60 | #define halTxbf8814A_GetNtx(pDM_VOID) 0 61 | #define HalTxbf8814A_Enter(pDM_VOID, Idx) 62 | #define HalTxbf8814A_Leave(pDM_VOID, Idx) 63 | #define HalTxbf8814A_Status(pDM_VOID, Idx) 64 | #define HalTxbf8814A_ResetTxPath(pDM_VOID, Idx) 65 | #define HalTxbf8814A_GetTxRate(pDM_VOID) 66 | #define HalTxbf8814A_FwTxBF(pDM_VOID, Idx) 67 | 68 | #endif 69 | 70 | #else 71 | 72 | #define HalTxbf8814A_setNDPArate(pDM_VOID, BW, Rate) 73 | #define halTxbf8814A_GetNtx(pDM_VOID) 0 74 | #define HalTxbf8814A_Enter(pDM_VOID, Idx) 75 | #define HalTxbf8814A_Leave(pDM_VOID, Idx) 76 | #define HalTxbf8814A_Status(pDM_VOID, Idx) 77 | #define HalTxbf8814A_ResetTxPath(pDM_VOID, Idx) 78 | #define HalTxbf8814A_GetTxRate(pDM_VOID) 79 | #define HalTxbf8814A_FwTxBF(pDM_VOID, Idx) 80 | #endif 81 | 82 | #endif 83 | 84 | -------------------------------------------------------------------------------- /hal/phydm/phydm_dynamicbbpowersaving.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | 21 | #ifndef __PHYDMDYNAMICBBPOWERSAVING_H__ 22 | #define __PHYDMDYNAMICBBPOWERSAVING_H__ 23 | 24 | #define DYNAMIC_BBPWRSAV_VERSION "1.1" 25 | 26 | #if (defined(CONFIG_BB_POWER_SAVING)) 27 | 28 | typedef struct _Dynamic_Power_Saving_ 29 | { 30 | u1Byte PreCCAState; 31 | u1Byte CurCCAState; 32 | 33 | u1Byte PreRFState; 34 | u1Byte CurRFState; 35 | 36 | int Rssi_val_min; 37 | 38 | u1Byte initialize; 39 | u4Byte Reg874,RegC70,Reg85C,RegA74; 40 | 41 | }PS_T,*pPS_T; 42 | 43 | #define dm_RF_Saving ODM_RF_Saving 44 | 45 | void ODM_RF_Saving( 46 | IN PVOID pDM_VOID, 47 | IN u1Byte bForceInNormal 48 | ); 49 | 50 | VOID 51 | odm_DynamicBBPowerSavingInit( 52 | IN PVOID pDM_VOID 53 | ); 54 | #else 55 | #define dm_RF_Saving(pDM_VOID, bForceInNormal) 56 | #endif 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /include/rtl8188f_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 __RTL8188F_LED_H__ 21 | #define __RTL8188F_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 rtl8188fu_InitSwLeds(PADAPTER padapter); 33 | void rtl8188fu_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8188fs_InitSwLeds(PADAPTER padapter); 37 | void rtl8188fs_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | #ifdef CONFIG_GSPI_HCI 40 | void rtl8188fs_InitSwLeds(PADAPTER padapter); 41 | void rtl8188fs_DeInitSwLeds(PADAPTER padapter); 42 | #endif 43 | #ifdef CONFIG_PCI_HCI 44 | void rtl8188fe_InitSwLeds(PADAPTER padapter); 45 | void rtl8188fe_DeInitSwLeds(PADAPTER padapter); 46 | #endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /include/rtl8703b_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 __RTL8703B_LED_H__ 21 | #define __RTL8703B_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 rtl8703bu_InitSwLeds(PADAPTER padapter); 33 | void rtl8703bu_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8703bs_InitSwLeds(PADAPTER padapter); 37 | void rtl8703bs_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | #ifdef CONFIG_GSPI_HCI 40 | void rtl8703bs_InitSwLeds(PADAPTER padapter); 41 | void rtl8703bs_DeInitSwLeds(PADAPTER padapter); 42 | #endif 43 | #ifdef CONFIG_PCI_HCI 44 | void rtl8703be_InitSwLeds(PADAPTER padapter); 45 | void rtl8703be_DeInitSwLeds(PADAPTER padapter); 46 | #endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8723d_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 __RTL8723D_LED_H__ 21 | #define __RTL8723D_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 rtl8723du_InitSwLeds(PADAPTER padapter); 33 | void rtl8723du_DeInitSwLeds(PADAPTER padapter); 34 | #endif 35 | #ifdef CONFIG_SDIO_HCI 36 | void rtl8723ds_InitSwLeds(PADAPTER padapter); 37 | void rtl8723ds_DeInitSwLeds(PADAPTER padapter); 38 | #endif 39 | #ifdef CONFIG_GSPI_HCI 40 | void rtl8723ds_InitSwLeds(PADAPTER padapter); 41 | void rtl8723ds_DeInitSwLeds(PADAPTER padapter); 42 | #endif 43 | #ifdef CONFIG_PCI_HCI 44 | void rtl8723de_InitSwLeds(PADAPTER padapter); 45 | void rtl8723de_DeInitSwLeds(PADAPTER padapter); 46 | #endif 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /include/rtl8188f_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 __RTL8188F_DM_H__ 21 | #define __RTL8188F_DM_H__ 22 | /* ************************************************************ 23 | * Description: 24 | * 25 | * This file is for 8188F dynamic mechanism only 26 | * 27 | * 28 | * ************************************************************ */ 29 | 30 | /* ************************************************************ 31 | * structure and define 32 | * ************************************************************ */ 33 | 34 | /* ************************************************************ 35 | * function prototype 36 | * ************************************************************ */ 37 | 38 | void rtl8188f_init_dm_priv(PADAPTER padapter); 39 | void rtl8188f_deinit_dm_priv(PADAPTER padapter); 40 | 41 | void rtl8188f_InitHalDm(PADAPTER padapter); 42 | void rtl8188f_HalDmWatchDog(PADAPTER padapter); 43 | void rtl8188f_HalDmWatchDog_in_LPS(PADAPTER padapter); 44 | void rtl8188f_hal_dm_in_lps(PADAPTER padapter); 45 | 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /include/rtl8703b_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 __RTL8703B_DM_H__ 21 | #define __RTL8703B_DM_H__ 22 | /* ************************************************************ 23 | * Description: 24 | * 25 | * This file is for 8703B dynamic mechanism only 26 | * 27 | * 28 | * ************************************************************ */ 29 | 30 | /* ************************************************************ 31 | * structure and define 32 | * ************************************************************ */ 33 | 34 | /* ************************************************************ 35 | * function prototype 36 | * ************************************************************ */ 37 | 38 | void rtl8703b_init_dm_priv(PADAPTER padapter); 39 | void rtl8703b_deinit_dm_priv(PADAPTER padapter); 40 | 41 | void rtl8703b_InitHalDm(PADAPTER padapter); 42 | void rtl8703b_HalDmWatchDog(PADAPTER padapter); 43 | void rtl8703b_HalDmWatchDog_in_LPS(PADAPTER padapter); 44 | void rtl8703b_hal_dm_in_lps(PADAPTER padapter); 45 | 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /include/rtl8723d_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 __RTL8723D_DM_H__ 21 | #define __RTL8723D_DM_H__ 22 | /* ************************************************************ 23 | * Description: 24 | * 25 | * This file is for 8723D dynamic mechanism only 26 | * 27 | * 28 | * ************************************************************ */ 29 | 30 | /* ************************************************************ 31 | * structure and define 32 | * ************************************************************ */ 33 | 34 | /* ************************************************************ 35 | * function prototype 36 | * ************************************************************ */ 37 | 38 | void rtl8723d_init_dm_priv(PADAPTER padapter); 39 | void rtl8723d_deinit_dm_priv(PADAPTER padapter); 40 | 41 | void rtl8723d_InitHalDm(PADAPTER padapter); 42 | void rtl8723d_HalDmWatchDog(PADAPTER padapter); 43 | void rtl8723d_HalDmWatchDog_in_LPS(PADAPTER padapter); 44 | void rtl8723d_hal_dm_in_lps(PADAPTER padapter); 45 | 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/phydm/txbf/haltxbf8822b.h: -------------------------------------------------------------------------------- 1 | #ifndef __HAL_TXBF_8822B_H__ 2 | #define __HAL_TXBF_8822B_H__ 3 | 4 | #if (RTL8822B_SUPPORT == 1) 5 | #if (BEAMFORMING_SUPPORT == 1) 6 | 7 | VOID 8 | HalTxbf8822B_Init( 9 | IN PVOID pDM_VOID 10 | ); 11 | 12 | VOID 13 | HalTxbf8822B_Enter( 14 | IN PVOID pDM_VOID, 15 | IN u1Byte Idx 16 | ); 17 | 18 | 19 | VOID 20 | HalTxbf8822B_Leave( 21 | IN PVOID pDM_VOID, 22 | IN u1Byte Idx 23 | ); 24 | 25 | 26 | VOID 27 | HalTxbf8822B_Status( 28 | IN PVOID pDM_VOID, 29 | IN u1Byte Idx 30 | ); 31 | 32 | VOID 33 | HalTxbf8822B_ConfigGtab( 34 | IN PVOID pDM_VOID 35 | ); 36 | 37 | VOID 38 | HalTxbf8822B_FwTxBF( 39 | IN PVOID pDM_VOID, 40 | IN u1Byte Idx 41 | ); 42 | #else 43 | #define HalTxbf8822B_Init(pDM_VOID) 44 | #define HalTxbf8822B_Enter(pDM_VOID, Idx) 45 | #define HalTxbf8822B_Leave(pDM_VOID, Idx) 46 | #define HalTxbf8822B_Status(pDM_VOID, Idx) 47 | #define HalTxbf8822B_FwTxBF(pDM_VOID, Idx) 48 | #define HalTxbf8822B_ConfigGtab(pDM_VOID) 49 | 50 | #endif 51 | 52 | #if (defined(CONFIG_BB_TXBF_API)) 53 | VOID 54 | phydm_8822btxbf_rfmode( 55 | IN PVOID pDM_VOID, 56 | IN u1Byte SUBFeeCnt, 57 | IN u1Byte MUBFeeCnt 58 | ); 59 | 60 | VOID 61 | phydm_8822b_sutxbfer_workaroud( 62 | IN PVOID pDM_VOID, 63 | IN BOOLEAN EnableSUBfer, 64 | IN u1Byte Nc, 65 | IN u1Byte Nr, 66 | IN u1Byte Ng, 67 | IN u1Byte CB, 68 | IN u1Byte BW, 69 | IN BOOLEAN isVHT 70 | ); 71 | 72 | #else 73 | #define phydm_8822btxbf_rfmode(pDM_VOID, SUBFeeCnt, MUBFeeCnt) 74 | #define phydm_8822b_sutxbfer_workaroud(pDM_VOID, EnableSUBfer, Nc, Nr, Ng, CB, BW, isVHT) 75 | #endif 76 | 77 | #else 78 | #define HalTxbf8822B_Init(pDM_VOID) 79 | #define HalTxbf8822B_Enter(pDM_VOID, Idx) 80 | #define HalTxbf8822B_Leave(pDM_VOID, Idx) 81 | #define HalTxbf8822B_Status(pDM_VOID, Idx) 82 | #define HalTxbf8822B_FwTxBF(pDM_VOID, Idx) 83 | #define HalTxbf8822B_ConfigGtab(pDM_VOID) 84 | 85 | #endif 86 | #endif 87 | 88 | -------------------------------------------------------------------------------- /include/rtl8822bu_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8822BU_HAL_H_ 21 | #define _RTL8822BU_HAL_H_ 22 | 23 | #ifdef CONFIG_USB_HCI 24 | #include /* PADAPTER */ 25 | 26 | #ifdef CONFIG_USB_HCI 27 | #ifdef USB_PACKET_OFFSET_SZ 28 | #define PACKET_OFFSET_SZ (USB_PACKET_OFFSET_SZ) 29 | #else 30 | #define PACKET_OFFSET_SZ (8) 31 | #endif 32 | #define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ) 33 | #endif 34 | 35 | /* recv_buffer must be large than usb agg size */ 36 | #ifndef MAX_RECVBUF_SZ 37 | #ifdef PLATFORM_OS_CE 38 | #define MAX_RECVBUF_SZ (8192+1024) 39 | #else /* !PLATFORM_OS_CE */ 40 | #ifndef CONFIG_MINIMAL_MEMORY_USAGE 41 | #define MAX_RECVBUF_SZ (32768) 42 | #else 43 | #define MAX_RECVBUF_SZ (4000) 44 | #endif 45 | #endif /* PLATFORM_OS_CE */ 46 | #endif /* !MAX_RECVBUF_SZ */ 47 | 48 | /* rtl8822bu_ops.c */ 49 | void rtl8822bu_set_hal_ops(PADAPTER padapter); 50 | void rtl8822bu_set_hw_type(struct dvobj_priv *pdvobj); 51 | 52 | /* rtl8822bu_io.c */ 53 | void rtl8822bu_set_intf_ops(struct _io_ops *pops); 54 | 55 | #endif /* CONFIG_USB_HCI */ 56 | 57 | 58 | #endif /* _RTL8822BU_HAL_H_ */ 59 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /hal/phydm/phydm_adc_sampling.h: -------------------------------------------------------------------------------- 1 | #ifndef __INC_ADCSMP_H 2 | #define __INC_ADCSMP_H 3 | 4 | typedef struct _RT_ADCSMP_STRING { 5 | pu4Byte Octet; 6 | u4Byte Length; 7 | u4Byte buffer_size; 8 | u4Byte start_pos; 9 | } RT_ADCSMP_STRING, *PRT_ADCSMP_STRING; 10 | 11 | 12 | typedef enum _RT_ADCSMP_TRIG_SEL { 13 | ADCSMP_BB_TRIG, 14 | ADCSMP_MAC_TRIG, 15 | } RT_ADCSMP_TRIG_SEL, *PRT_ADCSMP_TRIG_SEL; 16 | 17 | 18 | typedef enum _RT_ADCSMP_TRIG_SIG_SEL { 19 | ADCSMP_TRIG_CRCOK, 20 | ADCSMP_TRIG_CRCFAIL, 21 | ADCSMP_TRIG_CCA, 22 | ADCSMP_TRIG_REG, 23 | } RT_ADCSMP_TRIG_SIG_SEL, *PRT_ADCSMP_TRIG_SIG_SEL; 24 | 25 | 26 | typedef enum _RT_ADCSMP_STATE { 27 | ADCSMP_STATE_IDLE, 28 | ADCSMP_STATE_SET, 29 | ADCSMP_STATE_QUERY, 30 | } RT_ADCSMP_STATE, *PRT_ADCSMP_STATE; 31 | 32 | 33 | typedef struct _RT_ADCSMP { 34 | RT_ADCSMP_STRING ADCSmpBuf; 35 | RT_ADCSMP_STATE ADCSmpState; 36 | RT_ADCSMP_TRIG_SEL ADCSmpTrigSel; 37 | RT_ADCSMP_TRIG_SIG_SEL ADCSmpTrigSigSel; 38 | u1Byte ADCSmpDmaDataSigSel; 39 | u1Byte ADCSmpTriggerTime; 40 | u2Byte ADCSmpPollingTime; 41 | 42 | #if (DM_ODM_SUPPORT_TYPE == ODM_WIN) 43 | RT_WORK_ITEM ADCSmpWorkItem; 44 | #endif 45 | } RT_ADCSMP, *PRT_ADCSMP; 46 | 47 | #if (DM_ODM_SUPPORT_TYPE & ODM_WIN) 48 | VOID 49 | ADCSmpWorkItemCallback( 50 | IN PVOID pContext 51 | ); 52 | #endif 53 | 54 | VOID 55 | ADCSmp_Set( 56 | IN PVOID pDM_VOID, 57 | IN RT_ADCSMP_TRIG_SEL TrigSel, 58 | IN RT_ADCSMP_TRIG_SIG_SEL TrigSigSel, 59 | IN u1Byte DmaDataSigSel, 60 | IN u1Byte TriggerTime, 61 | IN u2Byte PollingTime 62 | ); 63 | 64 | #if (DM_ODM_SUPPORT_TYPE & ODM_WIN) 65 | RT_STATUS 66 | ADCSmp_Query( 67 | IN PVOID pDM_VOID, 68 | IN ULONG InformationBufferLength, 69 | OUT PVOID InformationBuffer, 70 | OUT PULONG BytesWritten 71 | ); 72 | #endif 73 | VOID 74 | ADCSmp_Stop( 75 | IN PVOID pDM_VOID 76 | ); 77 | 78 | VOID 79 | ADCSmp_Init( 80 | IN PVOID pDM_VOID 81 | ); 82 | 83 | #if (DM_ODM_SUPPORT_TYPE & ODM_WIN) 84 | VOID 85 | ADCSmp_DeInit( 86 | IN PVOID pDM_VOID 87 | ); 88 | 89 | #endif 90 | #endif 91 | 92 | -------------------------------------------------------------------------------- /hal/phydm/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.4" /*2015.10.01 Stanley, Modify for 8822B*/ 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 | { 32 | BOOLEAN bATCStatus; 33 | BOOLEAN largeCFOHit; 34 | BOOLEAN bAdjust; 35 | u1Byte CrystalCap; 36 | u1Byte DefXCap; 37 | s4Byte CFO_tail[4]; 38 | u4Byte CFO_cnt[4]; 39 | s4Byte CFO_ave_pre; 40 | u4Byte packetCount; 41 | u4Byte packetCount_pre; 42 | 43 | BOOLEAN bForceXtalCap; 44 | BOOLEAN bReset; 45 | }CFO_TRACKING, *PCFO_TRACKING; 46 | 47 | VOID 48 | ODM_CfoTrackingReset( 49 | IN PVOID pDM_VOID 50 | ); 51 | 52 | VOID 53 | ODM_CfoTrackingInit( 54 | IN PVOID pDM_VOID 55 | ); 56 | 57 | VOID 58 | ODM_CfoTracking( 59 | IN PVOID pDM_VOID 60 | ); 61 | 62 | VOID 63 | ODM_ParsingCFO( 64 | IN PVOID pDM_VOID, 65 | IN PVOID pPktinfo_VOID, 66 | IN s1Byte* pcfotail, 67 | IN u1Byte num_ss 68 | ); 69 | 70 | #endif -------------------------------------------------------------------------------- /hal/phydm/txbf/phydm_hal_txbf_api.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 | /*You should have received a copy of the GNU General Public License along with*/ 14 | /*this program; if not, write to the Free Software Foundation, Inc.,*/ 15 | /*51 Franklin Street, Fifth Floor, Boston, MA 02110, USA*/ 16 | /**/ 17 | /**/ 18 | /********************************************************************************/ 19 | #ifndef __PHYDM_HAL_TXBF_API_H__ 20 | #define __PHYDM_HAL_TXBF_API_H__ 21 | 22 | #if (defined(CONFIG_BB_TXBF_API)) 23 | 24 | #if (DM_ODM_SUPPORT_TYPE != ODM_AP) 25 | #define TxBF_Nr(a, b) ((a > b) ? (b) : (a)) 26 | 27 | u1Byte 28 | Beamforming_GetHTNDPTxRate( 29 | IN PVOID pDM_VOID, 30 | u1Byte CompSteeringNumofBFer 31 | ); 32 | 33 | u1Byte 34 | Beamforming_GetVHTNDPTxRate( 35 | IN PVOID pDM_VOID, 36 | u1Byte CompSteeringNumofBFer 37 | ); 38 | 39 | #endif 40 | 41 | #if (RTL8822B_SUPPORT == 1) 42 | u1Byte 43 | phydm_get_beamforming_sounding_info( 44 | IN PVOID pDM_VOID, 45 | IN pu2Byte Troughput, 46 | IN u1Byte Total_BFee_Num, 47 | IN pu1Byte TxRate 48 | ); 49 | 50 | u1Byte 51 | phydm_get_ndpa_rate( 52 | IN PVOID pDM_VOID 53 | ); 54 | 55 | u1Byte 56 | phydm_get_mu_bfee_snding_decision( 57 | IN PVOID pDM_VOID, 58 | IN u2Byte Throughput 59 | ); 60 | 61 | #else 62 | #define phydm_get_beamforming_sounding_info(pDM_VOID, Troughput, Total_BFee_Num, TxRate) 63 | #define phydm_get_ndpa_rate(pDM_VOID) 64 | #define phydm_get_mu_bfee_snding_decision(pDM_VOID, Troughput) 65 | 66 | #endif 67 | 68 | #endif 69 | #endif 70 | 71 | -------------------------------------------------------------------------------- /hal/phydm/phydm_ccx.h: -------------------------------------------------------------------------------- 1 | #ifndef __PHYDMCCX_H__ 2 | #define __PHYDMCCX_H__ 3 | 4 | #define CCX_EN 1 5 | 6 | #define SET_NHM_SETTING 0 7 | #define STORE_NHM_SETTING 1 8 | #define RESTORE_NHM_SETTING 2 9 | 10 | /* 11 | #define NHM_EXCLUDE_CCA 0 12 | #define NHM_INCLUDE_CCA 1 13 | #define NHM_EXCLUDE_TXON 0 14 | #define NHM_INCLUDE_TXON 1 15 | */ 16 | 17 | typedef enum NHM_inexclude_cca { 18 | NHM_EXCLUDE_CCA, 19 | NHM_INCLUDE_CCA 20 | }NHM_INEXCLUDE_CCA; 21 | 22 | typedef enum NHM_inexclude_txon { 23 | NHM_EXCLUDE_TXON, 24 | NHM_INCLUDE_TXON 25 | }NHM_INEXCLUDE_TXON; 26 | 27 | 28 | typedef struct _CCX_INFO{ 29 | 30 | /*Settings*/ 31 | u1Byte NHM_th[11]; 32 | u2Byte NHM_period; /* 4us per unit */ 33 | u2Byte CLM_period; /* 4us per unit */ 34 | NHM_INEXCLUDE_TXON NHM_inexclude_txon; 35 | NHM_INEXCLUDE_CCA NHM_inexclude_cca; 36 | 37 | /*Previous Settings*/ 38 | u1Byte NHM_th_restore[11]; 39 | u2Byte NHM_period_restore; /* 4us per unit */ 40 | u2Byte CLM_period_restore; /* 4us per unit */ 41 | NHM_INEXCLUDE_TXON NHM_inexclude_txon_restore; 42 | NHM_INEXCLUDE_CCA NHM_inexclude_cca_restore; 43 | 44 | /*Report*/ 45 | u1Byte NHM_result[12]; 46 | u2Byte NHM_duration; 47 | u2Byte CLM_result; 48 | 49 | 50 | BOOLEAN echo_NHM_en; 51 | BOOLEAN echo_CLM_en; 52 | u1Byte echo_IGI; 53 | 54 | }CCX_INFO, *PCCX_INFO; 55 | 56 | /*NHM*/ 57 | 58 | VOID 59 | phydm_NHMsetting( 60 | IN PVOID pDM_VOID, 61 | u1Byte NHMsetting 62 | ); 63 | 64 | VOID 65 | phydm_NHMtrigger( 66 | IN PVOID pDM_VOID 67 | ); 68 | 69 | VOID 70 | phydm_getNHMresult( 71 | IN PVOID pDM_VOID 72 | ); 73 | 74 | BOOLEAN 75 | phydm_checkNHMready( 76 | IN PVOID pDM_VOID 77 | ); 78 | 79 | /*CLM*/ 80 | 81 | VOID 82 | phydm_CLMsetting( 83 | IN PVOID pDM_VOID 84 | ); 85 | 86 | VOID 87 | phydm_CLMtrigger( 88 | IN PVOID pDM_VOID 89 | ); 90 | 91 | BOOLEAN 92 | phydm_checkCLMready( 93 | IN PVOID pDM_VOID 94 | ); 95 | 96 | VOID 97 | phydm_getCLMresult( 98 | IN PVOID pDM_VOID 99 | ); 100 | 101 | 102 | #endif 103 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | #ifdef CONFIG_FW_C2H_REG 26 | void usb_c2h_hisr_hdl(_adapter *adapter, u8 *buf); 27 | #endif 28 | 29 | u8 rtw_set_hal_ops(_adapter *padapter); 30 | 31 | #ifdef CONFIG_RTL8188E 32 | void rtl8188eu_set_hal_ops(_adapter *padapter); 33 | #endif 34 | 35 | #if defined(CONFIG_RTL8812A) || defined(CONFIG_RTL8821A) 36 | void rtl8812au_set_hal_ops(_adapter *padapter); 37 | #endif 38 | 39 | #ifdef CONFIG_RTL8192E 40 | void rtl8192eu_set_hal_ops(_adapter *padapter); 41 | #endif 42 | 43 | 44 | #ifdef CONFIG_RTL8723B 45 | void rtl8723bu_set_hal_ops(_adapter *padapter); 46 | #endif 47 | 48 | #ifdef CONFIG_RTL8814A 49 | void rtl8814au_set_hal_ops(_adapter *padapter); 50 | #endif /* CONFIG_RTL8814A */ 51 | 52 | #ifdef CONFIG_RTL8188F 53 | void rtl8188fu_set_hal_ops(_adapter *padapter); 54 | #endif 55 | 56 | #ifdef CONFIG_RTL8703B 57 | void rtl8703bu_set_hal_ops(_adapter *padapter); 58 | #endif 59 | 60 | #ifdef CONFIG_RTL8723D 61 | void rtl8723du_set_hal_ops(_adapter *padapter); 62 | #endif 63 | 64 | #ifdef CONFIG_INTEL_PROXIM 65 | extern _adapter *rtw_usb_get_sw_pointer(void); 66 | #endif /* CONFIG_INTEL_PROXIM */ 67 | #endif /* __USB_HAL_H__ */ 68 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/halhwimg8723d_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 | /*Image2HeaderVersion: 2.16*/ 22 | #if (RTL8723D_SUPPORT == 1) 23 | #ifndef __INC_MP_FW_HW_IMG_8723D_H 24 | #define __INC_MP_FW_HW_IMG_8723D_H 25 | 26 | 27 | /****************************************************************************** 28 | * FW_AP.TXT 29 | ******************************************************************************/ 30 | 31 | void 32 | ODM_ReadFirmware_MP_8723D_FW_AP( 33 | IN PDM_ODM_T pDM_Odm, 34 | OUT u1Byte *pFirmware, 35 | OUT u4Byte *pFirmwareSize 36 | ); 37 | 38 | /****************************************************************************** 39 | * FW_NIC.TXT 40 | ******************************************************************************/ 41 | 42 | void 43 | ODM_ReadFirmware_MP_8723D_FW_NIC( 44 | IN PDM_ODM_T pDM_Odm, 45 | OUT u1Byte *pFirmware, 46 | OUT u4Byte *pFirmwareSize 47 | ); 48 | 49 | /****************************************************************************** 50 | * FW_WoWLAN.TXT 51 | ******************************************************************************/ 52 | 53 | void 54 | ODM_ReadFirmware_MP_8723D_FW_WoWLAN( 55 | IN PDM_ODM_T pDM_Odm, 56 | OUT u1Byte *pFirmware, 57 | OUT u4Byte *pFirmwareSize 58 | ); 59 | 60 | #endif 61 | #endif /* end of HWIMG_SUPPORT*/ 62 | 63 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/halhwimg8723d_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 | /*Image2HeaderVersion: 2.26*/ 22 | #if (RTL8723D_SUPPORT == 1) 23 | #ifndef __INC_MP_BB_HW_IMG_8723D_H 24 | #define __INC_MP_BB_HW_IMG_8723D_H 25 | 26 | 27 | /****************************************************************************** 28 | * AGC_TAB.TXT 29 | ******************************************************************************/ 30 | 31 | void 32 | ODM_ReadAndConfig_MP_8723D_AGC_TAB(/* TC: Test Chip, MP: MP Chip*/ 33 | IN PDM_ODM_T pDM_Odm 34 | ); 35 | u4Byte ODM_GetVersion_MP_8723D_AGC_TAB(void); 36 | 37 | /****************************************************************************** 38 | * PHY_REG.TXT 39 | ******************************************************************************/ 40 | 41 | void 42 | ODM_ReadAndConfig_MP_8723D_PHY_REG(/* TC: Test Chip, MP: MP Chip*/ 43 | IN PDM_ODM_T pDM_Odm 44 | ); 45 | u4Byte ODM_GetVersion_MP_8723D_PHY_REG(void); 46 | 47 | /****************************************************************************** 48 | * PHY_REG_PG.TXT 49 | ******************************************************************************/ 50 | 51 | void 52 | ODM_ReadAndConfig_MP_8723D_PHY_REG_PG(/* TC: Test Chip, MP: MP Chip*/ 53 | IN PDM_ODM_T pDM_Odm 54 | ); 55 | u4Byte ODM_GetVersion_MP_8723D_PHY_REG_PG(void); 56 | 57 | #endif 58 | #endif /* end of HWIMG_SUPPORT*/ 59 | 60 | -------------------------------------------------------------------------------- /hal/efuse/rtl8723d/HalEfuseMask8723D_SDIO.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 | #include 21 | #include "HalEfuseMask8723D_SDIO.h" 22 | 23 | /****************************************************************************** 24 | * MSDIO.TXT 25 | ******************************************************************************/ 26 | 27 | u1Byte Array_MP_8723D_MSDIO[] = { 28 | 0xFF, 29 | 0xF3, 30 | 0x00, 31 | 0x0E, 32 | 0x70, 33 | 0x00, 34 | 0x00, 35 | 0x00, 36 | 0x00, 37 | 0x00, 38 | 0x00, 39 | 0x07, 40 | 0xF3, 41 | 0xFF, 42 | 0xFF, 43 | 0xFF, 44 | 0xFF, 45 | 0xFF, 46 | 0x00, 47 | 0x00, 48 | 0x00, 49 | 0x00, 50 | 0x00, 51 | 0x00, 52 | 0x00, 53 | 0x00, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | }; 61 | 62 | u2Byte 63 | EFUSE_GetArrayLen_MP_8723D_MSDIO(VOID) 64 | { 65 | return sizeof(Array_MP_8723D_MSDIO) / sizeof(u1Byte); 66 | } 67 | 68 | VOID 69 | EFUSE_GetMaskArray_MP_8723D_MSDIO( 70 | IN OUT pu1Byte Array 71 | ) 72 | { 73 | u2Byte len = EFUSE_GetArrayLen_MP_8723D_MSDIO(), i = 0; 74 | 75 | for (i = 0; i < len; ++i) 76 | Array[i] = Array_MP_8723D_MSDIO[i]; 77 | } 78 | BOOLEAN 79 | EFUSE_IsAddressMasked_MP_8723D_MSDIO( 80 | IN u2Byte Offset 81 | ) 82 | { 83 | int r = Offset / 16; 84 | int c = (Offset % 16) / 2; 85 | int result = 0; 86 | /* Upper double word */ 87 | if (c < 4) 88 | result = (Array_MP_8723D_MSDIO[r] & (0x10 << c)); 89 | else 90 | result = (Array_MP_8723D_MSDIO[r] & (0x01 << (c - 4))); 91 | 92 | return (result > 0) ? 0 : 1; 93 | } 94 | -------------------------------------------------------------------------------- /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 | #if defined(CONFIG_RTL8814A) 25 | #include "rtl8814a/HalEfuseMask8814A_USB.h" 26 | #endif 27 | 28 | #if defined(CONFIG_RTL8703B) 29 | #include "rtl8703b/HalEfuseMask8703B_USB.h" 30 | #endif 31 | 32 | #if defined(CONFIG_RTL8723D) 33 | #include "rtl8723d/HalEfuseMask8723D_USB.h" 34 | #endif 35 | 36 | #if defined(CONFIG_RTL8188F) 37 | #include "rtl8188f/HalEfuseMask8188F_USB.h" 38 | #endif 39 | 40 | #if defined(CONFIG_RTL8822B) 41 | #include "rtl8822b/HalEfuseMask8822B_USB.h" 42 | #endif 43 | 44 | #elif DEV_BUS_TYPE == RT_PCI_INTERFACE 45 | 46 | #if defined(CONFIG_RTL8188E) 47 | #include "rtl8188e/HalEfuseMask8188E_PCIE.h" 48 | #endif 49 | 50 | #if defined(CONFIG_RTL8812A) 51 | #include "rtl8812a/HalEfuseMask8812A_PCIE.h" 52 | #endif 53 | 54 | #if defined(CONFIG_RTL8821A) 55 | #include "rtl8812a/HalEfuseMask8821A_PCIE.h" 56 | #endif 57 | 58 | #if defined(CONFIG_RTL8192E) 59 | #include "rtl8192e/HalEfuseMask8192E_PCIE.h" 60 | #endif 61 | 62 | #if defined(CONFIG_RTL8723B) 63 | #include "rtl8723b/HalEfuseMask8723B_PCIE.h" 64 | #endif 65 | 66 | #if defined(CONFIG_RTL8814A) 67 | #include "rtl8814a/HalEfuseMask8814A_PCIE.h" 68 | #endif 69 | 70 | #if defined(CONFIG_RTL8703B) 71 | #include "rtl8703b/HalEfuseMask8703B_PCIE.h" 72 | #endif 73 | 74 | #if defined(CONFIG_RTL8822B) 75 | #include "rtl8822b/HalEfuseMask8822B_PCIE.h" 76 | #endif 77 | #if defined(CONFIG_RTL8723D) 78 | #include "rtl8723d/HalEfuseMask8723D_PCIE.h" 79 | #endif 80 | 81 | #elif DEV_BUS_TYPE == RT_SDIO_INTERFACE 82 | 83 | #if defined(CONFIG_RTL8188E) 84 | #include "rtl8188e/HalEfuseMask8188E_SDIO.h" 85 | #endif 86 | 87 | #if defined(CONFIG_RTL8703B) 88 | #include "rtl8703b/HalEfuseMask8703B_SDIO.h" 89 | #endif 90 | 91 | #if defined(CONFIG_RTL8188F) 92 | #include "rtl8188f/HalEfuseMask8188F_SDIO.h" 93 | #endif 94 | 95 | #if defined(CONFIG_RTL8723D) 96 | #include "rtl8723d/HalEfuseMask8723D_SDIO.h" 97 | #endif 98 | #endif 99 | -------------------------------------------------------------------------------- /hal/efuse/rtl8723d/HalEfuseMask8723D_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 23 | 24 | #include "HalEfuseMask8723D_PCIE.h" 25 | 26 | /****************************************************************************** 27 | * MPCIE.TXT 28 | ******************************************************************************/ 29 | 30 | u1Byte Array_MP_8723D_MPCIE[] = { 31 | 0xFF, 32 | 0xF3, 33 | 0x00, 34 | 0x0E, 35 | 0x70, 36 | 0x00, 37 | 0x00, 38 | 0x00, 39 | 0x00, 40 | 0x00, 41 | 0x00, 42 | 0x07, 43 | 0xF3, 44 | 0xFF, 45 | 0xFF, 46 | 0x7C, 47 | 0x70, 48 | 0x00, 49 | 0x00, 50 | 0x00, 51 | 0x00, 52 | 0x00, 53 | 0x00, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 0x00, 63 | }; 64 | 65 | u2Byte 66 | EFUSE_GetArrayLen_MP_8723D_MPCIE(VOID) 67 | { 68 | return sizeof(Array_MP_8723D_MPCIE) / sizeof(u1Byte); 69 | } 70 | 71 | VOID 72 | EFUSE_GetMaskArray_MP_8723D_MPCIE( 73 | IN OUT pu1Byte Array 74 | ) 75 | { 76 | u2Byte len = EFUSE_GetArrayLen_MP_8723D_MPCIE(), i = 0; 77 | 78 | for (i = 0; i < len; ++i) 79 | Array[i] = Array_MP_8723D_MPCIE[i]; 80 | } 81 | BOOLEAN 82 | EFUSE_IsAddressMasked_MP_8723D_MPCIE( 83 | IN u2Byte Offset 84 | ) 85 | { 86 | int r = Offset / 16; 87 | int c = (Offset % 16) / 2; 88 | int result = 0; 89 | 90 | if (c < 4) /* Upper double word */ 91 | result = (Array_MP_8723D_MPCIE[r] & (0x10 << c)); 92 | else 93 | result = (Array_MP_8723D_MPCIE[r] & (0x01 << (c - 4))); 94 | 95 | return (result > 0) ? 0 : 1; 96 | } 97 | -------------------------------------------------------------------------------- /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 | #if 0 55 | BOOLEAN usbvendorrequest(PCE_USB_DEVICE CEdevice, RT_USB_BREQUEST bRequest, RT_USB_WVALUE wValue, UCHAR wIndex, PVOID Data, UCHAR DataLength, BOOLEAN isDirectionIn); 56 | BOOLEAN CEusbGetStatusRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT Index, PVOID Data); 57 | BOOLEAN CEusbFeatureRequest(PCE_USB_DEVICE CEdevice, IN USHORT Op, IN USHORT FeatureSelector, IN USHORT Index); 58 | BOOLEAN CEusbGetDescriptorRequest(PCE_USB_DEVICE CEdevice, IN short urbLength, IN UCHAR DescriptorType, IN UCHAR Index, IN USHORT LanguageId, IN PVOID TransferBuffer, IN ULONG TransferBufferLength); 59 | #endif 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /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 | #define RTW_PROC_HDL_TYPE_SEQ 0 27 | #define RTW_PROC_HDL_TYPE_SSEQ 1 28 | 29 | struct rtw_proc_hdl { 30 | char *name; 31 | u8 type; 32 | union { 33 | int (*show)(struct seq_file *, void *); 34 | struct seq_operations *seq_op; 35 | } u; 36 | ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data); 37 | }; 38 | 39 | #define RTW_PROC_HDL_SEQ(_name, _seq_op, _write) \ 40 | { .name = _name, .type = RTW_PROC_HDL_TYPE_SEQ, .u.seq_op = _seq_op, .write = _write} 41 | 42 | #define RTW_PROC_HDL_SSEQ(_name, _show, _write) \ 43 | { .name = _name, .type = RTW_PROC_HDL_TYPE_SSEQ, .u.show = _show, .write = _write} 44 | 45 | #ifdef CONFIG_PROC_DEBUG 46 | 47 | struct proc_dir_entry *get_rtw_drv_proc(void); 48 | int rtw_drv_proc_init(void); 49 | void rtw_drv_proc_deinit(void); 50 | struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev); 51 | void rtw_adapter_proc_deinit(struct net_device *dev); 52 | void rtw_adapter_proc_replace(struct net_device *dev); 53 | 54 | #else /* !CONFIG_PROC_DEBUG */ 55 | 56 | #define get_rtw_drv_proc() NULL 57 | #define rtw_drv_proc_init() 0 58 | #define rtw_drv_proc_deinit() do {} while (0) 59 | #define rtw_adapter_proc_init(dev) NULL 60 | #define rtw_adapter_proc_deinit(dev) do {} while (0) 61 | #define rtw_adapter_proc_replace(dev) do {} while (0) 62 | 63 | #endif /* !CONFIG_PROC_DEBUG */ 64 | 65 | #endif /* __RTW_PROC_H__ */ 66 | -------------------------------------------------------------------------------- /hal/efuse/rtl8723d/HalEfuseMask8723D_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 "HalEfuseMask8723D_USB.h" 26 | /****************************************************************************** 27 | * MUSB.TXT 28 | ******************************************************************************/ 29 | 30 | u1Byte Array_MP_8723D_MUSB[] = { 31 | 0xFF, 32 | 0xF3, 33 | 0x00, 34 | 0x0E, 35 | 0x70, 36 | 0x00, 37 | 0x00, 38 | 0x00, 39 | 0x00, 40 | 0x00, 41 | 0x00, 42 | 0x07, 43 | 0xF3, 44 | 0x00, 45 | 0x00, 46 | 0x00, 47 | 0xFF, 48 | 0xFF, 49 | 0xFF, 50 | 0xFF, 51 | 0xB0, 52 | 0x00, 53 | 0x00, 54 | 0x00, 55 | 0x00, 56 | 0x00, 57 | 0x00, 58 | 0x00, 59 | 0x00, 60 | 0x00, 61 | 0x00, 62 | 0x00, 63 | 64 | }; 65 | 66 | u2Byte 67 | EFUSE_GetArrayLen_MP_8723D_MUSB(VOID) 68 | { 69 | return sizeof(Array_MP_8723D_MUSB) / sizeof(u1Byte); 70 | } 71 | 72 | VOID 73 | EFUSE_GetMaskArray_MP_8723D_MUSB( 74 | IN OUT pu1Byte Array 75 | ) 76 | { 77 | u2Byte len = EFUSE_GetArrayLen_MP_8723D_MUSB(), i = 0; 78 | 79 | for (i = 0; i < len; ++i) 80 | Array[i] = Array_MP_8723D_MUSB[i]; 81 | } 82 | BOOLEAN 83 | EFUSE_IsAddressMasked_MP_8723D_MUSB( 84 | IN u2Byte Offset 85 | ) 86 | { 87 | int r = Offset / 16; 88 | int c = (Offset % 16) / 2; 89 | int result = 0; 90 | 91 | if (c < 4) /* Upper double word */ 92 | result = (Array_MP_8723D_MUSB[r] & (0x10 << c)); 93 | else 94 | result = (Array_MP_8723D_MUSB[r] & (0x01 << (c - 4))); 95 | 96 | return (result > 0) ? 0 : 1; 97 | } 98 | -------------------------------------------------------------------------------- /hal/phydm/phydm_iqk.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 __PHYDMIQK_H__ 22 | #define __PHYDMIQK_H__ 23 | 24 | /*--------------------------Define Parameters-------------------------------*/ 25 | #define LOK_delay 1 26 | #define WBIQK_delay 10 27 | #define TX_IQK 0 28 | #define RX_IQK 1 29 | #define TXIQK 0 30 | #define RXIQK1 1 31 | #define RXIQK2 2 32 | 33 | #define NUM 4 34 | /*---------------------------End Define Parameters-------------------------------*/ 35 | 36 | typedef struct _IQK_INFORMATION { 37 | BOOLEAN LOK_fail[NUM]; 38 | BOOLEAN IQK_fail[2][NUM]; 39 | u4Byte IQC_Matrix[2][NUM]; 40 | u1Byte IQKtimes; 41 | u4Byte RFReg18; 42 | u4Byte lna_idx; 43 | u1Byte rxiqk_step; 44 | u1Byte tmp1bcc; 45 | 46 | u4Byte IQK_Channel[2]; 47 | BOOLEAN IQK_fail_report[2][4][2]; /*channel/path/TRX(TX:0, RX:1)*/ 48 | u4Byte IQK_CFIR_real[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_real*/ 49 | u4Byte IQK_CFIR_imag[2][4][2][8]; /*channel / path / TRX(TX:0, RX:1) / CFIR_imag*/ 50 | u1Byte retry_count[2][4][3]; /*channel / path / (TXK:0, RXK1:1, RXK2:2)*/ 51 | u1Byte gs_retry_count[2][4][2]; /*channel / path / (GSRXK1:0, GSRXK2:1)*/ 52 | u1Byte RXIQK_fail_code[2][4]; /*channel / path 0:SRXK1 fail, 1:RXK1 fail 2:RXK2 fail*/ 53 | u4Byte LOK_IDAC[2][4]; /*channel / path*/ 54 | u4Byte RXIQK_AGC[2][4]; /*channel / path*/ 55 | u4Byte bypassIQK[2][4]; /*channel / 0xc94/0xe94*/ 56 | u4Byte tmp_GNTWL; 57 | BOOLEAN is_BTG; 58 | 59 | } IQK_INFO, *PIQK_INFO; 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /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 RTW_INFO 27 | #define _DEBUG_INFO /* RTW_INFO */ 28 | #define DEBUG_WARN RTW_INFO 29 | #define DEBUG_INFO /* RTW_INFO */ 30 | #define DEBUG_ERR RTW_INFO 31 | /* #define GET_MY_HWADDR ((GET_MIB(priv))->dot11OperationEntry.hwaddr) */ 32 | #define GET_MY_HWADDR(padapter) (adapter_mac_addr(padapter)) 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 | -------------------------------------------------------------------------------- /include/rtl8821c_hal.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | * 19 | ******************************************************************************/ 20 | #ifndef _RTL8821C_HAL_H_ 21 | #define _RTL8821C_HAL_H_ 22 | 23 | #include /* BIT(x) */ 24 | #include "../hal/halmac/halmac_api.h" /* MAC REG definition */ 25 | #include "hal_data.h" 26 | 27 | #if defined(CONFIG_USB_HCI) 28 | 29 | #ifndef MAX_RECVBUF_SZ 30 | #ifndef CONFIG_MINIMAL_MEMORY_USAGE 31 | #ifdef CONFIG_PLATFORM_MSTAR 32 | #define MAX_RECVBUF_SZ (8192) /* 8K */ 33 | #else 34 | /* 8821C - RX FIFO :16K ,for RX agg DMA mode = 16K, Rx agg USB mode could large than 16k*/ 35 | #define MAX_RECVBUF_SZ HALMAC_RX_FIFO_SIZE_8821C 36 | #endif 37 | /*#define MAX_RECVBUF_SZ_8821C (24576)*/ /* 24k*/ 38 | /*#define MAX_RECVBUF_SZ_8821C (20480)*/ /*20K*/ 39 | /*#define MAX_RECVBUF_SZ_8821C (10240) */ /*10K*/ 40 | /*#define MAX_RECVBUF_SZ_8821C (15360)*/ /*15k < 16k*/ 41 | /*#define MAX_RECVBUF_SZ_8821C (8192+1024)*/ /* 8K+1k*/ 42 | #else 43 | #define MAX_RECVBUF_SZ (4096) /* about 4K */ 44 | #endif 45 | #endif/* !MAX_RECVBUF_SZ*/ 46 | 47 | #elif defined(CONFIG_PCI_HCI) 48 | /*#ifndef CONFIG_MINIMAL_MEMORY_USAGE 49 | #define MAX_RECVBUF_SZ (9100) 50 | #else*/ 51 | #define MAX_RECVBUF_SZ (4096) /* about 4K */ 52 | /*#endif*/ 53 | 54 | #elif defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 55 | 56 | #define MAX_RECVBUF_SZ HALMAC_RX_FIFO_SIZE_8821C 57 | 58 | #endif 59 | 60 | void init_hal_spec_rtl8821c(PADAPTER); 61 | /* MP Functions */ 62 | #ifdef CONFIG_MP_INCLUDED 63 | void rtl8821c_phy_init_haldm(PADAPTER); /* rtw_mp.c */ 64 | void rtl8821c_prepare_mp_txdesc(PADAPTER, struct mp_priv *); /* rtw_mp.c */ 65 | void rtl8821c_mp_config_rfpath(PADAPTER); /* hal_mp.c */ 66 | #endif 67 | 68 | #endif /* _RTL8821C_HAL_H_ */ 69 | -------------------------------------------------------------------------------- /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/btc/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 | #define WPP_SOFTWARE_TRACE 0 43 | 44 | typedef enum _BTC_MSG_COMP_TYPE{ 45 | COMP_COEX = 0, 46 | COMP_MAX 47 | }BTC_MSG_COMP_TYPE; 48 | extern u4Byte GLBtcDbgType[]; 49 | 50 | #define DBG_OFF 0 51 | #define DBG_SEC 1 52 | #define DBG_SERIOUS 2 53 | #define DBG_WARNING 3 54 | #define DBG_LOUD 4 55 | #define DBG_TRACE 5 56 | 57 | #ifdef CONFIG_BT_COEXIST 58 | #define BT_SUPPORT 1 59 | #define COEX_SUPPORT 1 60 | #define HS_SUPPORT 1 61 | #else 62 | #define BT_SUPPORT 0 63 | #define COEX_SUPPORT 0 64 | #define HS_SUPPORT 0 65 | #endif 66 | 67 | #include "HalBtcOutSrc.h" 68 | #include "HalBtc8188c2Ant.h" 69 | #include "HalBtc8192d2Ant.h" 70 | #include "HalBtc8192e1Ant.h" 71 | #include "HalBtc8192e2Ant.h" 72 | #include "HalBtc8723a1Ant.h" 73 | #include "HalBtc8723a2Ant.h" 74 | #include "HalBtc8723b1Ant.h" 75 | #include "HalBtc8723b2Ant.h" 76 | #include "HalBtc8812a1Ant.h" 77 | #include "HalBtc8812a2Ant.h" 78 | #include "HalBtc8821a1Ant.h" 79 | #include "HalBtc8821a2Ant.h" 80 | #include "HalBtc8821aCsr2Ant.h" 81 | #include "HalBtc8703b1Ant.h" 82 | #include "halbtc8723d1ant.h" 83 | #include "halbtc8723d2ant.h" 84 | #include "HalBtc8822b1Ant.h" 85 | #include "halbtc8821c1ant.h" 86 | #include "halbtc8821c2ant.h" 87 | 88 | 89 | #endif // __MP_PRECOMP_H__ 90 | -------------------------------------------------------------------------------- /hal/phydm/phydm_dfs.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_DFS_H__ 22 | #define __PHYDM_DFS_H__ 23 | 24 | #define DFS_VERSION "0.0" 25 | 26 | /* ============================================================ 27 | Definition 28 | ============================================================ 29 | */ 30 | 31 | /* 32 | ============================================================ 33 | 1 structure 34 | ============================================================ 35 | */ 36 | 37 | /* ============================================================ 38 | enumeration 39 | ============================================================ 40 | */ 41 | 42 | typedef enum _tag_PhyDM_DFS_REGION_DOMAIN { 43 | PHYDM_DFS_DOMAIN_UNKNOWN = 0, 44 | PHYDM_DFS_DOMAIN_FCC = 1, 45 | PHYDM_DFS_DOMAIN_MKK = 2, 46 | PHYDM_DFS_DOMAIN_ETSI = 3, 47 | } PHYDM_DFS_REGION_DOMAIN; 48 | 49 | /* 50 | ============================================================ 51 | function prototype 52 | ============================================================ 53 | */ 54 | #if defined(CONFIG_PHYDM_DFS_MASTER) 55 | VOID phydm_radar_detect_reset(PVOID pDM_VOID); 56 | VOID phydm_radar_detect_disable(PVOID pDM_VOID); 57 | VOID phydm_radar_detect_enable(PVOID pDM_VOID); 58 | BOOLEAN phydm_radar_detect(PVOID pDM_VOID); 59 | #endif /* defined(CONFIG_PHYDM_DFS_MASTER) */ 60 | 61 | BOOLEAN 62 | phydm_dfs_master_enabled( 63 | IN PVOID pDM_VOID 64 | ); 65 | 66 | VOID 67 | phydm_dfs_debug( 68 | IN PVOID pDM_VOID, 69 | IN u4Byte *const argv, 70 | IN u4Byte *_used, 71 | OUT char *output, 72 | IN u4Byte *_out_len 73 | ); 74 | 75 | #endif /*#ifndef __PHYDM_DFS_H__ */ 76 | 77 | -------------------------------------------------------------------------------- /hal/phydm/rtl8723d/phydm_regconfig8723d.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_8723D 21 | #define __INC_ODM_REGCONFIG_H_8723D 22 | 23 | #if (RTL8723D_SUPPORT == 1) 24 | 25 | void 26 | odm_ConfigRFReg_8723D( 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_8723D( 36 | IN PDM_ODM_T pDM_Odm, 37 | IN u4Byte Addr, 38 | IN u4Byte Data 39 | ); 40 | 41 | void 42 | odm_ConfigRF_RadioB_8723D( 43 | IN PDM_ODM_T pDM_Odm, 44 | IN u4Byte Addr, 45 | IN u4Byte Data 46 | ); 47 | 48 | void 49 | odm_ConfigMAC_8723D( 50 | IN PDM_ODM_T pDM_Odm, 51 | IN u4Byte Addr, 52 | IN u1Byte Data 53 | ); 54 | 55 | void 56 | odm_ConfigBB_AGC_8723D( 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_8723D( 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_8723D( 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_8723D( 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 | 95 | #endif 96 | #endif // end of SUPPORT 97 | 98 | 99 | -------------------------------------------------------------------------------- /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/phydm/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 | void rtw_odm_init_ic_type(_adapter *adapter); 38 | 39 | void rtw_odm_set_force_igi_lb(_adapter *adapter, u8 lb); 40 | u8 rtw_odm_get_force_igi_lb(_adapter *adapter); 41 | 42 | void rtw_odm_adaptivity_config_msg(void *sel, _adapter *adapter); 43 | 44 | bool rtw_odm_adaptivity_needed(_adapter *adapter); 45 | void rtw_odm_adaptivity_parm_msg(void *sel, _adapter *adapter); 46 | void rtw_odm_adaptivity_parm_set(_adapter *adapter, s8 TH_L2H_ini, s8 TH_EDCCA_HL_diff, s8 TH_L2H_ini_mode2, s8 TH_EDCCA_HL_diff_mode2, u8 EDCCA_enable); 47 | void rtw_odm_get_perpkt_rssi(void *sel, _adapter *adapter); 48 | void rtw_odm_acquirespinlock(_adapter *adapter, RT_SPINLOCK_TYPE type); 49 | void rtw_odm_releasespinlock(_adapter *adapter, RT_SPINLOCK_TYPE type); 50 | 51 | #ifdef CONFIG_DFS_MASTER 52 | u8 rtw_odm_get_dfs_domain(_adapter *adapter); 53 | VOID rtw_odm_radar_detect_reset(_adapter *adapter); 54 | VOID rtw_odm_radar_detect_disable(_adapter *adapter); 55 | VOID rtw_odm_radar_detect_enable(_adapter *adapter); 56 | BOOLEAN rtw_odm_radar_detect(_adapter *adapter); 57 | #endif /* CONFIG_DFS_MASTER */ 58 | 59 | void rtw_odm_parse_rx_phy_status_chinfo(union recv_frame *rframe, u8 *phys); 60 | 61 | #endif /* __RTW_ODM_H__ */ 62 | -------------------------------------------------------------------------------- /hal/rtl8723d/rtl8723d_rxdesc.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 _RTL8723D_REDESC_C_ 21 | 22 | #include 23 | 24 | void rtl8723d_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc) 25 | { 26 | struct rx_pkt_attrib *pattrib; 27 | 28 | 29 | pattrib = &precvframe->u.hdr.attrib; 30 | _rtw_memset(pattrib, 0, sizeof(struct rx_pkt_attrib)); 31 | 32 | pattrib->pkt_len = (u16)GET_RX_STATUS_DESC_PKT_LEN_8723D(pdesc); 33 | pattrib->pkt_rpt_type = GET_RX_STATUS_DESC_RPT_SEL_8723D(pdesc) ? C2H_PACKET : NORMAL_RX; 34 | 35 | if (pattrib->pkt_rpt_type == NORMAL_RX) { 36 | /* Offset 0 */ 37 | pattrib->crc_err = (u8)GET_RX_STATUS_DESC_CRC32_8723D(pdesc); 38 | pattrib->icv_err = (u8)GET_RX_STATUS_DESC_ICV_8723D(pdesc); 39 | pattrib->drvinfo_sz = (u8)GET_RX_STATUS_DESC_DRVINFO_SIZE_8723D(pdesc) << 3; 40 | pattrib->encrypt = (u8)GET_RX_STATUS_DESC_SECURITY_8723D(pdesc); 41 | pattrib->qos = (u8)GET_RX_STATUS_DESC_QOS_8723D(pdesc); 42 | pattrib->shift_sz = (u8)GET_RX_STATUS_DESC_SHIFT_8723D(pdesc); 43 | pattrib->physt = (u8)GET_RX_STATUS_DESC_PHY_STATUS_8723D(pdesc); 44 | pattrib->bdecrypted = (u8)GET_RX_STATUS_DESC_SWDEC_8723D(pdesc) ? 0 : 1; 45 | 46 | /* Offset 4 */ 47 | pattrib->priority = (u8)GET_RX_STATUS_DESC_TID_8723D(pdesc); 48 | pattrib->amsdu = (u8)GET_RX_STATUS_DESC_AMSDU_8723D(pdesc); 49 | pattrib->mdata = (u8)GET_RX_STATUS_DESC_MORE_DATA_8723D(pdesc); 50 | pattrib->mfrag = (u8)GET_RX_STATUS_DESC_MORE_FRAG_8723D(pdesc); 51 | 52 | /* Offset 8 */ 53 | pattrib->seq_num = (u16)GET_RX_STATUS_DESC_SEQ_8723D(pdesc); 54 | pattrib->frag_num = (u8)GET_RX_STATUS_DESC_FRAG_8723D(pdesc); 55 | 56 | /* Offset 12 */ 57 | pattrib->data_rate = (u8)GET_RX_STATUS_DESC_RX_RATE_8723D(pdesc); 58 | 59 | /* Offset 20 */ 60 | /* pattrib->tsfl=(u8)GET_RX_STATUS_DESC_TSFL_8723D(pdesc); */ 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /hal/phydm/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.1" /*2015.07.29 by YuChen*/ 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 | { 46 | Antenna_A = 1, 47 | Antenna_B = 2, 48 | Antenna_MAX = 3, 49 | }DM_SWAS_E; 50 | 51 | 52 | 53 | //1 [1. Single Tone Method] =================================================== 54 | 55 | 56 | 57 | VOID 58 | ODM_SingleDualAntennaDefaultSetting( 59 | IN PVOID pDM_VOID 60 | ); 61 | 62 | BOOLEAN 63 | ODM_SingleDualAntennaDetection( 64 | IN PVOID pDM_VOID, 65 | IN u1Byte mode 66 | ); 67 | 68 | //1 [2. Scan AP RSSI Method] ================================================== 69 | 70 | #define SwAntDivCheckBeforeLink ODM_SwAntDivCheckBeforeLink 71 | 72 | BOOLEAN 73 | ODM_SwAntDivCheckBeforeLink( 74 | IN PVOID pDM_VOID 75 | ); 76 | 77 | 78 | 79 | 80 | //1 [3. PSD Method] ========================================================== 81 | 82 | 83 | VOID 84 | ODM_SingleDualAntennaDetection_PSD( 85 | IN PVOID pDM_VOID 86 | ); 87 | 88 | #endif 89 | 90 | VOID 91 | odm_SwAntDetectInit( 92 | IN PVOID pDM_VOID 93 | ); 94 | 95 | 96 | #endif 97 | 98 | 99 | -------------------------------------------------------------------------------- /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 | #ifndef RTW_HALMAC 24 | u8 sd_f0_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 25 | void sd_f0_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err); 26 | 27 | s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 28 | s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 29 | s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 30 | s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 31 | 32 | u8 _sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 33 | u8 sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 34 | u16 sd_read16(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 35 | u32 _sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 36 | u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 37 | void sd_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err); 38 | void sd_write16(struct intf_hdl *pintfhdl, u32 addr, u16 v, s32 *err); 39 | void _sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err); 40 | void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err); 41 | #endif /* RTW_HALMAC */ 42 | 43 | s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 44 | s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 45 | s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 46 | s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 47 | 48 | void rtw_sdio_set_irq_thd(struct dvobj_priv *dvobj, _thread_hdl_ thd_hdl); 49 | int __must_check rtw_sdio_raw_read(struct dvobj_priv *d, int addr, 50 | void *buf, size_t len, bool fixed); 51 | int __must_check rtw_sdio_raw_write(struct dvobj_priv *d, int addr, 52 | void *buf, size_t len, bool fixed); 53 | #endif 54 | -------------------------------------------------------------------------------- /include/rtl8188f_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 __RTL8188F_RECV_H__ 21 | #define __RTL8188F_RECV_H__ 22 | 23 | #if defined(CONFIG_USB_HCI) 24 | #ifndef MAX_RECVBUF_SZ 25 | #ifdef PLATFORM_OS_CE 26 | #define MAX_RECVBUF_SZ (8192+1024) /* 8K+1k */ 27 | #else 28 | #ifdef CONFIG_MINIMAL_MEMORY_USAGE 29 | #define MAX_RECVBUF_SZ (4000) /* about 4K */ 30 | #else 31 | #ifdef CONFIG_PLATFORM_MSTAR 32 | #define MAX_RECVBUF_SZ (8192) /* 8K */ 33 | #elif defined(CONFIG_PLATFORM_HISILICON) 34 | #define MAX_RECVBUF_SZ (16384) /* 16k */ 35 | #else 36 | #define MAX_RECVBUF_SZ (32768) /* 32k */ 37 | #endif 38 | /* #define MAX_RECVBUF_SZ (20480) */ /* 20K */ 39 | /* #define MAX_RECVBUF_SZ (10240) */ /* 10K */ 40 | /* #define MAX_RECVBUF_SZ (16384) */ /* 16k - 92E RX BUF :16K */ 41 | /* #define MAX_RECVBUF_SZ (8192+1024) */ /* 8K+1k */ 42 | #endif 43 | #endif 44 | #endif /* !MAX_RECVBUF_SZ */ 45 | #elif defined(CONFIG_PCI_HCI) 46 | #define MAX_RECVBUF_SZ (4000) /* about 4K */ 47 | #elif defined(CONFIG_SDIO_HCI) 48 | #define MAX_RECVBUF_SZ (RX_DMA_BOUNDARY_8188F + 1) 49 | #endif /* CONFIG_SDIO_HCI */ 50 | 51 | /* Rx smooth factor */ 52 | #define Rx_Smooth_Factor (20) 53 | 54 | #if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) 55 | s32 rtl8188fs_init_recv_priv(PADAPTER padapter); 56 | void rtl8188fs_free_recv_priv(PADAPTER padapter); 57 | #endif 58 | 59 | #ifdef CONFIG_USB_HCI 60 | int rtl8188fu_init_recv_priv(_adapter *padapter); 61 | void rtl8188fu_free_recv_priv(_adapter *padapter); 62 | void rtl8188fu_init_recvbuf(_adapter *padapter, struct recv_buf *precvbuf); 63 | #endif 64 | 65 | #ifdef CONFIG_PCI_HCI 66 | s32 rtl8188fe_init_recv_priv(PADAPTER padapter); 67 | void rtl8188fe_free_recv_priv(PADAPTER padapter); 68 | #endif 69 | 70 | void rtl8188f_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc); 71 | 72 | #endif /* __RTL8188F_RECV_H__ */ 73 | -------------------------------------------------------------------------------- /platform/platform_ARM_SUN50IW1P1_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_ARM_SUN50IW1P1 24 | */ 25 | #include 26 | #ifdef CONFIG_GPIO_WAKEUP 27 | #include 28 | #endif 29 | 30 | #ifdef CONFIG_MMC 31 | #if defined(CONFIG_PLATFORM_ARM_SUN50IW1P1) 32 | extern void sunxi_mmc_rescan_card(unsigned ids); 33 | extern void sunxi_wlan_set_power(int on); 34 | extern int sunxi_wlan_get_bus_index(void); 35 | extern int sunxi_wlan_get_oob_irq(void); 36 | extern int sunxi_wlan_get_oob_irq_flags(void); 37 | #endif 38 | #ifdef CONFIG_GPIO_WAKEUP 39 | extern unsigned int oob_irq; 40 | #endif 41 | #endif /* CONFIG_MMC */ 42 | 43 | /* 44 | * Return: 45 | * 0: power on successfully 46 | * others: power on failed 47 | */ 48 | int platform_wifi_power_on(void) 49 | { 50 | int ret = 0; 51 | 52 | #ifdef CONFIG_MMC 53 | { 54 | 55 | #if defined(CONFIG_PLATFORM_ARM_SUN50IW1P1) 56 | int wlan_bus_index = sunxi_wlan_get_bus_index(); 57 | if (wlan_bus_index < 0) 58 | return wlan_bus_index; 59 | 60 | sunxi_wlan_set_power(1); 61 | mdelay(100); 62 | sunxi_mmc_rescan_card(wlan_bus_index); 63 | #endif 64 | RTW_INFO("%s: power up, rescan card.\n", __FUNCTION__); 65 | 66 | #ifdef CONFIG_GPIO_WAKEUP 67 | #if defined(CONFIG_PLATFORM_ARM_SUN50IW1P1) 68 | oob_irq = sunxi_wlan_get_oob_irq(); 69 | #endif 70 | #endif /* CONFIG_GPIO_WAKEUP */ 71 | } 72 | #endif /* CONFIG_MMC */ 73 | 74 | return ret; 75 | } 76 | 77 | void platform_wifi_power_off(void) 78 | { 79 | #ifdef CONFIG_MMC 80 | #if defined(CONFIG_PLATFORM_ARM_SUN50IW1P1) 81 | int wlan_bus_index = sunxi_wlan_get_bus_index(); 82 | if (wlan_bus_index < 0) 83 | return; 84 | 85 | sunxi_mmc_rescan_card(wlan_bus_index); 86 | mdelay(100); 87 | sunxi_wlan_set_power(0); 88 | #endif 89 | RTW_INFO("%s: remove card, power off.\n", __FUNCTION__); 90 | #endif /* CONFIG_MMC */ 91 | } 92 | -------------------------------------------------------------------------------- /core/rtw_sdio.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright(c) 2015 - 2016 Realtek Corporation. All rights reserved. 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of version 2 of the GNU General Public License as 7 | * published by the Free Software Foundation. 8 | * 9 | * This program is distributed in the hope that it will be useful, but WITHOUT 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 | * more details. 13 | * 14 | * You should have received a copy of the GNU General Public License along with 15 | * this program; if not, write to the Free Software Foundation, Inc., 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 | * 18 | ******************************************************************************/ 19 | #define _RTW_SDIO_C_ 20 | 21 | #include /* struct dvobj_priv and etc. */ 22 | #include /* RTW_SDIO_ADDR_CMD52_GEN */ 23 | 24 | /* 25 | * Description: 26 | * Use SDIO cmd52 or cmd53 to read/write data 27 | * 28 | * Parameters: 29 | * d pointer of device object(struct dvobj_priv) 30 | * addr SDIO address, 17 bits 31 | * buf buffer for I/O 32 | * len length 33 | * write 0:read, 1:write 34 | * cmd52 0:cmd52, 1:cmd53 35 | * 36 | * Return: 37 | * _SUCCESS I/O ok. 38 | * _FAIL I/O fail. 39 | */ 40 | static u8 sdio_io(struct dvobj_priv *d, u32 addr, void *buf, size_t len, u8 write, u8 cmd52) 41 | { 42 | int err; 43 | 44 | 45 | if (cmd52) 46 | addr = RTW_SDIO_ADDR_CMD52_GEN(addr); 47 | 48 | if (write) 49 | err = d->intf_ops->write(d, addr, buf, len, 0); 50 | else 51 | err = d->intf_ops->read(d, addr, buf, len, 0); 52 | if (err) { 53 | RTW_INFO("%s: [ERROR] %s FAIL! error(%d)\n", 54 | __FUNCTION__, write ? "write" : "read", err); 55 | return _FAIL; 56 | } 57 | 58 | return _SUCCESS; 59 | } 60 | 61 | u8 rtw_sdio_read_cmd52(struct dvobj_priv *d, u32 addr, void *buf, size_t len) 62 | { 63 | return sdio_io(d, addr, buf, len, 0, 1); 64 | } 65 | 66 | u8 rtw_sdio_read_cmd53(struct dvobj_priv *d, u32 addr, void *buf, size_t len) 67 | { 68 | return sdio_io(d, addr, buf, len, 0, 0); 69 | } 70 | 71 | u8 rtw_sdio_write_cmd52(struct dvobj_priv *d, u32 addr, void *buf, size_t len) 72 | { 73 | return sdio_io(d, addr, buf, len, 1, 1); 74 | } 75 | 76 | u8 rtw_sdio_write_cmd53(struct dvobj_priv *d, u32 addr, void *buf, size_t len) 77 | { 78 | return sdio_io(d, addr, buf, len, 1, 0); 79 | } 80 | 81 | u8 rtw_sdio_f0_read(struct dvobj_priv *d, u32 addr, void *buf, size_t len) 82 | { 83 | int err; 84 | u8 ret; 85 | 86 | 87 | ret = _SUCCESS; 88 | addr = RTW_SDIO_ADDR_F0_GEN(addr); 89 | 90 | err = d->intf_ops->read(d, addr, buf, len, 0); 91 | if (err) { 92 | RTW_INFO("%s: [ERROR] Read f0 register FAIL!\n", __FUNCTION__); 93 | ret = _FAIL; 94 | } 95 | 96 | 97 | return ret; 98 | } 99 | -------------------------------------------------------------------------------- /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 | #include 28 | #include 29 | 30 | #ifdef CONFIG_PLATFORM_SPRD 31 | #include 32 | #include 33 | #endif /* CONFIG_PLATFORM_SPRD */ 34 | #endif 35 | 36 | #ifdef PLATFORM_OS_XP 37 | #include 38 | #include 39 | #endif 40 | 41 | #ifdef PLATFORM_OS_CE 42 | #include 43 | #endif 44 | 45 | 46 | typedef struct sdio_data { 47 | u8 func_number; 48 | 49 | u8 tx_block_mode; 50 | u8 rx_block_mode; 51 | u32 block_transfer_len; 52 | 53 | #ifdef PLATFORM_LINUX 54 | struct sdio_func *func; 55 | _thread_hdl_ sys_sdio_irq_thd; 56 | unsigned int clock; 57 | #endif 58 | 59 | #ifdef PLATFORM_OS_XP 60 | PDEVICE_OBJECT pphysdevobj; 61 | PDEVICE_OBJECT pfuncdevobj; 62 | PDEVICE_OBJECT pnextdevobj; 63 | SDBUS_INTERFACE_STANDARD sdbusinft; 64 | u8 nextdevstacksz; 65 | #endif 66 | 67 | #ifdef PLATFORM_OS_CE 68 | SD_DEVICE_HANDLE hDevice; 69 | SD_CARD_RCA sd_rca; 70 | SD_CARD_INTERFACE card_intf; 71 | BOOLEAN enableIsarWithStatus; 72 | WCHAR active_path[MAX_ACTIVE_REG_PATH]; 73 | SD_HOST_BLOCK_CAPABILITY sd_host_blk_cap; 74 | #endif 75 | } SDIO_DATA, *PSDIO_DATA; 76 | 77 | #define dvobj_to_sdio_func(d) ((d)->intf_data.func) 78 | 79 | #define RTW_SDIO_ADDR_CMD52_BIT (1<<17) 80 | #define RTW_SDIO_ADDR_CMD52_GEN(a) (a | RTW_SDIO_ADDR_CMD52_BIT) 81 | #define RTW_SDIO_ADDR_CMD52_CLR(a) (a&~RTW_SDIO_ADDR_CMD52_BIT) 82 | #define RTW_SDIO_ADDR_CMD52_CHK(a) (a&RTW_SDIO_ADDR_CMD52_BIT ? 1 : 0) 83 | 84 | #define RTW_SDIO_ADDR_F0_BIT (1<<18) 85 | #define RTW_SDIO_ADDR_F0_GEN(a) (a | RTW_SDIO_ADDR_F0_BIT) 86 | #define RTW_SDIO_ADDR_F0_CLR(a) (a&~RTW_SDIO_ADDR_F0_BIT) 87 | #define RTW_SDIO_ADDR_F0_CHK(a) (a&RTW_SDIO_ADDR_F0_BIT ? 1 : 0) 88 | 89 | #define RTW_SDIO_CLK_40M 40000000 90 | 91 | #endif 92 | -------------------------------------------------------------------------------- /hal/rtl8723d/Hal8723DPwrSeq.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 | #include "Mp_Precomp.h" 19 | 20 | #if WPP_SOFTWARE_TRACE 21 | #include "Hal8723DPwrSeq.tmh" 22 | #endif 23 | 24 | #include "Hal8723DPwrSeq.h" 25 | 26 | 27 | /* 28 | drivers should parse below arrays and do the corresponding actions 29 | */ 30 | /* 3 Power on Array */ 31 | WLAN_PWR_CFG rtl8723D_power_on_flow[RTL8723D_TRANS_CARDEMU_TO_ACT_STEPS + RTL8723D_TRANS_END_STEPS] = { 32 | RTL8723D_TRANS_CARDEMU_TO_ACT 33 | RTL8723D_TRANS_END 34 | }; 35 | 36 | /* 3Radio off GPIO Array */ 37 | WLAN_PWR_CFG rtl8723D_radio_off_flow[RTL8723D_TRANS_ACT_TO_CARDEMU_STEPS + RTL8723D_TRANS_END_STEPS] = { 38 | RTL8723D_TRANS_ACT_TO_CARDEMU 39 | RTL8723D_TRANS_END 40 | }; 41 | 42 | /* 3Card Disable Array */ 43 | WLAN_PWR_CFG rtl8723D_card_disable_flow[RTL8723D_TRANS_ACT_TO_CARDEMU_STEPS + RTL8723D_TRANS_CARDEMU_TO_CARDDIS_STEPS + RTL8723D_TRANS_END_STEPS] = { 44 | RTL8723D_TRANS_ACT_TO_CARDEMU 45 | RTL8723D_TRANS_CARDEMU_TO_CARDDIS 46 | RTL8723D_TRANS_END 47 | }; 48 | 49 | /* 3 Card Enable Array */ 50 | WLAN_PWR_CFG rtl8723D_card_enable_flow[RTL8723D_TRANS_CARDDIS_TO_CARDEMU_STEPS + RTL8723D_TRANS_CARDEMU_TO_ACT_STEPS + RTL8723D_TRANS_END_STEPS] = { 51 | RTL8723D_TRANS_CARDDIS_TO_CARDEMU 52 | RTL8723D_TRANS_CARDEMU_TO_ACT 53 | RTL8723D_TRANS_END 54 | }; 55 | 56 | /* 3Suspend Array */ 57 | WLAN_PWR_CFG rtl8723D_suspend_flow[RTL8723D_TRANS_ACT_TO_CARDEMU_STEPS + RTL8723D_TRANS_CARDEMU_TO_SUS_STEPS + RTL8723D_TRANS_END_STEPS] = { 58 | RTL8723D_TRANS_ACT_TO_CARDEMU 59 | RTL8723D_TRANS_CARDEMU_TO_SUS 60 | RTL8723D_TRANS_END 61 | }; 62 | 63 | /* 3 Resume Array */ 64 | WLAN_PWR_CFG rtl8723D_resume_flow[RTL8723D_TRANS_SUS_TO_CARDEMU_STEPS + RTL8723D_TRANS_CARDEMU_TO_ACT_STEPS + RTL8723D_TRANS_END_STEPS] = { 65 | RTL8723D_TRANS_SUS_TO_CARDEMU 66 | RTL8723D_TRANS_CARDEMU_TO_ACT 67 | RTL8723D_TRANS_END 68 | }; 69 | 70 | 71 | 72 | /* 3HWPDN Array */ 73 | WLAN_PWR_CFG rtl8723D_hwpdn_flow[RTL8723D_TRANS_ACT_TO_CARDEMU_STEPS + RTL8723D_TRANS_CARDEMU_TO_PDN_STEPS + RTL8723D_TRANS_END_STEPS] = { 74 | RTL8723D_TRANS_ACT_TO_CARDEMU 75 | RTL8723D_TRANS_CARDEMU_TO_PDN 76 | RTL8723D_TRANS_END 77 | }; 78 | 79 | /* 3 Enter LPS */ 80 | WLAN_PWR_CFG rtl8723D_enter_lps_flow[RTL8723D_TRANS_ACT_TO_LPS_STEPS + RTL8723D_TRANS_END_STEPS] = { 81 | /* FW behavior */ 82 | RTL8723D_TRANS_ACT_TO_LPS 83 | RTL8723D_TRANS_END 84 | }; 85 | 86 | /* 3 Leave LPS */ 87 | WLAN_PWR_CFG rtl8723D_leave_lps_flow[RTL8723D_TRANS_LPS_TO_ACT_STEPS + RTL8723D_TRANS_END_STEPS] = { 88 | /* FW behavior */ 89 | RTL8723D_TRANS_LPS_TO_ACT 90 | RTL8723D_TRANS_END 91 | }; 92 | --------------------------------------------------------------------------------