Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
phy.c File Reference
#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 "sw.h"
#include "hw.h"

Go to the source code of this file.

Macros

#define MAX_RF_IMR_INDEX   12
 
#define MAX_RF_IMR_INDEX_NORMAL   13
 
#define RF_REG_NUM_FOR_C_CUT_5G   6
 
#define RF_REG_NUM_FOR_C_CUT_5G_INTERNALPA   7
 
#define RF_REG_NUM_FOR_C_CUT_2G   5
 
#define RF_CHNL_NUM_5G   19
 
#define RF_CHNL_NUM_5G_40M   17
 
#define TARGET_CHNL_NUM_5G   221
 
#define TARGET_CHNL_NUM_2G   14
 
#define CV_CURVE_CNT   64
 
#define MAX_TOLERANCE   5
 
#define IQK_DELAY_TIME   1 /* ms */
 
#define MAX_TOLERANCE_92D   3
 

Functions

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)
 
u32 rtl92d_phy_query_rf_reg (struct ieee80211_hw *hw, enum radio_path rfpath, u32 regaddr, u32 bitmask)
 
void rtl92d_phy_set_rf_reg (struct ieee80211_hw *hw, enum radio_path rfpath, u32 regaddr, u32 bitmask, u32 data)
 
bool rtl92d_phy_mac_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_get_hw_reg_originalvalue (struct ieee80211_hw *hw)
 
void rtl92d_phy_set_txpower_level (struct ieee80211_hw *hw, u8 channel)
 
void rtl92d_phy_scan_operation_backup (struct ieee80211_hw *hw, u8 operation)
 
void rtl92d_phy_set_bw_mode (struct ieee80211_hw *hw, enum nl80211_channel_type ch_type)
 
u8 rtl92d_get_rightchnlplace_for_iqk (u8 chnl)
 
void rtl92d_phy_iq_calibrate (struct ieee80211_hw *hw)
 
void rtl92d_phy_reload_iqk_setting (struct ieee80211_hw *hw, u8 channel)
 
void rtl92d_phy_lc_calibrate (struct ieee80211_hw *hw)
 
void rtl92d_phy_ap_calibrate (struct ieee80211_hw *hw, char delta)
 
void rtl92d_phy_reset_iqk_result (struct ieee80211_hw *hw)
 
u8 rtl92d_phy_sw_chnl (struct ieee80211_hw *hw)
 
bool rtl92d_phy_set_io_cmd (struct ieee80211_hw *hw, enum io_type iotype)
 
bool rtl92d_phy_set_rf_power_state (struct ieee80211_hw *hw, enum rf_pwrstate rfpwr_state)
 
void rtl92d_phy_config_macphymode (struct ieee80211_hw *hw)
 
void rtl92d_phy_config_macphymode_info (struct ieee80211_hw *hw)
 
u8 rtl92d_get_chnlgroup_fromarray (u8 chnl)
 
void rtl92d_phy_set_poweron (struct ieee80211_hw *hw)
 
void rtl92d_phy_config_maccoexist_rfpage (struct ieee80211_hw *hw)
 
void rtl92d_update_bbrf_configuration (struct ieee80211_hw *hw)
 
bool rtl92d_phy_check_poweroff (struct ieee80211_hw *hw)
 

Macro Definition Documentation

#define CV_CURVE_CNT   64

Definition at line 51 of file phy.c.

#define IQK_DELAY_TIME   1 /* ms */

Definition at line 1528 of file phy.c.

#define MAX_RF_IMR_INDEX   12

Definition at line 42 of file phy.c.

#define MAX_RF_IMR_INDEX_NORMAL   13

Definition at line 43 of file phy.c.

#define MAX_TOLERANCE   5

Definition at line 1527 of file phy.c.

#define MAX_TOLERANCE_92D   3

Definition at line 1529 of file phy.c.

#define RF_CHNL_NUM_5G   19

Definition at line 47 of file phy.c.

#define RF_CHNL_NUM_5G_40M   17

Definition at line 48 of file phy.c.

#define RF_REG_NUM_FOR_C_CUT_2G   5

Definition at line 46 of file phy.c.

#define RF_REG_NUM_FOR_C_CUT_5G   6

Definition at line 44 of file phy.c.

#define RF_REG_NUM_FOR_C_CUT_5G_INTERNALPA   7

Definition at line 45 of file phy.c.

