Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Mar 24-27, 2025, special US time zones
Register
Loading...
v3.1
  1#ifndef B43_TABLES_NPHY_H_
  2#define B43_TABLES_NPHY_H_
  3
  4#include <linux/types.h>
  5
  6struct b43_phy_n_sfo_cfg {
  7	u16 phy_bw1a;
  8	u16 phy_bw2;
  9	u16 phy_bw3;
 10	u16 phy_bw4;
 11	u16 phy_bw5;
 12	u16 phy_bw6;
 13};
 14
 15struct b43_wldev;
 16
 17struct nphy_txiqcal_ladder {
 18	u8 percent;
 19	u8 g_env;
 20};
 21
 22struct nphy_rf_control_override_rev2 {
 23	u8 addr0;
 24	u8 addr1;
 25	u16 bmask;
 26	u8 shift;
 27};
 28
 29struct nphy_rf_control_override_rev3 {
 30	u16 val_mask;
 31	u8 val_shift;
 32	u8 en_addr0;
 33	u8 val_addr0;
 34	u8 en_addr1;
 35	u8 val_addr1;
 36};
 37
 
 
 
 
 
 
 
 
 38struct nphy_gain_ctl_workaround_entry {
 39	s8 lna1_gain[4];
 40	s8 lna2_gain[4];
 41	u8 gain_db[10];
 42	u8 gain_bits[10];
 43
 44	u16 init_gain;
 45	u16 rfseq_init[4];
 46
 47	u16 cliphi_gain;
 48	u16 clipmd_gain;
 49	u16 cliplo_gain;
 50
 51	u16 crsmin;
 52	u16 crsminl;
 53	u16 crsminu;
 54
 55	u16 nbclip;
 56	u16 wlclip;
 57};
 58
 59/* Get entry with workaround values for gain ctl. Does not return NULL. */
 60struct nphy_gain_ctl_workaround_entry *b43_nphy_get_gain_ctl_workaround_ent(
 61	struct b43_wldev *dev, bool ghz5, bool ext_lna);
 62
 63
 64/* The N-PHY tables. */
 65#define B43_NTAB_TYPEMASK		0xF0000000
 66#define B43_NTAB_8BIT			0x10000000
 67#define B43_NTAB_16BIT			0x20000000
 68#define B43_NTAB_32BIT			0x30000000
 69#define B43_NTAB8(table, offset)	(((table) << 10) | (offset) | B43_NTAB_8BIT)
 70#define B43_NTAB16(table, offset)	(((table) << 10) | (offset) | B43_NTAB_16BIT)
 71#define B43_NTAB32(table, offset)	(((table) << 10) | (offset) | B43_NTAB_32BIT)
 72
 73/* Static N-PHY tables */
 74#define B43_NTAB_FRAMESTRUCT		B43_NTAB32(0x0A, 0x000) /* Frame Struct Table */
 75#define B43_NTAB_FRAMESTRUCT_SIZE	832
 76#define B43_NTAB_FRAMELT		B43_NTAB8 (0x18, 0x000) /* Frame Lookup Table */
 77#define B43_NTAB_FRAMELT_SIZE		32
 78#define B43_NTAB_TMAP			B43_NTAB32(0x0C, 0x000) /* T Map Table */
 79#define B43_NTAB_TMAP_SIZE		448
 80#define B43_NTAB_TDTRN			B43_NTAB32(0x0E, 0x000) /* TDTRN Table */
 81#define B43_NTAB_TDTRN_SIZE		704
 82#define B43_NTAB_INTLEVEL		B43_NTAB32(0x0D, 0x000) /* Int Level Table */
 83#define B43_NTAB_INTLEVEL_SIZE		7
 84#define B43_NTAB_PILOT			B43_NTAB16(0x0B, 0x000) /* Pilot Table */
 85#define B43_NTAB_PILOT_SIZE		88
 86#define B43_NTAB_PILOTLT		B43_NTAB32(0x14, 0x000) /* Pilot Lookup Table */
 87#define B43_NTAB_PILOTLT_SIZE		6
 88#define B43_NTAB_TDI20A0		B43_NTAB32(0x13, 0x080) /* TDI Table 20 Antenna 0 */
 89#define B43_NTAB_TDI20A0_SIZE		55
 90#define B43_NTAB_TDI20A1		B43_NTAB32(0x13, 0x100) /* TDI Table 20 Antenna 1 */
 91#define B43_NTAB_TDI20A1_SIZE		55
 92#define B43_NTAB_TDI40A0		B43_NTAB32(0x13, 0x280) /* TDI Table 40 Antenna 0 */
 93#define B43_NTAB_TDI40A0_SIZE		110
 94#define B43_NTAB_TDI40A1		B43_NTAB32(0x13, 0x300) /* TDI Table 40 Antenna 1 */
 95#define B43_NTAB_TDI40A1_SIZE		110
 96#define B43_NTAB_BDI			B43_NTAB16(0x15, 0x000) /* BDI Table */
 97#define B43_NTAB_BDI_SIZE		6
 98#define B43_NTAB_CHANEST		B43_NTAB32(0x16, 0x000) /* Channel Estimate Table */
 99#define B43_NTAB_CHANEST_SIZE		96
