diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8188ee/phy.h')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/phy.h | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h index 89f0f1ef1465..b29bd77210f4 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h | |||
@@ -11,10 +11,6 @@ | |||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
12 | * more details. | 12 | * more details. |
13 | * | 13 | * |
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | ||
17 | * | ||
18 | * The full GNU General Public License is included in this distribution in the | 14 | * The full GNU General Public License is included in this distribution in the |
19 | * file called LICENSE. | 15 | * file called LICENSE. |
20 | * | 16 | * |
@@ -30,33 +26,35 @@ | |||
30 | #ifndef __RTL92C_PHY_H__ | 26 | #ifndef __RTL92C_PHY_H__ |
31 | #define __RTL92C_PHY_H__ | 27 | #define __RTL92C_PHY_H__ |
32 | 28 | ||
33 | /*It must always set to 4, otherwise read efuse table secquence will be wrong.*/ | 29 | /* MAX_TX_COUNT must always set to 4, otherwise read efuse |
34 | #define MAX_TX_COUNT 4 | 30 | * table secquence will be wrong. |
31 | */ | ||
32 | #define MAX_TX_COUNT 4 | ||
35 | 33 | ||
36 | #define MAX_PRECMD_CNT 16 | 34 | #define MAX_PRECMD_CNT 16 |
37 | #define MAX_RFDEPENDCMD_CNT 16 | 35 | #define MAX_RFDEPENDCMD_CNT 16 |
38 | #define MAX_POSTCMD_CNT 16 | 36 | #define MAX_POSTCMD_CNT 16 |
39 | 37 | ||
40 | #define MAX_DOZE_WAITING_TIMES_9x 64 | 38 | #define MAX_DOZE_WAITING_TIMES_9x 64 |
41 | 39 | ||
42 | #define RT_CANNOT_IO(hw) false | 40 | #define RT_CANNOT_IO(hw) false |
43 | #define HIGHPOWER_RADIOA_ARRAYLEN 22 | 41 | #define HIGHPOWER_RADIOA_ARRAYLEN 22 |
44 | 42 | ||
45 | #define IQK_ADDA_REG_NUM 16 | 43 | #define IQK_ADDA_REG_NUM 16 |
46 | #define IQK_BB_REG_NUM 9 | 44 | #define IQK_BB_REG_NUM 9 |
47 | #define MAX_TOLERANCE 5 | 45 | #define MAX_TOLERANCE 5 |
48 | #define IQK_DELAY_TIME 10 | 46 | #define IQK_DELAY_TIME 10 |
49 | #define IDX_MAP 15 | 47 | #define INDEX_MAPPING_NUM 15 |
50 | 48 | ||
51 | #define APK_BB_REG_NUM 5 | 49 | #define APK_BB_REG_NUM 5 |
52 | #define APK_AFE_REG_NUM 16 | 50 | #define APK_AFE_REG_NUM 16 |
53 | #define APK_CURVE_REG_NUM 4 | 51 | #define APK_CURVE_REG_NUM 4 |
54 | #define PATH_NUM 2 | 52 | #define PATH_NUM 2 |
55 | 53 | ||
56 | #define LOOP_LIMIT 5 | 54 | #define LOOP_LIMIT 5 |
57 | #define MAX_STALL_TIME 50 | 55 | #define MAX_STALL_TIME 50 |
58 | #define ANTENNADIVERSITYVALUE 0x80 | 56 | #define ANTENNADIVERSITYVALUE 0x80 |
59 | #define MAX_TXPWR_IDX_NMODE_92S 63 | 57 | #define MAX_TXPWR_IDX_NMODE_92S 63 |
60 | #define RESET_CNT_LIMIT 3 | 58 | #define RESET_CNT_LIMIT 3 |
61 | 59 | ||
62 | #define IQK_ADDA_REG_NUM 16 | 60 | #define IQK_ADDA_REG_NUM 16 |
@@ -66,8 +64,8 @@ | |||
66 | 64 | ||
67 | #define CT_OFFSET_MAC_ADDR 0X16 | 65 | #define CT_OFFSET_MAC_ADDR 0X16 |
68 | 66 | ||
69 | #define CT_OFFSET_CCK_TX_PWR_IDX 0x5A | 67 | #define CT_OFFSET_CCK_TX_PWR_IDX 0x5A |
70 | #define CT_OFFSET_HT401S_TX_PWR_IDX 0x60 | 68 | #define CT_OFFSET_HT401S_TX_PWR_IDX 0x60 |
71 | #define CT_OFFSET_HT402S_TX_PWR_IDX_DIFF 0x66 | 69 | #define CT_OFFSET_HT402S_TX_PWR_IDX_DIFF 0x66 |
72 | #define CT_OFFSET_HT20_TX_PWR_IDX_DIFF 0x69 | 70 | #define CT_OFFSET_HT20_TX_PWR_IDX_DIFF 0x69 |
73 | #define CT_OFFSET_OFDM_TX_PWR_IDX_DIFF 0x6C | 71 | #define CT_OFFSET_OFDM_TX_PWR_IDX_DIFF 0x6C |
@@ -75,13 +73,13 @@ | |||
75 | #define CT_OFFSET_HT40_MAX_PWR_OFFSET 0x6F | 73 | #define CT_OFFSET_HT40_MAX_PWR_OFFSET 0x6F |
76 | #define CT_OFFSET_HT20_MAX_PWR_OFFSET 0x72 | 74 | #define CT_OFFSET_HT20_MAX_PWR_OFFSET 0x72 |
77 | 75 | ||
78 | #define CT_OFFSET_CHANNEL_PLAH 0x75 | 76 | #define CT_OFFSET_CHANNEL_PLAH 0x75 |
79 | #define CT_OFFSET_THERMAL_METER 0x78 | 77 | #define CT_OFFSET_THERMAL_METER 0x78 |
80 | #define CT_OFFSET_RF_OPTION 0x79 | 78 | #define CT_OFFSET_RF_OPTION 0x79 |
81 | #define CT_OFFSET_VERSION 0x7E | 79 | #define CT_OFFSET_VERSION 0x7E |
82 | #define CT_OFFSET_CUSTOMER_ID 0x7F | 80 | #define CT_OFFSET_CUSTOMER_ID 0x7F |
83 | 81 | ||
84 | #define RTL92C_MAX_PATH_NUM 2 | 82 | #define RTL92C_MAX_PATH_NUM 2 |
85 | 83 | ||
86 | enum swchnlcmd_id { | 84 | enum swchnlcmd_id { |
87 | CMDID_END, | 85 | CMDID_END, |
@@ -160,7 +158,6 @@ struct r_antenna_select_cck { | |||
160 | u8 r_ccktx_enable:4; | 158 | u8 r_ccktx_enable:4; |
161 | }; | 159 | }; |
162 | 160 | ||
163 | |||
164 | struct efuse_contents { | 161 | struct efuse_contents { |
165 | u8 mac_addr[ETH_ALEN]; | 162 | u8 mac_addr[ETH_ALEN]; |
166 | u8 cck_tx_power_idx[6]; | 163 | u8 cck_tx_power_idx[6]; |
@@ -192,10 +189,10 @@ struct tx_power_struct { | |||
192 | }; | 189 | }; |
193 | 190 | ||
194 | enum _ANT_DIV_TYPE { | 191 | enum _ANT_DIV_TYPE { |
195 | NO_ANTDIV = 0xFF, | 192 | NO_ANTDIV = 0xFF, |
196 | CG_TRX_HW_ANTDIV = 0x01, | 193 | CG_TRX_HW_ANTDIV = 0x01, |
197 | CGCS_RX_HW_ANTDIV = 0x02, | 194 | CGCS_RX_HW_ANTDIV = 0x02, |
198 | FIXED_HW_ANTDIV = 0x03, | 195 | FIXED_HW_ANTDIV = 0x03, |
199 | CG_TRX_SMART_ANTDIV = 0x04, | 196 | CG_TRX_SMART_ANTDIV = 0x04, |
200 | CGCS_RX_SW_ANTDIV = 0x05, | 197 | CGCS_RX_SW_ANTDIV = 0x05, |
201 | }; | 198 | }; |
@@ -217,6 +214,8 @@ void rtl88e_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); | |||
217 | void rtl88e_phy_get_txpower_level(struct ieee80211_hw *hw, | 214 | void rtl88e_phy_get_txpower_level(struct ieee80211_hw *hw, |
218 | long *powerlevel); | 215 | long *powerlevel); |
219 | void rtl88e_phy_set_txpower_level(struct ieee80211_hw *hw, u8 channel); | 216 | void rtl88e_phy_set_txpower_level(struct ieee80211_hw *hw, u8 channel); |
217 | void rtl88e_phy_scan_operation_backup(struct ieee80211_hw *hw, | ||
218 | u8 operation); | ||
220 | void rtl88e_phy_set_bw_mode_callback(struct ieee80211_hw *hw); | 219 | void rtl88e_phy_set_bw_mode_callback(struct ieee80211_hw *hw); |
221 | void rtl88e_phy_set_bw_mode(struct ieee80211_hw *hw, | 220 | void rtl88e_phy_set_bw_mode(struct ieee80211_hw *hw, |
222 | enum nl80211_channel_type ch_type); | 221 | enum nl80211_channel_type ch_type); |