1c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger/****************************************************************************** 2c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 3c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * Copyright(c) 2009-2012 Realtek Corporation. 4c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 5c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * This program is free software; you can redistribute it and/or modify it 6c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * under the terms of version 2 of the GNU General Public License as 7c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * published by the Free Software Foundation. 8c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 9c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * This program is distributed in the hope that it will be useful, but WITHOUT 10c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * more details. 13c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 14c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * The full GNU General Public License is included in this distribution in the 15c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * file called LICENSE. 16c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 17c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * Contact Information: 18c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * wlanfae <wlanfae@realtek.com> 19c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 20c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * Hsinchu 300, Taiwan. 21c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 22c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * Larry Finger <Larry.Finger@lwfinger.net> 23c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 24c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger *****************************************************************************/ 25c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 26c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "../wifi.h" 27c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "../core.h" 28c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "../pci.h" 29c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "reg.h" 30c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "def.h" 31c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "phy.h" 32c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "dm.h" 33cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger#include "fw.h" 34cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger#include "../rtl8723com/fw_common.h" 350529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger#include "hw.h" 36c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "sw.h" 37c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "trx.h" 38c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "led.h" 39c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "table.h" 40c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger#include "hal_btc.h" 410529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger#include "../btcoexist/rtl_btc.h" 420529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger#include "../rtl8723com/phy_common.h" 43c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 440529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger#include <linux/vmalloc.h> 450529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger#include <linux/module.h> 460529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 470529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic void rtl8723e_init_aspm_vars(struct ieee80211_hw *hw) 48c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger{ 49c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); 50c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 51c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /*close ASPM for AMD defaultly */ 52c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->const_amdpci_aspm = 0; 53c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 540529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger /** 550529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger * ASPM PS mode. 56c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 0 - Disable ASPM, 57c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 1 - Enable ASPM without Clock Req, 58c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 2 - Enable ASPM with Clock Req, 59c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 3 - Alwyas Enable ASPM with Clock Req, 60c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 4 - Always Enable ASPM without Clock Req. 61c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * set defult to RTL8192CE:3 RTL8192E:2 62c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger */ 63c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->const_pci_aspm = 3; 64c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 65c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /*Setting for PCI-E device */ 66c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->const_devicepci_aspm_setting = 0x03; 67c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 68c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /*Setting for PCI-E bridge */ 69c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->const_hostpci_aspm_setting = 0x02; 70c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 710529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger /** 720529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger * In Hw/Sw Radio Off situation. 73c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 0 - Default, 74c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 1 - From ASPM setting without low Mac Pwr, 75c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 2 - From ASPM setting with low Mac Pwr, 76c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 3 - Bus D3 77c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * set default to RTL8192CE:0 RTL8192SE:2 78c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger */ 79c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->const_hwsw_rfoff_d3 = 0; 80c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 810529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger /** 820529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger * This setting works for those device with 83c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * backdoor ASPM setting such as EPHY setting. 84c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 0 - Not support ASPM, 85c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 1 - Support ASPM, 86c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger * 2 - According to chipset. 87c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger */ 88c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->const_support_pciaspm = 1; 89c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger} 90c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 910529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerint rtl8723e_init_sw_vars(struct ieee80211_hw *hw) 92c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger{ 93c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger struct rtl_priv *rtlpriv = rtl_priv(hw); 94c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); 95c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); 960529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger int err = 0; 970529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 980529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger rtl8723e_bt_reg_init(hw); 990529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 1000529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); 101c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 102c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->dm.dm_initialgain_enable = 1; 103c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->dm.dm_flag = 0; 104c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->dm.disable_framebursting = 0; 105c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->dm.thermalvalue = 0; 106c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); 107c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 108c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /* compatible 5G band 88ce just 2.4G band & smsp */ 109c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; 110c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->rtlhal.bandset = BAND_ON_2_4G; 111c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; 112c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 113c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->receive_config = (RCR_APPFCS | 114c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_APP_MIC | 115c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_APP_ICV | 116c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_APP_PHYST_RXFF | 117c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_HTC_LOC_CTRL | 118c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_AMF | 119c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_ACF | 120c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_ADF | 121c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_AICV | 122c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_AB | 123c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_AM | 124c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RCR_APM | 125c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 0); 126c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 127c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpci->irq_mask[0] = 128c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger (u32) (PHIMR_ROK | 129c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_RDU | 130c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_VODOK | 131c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_VIDOK | 132c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_BEDOK | 133c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_BKDOK | 134c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_MGNTDOK | 135c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_HIGHDOK | 136c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_C2HCMD | 137c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_HISRE_IND | 138c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_TSF_BIT32_TOGGLE | 139c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_TXBCNOK | 140c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger PHIMR_PSTIMEOUT | 141c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 0); 142c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 1430529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger rtlpci->irq_mask[1] = 1440529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger (u32)(PHIMR_RXFOVW | 1450529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 0); 146c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 147c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /* for debug level */ 148c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->dbg.global_debuglevel = rtlpriv->cfg->mod_params->debug; 149c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /* for LPS & IPS */ 150c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; 151c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; 152c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; 1530529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger if (rtlpriv->cfg->mod_params->disable_watchdog) 1540529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger pr_info("watchdog disabled\n"); 155c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.reg_fwctrl_lps = 3; 156c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.reg_max_lps_awakeintvl = 5; 1570529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger rtl8723e_init_aspm_vars(hw); 158c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 159c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger if (rtlpriv->psc.reg_fwctrl_lps == 1) 160c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; 161c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger else if (rtlpriv->psc.reg_fwctrl_lps == 2) 162c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; 163c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger else if (rtlpriv->psc.reg_fwctrl_lps == 3) 164c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->psc.fwctrl_psmode = FW_PS_DTIM_MODE; 165c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 166c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger /* for firmware buf */ 167ef09396ef622572c604d4977e76f6151ef68ed21Larry Finger rtlpriv->rtlhal.pfirmware = vzalloc(0x6000); 168c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger if (!rtlpriv->rtlhal.pfirmware) { 169c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, 170c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger "Can't alloc buffer for fw.\n"); 171c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger return 1; 172c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger } 173c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 174c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger if (IS_VENDOR_8723_A_CUT(rtlhal->version)) 175c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->cfg->fw_name = "rtlwifi/rtl8723fw.bin"; 176c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger else if (IS_81xxC_VENDOR_UMC_B_CUT(rtlhal->version)) 177c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->cfg->fw_name = "rtlwifi/rtl8723fw_B.bin"; 178c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 179c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->max_fw_size = 0x6000; 180c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger pr_info("Using firmware %s\n", rtlpriv->cfg->fw_name); 181c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger err = request_firmware_nowait(THIS_MODULE, 1, rtlpriv->cfg->fw_name, 182c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->io.dev, GFP_KERNEL, hw, 183c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtl_fw_cb); 184c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger if (err) { 185c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, 186c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger "Failed to request firmware!\n"); 187c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger return 1; 188c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger } 189c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger return 0; 190c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger} 191c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 1920529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingervoid rtl8723e_deinit_sw_vars(struct ieee80211_hw *hw) 193c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger{ 194c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger struct rtl_priv *rtlpriv = rtl_priv(hw); 195c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 196c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger if (rtlpriv->rtlhal.pfirmware) { 197c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger vfree(rtlpriv->rtlhal.pfirmware); 198c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger rtlpriv->rtlhal.pfirmware = NULL; 199c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger } 200c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger} 201c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 2020529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger/* get bt coexist status */ 2030529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerbool rtl8723e_get_btc_status(void) 2040529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger{ 2050529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger return true; 2060529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger} 2070529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 2080529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic bool is_fw_header(struct rtl8723e_firmware_header *hdr) 209cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger{ 210cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger return (hdr->signature & 0xfff0) == 0x2300; 211cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger} 212cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger 2130529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic struct rtl_hal_ops rtl8723e_hal_ops = { 2140529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .init_sw_vars = rtl8723e_init_sw_vars, 2150529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .deinit_sw_vars = rtl8723e_deinit_sw_vars, 2160529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .read_eeprom_info = rtl8723e_read_eeprom_info, 2170529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .interrupt_recognized = rtl8723e_interrupt_recognized, 2180529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .hw_init = rtl8723e_hw_init, 2190529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .hw_disable = rtl8723e_card_disable, 2200529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .hw_suspend = rtl8723e_suspend, 2210529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .hw_resume = rtl8723e_resume, 2220529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .enable_interrupt = rtl8723e_enable_interrupt, 2230529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .disable_interrupt = rtl8723e_disable_interrupt, 2240529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_network_type = rtl8723e_set_network_type, 2250529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_chk_bssid = rtl8723e_set_check_bssid, 2260529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_qos = rtl8723e_set_qos, 2270529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_bcn_reg = rtl8723e_set_beacon_related_registers, 2280529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_bcn_intv = rtl8723e_set_beacon_interval, 2290529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .update_interrupt_mask = rtl8723e_update_interrupt_mask, 2300529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .get_hw_reg = rtl8723e_get_hw_reg, 2310529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_hw_reg = rtl8723e_set_hw_reg, 2320529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .update_rate_tbl = rtl8723e_update_hal_rate_tbl, 2330529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .fill_tx_desc = rtl8723e_tx_fill_desc, 2340529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .fill_tx_cmddesc = rtl8723e_tx_fill_cmddesc, 2350529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .query_rx_desc = rtl8723e_rx_query_desc, 2360529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_channel_access = rtl8723e_update_channel_access_setting, 2370529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .radio_onoff_checking = rtl8723e_gpio_radio_on_off_checking, 2380529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_bw_mode = rtl8723e_phy_set_bw_mode, 2390529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .switch_channel = rtl8723e_phy_sw_chnl, 2400529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .dm_watchdog = rtl8723e_dm_watchdog, 2410529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .scan_operation_backup = rtl8723e_phy_scan_operation_backup, 2420529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_rf_power_state = rtl8723e_phy_set_rf_power_state, 2430529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .led_control = rtl8723e_led_control, 2440529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_desc = rtl8723e_set_desc, 2450529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .get_desc = rtl8723e_get_desc, 2460529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .is_tx_desc_closed = rtl8723e_is_tx_desc_closed, 2470529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .tx_polling = rtl8723e_tx_polling, 2480529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .enable_hw_sec = rtl8723e_enable_hw_security_config, 2490529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_key = rtl8723e_set_key, 2500529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .init_sw_leds = rtl8723e_init_sw_leds, 2510a168b48cdf7c22cf0250f62df4dde20adebf74bLarry Finger .get_bbreg = rtl8723_phy_query_bb_reg, 2520a168b48cdf7c22cf0250f62df4dde20adebf74bLarry Finger .set_bbreg = rtl8723_phy_set_bb_reg, 2530529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .get_rfreg = rtl8723e_phy_query_rf_reg, 2540529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .set_rfreg = rtl8723e_phy_set_rf_reg, 255c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .c2h_command_handle = rtl_8723e_c2h_command_handle, 256c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .bt_wifi_media_status_notify = rtl_8723e_bt_wifi_media_status_notify, 2570529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .bt_coex_off_before_lps = 2580529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps, 2590529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .get_btc_status = rtl8723e_get_btc_status, 2600529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .rx_command_packet = rtl8723e_rx_command_packet, 261cbd0c8512f3b06c86849c554eb092862c46885d5Larry Finger .is_fw_header = is_fw_header, 262c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger}; 263c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 2640529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic struct rtl_mod_params rtl8723e_mod_params = { 265c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .sw_crypto = false, 266c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .inactiveps = true, 267c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .swctrl_lps = false, 268c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .fwctrl_lps = true, 269c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .debug = DBG_EMERG, 270c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger}; 271c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 2720529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic struct rtl_hal_cfg rtl8723e_hal_cfg = { 273c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .bar_id = 2, 274c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .write_readback = true, 2750529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .name = "rtl8723e_pci", 2760529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .fw_name = "rtlwifi/rtl8723efw.bin", 2770529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .ops = &rtl8723e_hal_ops, 2780529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .mod_params = &rtl8723e_mod_params, 279c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SYS_ISO_CTRL] = REG_SYS_ISO_CTRL, 280c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SYS_FUNC_EN] = REG_SYS_FUNC_EN, 281c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SYS_CLK] = REG_SYS_CLKR, 282c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[MAC_RCR_AM] = AM, 283c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[MAC_RCR_AB] = AB, 284c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[MAC_RCR_ACRC32] = ACRC32, 285c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[MAC_RCR_ACF] = ACF, 286c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[MAC_RCR_AAP] = AAP, 2870529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[MAC_HIMR] = REG_HIMR, 2880529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[MAC_HIMRE] = REG_HIMRE, 289c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_TEST] = REG_EFUSE_TEST, 290c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_CTRL] = REG_EFUSE_CTRL, 291c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_CLK] = 0, 292c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_CLK_CTRL] = REG_EFUSE_CTRL, 293c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_PWC_EV12V] = PWC_EV12V, 294c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_FEN_ELDR] = FEN_ELDR, 295c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_LOADER_CLK_EN] = LOADER_CLK_EN, 296c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_ANA8M] = ANA8M, 297c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_HWSET_MAX_SIZE] = HWSET_MAX_SIZE, 298c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_MAX_SECTION_MAP] = EFUSE_MAX_SECTION, 299c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_REAL_CONTENT_SIZE] = EFUSE_REAL_CONTENT_LEN, 300c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[EFUSE_OOB_PROTECT_BYTES_LEN] = EFUSE_OOB_PROTECT_BYTES, 301c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 302c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RWCAM] = REG_CAMCMD, 303c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[WCAMI] = REG_CAMWRITE, 304c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RCAMO] = REG_CAMREAD, 305c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[CAMDBG] = REG_CAMDBG, 306c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SECR] = REG_SECCFG, 307c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SEC_CAM_NONE] = CAM_NONE, 308c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SEC_CAM_WEP40] = CAM_WEP40, 309c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SEC_CAM_TKIP] = CAM_TKIP, 310c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SEC_CAM_AES] = CAM_AES, 311c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[SEC_CAM_WEP104] = CAM_WEP104, 312c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 313c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDMAINT6] = IMR_BCNDMAINT6, 314c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDMAINT5] = IMR_BCNDMAINT5, 315c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDMAINT4] = IMR_BCNDMAINT4, 316c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDMAINT3] = IMR_BCNDMAINT3, 317c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDMAINT2] = IMR_BCNDMAINT2, 318c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDMAINT1] = IMR_BCNDMAINT1, 319c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK8] = IMR_BCNDOK8, 320c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK7] = IMR_BCNDOK7, 321c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK6] = IMR_BCNDOK6, 322c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK5] = IMR_BCNDOK5, 323c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK4] = IMR_BCNDOK4, 324c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK3] = IMR_BCNDOK3, 325c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK2] = IMR_BCNDOK2, 326c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BCNDOK1] = IMR_BCNDOK1, 327c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_TIMEOUT2] = IMR_TIMEOUT2, 328c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_TIMEOUT1] = IMR_TIMEOUT1, 329c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 330c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_TXFOVW] = PHIMR_TXFOVW, 331c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_PSTIMEOUT] = PHIMR_PSTIMEOUT, 332e6deaf810cc4b6437d55179660776e131ac059dfLarry Finger .maps[RTL_IMR_BCNINT] = PHIMR_BCNDMAINT0, 333c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_RXFOVW] = PHIMR_RXFOVW, 334c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_RDU] = PHIMR_RDU, 335c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_ATIMEND] = PHIMR_ATIMEND_E, 336c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BDOK] = PHIMR_BCNDOK0, 337c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_MGNTDOK] = PHIMR_MGNTDOK, 338c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_TBDER] = PHIMR_TXBCNERR, 339c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_HIGHDOK] = PHIMR_HIGHDOK, 340c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_TBDOK] = PHIMR_TXBCNOK, 341c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BKDOK] = PHIMR_BKDOK, 342c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_BEDOK] = PHIMR_BEDOK, 343c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_VIDOK] = PHIMR_VIDOK, 344c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_VODOK] = PHIMR_VODOK, 345c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_ROK] = PHIMR_ROK, 3460529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_IBSS_INT_MASKS] = 3470529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger (PHIMR_BCNDMAINT0 | PHIMR_TXBCNOK | PHIMR_TXBCNERR), 348c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .maps[RTL_IMR_C2HCMD] = PHIMR_C2HCMD, 349c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 350c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 3510529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_CCK_RATE1M] = DESC92C_RATE1M, 3520529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_CCK_RATE2M] = DESC92C_RATE2M, 3530529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_CCK_RATE5_5M] = DESC92C_RATE5_5M, 3540529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_CCK_RATE11M] = DESC92C_RATE11M, 3550529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE6M] = DESC92C_RATE6M, 3560529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE9M] = DESC92C_RATE9M, 3570529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE12M] = DESC92C_RATE12M, 3580529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE18M] = DESC92C_RATE18M, 3590529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE24M] = DESC92C_RATE24M, 3600529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE36M] = DESC92C_RATE36M, 3610529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE48M] = DESC92C_RATE48M, 3620529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_OFDM_RATE54M] = DESC92C_RATE54M, 3630529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 3640529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_HT_RATEMCS7] = DESC92C_RATEMCS7, 3650529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .maps[RTL_RC_HT_RATEMCS15] = DESC92C_RATEMCS15, 366c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger}; 367c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 3680529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic struct pci_device_id rtl8723e_pci_ids[] = { 3690529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8723, rtl8723e_hal_cfg)}, 370c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger {}, 371c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger}; 372c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 3730529c6b8176135bcae1ab66bed6c1288456fbdecLarry FingerMODULE_DEVICE_TABLE(pci, rtl8723e_pci_ids); 374c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 375c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_AUTHOR("lizhaoming <chaoming_li@realsil.com.cn>"); 376c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_AUTHOR("Realtek WlanFAE <wlanfae@realtek.com>"); 377c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_LICENSE("GPL"); 378c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_DESCRIPTION("Realtek 8723E 802.11n PCI wireless"); 3790529c6b8176135bcae1ab66bed6c1288456fbdecLarry FingerMODULE_FIRMWARE("rtlwifi/rtl8723efw.bin"); 3800529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger 3810529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_param_named(swenc, rtl8723e_mod_params.sw_crypto, bool, 0444); 3820529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_param_named(debug, rtl8723e_mod_params.debug, int, 0444); 3830529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_param_named(ips, rtl8723e_mod_params.inactiveps, bool, 0444); 3840529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_param_named(swlps, rtl8723e_mod_params.swctrl_lps, bool, 0444); 3850529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_param_named(fwlps, rtl8723e_mod_params.fwctrl_lps, bool, 0444); 3860529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_param_named(disable_watchdog, rtl8723e_mod_params.disable_watchdog, 3870529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger bool, 0444); 388c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); 389c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); 390c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); 391c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); 392c592e631bcec4d858695eee8bf321d60390d38e9Larry FingerMODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); 3930529c6b8176135bcae1ab66bed6c1288456fbdecLarry FingerMODULE_PARM_DESC(disable_watchdog, "Set to 1 to disable the watchdog (default 0)\n"); 394c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 395244a77e9d708d5a23eed21a4fb62a62acc9c69a6Hauke Mehrtensstatic SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume); 396c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 3970529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingerstatic struct pci_driver rtl8723e_driver = { 398c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .name = KBUILD_MODNAME, 3990529c6b8176135bcae1ab66bed6c1288456fbdecLarry Finger .id_table = rtl8723e_pci_ids, 400c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .probe = rtl_pci_probe, 401c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .remove = rtl_pci_disconnect, 402c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger .driver.pm = &rtlwifi_pm_ops, 403c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger}; 404c592e631bcec4d858695eee8bf321d60390d38e9Larry Finger 4050529c6b8176135bcae1ab66bed6c1288456fbdecLarry Fingermodule_pci_driver(rtl8723e_driver); 406