100#define B43_NTAB_MCS			B43_NTAB8 (0x12, 0x000) /* MCS Table */
101#define B43_NTAB_MCS_SIZE		128
102
103/* Volatile N-PHY tables */
104#define B43_NTAB_NOISEVAR10		B43_NTAB32(0x10, 0x000) /* Noise Var Table 10 */
105#define B43_NTAB_NOISEVAR10_SIZE	256
106#define B43_NTAB_NOISEVAR11		B43_NTAB32(0x10, 0x080) /* Noise Var Table 11 */
107#define B43_NTAB_NOISEVAR11_SIZE	256
108#define B43_NTAB_C0_ESTPLT		B43_NTAB8 (0x1A, 0x000) /* Estimate Power Lookup Table Core 0 */
109#define B43_NTAB_C0_ESTPLT_SIZE		64
110#define B43_NTAB_C1_ESTPLT		B43_NTAB8 (0x1B, 0x000) /* Estimate Power Lookup Table Core 1 */
111#define B43_NTAB_C1_ESTPLT_SIZE		64
112#define B43_NTAB_C0_ADJPLT		B43_NTAB8 (0x1A, 0x040) /* Adjust Power Lookup Table Core 0 */
113#define B43_NTAB_C0_ADJPLT_SIZE		128
114#define B43_NTAB_C1_ADJPLT		B43_NTAB8 (0x1B, 0x040) /* Adjust Power Lookup Table Core 1 */
115#define B43_NTAB_C1_ADJPLT_SIZE		128
116#define B43_NTAB_C0_GAINCTL		B43_NTAB32(0x1A, 0x0C0) /* Gain Control Lookup Table Core 0 */
117#define B43_NTAB_C0_GAINCTL_SIZE	128
118#define B43_NTAB_C1_GAINCTL		B43_NTAB32(0x1B, 0x0C0) /* Gain Control Lookup Table Core 1 */
119#define B43_NTAB_C1_GAINCTL_SIZE	128
120#define B43_NTAB_C0_IQLT		B43_NTAB32(0x1A, 0x140) /* IQ Lookup Table Core 0 */
121#define B43_NTAB_C0_IQLT_SIZE		128
122#define B43_NTAB_C1_IQLT		B43_NTAB32(0x1B, 0x140) /* IQ Lookup Table Core 1 */
123#define B43_NTAB_C1_IQLT_SIZE		128
124#define B43_NTAB_C0_LOFEEDTH		B43_NTAB16(0x1A, 0x1C0) /* Local Oscillator Feed Through Lookup Table Core 0 */
125#define B43_NTAB_C0_LOFEEDTH_SIZE	128
 
 
 
 
 
 
 
 
126#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
128
 
 
 
