diff options
Diffstat (limited to 'drivers/net/wireless/b43/tables_nphy.h')
-rw-r--r-- | drivers/net/wireless/b43/tables_nphy.h | 100 |
1 files changed, 72 insertions, 28 deletions
diff --git a/drivers/net/wireless/b43/tables_nphy.h b/drivers/net/wireless/b43/tables_nphy.h index 4d498b053ec7..9c1c6ecd3672 100644 --- a/drivers/net/wireless/b43/tables_nphy.h +++ b/drivers/net/wireless/b43/tables_nphy.h | |||
@@ -46,6 +46,27 @@ 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 | |||
54 | struct nphy_rf_control_override_rev2 { | ||
55 | u8 addr0; | ||
56 | u8 addr1; | ||
57 | u16 bmask; | ||
58 | u8 shift; | ||
59 | }; | ||
60 | |||
61 | struct nphy_rf_control_override_rev3 { | ||
62 | u16 val_mask; | ||
63 | u8 val_shift; | ||
64 | u8 en_addr0; | ||
65 | u8 val_addr0; | ||
66 | u8 en_addr1; | ||
67 | u8 val_addr1; | ||
68 | }; | ||
69 | |||
49 | /* Upload the default register value table. | 70 | /* Upload the default register value table. |
50 | * If "ghz5" is true, we upload the 5Ghz table. Otherwise the 2.4Ghz | 71 | * 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 | 72 | * table is uploaded. If "ignore_uploadflag" is true, we upload any value |
@@ -126,34 +147,57 @@ 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 */ | 147 | #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 | 148 | #define B43_NTAB_C1_LOFEEDTH_SIZE 128 |
128 | 149 | ||
150 | #define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_40_SIZE 18 | ||
151 | #define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_20_SIZE 18 | ||
152 | #define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_40_SIZE 18 | ||
153 | #define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_20_SIZE 18 | ||
154 | #define B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3 11 | ||
155 | #define B43_NTAB_TX_IQLO_CAL_STARTCOEFS 9 | ||
156 | #define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL_REV3 12 | ||
157 | #define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL 10 | ||
158 | #define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL 10 | ||
159 | #define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL_REV3 12 | ||
160 | |||
161 | u32 b43_ntab_read(struct b43_wldev *dev, u32 offset); | ||
162 | void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset, | ||
163 | unsigned int nr_elements, void *_data); | ||
129 | void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value); | 164 | void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value); |
130 | 165 | void b43_ntab_write_bulk(struct b43_wldev *dev, u32 offset, | |
131 | extern const u8 b43_ntab_adjustpower0[]; | 166 | unsigned int nr_elements, const void *_data); |
132 | extern const u8 b43_ntab_adjustpower1[]; | 167 | |
133 | extern const u16 b43_ntab_bdi[]; | 168 | void b43_nphy_rev0_1_2_tables_init(struct b43_wldev *dev); |
134 | extern const u32 b43_ntab_channelest[]; | 169 | void b43_nphy_rev3plus_tables_init(struct b43_wldev *dev); |
135 | extern const u8 b43_ntab_estimatepowerlt0[]; | 170 | |
136 | extern const u8 b43_ntab_estimatepowerlt1[]; | 171 | extern const u32 b43_ntab_tx_gain_rev0_1_2[]; |
137 | extern const u8 b43_ntab_framelookup[]; | 172 | extern const u32 b43_ntab_tx_gain_rev3plus_2ghz[]; |
138 | extern const u32 b43_ntab_framestruct[]; | 173 | extern const u32 b43_ntab_tx_gain_rev3_5ghz[]; |
139 | extern const u32 b43_ntab_gainctl0[]; | 174 | extern const u32 b43_ntab_tx_gain_rev4_5ghz[]; |
140 | extern const u32 b43_ntab_gainctl1[]; | 175 | extern const u32 b43_ntab_tx_gain_rev5plus_5ghz[]; |
141 | extern const u32 b43_ntab_intlevel[]; | 176 | |
142 | extern const u32 b43_ntab_iqlt0[]; | 177 | extern const u32 txpwrctrl_tx_gain_ipa[]; |
143 | extern const u32 b43_ntab_iqlt1[]; | 178 | extern const u32 txpwrctrl_tx_gain_ipa_rev5[]; |
144 | extern const u16 b43_ntab_loftlt0[]; | 179 | extern const u32 txpwrctrl_tx_gain_ipa_rev6[]; |
145 | extern const u16 b43_ntab_loftlt1[]; | 180 | extern const u32 txpwrctrl_tx_gain_ipa_5g[]; |
146 | extern const u8 b43_ntab_mcs[]; | 181 | extern const u16 tbl_iqcal_gainparams[2][9][8]; |
147 | extern const u32 b43_ntab_noisevar10[]; | 182 | extern const struct nphy_txiqcal_ladder ladder_lo[]; |
148 | extern const u32 b43_ntab_noisevar11[]; | 183 | extern const struct nphy_txiqcal_ladder ladder_iq[]; |
149 | extern const u16 b43_ntab_pilot[]; | 184 | extern const u16 loscale[]; |
150 | extern const u32 b43_ntab_pilotlt[]; | 185 | |
151 | extern const u32 b43_ntab_tdi20a0[]; | 186 | extern const u16 tbl_tx_iqlo_cal_loft_ladder_40[]; |
152 | extern const u32 b43_ntab_tdi20a1[]; | 187 | extern const u16 tbl_tx_iqlo_cal_loft_ladder_20[]; |
153 | extern const u32 b43_ntab_tdi40a0[]; | 188 | extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_40[]; |
154 | extern const u32 b43_ntab_tdi40a1[]; | 189 | extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_20[]; |
155 | extern const u32 b43_ntab_tdtrn[]; | 190 | extern const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3[]; |
156 | extern const u32 b43_ntab_tmap[]; | 191 | extern const u16 tbl_tx_iqlo_cal_startcoefs[]; |
157 | 192 | extern const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3[]; | |
193 | extern const u16 tbl_tx_iqlo_cal_cmds_recal[]; | ||
194 | extern const u16 tbl_tx_iqlo_cal_cmds_fullcal[]; | ||
195 | extern const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3[]; | ||
196 | extern const s16 tbl_tx_filter_coef_rev4[7][15]; | ||
197 | |||
198 | extern const struct nphy_rf_control_override_rev2 | ||
199 | tbl_rf_control_override_rev2[]; | ||
200 | extern const struct nphy_rf_control_override_rev3 | ||
201 | tbl_rf_control_override_rev3[]; | ||
158 | 202 | ||
159 | #endif /* B43_TABLES_NPHY_H_ */ | 203 | #endif /* B43_TABLES_NPHY_H_ */ |