#define TARGET_CHNL_NUM_2G   14

Definition at line 50 of file phy.c.

#define TARGET_CHNL_NUM_5G   221

Definition at line 49 of file phy.c.

Function Documentation

u8 rtl92d_get_chnlgroup_fromarray ( u8  chnl)

Definition at line 3377 of file phy.c.

u8 rtl92d_get_rightchnlplace_for_iqk ( u8  chnl)

Definition at line 1505 of file phy.c.

void rtl92d_phy_ap_calibrate ( struct ieee80211_hw hw,
char  delta 
)

Definition at line 2818 of file phy.c.

bool rtl92d_phy_bb_config ( struct ieee80211_hw hw)

Definition at line 792 of file phy.c.

bool rtl92d_phy_check_poweroff ( struct ieee80211_hw hw)

Definition at line 3681 of file phy.c.

void rtl92d_phy_config_maccoexist_rfpage ( struct ieee80211_hw hw)

Definition at line 3468 of file phy.c.

void rtl92d_phy_config_macphymode ( struct ieee80211_hw hw)

Definition at line 3314 of file phy.c.

void rtl92d_phy_config_macphymode_info ( struct ieee80211_hw hw)

Definition at line 3339 of file phy.c.

bool rtl92d_phy_config_rf_with_headerfile ( struct ieee80211_hw hw,
enum rf_content  content,
enum radio_path  rfpath 
)

Definition at line 825 of file phy.c.

void rtl92d_phy_get_hw_reg_originalvalue ( struct ieee80211_hw hw)

Definition at line 927 of file phy.c.

void rtl92d_phy_iq_calibrate ( struct ieee80211_hw hw)

Definition at line 2384 of file phy.c.

void rtl92d_phy_lc_calibrate ( struct ieee80211_hw hw)

Definition at line 2792 of file phy.c.

bool rtl92d_phy_mac_config ( struct ieee80211_hw hw)

Definition at line 380 of file phy.c.

u32 rtl92d_phy_query_bb_reg ( struct ieee80211_hw hw,
u32  regaddr,
u32  bitmask 
)

Definition at line 200 of file phy.c.

u32 rtl92d_phy_query_rf_reg ( struct ieee80211_hw hw,
enum radio_path  rfpath,
u32  regaddr,
u32  bitmask 
)

Definition at line 329 of file phy.c.

void rtl92d_phy_reload_iqk_setting ( struct ieee80211_hw hw,
u8  channel 
)

Definition at line 2511 of file phy.c.

void rtl92d_phy_reset_iqk_result ( struct ieee80211_hw hw)

Definition at line 2844 of file phy.c.

bool rtl92d_phy_rf_config ( struct ieee80211_hw hw)

Definition at line 820 of file phy.c.

void rtl92d_phy_scan_operation_backup ( struct ieee80211_hw hw,
u8  operation 
)

Definition at line 1044 of file phy.c.

void rtl92d_phy_set_bb_reg ( struct ieee80211_hw hw,
u32  regaddr,
u32  bitmask,
u32  data 
)

Definition at line 229 of file phy.c.

void rtl92d_phy_set_bw_mode ( struct ieee80211_hw hw,
enum nl80211_channel_type  ch_type 
)

Definition at line 1072 of file phy.c.

bool rtl92d_phy_set_io_cmd ( struct ieee80211_hw hw,
enum io_type  iotype 
)

Definition at line 3094 of file phy.c.

void rtl92d_phy_set_poweron ( struct ieee80211_hw hw)

Definition at line 3417 of file phy.c.

bool rtl92d_phy_set_rf_power_state ( struct ieee80211_hw hw,
enum rf_pwrstate  rfpwr_state 
)

Definition at line 3197 of file phy.c.

void rtl92d_phy_set_rf_reg ( struct ieee80211_hw hw,
enum radio_path  rfpath,
u32  regaddr,
u32  bitmask,
u32  data 
)

Definition at line 350 of file phy.c.

void rtl92d_phy_set_txpower_level ( struct ieee80211_hw hw,
u8  channel 
)

Definition at line 1025 of file phy.c.

u8 rtl92d_phy_sw_chnl ( struct ieee80211_hw hw)

Definition at line 2983 of file phy.c.

void rtl92d_update_bbrf_configuration ( struct ieee80211_hw hw)

Definition at line 3493 of file phy.c.