129/* Static N-PHY tables, PHY revision >= 3 */
130#define B43_NTAB_FRAMESTRUCT_R3		B43_NTAB32(10, 000) /* frame struct  */
131#define B43_NTAB_PILOT_R3		B43_NTAB16(11, 000) /* pilot  */
132#define B43_NTAB_TMAP_R3		B43_NTAB32(12, 000) /* TM AP  */
133#define B43_NTAB_INTLEVEL_R3		B43_NTAB32(13, 000) /* INT LV  */
134#define B43_NTAB_TDTRN_R3		B43_NTAB32(14, 000) /* TD TRN  */
135#define B43_NTAB_NOISEVAR0_R3		B43_NTAB32(16, 000) /* noise variance 0  */
136#define B43_NTAB_NOISEVAR1_R3		B43_NTAB32(16, 128) /* noise variance 1  */
137#define B43_NTAB_MCS_R3			B43_NTAB16(18, 000) /* MCS  */
138#define B43_NTAB_TDI20A0_R3		B43_NTAB32(19, 128) /* TDI 20/0  */
139#define B43_NTAB_TDI20A1_R3		B43_NTAB32(19, 256) /* TDI 20/1  */
140#define B43_NTAB_TDI40A0_R3		B43_NTAB32(19, 640) /* TDI 40/0  */
141#define B43_NTAB_TDI40A1_R3		B43_NTAB32(19, 768) /* TDI 40/1  */
142#define B43_NTAB_PILOTLT_R3		B43_NTAB32(20, 000) /* PLT lookup  */
143#define B43_NTAB_CHANEST_R3		B43_NTAB32(22, 000) /* channel estimate  */
144#define B43_NTAB_FRAMELT_R3		B43_NTAB8 (24, 000) /* frame lookup  */
145#define B43_NTAB_C0_ESTPLT_R3		B43_NTAB8 (26, 000) /* estimated power lookup 0  */
146#define B43_NTAB_C1_ESTPLT_R3		B43_NTAB8 (27, 000) /* estimated power lookup 1  */
147#define B43_NTAB_C0_ADJPLT_R3		B43_NTAB8 (26, 064) /* adjusted power lookup 0  */
148#define B43_NTAB_C1_ADJPLT_R3		B43_NTAB8 (27, 064) /* adjusted power lookup 1  */
149#define B43_NTAB_C0_GAINCTL_R3		B43_NTAB32(26, 192) /* gain control lookup 0  */
150#define B43_NTAB_C1_GAINCTL_R3		B43_NTAB32(27, 192) /* gain control lookup 1  */
151#define B43_NTAB_C0_IQLT_R3		B43_NTAB32(26, 320) /* I/Q lookup 0  */
152#define B43_NTAB_C1_IQLT_R3		B43_NTAB32(27, 320) /* I/Q lookup 1  */
153#define B43_NTAB_C0_LOFEEDTH_R3		B43_NTAB16(26, 448) /* Local Oscillator Feed Through lookup 0  */
 
 
 
 
 
154#define B43_NTAB_C1_LOFEEDTH_R3		B43_NTAB16(27, 448) /* Local Oscillator Feed Through lookup 1 */
 
155
156#define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_40_SIZE	18
157#define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_20_SIZE	18
158#define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_40_SIZE	18
159#define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_20_SIZE	18
160#define B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3		11
161#define B43_NTAB_TX_IQLO_CAL_STARTCOEFS			9
162#define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL_REV3		12
163#define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL			10
164#define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL		10
165#define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL_REV3		12
166
167u32 b43_ntab_read(struct b43_wldev *dev, u32 offset);
168void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset,
169			 unsigned int nr_elements, void *_data);
170void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value);
171void b43_ntab_write_bulk(struct b43_wldev *dev, u32 offset,
172			  unsigned int nr_elements, const void *_data);
173
174void b43_nphy_rev0_1_2_tables_init(struct b43_wldev *dev);
175void b43_nphy_rev3plus_tables_init(struct b43_wldev *dev);
 
 
 
