#include "../wifi.h"
#include "../pci.h"
#include "../ps.h"
#include "../core.h"
#include "../rtl8192d/reg.h"
#include "../rtl8192d/def.h"
#include "../rtl8192d/dm_common.h"
#include "../rtl8192d/phy_common.h"
#include "../rtl8192d/rf_common.h"
#include "phy.h"
#include "rf.h"
#include "dm.h"
#include "table.h"
#include "sw.h"
#include "hw.h"
#define MAX_RF_IMR_INDEX …
#define MAX_RF_IMR_INDEX_NORMAL …
#define RF_REG_NUM_FOR_C_CUT_5G …
#define RF_REG_NUM_FOR_C_CUT_5G_INTERNALPA …
#define RF_REG_NUM_FOR_C_CUT_2G …
#define RF_CHNL_NUM_5G …
#define RF_CHNL_NUM_5G_40M …
static u32 rf_reg_for_5g_swchnl_normal[MAX_RF_IMR_INDEX_NORMAL] = …;
static u8 rf_reg_for_c_cut_5g[RF_REG_NUM_FOR_C_CUT_5G] = …;
static u8 rf_reg_for_c_cut_2g[RF_REG_NUM_FOR_C_CUT_2G] = …;
static u8 rf_for_c_cut_5g_internal_pa[RF_REG_NUM_FOR_C_CUT_5G_INTERNALPA] = …;
static u32 rf_reg_mask_for_c_cut_2g[RF_REG_NUM_FOR_C_CUT_2G] = …;
static u8 rf_chnl_5g[RF_CHNL_NUM_5G] = …;
static u8 rf_chnl_5g_40m[RF_CHNL_NUM_5G_40M] = …;
static u32 rf_reg_pram_c_5g[5][RF_REG_NUM_FOR_C_CUT_5G] = …;
static u32 rf_reg_param_for_c_cut_2g[3][RF_REG_NUM_FOR_C_CUT_2G] = …;
static u32 rf_syn_g4_for_c_cut_2g = …;
static u32 rf_pram_c_5g_int_pa[3][RF_REG_NUM_FOR_C_CUT_5G_INTERNALPA] = …;
static u32 rf_imr_param_normal[1][3][MAX_RF_IMR_INDEX_NORMAL] = …;
static u32 curveindex_5g[TARGET_CHNL_NUM_5G] = …;
static u32 curveindex_2g[TARGET_CHNL_NUM_2G] = …;
static u32 targetchnl_5g[TARGET_CHNL_NUM_5G] = …;
static u32 targetchnl_2g[TARGET_CHNL_NUM_2G] = …;
u32 rtl92d_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask)
{ … }
void rtl92d_phy_set_bb_reg(struct ieee80211_hw *hw,
u32 regaddr, u32 bitmask, u32 data)
{ … }
bool rtl92d_phy_mac_config(struct ieee80211_hw *hw)
{ … }
static bool _rtl92d_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,
u8 configtype)
{ … }
static bool _rtl92d_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw,
u8 configtype)
{ … }
static bool _rtl92d_phy_bb_config(struct ieee80211_hw *hw)
{ … }
bool rtl92d_phy_bb_config(struct ieee80211_hw *hw)
{ … }
bool rtl92d_phy_rf_config(struct ieee80211_hw *hw)
{ … }
bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
enum rf_content content,
enum radio_path rfpath)
{ … }
void rtl92d_phy_set_bw_mode(struct ieee80211_hw *hw,
enum nl80211_channel_type ch_type)
{ … }
static void _rtl92d_phy_stop_trx_before_changeband(struct ieee80211_hw *hw)
{ … }
static void rtl92d_phy_switch_wirelessband(struct ieee80211_hw *hw, u8 band)
{ … }
static void _rtl92d_phy_reload_imr_setting(struct ieee80211_hw *hw,
u8 channel, u8 rfpath)
{ … }
static void _rtl92d_phy_switch_rf_setting(struct ieee80211_hw *hw, u8 channel)
{ … }
static u8 _rtl92d_phy_patha_iqk(struct ieee80211_hw *hw, bool configpathb)
{ … }
static u8 _rtl92d_phy_patha_iqk_5g_normal(struct ieee80211_hw *hw,
bool configpathb)
{ … }
static u8 _rtl92d_phy_pathb_iqk(struct ieee80211_hw *hw)
{ … }
static u8 _rtl92d_phy_pathb_iqk_5g_normal(struct ieee80211_hw *hw)
{ … }
static void _rtl92d_phy_reload_adda_registers(struct ieee80211_hw *hw,
u32 *adda_reg, u32 *adda_backup,
u32 regnum)
{ … }
static void _rtl92d_phy_reload_mac_registers(struct ieee80211_hw *hw,
u32 *macreg, u32 *macbackup)
{ … }
static void _rtl92d_phy_patha_standby(struct ieee80211_hw *hw)
{ … }
static void _rtl92d_phy_pimode_switch(struct ieee80211_hw *hw, bool pi_mode)
{ … }
static void _rtl92d_phy_iq_calibrate(struct ieee80211_hw *hw, long result[][8],
u8 t, bool is2t)
{ … }
static void _rtl92d_phy_iq_calibrate_5g_normal(struct ieee80211_hw *hw,
long result[][8], u8 t)
{ … }
static bool _rtl92d_phy_simularity_compare(struct ieee80211_hw *hw,
long result[][8], u8 c1, u8 c2)
{ … }
static void _rtl92d_phy_patha_fill_iqk_matrix(struct ieee80211_hw *hw,
bool iqk_ok, long result[][8],
u8 final_candidate, bool txonly)
{ … }
static void _rtl92d_phy_pathb_fill_iqk_matrix(struct ieee80211_hw *hw,
bool iqk_ok, long result[][8], u8 final_candidate, bool txonly)
{ … }
void rtl92d_phy_iq_calibrate(struct ieee80211_hw *hw)
{ … }
void rtl92d_phy_reload_iqk_setting(struct ieee80211_hw *hw, u8 channel)
{ … }
static void _rtl92d_phy_reload_lck_setting(struct ieee80211_hw *hw,
u8 channel)
{ … }
static void _rtl92d_phy_lc_calibrate_sw(struct ieee80211_hw *hw, bool is2t)
{ … }
static void _rtl92d_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t)
{ … }
void rtl92d_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t)
{ … }
void rtl92d_phy_ap_calibrate(struct ieee80211_hw *hw, s8 delta)
{ … }
static bool _rtl92d_phy_set_sw_chnl_cmdarray(struct swchnlcmd *cmdtable,
u32 cmdtableidx, u32 cmdtablesz, enum swchnlcmd_id cmdid,
u32 para1, u32 para2, u32 msdelay)
{ … }
static bool _rtl92d_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
u8 channel, u8 *stage, u8 *step,
u32 *delay)
{ … }
u8 rtl92d_phy_sw_chnl(struct ieee80211_hw *hw)
{ … }
static void _rtl92d_phy_set_rfon(struct ieee80211_hw *hw)
{ … }
static void _rtl92d_phy_set_rfsleep(struct ieee80211_hw *hw)
{ … }
bool rtl92d_phy_set_rf_power_state(struct ieee80211_hw *hw,
enum rf_pwrstate rfpwr_state)
{ … }
void rtl92d_phy_set_poweron(struct ieee80211_hw *hw)
{ … }
void rtl92d_update_bbrf_configuration(struct ieee80211_hw *hw)
{ … }
bool rtl92d_phy_check_poweroff(struct ieee80211_hw *hw)
{ … }