diff options
Diffstat (limited to 'drivers/net/wireless/b43/tables_nphy.h')
-rw-r--r-- | drivers/net/wireless/b43/tables_nphy.h | 71 |
1 files changed, 44 insertions, 27 deletions
diff --git a/drivers/net/wireless/b43/tables_nphy.h b/drivers/net/wireless/b43/tables_nphy.h index 4d498b053ec7..51636d02f8b1 100644 --- a/drivers/net/wireless/b43/tables_nphy.h +++ b/drivers/net/wireless/b43/tables_nphy.h | |||
@@ -46,6 +46,11 @@ struct b43_nphy_channeltab_entry { | |||
46 | 46 | ||
47 | struct b43_wldev; | 47 | struct b43_wldev; |
48 | 48 | ||
49 | struct nphy_txiqcal_ladder { | ||
50 | u8 percent; | ||
51 | u8 g_env; | ||
52 | }; | ||
53 | |||
49 | /* Upload the default register value table. | 54 | /* Upload the default register value table. |
50 | * If "ghz5" is true, we upload the 5Ghz table. Otherwise the 2.4Ghz | 55 | * If "ghz5" is true, we upload the 5Ghz table. Otherwise the 2.4Ghz |
51 | * table is uploaded. If "ignore_uploadflag" is true, we upload any value | 56 | * table is uploaded. If "ignore_uploadflag" is true, we upload any value |
@@ -126,34 +131,46 @@ b43_nphy_get_chantabent(struct b43_wldev *dev, u8 channel); | |||
126 | #define B43_NTAB_C1_LOFEEDTH B43_NTAB16(0x1B, 0x1C0) /* Local Oscillator Feed Through Lookup Table Core 1 */ | 131 | #define B43_NTAB_C1_LOFEEDTH B43_NTAB16(0x1B, 0x1C0) /* Local Oscillator Feed Through Lookup Table Core 1 */ |
127 | #define B43_NTAB_C1_LOFEEDTH_SIZE 128 | 132 | #define B43_NTAB_C1_LOFEEDTH_SIZE 128 |
128 | 133 | ||
129 | void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value); | 134 | #define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_40_SIZE 18 |
135 | #define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_20_SIZE 18 | ||
136 | #define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_40_SIZE 18 | ||
137 | #define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_20_SIZE 18 | ||
138 | #define B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3 11 | ||
139 | #define B43_NTAB_TX_IQLO_CAL_STARTCOEFS 9 | ||
140 | #define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL_REV3 12 | ||
141 | #define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL 10 | ||
142 | #define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL 10 | ||
143 | #define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL_REV3 12 | ||
130 | 144 | ||
131 | extern const u8 b43_ntab_adjustpower0[]; | 145 | void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value); |
132 | extern const u8 b43_ntab_adjustpower1[]; | ||
133 | extern const u16 b43_ntab_bdi[]; | ||
134 | extern const u32 b43_ntab_channelest[]; | ||
135 | extern const u8 b43_ntab_estimatepowerlt0[]; | ||
136 | extern const u8 b43_ntab_estimatepowerlt1[]; | ||
137 | extern const u8 b43_ntab_framelookup[]; | ||
138 | extern const u32 b43_ntab_framestruct[]; | ||
139 | extern const u32 b43_ntab_gainctl0[]; | ||
140 | extern const u32 b43_ntab_gainctl1[]; | ||
141 | extern const u32 b43_ntab_intlevel[]; | ||
142 | extern const u32 b43_ntab_iqlt0[]; | ||
143 | extern const u32 b43_ntab_iqlt1[]; | ||
144 | extern const u16 b43_ntab_loftlt0[]; | ||
145 | extern const u16 b43_ntab_loftlt1[]; | ||
146 | extern const u8 b43_ntab_mcs[]; | ||
147 | extern const u32 b43_ntab_noisevar10[]; | ||
148 | extern const u32 b43_ntab_noisevar11[]; | ||
149 | extern const u16 b43_ntab_pilot[]; | ||
150 | extern const u32 b43_ntab_pilotlt[]; | ||
151 | extern const u32 b43_ntab_tdi20a0[]; | ||
152 | extern const u32 b43_ntab_tdi20a1[]; | ||
153 | extern const u32 b43_ntab_tdi40a0[]; | ||
154 | extern const u32 b43_ntab_tdi40a1[]; | ||
155 | extern const u32 b43_ntab_tdtrn[]; | ||
156 | extern const u32 b43_ntab_tmap[]; | ||
157 | 146 | ||
147 | void b43_nphy_rev0_1_2_tables_init(struct b43_wldev *dev); | ||
148 | void b43_nphy_rev3plus_tables_init(struct b43_wldev *dev); | ||
149 | |||
150 | extern const u32 b43_ntab_tx_gain_rev0_1_2[]; | ||
151 | extern const u32 b43_ntab_tx_gain_rev3plus_2ghz[]; | ||
152 | extern const u32 b43_ntab_tx_gain_rev3_5ghz[]; | ||
153 | extern const u32 b43_ntab_tx_gain_rev4_5ghz[]; | ||
154 | extern const u32 b43_ntab_tx_gain_rev5plus_5ghz[]; | ||
155 | |||
156 | extern const u32 txpwrctrl_tx_gain_ipa[]; | ||
157 | extern const u32 txpwrctrl_tx_gain_ipa_rev5[]; | ||
158 | extern const u32 txpwrctrl_tx_gain_ipa_rev6[]; | ||
159 | extern const u32 txpwrctrl_tx_gain_ipa_5g[]; | ||
160 | extern const u16 tbl_iqcal_gainparams[2][9][8]; | ||
161 | extern const struct nphy_txiqcal_ladder ladder_lo[]; | ||
162 | extern const struct nphy_txiqcal_ladder ladder_iq[]; | ||
163 | extern const u16 loscale[]; | ||
164 | |||
165 | extern const u16 tbl_tx_iqlo_cal_loft_ladder_40[]; | ||
166 | extern const u16 tbl_tx_iqlo_cal_loft_ladder_20[]; | ||
167 | extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_40[]; | ||
168 | extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_20[]; | ||
169 | extern const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3[]; | ||
170 | extern const u16 tbl_tx_iqlo_cal_startcoefs[]; | ||
171 | extern const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3[]; | ||
172 | extern const u16 tbl_tx_iqlo_cal_cmds_recal[]; | ||
173 | extern const u16 tbl_tx_iqlo_cal_cmds_fullcal[]; | ||
174 | extern const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3[]; | ||
158 | 175 | ||
159 | #endif /* B43_TABLES_NPHY_H_ */ | 176 | #endif /* B43_TABLES_NPHY_H_ */ |