176
177extern const u32 b43_ntab_tx_gain_rev0_1_2[];
178extern const u32 b43_ntab_tx_gain_rev3plus_2ghz[];
179extern const u32 b43_ntab_tx_gain_rev3_5ghz[];
180extern const u32 b43_ntab_tx_gain_rev4_5ghz[];
181extern const u32 b43_ntab_tx_gain_rev5plus_5ghz[];
182
183extern const u32 txpwrctrl_tx_gain_ipa[];
184extern const u32 txpwrctrl_tx_gain_ipa_rev5[];
185extern const u32 txpwrctrl_tx_gain_ipa_rev6[];
186extern const u32 txpwrctrl_tx_gain_ipa_5g[];
187extern const u16 tbl_iqcal_gainparams[2][9][8];
188extern const struct nphy_txiqcal_ladder ladder_lo[];
189extern const struct nphy_txiqcal_ladder ladder_iq[];
190extern const u16 loscale[];
191
192extern const u16 tbl_tx_iqlo_cal_loft_ladder_40[];
193extern const u16 tbl_tx_iqlo_cal_loft_ladder_20[];
194extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_40[];
195extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_20[];
196extern const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3[];
197extern const u16 tbl_tx_iqlo_cal_startcoefs[];
198extern const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3[];
199extern const u16 tbl_tx_iqlo_cal_cmds_recal[];
200extern const u16 tbl_tx_iqlo_cal_cmds_fullcal[];
201extern const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3[];
202extern const s16 tbl_tx_filter_coef_rev4[7][15];
203
204extern const struct nphy_rf_control_override_rev2
205	tbl_rf_control_override_rev2[];
206extern const struct nphy_rf_control_override_rev3
207	tbl_rf_control_override_rev3[];
 
 
208
209#endif /* B43_TABLES_NPHY_H_ */
v3.15
  1#ifndef B43_TABLES_NPHY_H_
  2#define B43_TABLES_NPHY_H_
  3
  4#include <linux/types.h>
  5
  6struct b43_phy_n_sfo_cfg {
  7	u16 phy_bw1a;
  8	u16 phy_bw2;
  9	u16 phy_bw3;
 10	u16 phy_bw4;
 11	u16 phy_bw5;
 12	u16 phy_bw6;
 13};
 14
 15struct b43_wldev;
 16
 17struct nphy_txiqcal_ladder {
 18	u8 percent;
 19	u8 g_env;
 20};
 21
 22struct nphy_rf_control_override_rev2 {
 23	u8 addr0;
 24	u8 addr1;
 25	u16 bmask;
 26	u8 shift;
 27};
 28
 29struct nphy_rf_control_override_rev3 {
 30	u16 val_mask;
 31	u8 val_shift;
 32	u8 en_addr0;
 33	u8 val_addr0;
 34	u8 en_addr1;
 35	u8 val_addr1;
 36};
 37
 38struct nphy_rf_control_override_rev7 {
 39	u16 field;
 40	u16 val_addr_core0;
 41	u16 val_addr_core1;
 42	u16 val_mask;
 43	u8 val_shift;
 44};
 45
 46struct nphy_gain_ctl_workaround_entry {
 47	s8 lna1_gain[4];
 48	s8 lna2_gain[4];
 49	u8 gain_db[10];
 50	u8 gain_bits[10];
 51
 52	u16 init_gain;
 53	u16 rfseq_init[4];
 54
 55	u16 cliphi_gain;
 56	u16 clipmd_gain;
 57	u16 cliplo_gain;
 58
 59	u16 crsmin;
 60	u16 crsminl;
 61	u16 crsminu;
 62
 63	u16 nbclip;
 64	u16 wlclip;
 65};
 66
 67/* Get entry with workaround values for gain ctl. Does not return NULL. */
 68struct nphy_gain_ctl_workaround_entry *b43_nphy_get_gain_ctl_workaround_ent(
 69	struct b43_wldev *dev, bool ghz5, bool ext_lna);
 70
 71
 72/* The N-PHY tables. */
 73#define B43_NTAB_TYPEMASK		0xF0000000
 74#define B43_NTAB_8BIT			0x10000000
 75#define B43_NTAB_16BIT			0x20000000
 76#define B43_NTAB_32BIT			0x30000000
 77#define B43_NTAB8(table, offset)	(((table) << 10) | (offset) | B43_NTAB_8BIT)
 78#define B43_NTAB16(table, offset)	(((table) << 10) | (offset) | B43_NTAB_16BIT)
 79#define B43_NTAB32(table, offset)	(((table) << 10) | (offset) | B43_NTAB_32BIT)
 80
 81/* Static N-PHY tables */
 82#define B43_NTAB_FRAMESTRUCT		B43_NTAB32(0x0A, 0x000) /* Frame Struct Table */
 83#define B43_NTAB_FRAMESTRUCT_SIZE	832
 84#define B43_NTAB_FRAMELT		B43_NTAB8 (0x18, 0x000) /* Frame Lookup Table */
 85#define B43_NTAB_FRAMELT_SIZE		32
 86#define B43_NTAB_TMAP			B43_NTAB32(0x0C, 0x000) /* T Map Table */
 87#define B43_NTAB_TMAP_SIZE		448
 88#define B43_NTAB_TDTRN			B43_NTAB32(0x0E, 0x000) /* TDTRN Table */
 89#define B43_NTAB_TDTRN_SIZE		704
 90#define B43_NTAB_INTLEVEL		B43_NTAB32(0x0D, 0x000) /* Int Level Table */
 91#define B43_NTAB_INTLEVEL_SIZE		7
 92#define B43_NTAB_PILOT			B43_NTAB16(0x0B, 0x000) /* Pilot Table */
 93#define B43_NTAB_PILOT_SIZE		88
 94#define B43_NTAB_PILOTLT		B43_NTAB32(0x14, 0x000) /* Pilot Lookup Table */
 95#define B43_NTAB_PILOTLT_SIZE		6
 96#define B43_NTAB_TDI20A0		B43_NTAB32(0x13, 0x080) /* TDI Table 20 Antenna 0 */
 97#define B43_NTAB_TDI20A0_SIZE		55
 98#define B43_NTAB_TDI20A1		B43_NTAB32(0x13, 0x100) /* TDI Table 20 Antenna 1 */
 99#define B43_NTAB_TDI20A1_SIZE		55
