Lines Matching +full:dual +full:- +full:radio

1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
30 * 0 - Disable ASPM, in rtl92d_init_aspm_vars()
31 * 1 - Enable ASPM without Clock Req, in rtl92d_init_aspm_vars()
32 * 2 - Enable ASPM with Clock Req, in rtl92d_init_aspm_vars()
33 * 3 - Alwyas Enable ASPM with Clock Req, in rtl92d_init_aspm_vars()
34 * 4 - Always Enable ASPM without Clock Req. in rtl92d_init_aspm_vars()
37 rtlpci->const_pci_aspm = 3; in rtl92d_init_aspm_vars()
39 /*Setting for PCI-E device */ in rtl92d_init_aspm_vars()
40 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92d_init_aspm_vars()
42 /*Setting for PCI-E bridge */ in rtl92d_init_aspm_vars()
43 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92d_init_aspm_vars()
46 * In Hw/Sw Radio Off situation. in rtl92d_init_aspm_vars()
47 * 0 - Default, in rtl92d_init_aspm_vars()
48 * 1 - From ASPM setting without low Mac Pwr, in rtl92d_init_aspm_vars()
49 * 2 - From ASPM setting with low Mac Pwr, in rtl92d_init_aspm_vars()
50 * 3 - Bus D3 in rtl92d_init_aspm_vars()
53 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92d_init_aspm_vars()
58 * 0 - Not support ASPM, in rtl92d_init_aspm_vars()
59 * 1 - Support ASPM, in rtl92d_init_aspm_vars()
60 * 2 - According to chipset. in rtl92d_init_aspm_vars()
62 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92d_init_aspm_vars()
73 rtlpriv->dm.dm_initialgain_enable = true; in rtl92d_init_sw_vars()
74 rtlpriv->dm.dm_flag = 0; in rtl92d_init_sw_vars()
75 rtlpriv->dm.disable_framebursting = false; in rtl92d_init_sw_vars()
76 rtlpriv->dm.thermalvalue = 0; in rtl92d_init_sw_vars()
77 rtlpriv->dm.useramask = true; in rtl92d_init_sw_vars()
79 /* dual mac */ in rtl92d_init_sw_vars()
80 if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) in rtl92d_init_sw_vars()
81 rtlpriv->phy.current_channel = 36; in rtl92d_init_sw_vars()
83 rtlpriv->phy.current_channel = 1; in rtl92d_init_sw_vars()
85 if (rtlpriv->rtlhal.macphymode != SINGLEMAC_SINGLEPHY) { in rtl92d_init_sw_vars()
86 rtlpriv->rtlhal.disable_amsdu_8k = true; in rtl92d_init_sw_vars()
87 /* No long RX - reduce fragmentation */ in rtl92d_init_sw_vars()
88 rtlpci->rxbuffersize = 4096; in rtl92d_init_sw_vars()
91 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl92d_init_sw_vars()
93 rtlpci->receive_config = ( in rtl92d_init_sw_vars()
108 rtlpci->irq_mask[0] = (u32) ( in rtl92d_init_sw_vars()
121 rtlpci->irq_mask[1] = (u32) (IMR_CPWM | IMR_C2HCMD); in rtl92d_init_sw_vars()
124 rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; in rtl92d_init_sw_vars()
125 rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; in rtl92d_init_sw_vars()
126 rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; in rtl92d_init_sw_vars()
127 if (!rtlpriv->psc.inactiveps) in rtl92d_init_sw_vars()
129 if (!rtlpriv->psc.fwctrl_lps) in rtl92d_init_sw_vars()
131 rtlpriv->psc.reg_fwctrl_lps = 3; in rtl92d_init_sw_vars()
132 rtlpriv->psc.reg_max_lps_awakeintvl = 5; in rtl92d_init_sw_vars()
137 if (rtlpriv->psc.reg_fwctrl_lps == 1) in rtl92d_init_sw_vars()
138 rtlpriv->psc.fwctrl_psmode = FW_PS_MIN_MODE; in rtl92d_init_sw_vars()
139 else if (rtlpriv->psc.reg_fwctrl_lps == 2) in rtl92d_init_sw_vars()
140 rtlpriv->psc.fwctrl_psmode = FW_PS_MAX_MODE; in rtl92d_init_sw_vars()
141 else if (rtlpriv->psc.reg_fwctrl_lps == 3) in rtl92d_init_sw_vars()
142 rtlpriv->psc.fwctrl_psmode = FW_PS_DTIM_MODE; in rtl92d_init_sw_vars()
145 rtlpriv->rtlhal.earlymode_enable = false; in rtl92d_init_sw_vars()
147 skb_queue_head_init(&rtlpriv->mac80211.skb_waitq[tid]); in rtl92d_init_sw_vars()
150 rtlpriv->rtlhal.pfirmware = vzalloc(0x8000); in rtl92d_init_sw_vars()
151 if (!rtlpriv->rtlhal.pfirmware) { in rtl92d_init_sw_vars()
156 rtlpriv->max_fw_size = 0x8000; in rtl92d_init_sw_vars()
162 rtlpriv->io.dev, GFP_KERNEL, hw, in rtl92d_init_sw_vars()
166 vfree(rtlpriv->rtlhal.pfirmware); in rtl92d_init_sw_vars()
167 rtlpriv->rtlhal.pfirmware = NULL; in rtl92d_init_sw_vars()
179 if (rtlpriv->rtlhal.pfirmware) { in rtl92d_deinit_sw_vars()
180 vfree(rtlpriv->rtlhal.pfirmware); in rtl92d_deinit_sw_vars()
181 rtlpriv->rtlhal.pfirmware = NULL; in rtl92d_deinit_sw_vars()
184 skb_queue_purge(&rtlpriv->mac80211.skb_waitq[tid]); in rtl92d_deinit_sw_vars()
347 MODULE_DESCRIPTION("Realtek 8192DE 802.11n Dual Mac PCI wireless");
362 MODULE_PARM_DESC(debug_level, "Set debug level (0-5) (default 0)");