#include "../wifi.h"
#include "../pci.h"
#include "../ps.h"
#include "reg.h"
#include "def.h"
#include "phy.h"
#include "rf.h"
#include "dm.h"
#include "table.h"
#include "../rtl8723com/phy_common.h"
static void _rtl8723e_phy_fw_rf_serial_write(struct ieee80211_hw *hw,
enum radio_path rfpath, u32 offset,
u32 data);
static bool _rtl8723e_phy_bb8192c_config_parafile(struct ieee80211_hw *hw);
static bool _rtl8723e_phy_config_mac_with_headerfile(struct ieee80211_hw *hw);
static bool _rtl8723e_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,
u8 configtype);
static bool _rtl8723e_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw,
u8 configtype);
static bool _rtl8723e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
u8 channel, u8 *stage, u8 *step,
u32 *delay);
static u8 _rtl8723e_phy_dbm_to_txpwr_idx(struct ieee80211_hw *hw,
enum wireless_mode wirelessmode,
long power_indbm);
static void rtl8723e_phy_set_rf_on(struct ieee80211_hw *hw);
static void rtl8723e_phy_set_io(struct ieee80211_hw *hw);
u32 rtl8723e_phy_query_rf_reg(struct ieee80211_hw *hw,
enum radio_path rfpath,
u32 regaddr, u32 bitmask)
{ … }
void rtl8723e_phy_set_rf_reg(struct ieee80211_hw *hw,
enum radio_path rfpath,
u32 regaddr, u32 bitmask, u32 data)
{ … }
static void _rtl8723e_phy_fw_rf_serial_write(struct ieee80211_hw *hw,
enum radio_path rfpath, u32 offset,
u32 data)
{ … }
static void _rtl8723e_phy_bb_config_1t(struct ieee80211_hw *hw)
{ … }
bool rtl8723e_phy_mac_config(struct ieee80211_hw *hw)
{ … }
bool rtl8723e_phy_bb_config(struct ieee80211_hw *hw)
{ … }
bool rtl8723e_phy_rf_config(struct ieee80211_hw *hw)
{ … }
static bool _rtl8723e_phy_bb8192c_config_parafile(struct ieee80211_hw *hw)
{ … }
static bool _rtl8723e_phy_config_mac_with_headerfile(struct ieee80211_hw *hw)
{ … }
static bool _rtl8723e_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,
u8 configtype)
{ … }
static void store_pwrindex_diffrate_offset(struct ieee80211_hw *hw,
u32 regaddr, u32 bitmask,
u32 data)
{ … }
static bool _rtl8723e_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw,
u8 configtype)
{ … }
bool rtl8723e_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
enum radio_path rfpath)
{ … }
void rtl8723e_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw)
{ … }
void rtl8723e_phy_get_txpower_level(struct ieee80211_hw *hw, long *powerlevel)
{ … }
static void _rtl8723e_get_txpower_index(struct ieee80211_hw *hw, u8 channel,
u8 *cckpowerlevel, u8 *ofdmpowerlevel)
{ … }
static void _rtl8723e_ccxpower_index_check(struct ieee80211_hw *hw,
u8 channel, u8 *cckpowerlevel,
u8 *ofdmpowerlevel)
{ … }
void rtl8723e_phy_set_txpower_level(struct ieee80211_hw *hw, u8 channel)
{ … }
bool rtl8723e_phy_update_txpower_dbm(struct ieee80211_hw *hw, long power_indbm)
{ … }
static u8 _rtl8723e_phy_dbm_to_txpwr_idx(struct ieee80211_hw *hw,
enum wireless_mode wirelessmode,
long power_indbm)
{ … }
void rtl8723e_phy_scan_operation_backup(struct ieee80211_hw *hw, u8 operation)
{ … }
void rtl8723e_phy_set_bw_mode_callback(struct ieee80211_hw *hw)
{ … }
void rtl8723e_phy_set_bw_mode(struct ieee80211_hw *hw,
enum nl80211_channel_type ch_type)
{ … }
void rtl8723e_phy_sw_chnl_callback(struct ieee80211_hw *hw)
{ … }
u8 rtl8723e_phy_sw_chnl(struct ieee80211_hw *hw)
{ … }
static void _rtl8723e_phy_sw_rf_seting(struct ieee80211_hw *hw, u8 channel)
{ … }
static bool _rtl8723e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
u8 channel, u8 *stage, u8 *step,
u32 *delay)
{ … }
static u8 _rtl8723e_phy_path_a_iqk(struct ieee80211_hw *hw, bool config_pathb)
{ … }
static u8 _rtl8723e_phy_path_b_iqk(struct ieee80211_hw *hw)
{ … }
static bool _rtl8723e_phy_simularity_compare(struct ieee80211_hw *hw,
long result[][8], u8 c1, u8 c2)
{ … }
static void _rtl8723e_phy_iq_calibrate(struct ieee80211_hw *hw,
long result[][8], u8 t, bool is2t)
{ … }
static void _rtl8723e_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t)
{ … }
static void _rtl8723e_phy_set_rfpath_switch(struct ieee80211_hw *hw,
bool bmain, bool is2t)
{ … }
#undef IQK_ADDA_REG_NUM
#undef IQK_DELAY_TIME
void rtl8723e_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery)
{ … }
void rtl8723e_phy_lc_calibrate(struct ieee80211_hw *hw)
{ … }
void rtl8723e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain)
{ … }
bool rtl8723e_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype)
{ … }
static void rtl8723e_phy_set_io(struct ieee80211_hw *hw)
{ … }
static void rtl8723e_phy_set_rf_on(struct ieee80211_hw *hw)
{ … }
static void _rtl8723e_phy_set_rf_sleep(struct ieee80211_hw *hw)
{ … }
static bool _rtl8723e_phy_set_rf_power_state(struct ieee80211_hw *hw,
enum rf_pwrstate rfpwr_state)
{ … }
bool rtl8723e_phy_set_rf_power_state(struct ieee80211_hw *hw,
enum rf_pwrstate rfpwr_state)
{ … }