100#define B43_NTAB_TDI40A0		B43_NTAB32(0x13, 0x280) /* TDI Table 40 Antenna 0 */
101#define B43_NTAB_TDI40A0_SIZE		110
102#define B43_NTAB_TDI40A1		B43_NTAB32(0x13, 0x300) /* TDI Table 40 Antenna 1 */
103#define B43_NTAB_TDI40A1_SIZE		110
104#define B43_NTAB_BDI			B43_NTAB16(0x15, 0x000) /* BDI Table */
105#define B43_NTAB_BDI_SIZE		6
106#define B43_NTAB_CHANEST		B43_NTAB32(0x16, 0x000) /* Channel Estimate Table */
107#define B43_NTAB_CHANEST_SIZE		96
108#define B43_NTAB_MCS			B43_NTAB8 (0x12, 0x000) /* MCS Table */
109#define B43_NTAB_MCS_SIZE		128
110
111/* Volatile N-PHY tables */
112#define B43_NTAB_NOISEVAR10		B43_NTAB32(0x10, 0x000) /* Noise Var Table 10 */
113#define B43_NTAB_NOISEVAR10_SIZE	256
114#define B43_NTAB_NOISEVAR11		B43_NTAB32(0x10, 0x080) /* Noise Var Table 11 */
115#define B43_NTAB_NOISEVAR11_SIZE	256
116#define B43_NTAB_C0_ESTPLT		B43_NTAB8 (0x1A, 0x000) /* Estimate Power Lookup Table Core 0 */
117#define B43_NTAB_C0_ESTPLT_SIZE		64
 
 
118#define B43_NTAB_C0_ADJPLT		B43_NTAB8 (0x1A, 0x040) /* Adjust Power Lookup Table Core 0 */
119#define B43_NTAB_C0_ADJPLT_SIZE		128
 
 
120#define B43_NTAB_C0_GAINCTL		B43_NTAB32(0x1A, 0x0C0) /* Gain Control Lookup Table Core 0 */
121#define B43_NTAB_C0_GAINCTL_SIZE	128
 
 
122#define B43_NTAB_C0_IQLT		B43_NTAB32(0x1A, 0x140) /* IQ Lookup Table Core 0 */
123#define B43_NTAB_C0_IQLT_SIZE		128
 
 
124#define B43_NTAB_C0_LOFEEDTH		B43_NTAB16(0x1A, 0x1C0) /* Local Oscillator Feed Through Lookup Table Core 0 */
125#define B43_NTAB_C0_LOFEEDTH_SIZE	128
126#define B43_NTAB_C1_ESTPLT		B43_NTAB8 (0x1B, 0x000) /* Estimate Power Lookup Table Core 1 */
127#define B43_NTAB_C1_ESTPLT_SIZE		64
128#define B43_NTAB_C1_ADJPLT		B43_NTAB8 (0x1B, 0x040) /* Adjust Power Lookup Table Core 1 */
129#define B43_NTAB_C1_ADJPLT_SIZE		128
130#define B43_NTAB_C1_GAINCTL		B43_NTAB32(0x1B, 0x0C0) /* Gain Control Lookup Table Core 1 */
131#define B43_NTAB_C1_GAINCTL_SIZE	128
132#define B43_NTAB_C1_IQLT		B43_NTAB32(0x1B, 0x140) /* IQ Lookup Table Core 1 */
133#define B43_NTAB_C1_IQLT_SIZE		128
134#define B43_NTAB_C1_LOFEEDTH		B43_NTAB16(0x1B, 0x1C0) /* Local Oscillator Feed Through Lookup Table Core 1 */
135#define B43_NTAB_C1_LOFEEDTH_SIZE	128
136
137/* Volatile N-PHY tables, PHY revision >= 3 */
138#define B43_NTAB_ANT_SW_CTL_R3		B43_NTAB16( 9,   0) /* antenna software control */
139
140/* Static N-PHY tables, PHY revision >= 3 */
141#define B43_NTAB_FRAMESTRUCT_R3		B43_NTAB32(10,   0) /* frame struct  */
142#define B43_NTAB_PILOT_R3		B43_NTAB16(11,   0) /* pilot  */
143#define B43_NTAB_TMAP_R3		B43_NTAB32(12,   0) /* TM AP  */
144#define B43_NTAB_INTLEVEL_R3		B43_NTAB32(13,   0) /* INT LV  */
145#define B43_NTAB_TDTRN_R3		B43_NTAB32(14,   0) /* TD TRN  */
146#define B43_NTAB_NOISEVAR0_R3		B43_NTAB32(16,   0) /* noise variance 0  */
147#define B43_NTAB_NOISEVAR1_R3		B43_NTAB32(16, 128) /* noise variance 1  */
148#define B43_NTAB_MCS_R3			B43_NTAB16(18,   0) /* MCS  */
149#define B43_NTAB_TDI20A0_R3		B43_NTAB32(19, 128) /* TDI 20/0  */
150#define B43_NTAB_TDI20A1_R3		B43_NTAB32(19, 256) /* TDI 20/1  */
151#define B43_NTAB_TDI40A0_R3		B43_NTAB32(19, 640) /* TDI 40/0  */
152#define B43_NTAB_TDI40A1_R3		B43_NTAB32(19, 768) /* TDI 40/1  */
153#define B43_NTAB_PILOTLT_R3		B43_NTAB32(20,   0) /* PLT lookup  */
154#define B43_NTAB_CHANEST_R3		B43_NTAB32(22,   0) /* channel estimate  */
155#define B43_NTAB_FRAMELT_R3		 B43_NTAB8(24,   0) /* frame lookup  */
156#define B43_NTAB_C0_ESTPLT_R3		 B43_NTAB8(26,   0) /* estimated power lookup 0  */
157#define B43_NTAB_C0_ADJPLT_R3		 B43_NTAB8(26,  64) /* adjusted power lookup 0  */
 
 
158#define B43_NTAB_C0_GAINCTL_R3		B43_NTAB32(26, 192) /* gain control lookup 0  */
 
