diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192de/phy.h')
| -rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/phy.h | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/phy.h b/drivers/net/wireless/rtlwifi/rtl8192de/phy.h index f074952bf25c..48d5c6835b6a 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/phy.h +++ b/drivers/net/wireless/rtlwifi/rtl8192de/phy.h | |||
| @@ -39,9 +39,7 @@ | |||
| 39 | #define RT_CANNOT_IO(hw) false | 39 | #define RT_CANNOT_IO(hw) false |
| 40 | #define HIGHPOWER_RADIOA_ARRAYLEN 22 | 40 | #define HIGHPOWER_RADIOA_ARRAYLEN 22 |
| 41 | 41 | ||
| 42 | #define IQK_ADDA_REG_NUM 16 | ||
| 43 | #define MAX_TOLERANCE 5 | 42 | #define MAX_TOLERANCE 5 |
| 44 | #define IQK_DELAY_TIME 1 | ||
| 45 | 43 | ||
| 46 | #define APK_BB_REG_NUM 5 | 44 | #define APK_BB_REG_NUM 5 |
| 47 | #define APK_AFE_REG_NUM 16 | 45 | #define APK_AFE_REG_NUM 16 |
| @@ -127,34 +125,32 @@ static inline void rtl92d_release_cckandrw_pagea_ctl(struct ieee80211_hw *hw, | |||
| 127 | *flag); | 125 | *flag); |
| 128 | } | 126 | } |
| 129 | 127 | ||
| 130 | extern u32 rtl92d_phy_query_bb_reg(struct ieee80211_hw *hw, | 128 | u32 rtl92d_phy_query_bb_reg(struct ieee80211_hw *hw, |
| 131 | u32 regaddr, u32 bitmask); | 129 | u32 regaddr, u32 bitmask); |
| 132 | extern void rtl92d_phy_set_bb_reg(struct ieee80211_hw *hw, | 130 | void rtl92d_phy_set_bb_reg(struct ieee80211_hw *hw, |
| 133 | u32 regaddr, u32 bitmask, u32 data); | 131 | u32 regaddr, u32 bitmask, u32 data); |
| 134 | extern u32 rtl92d_phy_query_rf_reg(struct ieee80211_hw *hw, | 132 | u32 rtl92d_phy_query_rf_reg(struct ieee80211_hw *hw, |
| 135 | enum radio_path rfpath, u32 regaddr, | 133 | enum radio_path rfpath, u32 regaddr, |
| 136 | u32 bitmask); | 134 | u32 bitmask); |
| 137 | extern void rtl92d_phy_set_rf_reg(struct ieee80211_hw *hw, | 135 | void rtl92d_phy_set_rf_reg(struct ieee80211_hw *hw, |
| 138 | enum radio_path rfpath, u32 regaddr, | 136 | enum radio_path rfpath, u32 regaddr, |
| 139 | u32 bitmask, u32 data); | 137 | u32 bitmask, u32 data); |
| 140 | extern bool rtl92d_phy_mac_config(struct ieee80211_hw *hw); | 138 | bool rtl92d_phy_mac_config(struct ieee80211_hw *hw); |
| 141 | extern bool rtl92d_phy_bb_config(struct ieee80211_hw *hw); | 139 | bool rtl92d_phy_bb_config(struct ieee80211_hw *hw); |
| 142 | extern bool rtl92d_phy_rf_config(struct ieee80211_hw *hw); | 140 | bool rtl92d_phy_rf_config(struct ieee80211_hw *hw); |
| 143 | extern bool rtl92c_phy_config_rf_with_feaderfile(struct ieee80211_hw *hw, | 141 | bool rtl92c_phy_config_rf_with_feaderfile(struct ieee80211_hw *hw, |
| 144 | enum radio_path rfpath); | 142 | enum radio_path rfpath); |
| 145 | extern void rtl92d_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); | 143 | void rtl92d_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); |
| 146 | extern void rtl92d_phy_set_txpower_level(struct ieee80211_hw *hw, u8 channel); | 144 | void rtl92d_phy_set_txpower_level(struct ieee80211_hw *hw, u8 channel); |
| 147 | extern void rtl92d_phy_scan_operation_backup(struct ieee80211_hw *hw, | 145 | void rtl92d_phy_set_bw_mode(struct ieee80211_hw *hw, |
| 148 | u8 operation); | 146 | enum nl80211_channel_type ch_type); |
| 149 | extern void rtl92d_phy_set_bw_mode(struct ieee80211_hw *hw, | 147 | u8 rtl92d_phy_sw_chnl(struct ieee80211_hw *hw); |
| 150 | enum nl80211_channel_type ch_type); | ||
| 151 | extern u8 rtl92d_phy_sw_chnl(struct ieee80211_hw *hw); | ||
| 152 | bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, | 148 | bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, |
| 153 | enum rf_content content, | 149 | enum rf_content content, |
| 154 | enum radio_path rfpath); | 150 | enum radio_path rfpath); |
| 155 | bool rtl92d_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype); | 151 | bool rtl92d_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype); |
| 156 | extern bool rtl92d_phy_set_rf_power_state(struct ieee80211_hw *hw, | 152 | bool rtl92d_phy_set_rf_power_state(struct ieee80211_hw *hw, |
| 157 | enum rf_pwrstate rfpwr_state); | 153 | enum rf_pwrstate rfpwr_state); |
| 158 | 154 | ||
| 159 | void rtl92d_phy_config_macphymode(struct ieee80211_hw *hw); | 155 | void rtl92d_phy_config_macphymode(struct ieee80211_hw *hw); |
| 160 | void rtl92d_phy_config_macphymode_info(struct ieee80211_hw *hw); | 156 | void rtl92d_phy_config_macphymode_info(struct ieee80211_hw *hw); |
| @@ -173,6 +169,5 @@ void rtl92d_acquire_cckandrw_pagea_ctl(struct ieee80211_hw *hw, | |||
| 173 | unsigned long *flag); | 169 | unsigned long *flag); |
| 174 | u8 rtl92d_get_rightchnlplace_for_iqk(u8 chnl); | 170 | u8 rtl92d_get_rightchnlplace_for_iqk(u8 chnl); |
| 175 | void rtl92d_phy_reload_iqk_setting(struct ieee80211_hw *hw, u8 channel); | 171 | void rtl92d_phy_reload_iqk_setting(struct ieee80211_hw *hw, u8 channel); |
| 176 | void rtl92d_phy_iq_calibrate(struct ieee80211_hw *hw); | ||
| 177 | 172 | ||
| 178 | #endif | 173 | #endif |