159#define B43_NTAB_C0_IQLT_R3		B43_NTAB32(26, 320) /* I/Q lookup 0  */
 
160#define B43_NTAB_C0_LOFEEDTH_R3		B43_NTAB16(26, 448) /* Local Oscillator Feed Through lookup 0  */
161#define B43_NTAB_C0_PAPD_COMP_R3	B43_NTAB16(26, 576)
162#define B43_NTAB_C1_ESTPLT_R3		 B43_NTAB8(27,   0) /* estimated power lookup 1  */
163#define B43_NTAB_C1_ADJPLT_R3		 B43_NTAB8(27,  64) /* adjusted power lookup 1  */
164#define B43_NTAB_C1_GAINCTL_R3		B43_NTAB32(27, 192) /* gain control lookup 1  */
165#define B43_NTAB_C1_IQLT_R3		B43_NTAB32(27, 320) /* I/Q lookup 1  */
166#define B43_NTAB_C1_LOFEEDTH_R3		B43_NTAB16(27, 448) /* Local Oscillator Feed Through lookup 1 */
167#define B43_NTAB_C1_PAPD_COMP_R3	B43_NTAB16(27, 576)
168
169#define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_40_SIZE	18
170#define B43_NTAB_TX_IQLO_CAL_LOFT_LADDER_20_SIZE	18
171#define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_40_SIZE	18
172#define B43_NTAB_TX_IQLO_CAL_IQIMB_LADDER_20_SIZE	18
173#define B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3		11
174#define B43_NTAB_TX_IQLO_CAL_STARTCOEFS			9
175#define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL_REV3		12
176#define B43_NTAB_TX_IQLO_CAL_CMDS_RECAL			10
177#define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL		10
178#define B43_NTAB_TX_IQLO_CAL_CMDS_FULLCAL_REV3		12
179
180u32 b43_ntab_read(struct b43_wldev *dev, u32 offset);
181void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset,
182			 unsigned int nr_elements, void *_data);
183void b43_ntab_write(struct b43_wldev *dev, u32 offset, u32 value);
184void b43_ntab_write_bulk(struct b43_wldev *dev, u32 offset,
185			  unsigned int nr_elements, const void *_data);
186
187void b43_nphy_tables_init(struct b43_wldev *dev);
188
189const u32 *b43_nphy_get_tx_gain_table(struct b43_wldev *dev);
190
191extern const s8 b43_ntab_papd_pga_gain_delta_ipa_2g[];
192
 
 
 
 
 
 
 
 
 
 
193extern const u16 tbl_iqcal_gainparams[2][9][8];
194extern const struct nphy_txiqcal_ladder ladder_lo[];
195extern const struct nphy_txiqcal_ladder ladder_iq[];
196extern const u16 loscale[];
197
198extern const u16 tbl_tx_iqlo_cal_loft_ladder_40[];
199extern const u16 tbl_tx_iqlo_cal_loft_ladder_20[];
200extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_40[];
201extern const u16 tbl_tx_iqlo_cal_iqimb_ladder_20[];
202extern const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3[];
203extern const u16 tbl_tx_iqlo_cal_startcoefs[];
204extern const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3[];
205extern const u16 tbl_tx_iqlo_cal_cmds_recal[];
206extern const u16 tbl_tx_iqlo_cal_cmds_fullcal[];
207extern const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3[];
208extern const s16 tbl_tx_filter_coef_rev4[7][15];
209
210extern const struct nphy_rf_control_override_rev2
211	tbl_rf_control_override_rev2[];
212extern const struct nphy_rf_control_override_rev3
213	tbl_rf_control_override_rev3[];
214const struct nphy_rf_control_override_rev7 *b43_nphy_get_rf_ctl_over_rev7(
215	struct b43_wldev *dev, u16 field, u8 override);
216
217#endif /* B43_TABLES_NPHY_H_ */