1
2 #ifndef B43_NPHY_H_
3 #define B43_NPHY_H_
4
5 #include "phy_common.h"
6 #include "ppr.h"
7
8
9
10
11 #define B43_NPHY_BBCFG B43_PHY_N(0x001)
12 #define B43_NPHY_BBCFG_RSTCCA 0x4000
13 #define B43_NPHY_BBCFG_RSTRX 0x8000
14 #define B43_NPHY_CHANNEL B43_PHY_N(0x005)
15 #define B43_NPHY_TXERR B43_PHY_N(0x007)
16 #define B43_NPHY_BANDCTL B43_PHY_N(0x009)
17 #define B43_NPHY_BANDCTL_5GHZ 0x0001
18 #define B43_NPHY_4WI_ADDR B43_PHY_N(0x00B)
19 #define B43_NPHY_4WI_DATAHI B43_PHY_N(0x00C)
20 #define B43_NPHY_4WI_DATALO B43_PHY_N(0x00D)
21 #define B43_NPHY_BIST_STAT0 B43_PHY_N(0x00E)
22 #define B43_NPHY_BIST_STAT1 B43_PHY_N(0x00F)
23
24 #define B43_NPHY_C1_DESPWR B43_PHY_N(0x018)
25 #define B43_NPHY_C1_CCK_DESPWR B43_PHY_N(0x019)
26 #define B43_NPHY_C1_BCLIPBKOFF B43_PHY_N(0x01A)
27 #define B43_NPHY_C1_CCK_BCLIPBKOFF B43_PHY_N(0x01B)
28 #define B43_NPHY_C1_CGAINI B43_PHY_N(0x01C)
29 #define B43_NPHY_C1_CGAINI_GAINBKOFF 0x001F
30 #define B43_NPHY_C1_CGAINI_GAINBKOFF_SHIFT 0
31 #define B43_NPHY_C1_CGAINI_CLIPGBKOFF 0x03E0
32 #define B43_NPHY_C1_CGAINI_CLIPGBKOFF_SHIFT 5
33 #define B43_NPHY_C1_CGAINI_GAINSTEP 0x1C00
34 #define B43_NPHY_C1_CGAINI_GAINSTEP_SHIFT 10
35 #define B43_NPHY_C1_CGAINI_CL2DETECT 0x2000
36 #define B43_NPHY_C1_CCK_CGAINI B43_PHY_N(0x01D)
37 #define B43_NPHY_C1_CCK_CGAINI_GAINBKOFF 0x001F
38 #define B43_NPHY_C1_CCK_CGAINI_CLIPGBKOFF 0x01E0
39 #define B43_NPHY_C1_MINMAX_GAIN B43_PHY_N(0x01E)
40 #define B43_NPHY_C1_MINGAIN 0x00FF
41 #define B43_NPHY_C1_MINGAIN_SHIFT 0
42 #define B43_NPHY_C1_MAXGAIN 0xFF00
43 #define B43_NPHY_C1_MAXGAIN_SHIFT 8
44 #define B43_NPHY_C1_CCK_MINMAX_GAIN B43_PHY_N(0x01F)
45 #define B43_NPHY_C1_CCK_MINGAIN 0x00FF
46 #define B43_NPHY_C1_CCK_MINGAIN_SHIFT 0
47 #define B43_NPHY_C1_CCK_MAXGAIN 0xFF00
48 #define B43_NPHY_C1_CCK_MAXGAIN_SHIFT 8
49 #define B43_NPHY_C1_INITGAIN B43_PHY_N(0x020)
50 #define B43_NPHY_C1_INITGAIN_EXTLNA 0x0001
51 #define B43_NPHY_C1_INITGAIN_LNA 0x0006
52 #define B43_NPHY_C1_INITGAIN_LNAIDX_SHIFT 1
53 #define B43_NPHY_C1_INITGAIN_HPVGA1 0x0078
54 #define B43_NPHY_C1_INITGAIN_HPVGA1_SHIFT 3
55 #define B43_NPHY_C1_INITGAIN_HPVGA2 0x0F80
56 #define B43_NPHY_C1_INITGAIN_HPVGA2_SHIFT 7
57 #define B43_NPHY_C1_INITGAIN_TRRX 0x1000
58 #define B43_NPHY_C1_INITGAIN_TRTX 0x2000
59 #define B43_NPHY_REV3_C1_INITGAIN_A B43_PHY_N(0x020)
60 #define B43_NPHY_C1_CLIP1_HIGAIN B43_PHY_N(0x021)
61 #define B43_NPHY_REV3_C1_INITGAIN_B B43_PHY_N(0x021)
62 #define B43_NPHY_C1_CLIP1_MEDGAIN B43_PHY_N(0x022)
63 #define B43_NPHY_REV3_C1_CLIP_HIGAIN_A B43_PHY_N(0x022)
64 #define B43_NPHY_C1_CLIP1_LOGAIN B43_PHY_N(0x023)
65 #define B43_NPHY_REV3_C1_CLIP_HIGAIN_B B43_PHY_N(0x023)
66 #define B43_NPHY_C1_CLIP2_GAIN B43_PHY_N(0x024)
67 #define B43_NPHY_REV3_C1_CLIP_MEDGAIN_A B43_PHY_N(0x024)
68 #define B43_NPHY_C1_FILTERGAIN B43_PHY_N(0x025)
69 #define B43_NPHY_C1_LPF_QHPF_BW B43_PHY_N(0x026)
70 #define B43_NPHY_C1_CLIPWBTHRES B43_PHY_N(0x027)
71 #define B43_NPHY_C1_CLIPWBTHRES_CLIP2 0x003F
72 #define B43_NPHY_C1_CLIPWBTHRES_CLIP2_SHIFT 0
73 #define B43_NPHY_C1_CLIPWBTHRES_CLIP1 0x0FC0
74 #define B43_NPHY_C1_CLIPWBTHRES_CLIP1_SHIFT 6
75 #define B43_NPHY_C1_W1THRES B43_PHY_N(0x028)
76 #define B43_NPHY_C1_EDTHRES B43_PHY_N(0x029)
77 #define B43_NPHY_C1_SMSIGTHRES B43_PHY_N(0x02A)
78 #define B43_NPHY_C1_NBCLIPTHRES B43_PHY_N(0x02B)
79 #define B43_NPHY_C1_CLIP1THRES B43_PHY_N(0x02C)
80 #define B43_NPHY_C1_CLIP2THRES B43_PHY_N(0x02D)
81
82 #define B43_NPHY_C2_DESPWR B43_PHY_N(0x02E)
83 #define B43_NPHY_C2_CCK_DESPWR B43_PHY_N(0x02F)
84 #define B43_NPHY_C2_BCLIPBKOFF B43_PHY_N(0x030)
85 #define B43_NPHY_C2_CCK_BCLIPBKOFF B43_PHY_N(0x031)
86 #define B43_NPHY_C2_CGAINI B43_PHY_N(0x032)
87 #define B43_NPHY_C2_CGAINI_GAINBKOFF 0x001F
88 #define B43_NPHY_C2_CGAINI_GAINBKOFF_SHIFT 0
89 #define B43_NPHY_C2_CGAINI_CLIPGBKOFF 0x03E0
90 #define B43_NPHY_C2_CGAINI_CLIPGBKOFF_SHIFT 5
91 #define B43_NPHY_C2_CGAINI_GAINSTEP 0x1C00
92 #define B43_NPHY_C2_CGAINI_GAINSTEP_SHIFT 10
93 #define B43_NPHY_C2_CGAINI_CL2DETECT 0x2000
94 #define B43_NPHY_C2_CCK_CGAINI B43_PHY_N(0x033)
95 #define B43_NPHY_C2_CCK_CGAINI_GAINBKOFF 0x001F
96 #define B43_NPHY_C2_CCK_CGAINI_CLIPGBKOFF 0x01E0
97 #define B43_NPHY_C2_MINMAX_GAIN B43_PHY_N(0x034)
98 #define B43_NPHY_C2_MINGAIN 0x00FF
99 #define B43_NPHY_C2_MINGAIN_SHIFT 0
100 #define B43_NPHY_C2_MAXGAIN 0xFF00
101 #define B43_NPHY_C2_MAXGAIN_SHIFT 8
102 #define B43_NPHY_C2_CCK_MINMAX_GAIN B43_PHY_N(0x035)
103 #define B43_NPHY_C2_CCK_MINGAIN 0x00FF
104 #define B43_NPHY_C2_CCK_MINGAIN_SHIFT 0
105 #define B43_NPHY_C2_CCK_MAXGAIN 0xFF00
106 #define B43_NPHY_C2_CCK_MAXGAIN_SHIFT 8
107 #define B43_NPHY_C2_INITGAIN B43_PHY_N(0x036)
108 #define B43_NPHY_C2_INITGAIN_EXTLNA 0x0001
109 #define B43_NPHY_C2_INITGAIN_LNA 0x0006
110 #define B43_NPHY_C2_INITGAIN_LNAIDX_SHIFT 1
111 #define B43_NPHY_C2_INITGAIN_HPVGA1 0x0078
112 #define B43_NPHY_C2_INITGAIN_HPVGA1_SHIFT 3
113 #define B43_NPHY_C2_INITGAIN_HPVGA2 0x0F80
114 #define B43_NPHY_C2_INITGAIN_HPVGA2_SHIFT 7
115 #define B43_NPHY_C2_INITGAIN_TRRX 0x1000
116 #define B43_NPHY_C2_INITGAIN_TRTX 0x2000
117 #define B43_NPHY_REV3_C1_CLIP_MEDGAIN_B B43_PHY_N(0x036)
118 #define B43_NPHY_C2_CLIP1_HIGAIN B43_PHY_N(0x037)
119 #define B43_NPHY_REV3_C1_CLIP_LOGAIN_A B43_PHY_N(0x037)
120 #define B43_NPHY_C2_CLIP1_MEDGAIN B43_PHY_N(0x038)
121 #define B43_NPHY_REV3_C1_CLIP_LOGAIN_B B43_PHY_N(0x038)
122 #define B43_NPHY_C2_CLIP1_LOGAIN B43_PHY_N(0x039)
123 #define B43_NPHY_REV3_C1_CLIP2_GAIN_A B43_PHY_N(0x039)
124 #define B43_NPHY_C2_CLIP2_GAIN B43_PHY_N(0x03A)
125 #define B43_NPHY_REV3_C1_CLIP2_GAIN_B B43_PHY_N(0x03A)
126 #define B43_NPHY_C2_FILTERGAIN B43_PHY_N(0x03B)
127 #define B43_NPHY_C2_LPF_QHPF_BW B43_PHY_N(0x03C)
128 #define B43_NPHY_C2_CLIPWBTHRES B43_PHY_N(0x03D)
129 #define B43_NPHY_C2_CLIPWBTHRES_CLIP2 0x003F
130 #define B43_NPHY_C2_CLIPWBTHRES_CLIP2_SHIFT 0
131 #define B43_NPHY_C2_CLIPWBTHRES_CLIP1 0x0FC0
132 #define B43_NPHY_C2_CLIPWBTHRES_CLIP1_SHIFT 6
133 #define B43_NPHY_C2_W1THRES B43_PHY_N(0x03E)
134 #define B43_NPHY_C2_EDTHRES B43_PHY_N(0x03F)
135 #define B43_NPHY_C2_SMSIGTHRES B43_PHY_N(0x040)
136 #define B43_NPHY_C2_NBCLIPTHRES B43_PHY_N(0x041)
137 #define B43_NPHY_C2_CLIP1THRES B43_PHY_N(0x042)
138 #define B43_NPHY_C2_CLIP2THRES B43_PHY_N(0x043)
139
140 #define B43_NPHY_CRS_THRES1 B43_PHY_N(0x044)
141 #define B43_NPHY_CRS_THRES2 B43_PHY_N(0x045)
142 #define B43_NPHY_CRS_THRES3 B43_PHY_N(0x046)
143 #define B43_NPHY_CRSCTL B43_PHY_N(0x047)
144 #define B43_NPHY_DCFADDR B43_PHY_N(0x048)
145 #define B43_NPHY_RXF20_NUM0 B43_PHY_N(0x049)
146 #define B43_NPHY_RXF20_NUM1 B43_PHY_N(0x04A)
147 #define B43_NPHY_RXF20_NUM2 B43_PHY_N(0x04B)
148 #define B43_NPHY_RXF20_DENOM0 B43_PHY_N(0x04C)
149 #define B43_NPHY_RXF20_DENOM1 B43_PHY_N(0x04D)
150 #define B43_NPHY_RXF20_NUM10 B43_PHY_N(0x04E)
151 #define B43_NPHY_RXF20_NUM11 B43_PHY_N(0x04F)
152 #define B43_NPHY_RXF20_NUM12 B43_PHY_N(0x050)
153 #define B43_NPHY_RXF20_DENOM10 B43_PHY_N(0x051)
154 #define B43_NPHY_RXF20_DENOM11 B43_PHY_N(0x052)
155 #define B43_NPHY_RXF40_NUM0 B43_PHY_N(0x053)
156 #define B43_NPHY_RXF40_NUM1 B43_PHY_N(0x054)
157 #define B43_NPHY_RXF40_NUM2 B43_PHY_N(0x055)
158 #define B43_NPHY_RXF40_DENOM0 B43_PHY_N(0x056)
159 #define B43_NPHY_RXF40_DENOM1 B43_PHY_N(0x057)
160 #define B43_NPHY_RXF40_NUM10 B43_PHY_N(0x058)
161 #define B43_NPHY_RXF40_NUM11 B43_PHY_N(0x059)
162 #define B43_NPHY_RXF40_NUM12 B43_PHY_N(0x05A)
163 #define B43_NPHY_RXF40_DENOM10 B43_PHY_N(0x05B)
164 #define B43_NPHY_RXF40_DENOM11 B43_PHY_N(0x05C)
165 #define B43_NPHY_PPROC_RSTLEN B43_PHY_N(0x060)
166 #define B43_NPHY_INITCARR_DLEN B43_PHY_N(0x061)
167 #define B43_NPHY_CLIP1CARR_DLEN B43_PHY_N(0x062)
168 #define B43_NPHY_CLIP2CARR_DLEN B43_PHY_N(0x063)
169 #define B43_NPHY_INITGAIN_SLEN B43_PHY_N(0x064)
170 #define B43_NPHY_CLIP1GAIN_SLEN B43_PHY_N(0x065)
171 #define B43_NPHY_CLIP2GAIN_SLEN B43_PHY_N(0x066)
172 #define B43_NPHY_PACKGAIN_SLEN B43_PHY_N(0x067)
173 #define B43_NPHY_CARRSRC_TLEN B43_PHY_N(0x068)
174 #define B43_NPHY_TISRC_TLEN B43_PHY_N(0x069)
175 #define B43_NPHY_ENDROP_TLEN B43_PHY_N(0x06A)
176 #define B43_NPHY_CLIP1_NBDWELL_LEN B43_PHY_N(0x06B)
177 #define B43_NPHY_CLIP2_NBDWELL_LEN B43_PHY_N(0x06C)
178 #define B43_NPHY_W1CLIP1_DWELL_LEN B43_PHY_N(0x06D)
179 #define B43_NPHY_W1CLIP2_DWELL_LEN B43_PHY_N(0x06E)
180 #define B43_NPHY_W2CLIP1_DWELL_LEN B43_PHY_N(0x06F)
181 #define B43_NPHY_PLOAD_CSENSE_EXTLEN B43_PHY_N(0x070)
182 #define B43_NPHY_EDROP_CSENSE_EXTLEN B43_PHY_N(0x071)
183 #define B43_NPHY_TABLE_ADDR B43_PHY_N(0x072)
184 #define B43_NPHY_TABLE_DATALO B43_PHY_N(0x073)
185 #define B43_NPHY_TABLE_DATAHI B43_PHY_N(0x074)
186 #define B43_NPHY_WWISE_LENIDX B43_PHY_N(0x075)
187 #define B43_NPHY_TGNSYNC_LENIDX B43_PHY_N(0x076)
188 #define B43_NPHY_TXMACIF_HOLDOFF B43_PHY_N(0x077)
189 #define B43_NPHY_RFCTL_CMD B43_PHY_N(0x078)
190 #define B43_NPHY_RFCTL_CMD_START 0x0001
191 #define B43_NPHY_RFCTL_CMD_RXTX 0x0002
192 #define B43_NPHY_RFCTL_CMD_CORESEL 0x0038
193 #define B43_NPHY_RFCTL_CMD_CORESEL_SHIFT 3
194 #define B43_NPHY_RFCTL_CMD_PORFORCE 0x0040
195 #define B43_NPHY_RFCTL_CMD_OEPORFORCE 0x0080
196 #define B43_NPHY_RFCTL_CMD_RXEN 0x0100
197 #define B43_NPHY_RFCTL_CMD_TXEN 0x0200
198 #define B43_NPHY_RFCTL_CMD_CHIP0PU 0x0400
199 #define B43_NPHY_RFCTL_CMD_EN 0x0800
200 #define B43_NPHY_RFCTL_CMD_SEQENCORE 0xF000
201 #define B43_NPHY_RFCTL_CMD_SEQENCORE_SHIFT 12
202 #define B43_NPHY_RFCTL_RSSIO1 B43_PHY_N(0x07A)
203 #define B43_NPHY_RFCTL_RSSIO1_RXPD 0x0001
204 #define B43_NPHY_RFCTL_RSSIO1_TXPD 0x0002
205 #define B43_NPHY_RFCTL_RSSIO1_PAPD 0x0004
206 #define B43_NPHY_RFCTL_RSSIO1_RSSICTL 0x0030
207 #define B43_NPHY_RFCTL_RSSIO1_LPFBW 0x00C0
208 #define B43_NPHY_RFCTL_RSSIO1_HPFBWHI 0x0100
209 #define B43_NPHY_RFCTL_RSSIO1_HIQDISCO 0x0200
210 #define B43_NPHY_RFCTL_RXG1 B43_PHY_N(0x07B)
211 #define B43_NPHY_RFCTL_TXG1 B43_PHY_N(0x07C)
212 #define B43_NPHY_RFCTL_RSSIO2 B43_PHY_N(0x07D)
213 #define B43_NPHY_RFCTL_RSSIO2_RXPD 0x0001
214 #define B43_NPHY_RFCTL_RSSIO2_TXPD 0x0002
215 #define B43_NPHY_RFCTL_RSSIO2_PAPD 0x0004
216 #define B43_NPHY_RFCTL_RSSIO2_RSSICTL 0x0030
217 #define B43_NPHY_RFCTL_RSSIO2_LPFBW 0x00C0
218 #define B43_NPHY_RFCTL_RSSIO2_HPFBWHI 0x0100
219 #define B43_NPHY_RFCTL_RSSIO2_HIQDISCO 0x0200
220 #define B43_NPHY_RFCTL_RXG2 B43_PHY_N(0x07E)
221 #define B43_NPHY_RFCTL_TXG2 B43_PHY_N(0x07F)
222 #define B43_NPHY_RFCTL_RSSIO3 B43_PHY_N(0x080)
223 #define B43_NPHY_RFCTL_RSSIO3_RXPD 0x0001
224 #define B43_NPHY_RFCTL_RSSIO3_TXPD 0x0002
225 #define B43_NPHY_RFCTL_RSSIO3_PAPD 0x0004
226 #define B43_NPHY_RFCTL_RSSIO3_RSSICTL 0x0030
227 #define B43_NPHY_RFCTL_RSSIO3_LPFBW 0x00C0
228 #define B43_NPHY_RFCTL_RSSIO3_HPFBWHI 0x0100
229 #define B43_NPHY_RFCTL_RSSIO3_HIQDISCO 0x0200
230 #define B43_NPHY_RFCTL_RXG3 B43_PHY_N(0x081)
231 #define B43_NPHY_RFCTL_TXG3 B43_PHY_N(0x082)
232 #define B43_NPHY_RFCTL_RSSIO4 B43_PHY_N(0x083)
233 #define B43_NPHY_RFCTL_RSSIO4_RXPD 0x0001
234 #define B43_NPHY_RFCTL_RSSIO4_TXPD 0x0002
235 #define B43_NPHY_RFCTL_RSSIO4_PAPD 0x0004
236 #define B43_NPHY_RFCTL_RSSIO4_RSSICTL 0x0030
237 #define B43_NPHY_RFCTL_RSSIO4_LPFBW 0x00C0
238 #define B43_NPHY_RFCTL_RSSIO4_HPFBWHI 0x0100
239 #define B43_NPHY_RFCTL_RSSIO4_HIQDISCO 0x0200
240 #define B43_NPHY_RFCTL_RXG4 B43_PHY_N(0x084)
241 #define B43_NPHY_RFCTL_TXG4 B43_PHY_N(0x085)
242 #define B43_NPHY_C1_TXIQ_COMP_OFF B43_PHY_N(0x087)
243 #define B43_NPHY_C2_TXIQ_COMP_OFF B43_PHY_N(0x088)
244 #define B43_NPHY_C1_TXCTL B43_PHY_N(0x08B)
245 #define B43_NPHY_C2_TXCTL B43_PHY_N(0x08C)
246 #define B43_NPHY_AFECTL_OVER1 B43_PHY_N(0x08F)
247 #define B43_NPHY_SCRAM_SIGCTL B43_PHY_N(0x090)
248 #define B43_NPHY_SCRAM_SIGCTL_INITST 0x007F
249 #define B43_NPHY_SCRAM_SIGCTL_INITST_SHIFT 0
250 #define B43_NPHY_SCRAM_SIGCTL_SCM 0x0080
251 #define B43_NPHY_SCRAM_SIGCTL_SICE 0x0100
252 #define B43_NPHY_SCRAM_SIGCTL_START 0xFE00
253 #define B43_NPHY_SCRAM_SIGCTL_START_SHIFT 9
254 #define B43_NPHY_RFCTL_INTC1 B43_PHY_N(0x091)
255 #define B43_NPHY_RFCTL_INTC2 B43_PHY_N(0x092)
256 #define B43_NPHY_RFCTL_INTC3 B43_PHY_N(0x093)
257 #define B43_NPHY_RFCTL_INTC4 B43_PHY_N(0x094)
258 #define B43_NPHY_NRDTO_WWISE B43_PHY_N(0x095)
259 #define B43_NPHY_NRDTO_TGNSYNC B43_PHY_N(0x096)
260 #define B43_NPHY_SIGFMOD_WWISE B43_PHY_N(0x097)
261 #define B43_NPHY_LEG_SIGFMOD_11N B43_PHY_N(0x098)
262 #define B43_NPHY_HT_SIGFMOD_11N B43_PHY_N(0x099)
263 #define B43_NPHY_C1_RXIQ_COMPA0 B43_PHY_N(0x09A)
264 #define B43_NPHY_C1_RXIQ_COMPB0 B43_PHY_N(0x09B)
265 #define B43_NPHY_C2_RXIQ_COMPA1 B43_PHY_N(0x09C)
266 #define B43_NPHY_C2_RXIQ_COMPB1 B43_PHY_N(0x09D)
267 #define B43_NPHY_RXCTL B43_PHY_N(0x0A0)
268 #define B43_NPHY_RXCTL_BSELU20 0x0010
269 #define B43_NPHY_RXCTL_RIFSEN 0x0080
270 #define B43_NPHY_RFSEQMODE B43_PHY_N(0x0A1)
271 #define B43_NPHY_RFSEQMODE_CAOVER 0x0001
272 #define B43_NPHY_RFSEQMODE_TROVER 0x0002
273 #define B43_NPHY_RFSEQCA B43_PHY_N(0x0A2)
274 #define B43_NPHY_RFSEQCA_TXEN 0x000F
275 #define B43_NPHY_RFSEQCA_TXEN_SHIFT 0
276 #define B43_NPHY_RFSEQCA_RXEN 0x00F0
277 #define B43_NPHY_RFSEQCA_RXEN_SHIFT 4
278 #define B43_NPHY_RFSEQCA_TXDIS 0x0F00
279 #define B43_NPHY_RFSEQCA_TXDIS_SHIFT 8
280 #define B43_NPHY_RFSEQCA_RXDIS 0xF000
281 #define B43_NPHY_RFSEQCA_RXDIS_SHIFT 12
282 #define B43_NPHY_RFSEQTR B43_PHY_N(0x0A3)
283 #define B43_NPHY_RFSEQTR_RX2TX 0x0001
284 #define B43_NPHY_RFSEQTR_TX2RX 0x0002
285 #define B43_NPHY_RFSEQTR_UPGH 0x0004
286 #define B43_NPHY_RFSEQTR_UPGL 0x0008
287 #define B43_NPHY_RFSEQTR_UPGU 0x0010
288 #define B43_NPHY_RFSEQTR_RST2RX 0x0020
289 #define B43_NPHY_RFSEQST B43_PHY_N(0x0A4)
290 #define B43_NPHY_AFECTL_OVER B43_PHY_N(0x0A5)
291 #define B43_NPHY_AFECTL_C1 B43_PHY_N(0x0A6)
292 #define B43_NPHY_AFECTL_C2 B43_PHY_N(0x0A7)
293 #define B43_NPHY_AFECTL_C3 B43_PHY_N(0x0A8)
294 #define B43_NPHY_AFECTL_C4 B43_PHY_N(0x0A9)
295 #define B43_NPHY_AFECTL_DACGAIN1 B43_PHY_N(0x0AA)
296 #define B43_NPHY_AFECTL_DACGAIN2 B43_PHY_N(0x0AB)
297 #define B43_NPHY_AFECTL_DACGAIN3 B43_PHY_N(0x0AC)
298 #define B43_NPHY_AFECTL_DACGAIN4 B43_PHY_N(0x0AD)
299 #define B43_NPHY_STR_ADDR1 B43_PHY_N(0x0AE)
300 #define B43_NPHY_STR_ADDR2 B43_PHY_N(0x0AF)
301 #define B43_NPHY_CLASSCTL B43_PHY_N(0x0B0)
302 #define B43_NPHY_CLASSCTL_CCKEN 0x0001
303 #define B43_NPHY_CLASSCTL_OFDMEN 0x0002
304 #define B43_NPHY_CLASSCTL_WAITEDEN 0x0004
305 #define B43_NPHY_IQFLIP B43_PHY_N(0x0B1)
306 #define B43_NPHY_IQFLIP_ADC1 0x0001
307 #define B43_NPHY_IQFLIP_ADC2 0x0010
308 #define B43_NPHY_SISO_SNR_THRES B43_PHY_N(0x0B2)
309 #define B43_NPHY_SIGMA_N_MULT B43_PHY_N(0x0B3)
310 #define B43_NPHY_TXMACDELAY B43_PHY_N(0x0B4)
311 #define B43_NPHY_TXFRAMEDELAY B43_PHY_N(0x0B5)
312 #define B43_NPHY_MLPARM B43_PHY_N(0x0B6)
313 #define B43_NPHY_MLCTL B43_PHY_N(0x0B7)
314 #define B43_NPHY_WWISE_20NCYCDAT B43_PHY_N(0x0B8)
315 #define B43_NPHY_WWISE_40NCYCDAT B43_PHY_N(0x0B9)
316 #define B43_NPHY_TGNSYNC_20NCYCDAT B43_PHY_N(0x0BA)
317 #define B43_NPHY_TGNSYNC_40NCYCDAT B43_PHY_N(0x0BB)
318 #define B43_NPHY_INITSWIZP B43_PHY_N(0x0BC)
319 #define B43_NPHY_TXTAILCNT B43_PHY_N(0x0BD)
320 #define B43_NPHY_BPHY_CTL1 B43_PHY_N(0x0BE)
321 #define B43_NPHY_BPHY_CTL2 B43_PHY_N(0x0BF)
322 #define B43_NPHY_BPHY_CTL2_LUT 0x001F
323 #define B43_NPHY_BPHY_CTL2_LUT_SHIFT 0
324 #define B43_NPHY_BPHY_CTL2_MACDEL 0x7FE0
325 #define B43_NPHY_BPHY_CTL2_MACDEL_SHIFT 5
326 #define B43_NPHY_IQLOCAL_CMD B43_PHY_N(0x0C0)
327 #define B43_NPHY_IQLOCAL_CMD_EN 0x8000
328 #define B43_NPHY_IQLOCAL_CMDNNUM B43_PHY_N(0x0C1)
329 #define B43_NPHY_IQLOCAL_CMDGCTL B43_PHY_N(0x0C2)
330 #define B43_NPHY_SAMP_CMD B43_PHY_N(0x0C3)
331 #define B43_NPHY_SAMP_CMD_STOP 0x0002
332 #define B43_NPHY_SAMP_LOOPCNT B43_PHY_N(0x0C4)
333 #define B43_NPHY_SAMP_WAITCNT B43_PHY_N(0x0C5)
334 #define B43_NPHY_SAMP_DEPCNT B43_PHY_N(0x0C6)
335 #define B43_NPHY_SAMP_STAT B43_PHY_N(0x0C7)
336 #define B43_NPHY_GPIO_LOOEN B43_PHY_N(0x0C8)
337 #define B43_NPHY_GPIO_HIOEN B43_PHY_N(0x0C9)
338 #define B43_NPHY_GPIO_SEL B43_PHY_N(0x0CA)
339 #define B43_NPHY_GPIO_CLKCTL B43_PHY_N(0x0CB)
340 #define B43_NPHY_TXF_20CO_AS0 B43_PHY_N(0x0CC)
341 #define B43_NPHY_TXF_20CO_AS1 B43_PHY_N(0x0CD)
342 #define B43_NPHY_TXF_20CO_AS2 B43_PHY_N(0x0CE)
343 #define B43_NPHY_TXF_20CO_B32S0 B43_PHY_N(0x0CF)
344 #define B43_NPHY_TXF_20CO_B1S0 B43_PHY_N(0x0D0)
345 #define B43_NPHY_TXF_20CO_B32S1 B43_PHY_N(0x0D1)
346 #define B43_NPHY_TXF_20CO_B1S1 B43_PHY_N(0x0D2)
347 #define B43_NPHY_TXF_20CO_B32S2 B43_PHY_N(0x0D3)
348 #define B43_NPHY_TXF_20CO_B1S2 B43_PHY_N(0x0D4)
349 #define B43_NPHY_SIGFLDTOL B43_PHY_N(0x0D5)
350 #define B43_NPHY_TXSERFLD B43_PHY_N(0x0D6)
351 #define B43_NPHY_AFESEQ_RX2TX_PUD B43_PHY_N(0x0D7)
352 #define B43_NPHY_AFESEQ_TX2RX_PUD B43_PHY_N(0x0D8)
353 #define B43_NPHY_TGNSYNC_SCRAMI0 B43_PHY_N(0x0D9)
354 #define B43_NPHY_TGNSYNC_SCRAMI1 B43_PHY_N(0x0DA)
355 #define B43_NPHY_INITSWIZPATTLEG B43_PHY_N(0x0DB)
356 #define B43_NPHY_BPHY_CTL3 B43_PHY_N(0x0DC)
357 #define B43_NPHY_BPHY_CTL3_SCALE 0x00FF
358 #define B43_NPHY_BPHY_CTL3_SCALE_SHIFT 0
359 #define B43_NPHY_BPHY_CTL3_FSC 0xFF00
360 #define B43_NPHY_BPHY_CTL3_FSC_SHIFT 8
361 #define B43_NPHY_BPHY_CTL4 B43_PHY_N(0x0DD)
362 #define B43_NPHY_C1_TXBBMULT B43_PHY_N(0x0DE)
363 #define B43_NPHY_C2_TXBBMULT B43_PHY_N(0x0DF)
364 #define B43_NPHY_TXF_40CO_AS0 B43_PHY_N(0x0E1)
365 #define B43_NPHY_TXF_40CO_AS1 B43_PHY_N(0x0E2)
366 #define B43_NPHY_TXF_40CO_AS2 B43_PHY_N(0x0E3)
367 #define B43_NPHY_TXF_40CO_B32S0 B43_PHY_N(0x0E4)
368 #define B43_NPHY_TXF_40CO_B1S0 B43_PHY_N(0x0E5)
369 #define B43_NPHY_TXF_40CO_B32S1 B43_PHY_N(0x0E6)
370 #define B43_NPHY_TXF_40CO_B1S1 B43_PHY_N(0x0E7)
371 #define B43_NPHY_REV3_RFCTL_OVER0 B43_PHY_N(0x0E7)
372 #define B43_NPHY_TXF_40CO_B32S2 B43_PHY_N(0x0E8)
373 #define B43_NPHY_TXF_40CO_B1S2 B43_PHY_N(0x0E9)
374 #define B43_NPHY_BIST_STAT2 B43_PHY_N(0x0EA)
375 #define B43_NPHY_BIST_STAT3 B43_PHY_N(0x0EB)
376 #define B43_NPHY_RFCTL_OVER B43_PHY_N(0x0EC)
377 #define B43_NPHY_REV3_RFCTL_OVER1 B43_PHY_N(0x0EC)
378 #define B43_NPHY_MIMOCFG B43_PHY_N(0x0ED)
379 #define B43_NPHY_MIMOCFG_GFMIX 0x0004
380 #define B43_NPHY_MIMOCFG_AUTO 0x0100
381 #define B43_NPHY_RADAR_BLNKCTL B43_PHY_N(0x0EE)
382 #define B43_NPHY_A0RADAR_FIFOCTL B43_PHY_N(0x0EF)
383 #define B43_NPHY_A1RADAR_FIFOCTL B43_PHY_N(0x0F0)
384 #define B43_NPHY_A0RADAR_FIFODAT B43_PHY_N(0x0F1)
385 #define B43_NPHY_A1RADAR_FIFODAT B43_PHY_N(0x0F2)
386 #define B43_NPHY_RADAR_THRES0 B43_PHY_N(0x0F3)
387 #define B43_NPHY_RADAR_THRES1 B43_PHY_N(0x0F4)
388 #define B43_NPHY_RADAR_THRES0R B43_PHY_N(0x0F5)
389 #define B43_NPHY_RADAR_THRES1R B43_PHY_N(0x0F6)
390 #define B43_NPHY_CSEN_20IN40_DLEN B43_PHY_N(0x0F7)
391 #define B43_NPHY_RFCTL_LUT_TRSW_LO1 B43_PHY_N(0x0F8)
392 #define B43_NPHY_RFCTL_LUT_TRSW_UP1 B43_PHY_N(0x0F9)
393 #define B43_NPHY_RFCTL_LUT_TRSW_LO2 B43_PHY_N(0x0FA)
394 #define B43_NPHY_RFCTL_LUT_TRSW_UP2 B43_PHY_N(0x0FB)
395 #define B43_NPHY_RFCTL_LUT_TRSW_LO3 B43_PHY_N(0x0FC)
396 #define B43_NPHY_RFCTL_LUT_TRSW_UP3 B43_PHY_N(0x0FD)
397 #define B43_NPHY_RFCTL_LUT_TRSW_LO4 B43_PHY_N(0x0FE)
398 #define B43_NPHY_RFCTL_LUT_TRSW_UP4 B43_PHY_N(0x0FF)
399 #define B43_NPHY_RFCTL_LUT_LNAPA1 B43_PHY_N(0x100)
400 #define B43_NPHY_RFCTL_LUT_LNAPA2 B43_PHY_N(0x101)
401 #define B43_NPHY_RFCTL_LUT_LNAPA3 B43_PHY_N(0x102)
402 #define B43_NPHY_RFCTL_LUT_LNAPA4 B43_PHY_N(0x103)
403 #define B43_NPHY_TGNSYNC_CRCM0 B43_PHY_N(0x104)
404 #define B43_NPHY_TGNSYNC_CRCM1 B43_PHY_N(0x105)
405 #define B43_NPHY_TGNSYNC_CRCM2 B43_PHY_N(0x106)
406 #define B43_NPHY_TGNSYNC_CRCM3 B43_PHY_N(0x107)
407 #define B43_NPHY_TGNSYNC_CRCM4 B43_PHY_N(0x108)
408 #define B43_NPHY_CRCPOLY B43_PHY_N(0x109)
409 #define B43_NPHY_SIGCNT B43_PHY_N(0x10A)
410 #define B43_NPHY_SIGSTARTBIT_CTL B43_PHY_N(0x10B)
411 #define B43_NPHY_CRCPOLY_ORDER B43_PHY_N(0x10C)
412 #define B43_NPHY_RFCTL_CST0 B43_PHY_N(0x10D)
413 #define B43_NPHY_RFCTL_CST1 B43_PHY_N(0x10E)
414 #define B43_NPHY_RFCTL_CST2O B43_PHY_N(0x10F)
415 #define B43_NPHY_BPHY_CTL5 B43_PHY_N(0x111)
416 #define B43_NPHY_RFSEQ_LPFBW B43_PHY_N(0x112)
417 #define B43_NPHY_TSSIBIAS1 B43_PHY_N(0x114)
418 #define B43_NPHY_TSSIBIAS2 B43_PHY_N(0x115)
419 #define B43_NPHY_TSSIBIAS_BIAS 0x00FF
420 #define B43_NPHY_TSSIBIAS_BIAS_SHIFT 0
421 #define B43_NPHY_TSSIBIAS_VAL 0xFF00
422 #define B43_NPHY_TSSIBIAS_VAL_SHIFT 8
423 #define B43_NPHY_ESTPWR1 B43_PHY_N(0x118)
424 #define B43_NPHY_ESTPWR2 B43_PHY_N(0x119)
425 #define B43_NPHY_ESTPWR_PWR 0x00FF
426 #define B43_NPHY_ESTPWR_PWR_SHIFT 0
427 #define B43_NPHY_ESTPWR_VALID 0x0100
428 #define B43_NPHY_TSSI_MAXTXFDT B43_PHY_N(0x11C)
429 #define B43_NPHY_TSSI_MAXTXFDT_VAL 0x00FF
430 #define B43_NPHY_TSSI_MAXTXFDT_VAL_SHIFT 0
431 #define B43_NPHY_TSSI_MAXTDT B43_PHY_N(0x11D)
432 #define B43_NPHY_TSSI_MAXTDT_VAL 0x00FF
433 #define B43_NPHY_TSSI_MAXTDT_VAL_SHIFT 0
434 #define B43_NPHY_ITSSI1 B43_PHY_N(0x11E)
435 #define B43_NPHY_ITSSI2 B43_PHY_N(0x11F)
436 #define B43_NPHY_ITSSI_VAL 0x00FF
437 #define B43_NPHY_ITSSI_VAL_SHIFT 0
438 #define B43_NPHY_TSSIMODE B43_PHY_N(0x122)
439 #define B43_NPHY_TSSIMODE_EN 0x0001
440 #define B43_NPHY_TSSIMODE_PDEN 0x0002
441 #define B43_NPHY_RXMACIFM B43_PHY_N(0x123)
442 #define B43_NPHY_CRSIT_COCNT_LO B43_PHY_N(0x124)
443 #define B43_NPHY_CRSIT_COCNT_HI B43_PHY_N(0x125)
444 #define B43_NPHY_CRSIT_MTCNT_LO B43_PHY_N(0x126)
445 #define B43_NPHY_CRSIT_MTCNT_HI B43_PHY_N(0x127)
446 #define B43_NPHY_SAMTWC B43_PHY_N(0x128)
447 #define B43_NPHY_IQEST_CMD B43_PHY_N(0x129)
448 #define B43_NPHY_IQEST_CMD_START 0x0001
449 #define B43_NPHY_IQEST_CMD_MODE 0x0002
450 #define B43_NPHY_IQEST_WT B43_PHY_N(0x12A)
451 #define B43_NPHY_IQEST_WT_VAL 0x00FF
452 #define B43_NPHY_IQEST_WT_VAL_SHIFT 0
453 #define B43_NPHY_IQEST_SAMCNT B43_PHY_N(0x12B)
454 #define B43_NPHY_IQEST_IQACC_LO0 B43_PHY_N(0x12C)
455 #define B43_NPHY_IQEST_IQACC_HI0 B43_PHY_N(0x12D)
456 #define B43_NPHY_IQEST_IPACC_LO0 B43_PHY_N(0x12E)
457 #define B43_NPHY_IQEST_IPACC_HI0 B43_PHY_N(0x12F)
458 #define B43_NPHY_IQEST_QPACC_LO0 B43_PHY_N(0x130)
459 #define B43_NPHY_IQEST_QPACC_HI0 B43_PHY_N(0x131)
460 #define B43_NPHY_IQEST_IQACC_LO1 B43_PHY_N(0x134)
461 #define B43_NPHY_IQEST_IQACC_HI1 B43_PHY_N(0x135)
462 #define B43_NPHY_IQEST_IPACC_LO1 B43_PHY_N(0x136)
463 #define B43_NPHY_IQEST_IPACC_HI1 B43_PHY_N(0x137)
464 #define B43_NPHY_IQEST_QPACC_LO1 B43_PHY_N(0x138)
465 #define B43_NPHY_IQEST_QPACC_HI1 B43_PHY_N(0x139)
466 #define B43_NPHY_MIMO_CRSTXEXT B43_PHY_N(0x13A)
467 #define B43_NPHY_PWRDET1 B43_PHY_N(0x13B)
468 #define B43_NPHY_PWRDET2 B43_PHY_N(0x13C)
469 #define B43_NPHY_MAXRSSI_DTIME B43_PHY_N(0x13F)
470 #define B43_NPHY_PIL_DW0 B43_PHY_N(0x141)
471 #define B43_NPHY_PIL_DW1 B43_PHY_N(0x142)
472 #define B43_NPHY_PIL_DW2 B43_PHY_N(0x143)
473 #define B43_NPHY_PIL_DW_BPSK 0x000F
474 #define B43_NPHY_PIL_DW_BPSK_SHIFT 0
475 #define B43_NPHY_PIL_DW_QPSK 0x00F0
476 #define B43_NPHY_PIL_DW_QPSK_SHIFT 4
477 #define B43_NPHY_PIL_DW_16QAM 0x0F00
478 #define B43_NPHY_PIL_DW_16QAM_SHIFT 8
479 #define B43_NPHY_PIL_DW_64QAM 0xF000
480 #define B43_NPHY_PIL_DW_64QAM_SHIFT 12
481 #define B43_NPHY_FMDEM_CFG B43_PHY_N(0x144)
482 #define B43_NPHY_PHASETR_A0 B43_PHY_N(0x145)
483 #define B43_NPHY_PHASETR_A1 B43_PHY_N(0x146)
484 #define B43_NPHY_PHASETR_A2 B43_PHY_N(0x147)
485 #define B43_NPHY_PHASETR_B0 B43_PHY_N(0x148)
486 #define B43_NPHY_PHASETR_B1 B43_PHY_N(0x149)
487 #define B43_NPHY_PHASETR_B2 B43_PHY_N(0x14A)
488 #define B43_NPHY_PHASETR_CHG0 B43_PHY_N(0x14B)
489 #define B43_NPHY_PHASETR_CHG1 B43_PHY_N(0x14C)
490 #define B43_NPHY_PHASETW_OFF B43_PHY_N(0x14D)
491 #define B43_NPHY_RFCTL_DBG B43_PHY_N(0x14E)
492 #define B43_NPHY_CCK_SHIFTB_REF B43_PHY_N(0x150)
493 #define B43_NPHY_OVER_DGAIN0 B43_PHY_N(0x152)
494 #define B43_NPHY_OVER_DGAIN1 B43_PHY_N(0x153)
495 #define B43_NPHY_OVER_DGAIN_FDGV 0x0007
496 #define B43_NPHY_OVER_DGAIN_FDGV_SHIFT 0
497 #define B43_NPHY_OVER_DGAIN_FDGEN 0x0008
498 #define B43_NPHY_OVER_DGAIN_CCKDGECV 0xFF00
499 #define B43_NPHY_OVER_DGAIN_CCKDGECV_SHIFT 8
500 #define B43_NPHY_BIST_STAT4 B43_PHY_N(0x156)
501 #define B43_NPHY_RADAR_MAL B43_PHY_N(0x157)
502 #define B43_NPHY_RADAR_SRCCTL B43_PHY_N(0x158)
503 #define B43_NPHY_VLD_DTSIG B43_PHY_N(0x159)
504 #define B43_NPHY_VLD_DTDAT B43_PHY_N(0x15A)
505 #define B43_NPHY_C1_BPHY_RXIQCA0 B43_PHY_N(0x15B)
506 #define B43_NPHY_C1_BPHY_RXIQCB0 B43_PHY_N(0x15C)
507 #define B43_NPHY_C2_BPHY_RXIQCA1 B43_PHY_N(0x15D)
508 #define B43_NPHY_C2_BPHY_RXIQCB1 B43_PHY_N(0x15E)
509 #define B43_NPHY_FREQGAIN0 B43_PHY_N(0x160)
510 #define B43_NPHY_FREQGAIN1 B43_PHY_N(0x161)
511 #define B43_NPHY_FREQGAIN2 B43_PHY_N(0x162)
512 #define B43_NPHY_FREQGAIN3 B43_PHY_N(0x163)
513 #define B43_NPHY_FREQGAIN4 B43_PHY_N(0x164)
514 #define B43_NPHY_FREQGAIN5 B43_PHY_N(0x165)
515 #define B43_NPHY_FREQGAIN6 B43_PHY_N(0x166)
516 #define B43_NPHY_FREQGAIN7 B43_PHY_N(0x167)
517 #define B43_NPHY_FREQGAIN_BYPASS B43_PHY_N(0x168)
518 #define B43_NPHY_TRLOSS B43_PHY_N(0x169)
519 #define B43_NPHY_C1_ADCCLIP B43_PHY_N(0x16A)
520 #define B43_NPHY_C2_ADCCLIP B43_PHY_N(0x16B)
521 #define B43_NPHY_LTRN_OFFGAIN B43_PHY_N(0x16F)
522 #define B43_NPHY_LTRN_OFF B43_PHY_N(0x170)
523 #define B43_NPHY_NRDATAT_WWISE20SIG B43_PHY_N(0x171)
524 #define B43_NPHY_NRDATAT_WWISE40SIG B43_PHY_N(0x172)
525 #define B43_NPHY_NRDATAT_TGNSYNC20SIG B43_PHY_N(0x173)
526 #define B43_NPHY_NRDATAT_TGNSYNC40SIG B43_PHY_N(0x174)
527 #define B43_NPHY_WWISE_CRCM0 B43_PHY_N(0x175)
528 #define B43_NPHY_WWISE_CRCM1 B43_PHY_N(0x176)
529 #define B43_NPHY_WWISE_CRCM2 B43_PHY_N(0x177)
530 #define B43_NPHY_WWISE_CRCM3 B43_PHY_N(0x178)
531 #define B43_NPHY_WWISE_CRCM4 B43_PHY_N(0x179)
532 #define B43_NPHY_CHANEST_CDDSH B43_PHY_N(0x17A)
533 #define B43_NPHY_HTAGC_WCNT B43_PHY_N(0x17B)
534 #define B43_NPHY_SQPARM B43_PHY_N(0x17C)
535 #define B43_NPHY_MCSDUP6M B43_PHY_N(0x17D)
536 #define B43_NPHY_NDATAT_DUP40 B43_PHY_N(0x17E)
537 #define B43_NPHY_DUP40_TGNSYNC_CYCD B43_PHY_N(0x17F)
538 #define B43_NPHY_DUP40_GFBL B43_PHY_N(0x180)
539 #define B43_NPHY_DUP40_BL B43_PHY_N(0x181)
540 #define B43_NPHY_LEGDUP_FTA B43_PHY_N(0x182)
541 #define B43_NPHY_PACPROC_DBG B43_PHY_N(0x183)
542 #define B43_NPHY_PIL_CYC1 B43_PHY_N(0x184)
543 #define B43_NPHY_PIL_CYC2 B43_PHY_N(0x185)
544 #define B43_NPHY_TXF_20CO_S0A1 B43_PHY_N(0x186)
545 #define B43_NPHY_TXF_20CO_S0A2 B43_PHY_N(0x187)
546 #define B43_NPHY_TXF_20CO_S1A1 B43_PHY_N(0x188)
547 #define B43_NPHY_TXF_20CO_S1A2 B43_PHY_N(0x189)
548 #define B43_NPHY_TXF_20CO_S2A1 B43_PHY_N(0x18A)
549 #define B43_NPHY_TXF_20CO_S2A2 B43_PHY_N(0x18B)
550 #define B43_NPHY_TXF_20CO_S0B1 B43_PHY_N(0x18C)
551 #define B43_NPHY_TXF_20CO_S0B2 B43_PHY_N(0x18D)
552 #define B43_NPHY_TXF_20CO_S0B3 B43_PHY_N(0x18E)
553 #define B43_NPHY_TXF_20CO_S1B1 B43_PHY_N(0x18F)
554 #define B43_NPHY_TXF_20CO_S1B2 B43_PHY_N(0x190)
555 #define B43_NPHY_TXF_20CO_S1B3 B43_PHY_N(0x191)
556 #define B43_NPHY_TXF_20CO_S2B1 B43_PHY_N(0x192)
557 #define B43_NPHY_TXF_20CO_S2B2 B43_PHY_N(0x193)
558 #define B43_NPHY_TXF_20CO_S2B3 B43_PHY_N(0x194)
559 #define B43_NPHY_TXF_40CO_S0A1 B43_PHY_N(0x195)
560 #define B43_NPHY_TXF_40CO_S0A2 B43_PHY_N(0x196)
561 #define B43_NPHY_TXF_40CO_S1A1 B43_PHY_N(0x197)
562 #define B43_NPHY_TXF_40CO_S1A2 B43_PHY_N(0x198)
563 #define B43_NPHY_TXF_40CO_S2A1 B43_PHY_N(0x199)
564 #define B43_NPHY_TXF_40CO_S2A2 B43_PHY_N(0x19A)
565 #define B43_NPHY_TXF_40CO_S0B1 B43_PHY_N(0x19B)
566 #define B43_NPHY_TXF_40CO_S0B2 B43_PHY_N(0x19C)
567 #define B43_NPHY_TXF_40CO_S0B3 B43_PHY_N(0x19D)
568 #define B43_NPHY_TXF_40CO_S1B1 B43_PHY_N(0x19E)
569 #define B43_NPHY_TXF_40CO_S1B2 B43_PHY_N(0x19F)
570 #define B43_NPHY_TXF_40CO_S1B3 B43_PHY_N(0x1A0)
571 #define B43_NPHY_TXF_40CO_S2B1 B43_PHY_N(0x1A1)
572 #define B43_NPHY_TXF_40CO_S2B2 B43_PHY_N(0x1A2)
573 #define B43_NPHY_TXF_40CO_S2B3 B43_PHY_N(0x1A3)
574 #define B43_NPHY_RSSIMC_0I_RSSI_X B43_PHY_N(0x1A4)
575 #define B43_NPHY_RSSIMC_0I_RSSI_Y B43_PHY_N(0x1A5)
576 #define B43_NPHY_RSSIMC_0I_RSSI_Z B43_PHY_N(0x1A6)
577 #define B43_NPHY_RSSIMC_0I_TBD B43_PHY_N(0x1A7)
578 #define B43_NPHY_RSSIMC_0I_PWRDET B43_PHY_N(0x1A8)
579 #define B43_NPHY_RSSIMC_0I_TSSI B43_PHY_N(0x1A9)
580 #define B43_NPHY_RSSIMC_0Q_RSSI_X B43_PHY_N(0x1AA)
581 #define B43_NPHY_RSSIMC_0Q_RSSI_Y B43_PHY_N(0x1AB)
582 #define B43_NPHY_RSSIMC_0Q_RSSI_Z B43_PHY_N(0x1AC)
583 #define B43_NPHY_RSSIMC_0Q_TBD B43_PHY_N(0x1AD)
584 #define B43_NPHY_RSSIMC_0Q_PWRDET B43_PHY_N(0x1AE)
585 #define B43_NPHY_RSSIMC_0Q_TSSI B43_PHY_N(0x1AF)
586 #define B43_NPHY_RSSIMC_1I_RSSI_X B43_PHY_N(0x1B0)
587 #define B43_NPHY_RSSIMC_1I_RSSI_Y B43_PHY_N(0x1B1)
588 #define B43_NPHY_RSSIMC_1I_RSSI_Z B43_PHY_N(0x1B2)
589 #define B43_NPHY_RSSIMC_1I_TBD B43_PHY_N(0x1B3)
590 #define B43_NPHY_RSSIMC_1I_PWRDET B43_PHY_N(0x1B4)
591 #define B43_NPHY_RSSIMC_1I_TSSI B43_PHY_N(0x1B5)
592 #define B43_NPHY_RSSIMC_1Q_RSSI_X B43_PHY_N(0x1B6)
593 #define B43_NPHY_RSSIMC_1Q_RSSI_Y B43_PHY_N(0x1B7)
594 #define B43_NPHY_RSSIMC_1Q_RSSI_Z B43_PHY_N(0x1B8)
595 #define B43_NPHY_RSSIMC_1Q_TBD B43_PHY_N(0x1B9)
596 #define B43_NPHY_RSSIMC_1Q_PWRDET B43_PHY_N(0x1BA)
597 #define B43_NPHY_RSSIMC_1Q_TSSI B43_PHY_N(0x1BB)
598 #define B43_NPHY_SAMC_WCNT B43_PHY_N(0x1BC)
599 #define B43_NPHY_PTHROUGH_CNT B43_PHY_N(0x1BD)
600 #define B43_NPHY_LTRN_OFF_G20L B43_PHY_N(0x1C4)
601 #define B43_NPHY_LTRN_OFF_20L B43_PHY_N(0x1C5)
602 #define B43_NPHY_LTRN_OFF_G20U B43_PHY_N(0x1C6)
603 #define B43_NPHY_LTRN_OFF_20U B43_PHY_N(0x1C7)
604 #define B43_NPHY_DSSSCCK_GAINSL B43_PHY_N(0x1C8)
605 #define B43_NPHY_GPIO_LOOUT B43_PHY_N(0x1C9)
606 #define B43_NPHY_GPIO_HIOUT B43_PHY_N(0x1CA)
607 #define B43_NPHY_CRS_CHECK B43_PHY_N(0x1CB)
608 #define B43_NPHY_ML_LOGSS_RAT B43_PHY_N(0x1CC)
609 #define B43_NPHY_DUPSCALE B43_PHY_N(0x1CD)
610 #define B43_NPHY_BW1A B43_PHY_N(0x1CE)
611 #define B43_NPHY_BW2 B43_PHY_N(0x1CF)
612 #define B43_NPHY_BW3 B43_PHY_N(0x1D0)
613 #define B43_NPHY_BW4 B43_PHY_N(0x1D1)
614 #define B43_NPHY_BW5 B43_PHY_N(0x1D2)
615 #define B43_NPHY_BW6 B43_PHY_N(0x1D3)
616 #define B43_NPHY_COALEN0 B43_PHY_N(0x1D4)
617 #define B43_NPHY_COALEN1 B43_PHY_N(0x1D5)
618 #define B43_NPHY_CRSTHRES_1U B43_PHY_N(0x1D6)
619 #define B43_NPHY_CRSTHRES_2U B43_PHY_N(0x1D7)
620 #define B43_NPHY_CRSTHRES_3U B43_PHY_N(0x1D8)
621 #define B43_NPHY_CRSCTL_U B43_PHY_N(0x1D9)
622 #define B43_NPHY_CRSTHRES_1L B43_PHY_N(0x1DA)
623 #define B43_NPHY_CRSTHRES_2L B43_PHY_N(0x1DB)
624 #define B43_NPHY_CRSTHRES_3L B43_PHY_N(0x1DC)
625 #define B43_NPHY_CRSCTL_L B43_PHY_N(0x1DD)
626 #define B43_NPHY_STRA_1U B43_PHY_N(0x1DE)
627 #define B43_NPHY_STRA_2U B43_PHY_N(0x1DF)
628 #define B43_NPHY_STRA_1L B43_PHY_N(0x1E0)
629 #define B43_NPHY_STRA_2L B43_PHY_N(0x1E1)
630 #define B43_NPHY_CRSCHECK1 B43_PHY_N(0x1E2)
631 #define B43_NPHY_CRSCHECK2 B43_PHY_N(0x1E3)
632 #define B43_NPHY_CRSCHECK3 B43_PHY_N(0x1E4)
633 #define B43_NPHY_JMPSTP0 B43_PHY_N(0x1E5)
634 #define B43_NPHY_JMPSTP1 B43_PHY_N(0x1E6)
635 #define B43_NPHY_TXPCTL_CMD B43_PHY_N(0x1E7)
636 #define B43_NPHY_TXPCTL_CMD_INIT 0x007F
637 #define B43_NPHY_TXPCTL_CMD_INIT_SHIFT 0
638 #define B43_NPHY_TXPCTL_CMD_COEFF 0x2000
639 #define B43_NPHY_TXPCTL_CMD_HWPCTLEN 0x4000
640 #define B43_NPHY_TXPCTL_CMD_PCTLEN 0x8000
641 #define B43_NPHY_TXPCTL_N B43_PHY_N(0x1E8)
642 #define B43_NPHY_TXPCTL_N_TSSID 0x00FF
643 #define B43_NPHY_TXPCTL_N_TSSID_SHIFT 0
644 #define B43_NPHY_TXPCTL_N_NPTIL2 0x0700
645 #define B43_NPHY_TXPCTL_N_NPTIL2_SHIFT 8
646 #define B43_NPHY_TXPCTL_ITSSI B43_PHY_N(0x1E9)
647 #define B43_NPHY_TXPCTL_ITSSI_0 0x003F
648 #define B43_NPHY_TXPCTL_ITSSI_0_SHIFT 0
649 #define B43_NPHY_TXPCTL_ITSSI_1 0x3F00
650 #define B43_NPHY_TXPCTL_ITSSI_1_SHIFT 8
651 #define B43_NPHY_TXPCTL_ITSSI_BINF 0x8000
652 #define B43_NPHY_TXPCTL_TPWR B43_PHY_N(0x1EA)
653 #define B43_NPHY_TXPCTL_TPWR_0 0x00FF
654 #define B43_NPHY_TXPCTL_TPWR_0_SHIFT 0
655 #define B43_NPHY_TXPCTL_TPWR_1 0xFF00
656 #define B43_NPHY_TXPCTL_TPWR_1_SHIFT 8
657 #define B43_NPHY_TXPCTL_BIDX B43_PHY_N(0x1EB)
658 #define B43_NPHY_TXPCTL_BIDX_0 0x007F
659 #define B43_NPHY_TXPCTL_BIDX_0_SHIFT 0
660 #define B43_NPHY_TXPCTL_BIDX_1 0x7F00
661 #define B43_NPHY_TXPCTL_BIDX_1_SHIFT 8
662 #define B43_NPHY_TXPCTL_BIDX_LOAD 0x8000
663 #define B43_NPHY_TXPCTL_PIDX B43_PHY_N(0x1EC)
664 #define B43_NPHY_TXPCTL_PIDX_0 0x007F
665 #define B43_NPHY_TXPCTL_PIDX_0_SHIFT 0
666 #define B43_NPHY_TXPCTL_PIDX_1 0x7F00
667 #define B43_NPHY_TXPCTL_PIDX_1_SHIFT 8
668 #define B43_NPHY_C1_TXPCTL_STAT B43_PHY_N(0x1ED)
669 #define B43_NPHY_C2_TXPCTL_STAT B43_PHY_N(0x1EE)
670 #define B43_NPHY_TXPCTL_STAT_EST 0x00FF
671 #define B43_NPHY_TXPCTL_STAT_EST_SHIFT 0
672 #define B43_NPHY_TXPCTL_STAT_BIDX 0x7F00
673 #define B43_NPHY_TXPCTL_STAT_BIDX_SHIFT 8
674 #define B43_NPHY_TXPCTL_STAT_ESTVALID 0x8000
675 #define B43_NPHY_SMALLSGS_LEN B43_PHY_N(0x1EF)
676 #define B43_NPHY_PHYSTAT_GAIN0 B43_PHY_N(0x1F0)
677 #define B43_NPHY_PHYSTAT_GAIN1 B43_PHY_N(0x1F1)
678 #define B43_NPHY_PHYSTAT_FREQEST B43_PHY_N(0x1F2)
679 #define B43_NPHY_PHYSTAT_ADVRET B43_PHY_N(0x1F3)
680 #define B43_NPHY_PHYLB_MODE B43_PHY_N(0x1F4)
681 #define B43_NPHY_TONE_MIDX20_1 B43_PHY_N(0x1F5)
682 #define B43_NPHY_TONE_MIDX20_2 B43_PHY_N(0x1F6)
683 #define B43_NPHY_TONE_MIDX20_3 B43_PHY_N(0x1F7)
684 #define B43_NPHY_TONE_MIDX40_1 B43_PHY_N(0x1F8)
685 #define B43_NPHY_TONE_MIDX40_2 B43_PHY_N(0x1F9)
686 #define B43_NPHY_TONE_MIDX40_3 B43_PHY_N(0x1FA)
687 #define B43_NPHY_TONE_MIDX40_4 B43_PHY_N(0x1FB)
688 #define B43_NPHY_PILTONE_MIDX1 B43_PHY_N(0x1FC)
689 #define B43_NPHY_PILTONE_MIDX2 B43_PHY_N(0x1FD)
690 #define B43_NPHY_PILTONE_MIDX3 B43_PHY_N(0x1FE)
691 #define B43_NPHY_TXRIFS_FRDEL B43_PHY_N(0x1FF)
692 #define B43_NPHY_AFESEQ_RX2TX_PUD_40M B43_PHY_N(0x200)
693 #define B43_NPHY_AFESEQ_TX2RX_PUD_40M B43_PHY_N(0x201)
694 #define B43_NPHY_AFESEQ_RX2TX_PUD_20M B43_PHY_N(0x202)
695 #define B43_NPHY_AFESEQ_TX2RX_PUD_20M B43_PHY_N(0x203)
696 #define B43_NPHY_RX_SIGCTL B43_PHY_N(0x204)
697 #define B43_NPHY_RXPIL_CYCNT0 B43_PHY_N(0x205)
698 #define B43_NPHY_RXPIL_CYCNT1 B43_PHY_N(0x206)
699 #define B43_NPHY_RXPIL_CYCNT2 B43_PHY_N(0x207)
700 #define B43_NPHY_AFESEQ_RX2TX_PUD_10M B43_PHY_N(0x208)
701 #define B43_NPHY_AFESEQ_TX2RX_PUD_10M B43_PHY_N(0x209)
702 #define B43_NPHY_DSSSCCK_CRSEXTL B43_PHY_N(0x20A)
703 #define B43_NPHY_ML_LOGSS_RATSLOPE B43_PHY_N(0x20B)
704 #define B43_NPHY_RIFS_SRCTL B43_PHY_N(0x20C)
705 #define B43_NPHY_TXREALFD B43_PHY_N(0x20D)
706 #define B43_NPHY_HPANT_SWTHRES B43_PHY_N(0x20E)
707 #define B43_NPHY_EDCRS_ASSTHRES0 B43_PHY_N(0x210)
708 #define B43_NPHY_EDCRS_ASSTHRES1 B43_PHY_N(0x211)
709 #define B43_NPHY_EDCRS_DEASSTHRES0 B43_PHY_N(0x212)
710 #define B43_NPHY_EDCRS_DEASSTHRES1 B43_PHY_N(0x213)
711 #define B43_NPHY_STR_WTIME20U B43_PHY_N(0x214)
712 #define B43_NPHY_STR_WTIME20L B43_PHY_N(0x215)
713 #define B43_NPHY_TONE_MIDX657M B43_PHY_N(0x216)
714 #define B43_NPHY_HTSIGTONES B43_PHY_N(0x217)
715 #define B43_NPHY_RSSI1 B43_PHY_N(0x219)
716 #define B43_NPHY_RSSI2 B43_PHY_N(0x21A)
717 #define B43_NPHY_CHAN_ESTHANG B43_PHY_N(0x21D)
718 #define B43_NPHY_FINERX2_CGC B43_PHY_N(0x221)
719 #define B43_NPHY_FINERX2_CGC_DECGC 0x0008
720 #define B43_NPHY_TXPCTL_INIT B43_PHY_N(0x222)
721 #define B43_NPHY_TXPCTL_INIT_PIDXI1 0x00FF
722 #define B43_NPHY_TXPCTL_INIT_PIDXI1_SHIFT 0
723 #define B43_NPHY_ED_CRSEN B43_PHY_N(0x223)
724 #define B43_NPHY_ED_CRS40ASSERTTHRESH0 B43_PHY_N(0x224)
725 #define B43_NPHY_ED_CRS40ASSERTTHRESH1 B43_PHY_N(0x225)
726 #define B43_NPHY_ED_CRS40DEASSERTTHRESH0 B43_PHY_N(0x226)
727 #define B43_NPHY_ED_CRS40DEASSERTTHRESH1 B43_PHY_N(0x227)
728 #define B43_NPHY_ED_CRS20LASSERTTHRESH0 B43_PHY_N(0x228)
729 #define B43_NPHY_ED_CRS20LASSERTTHRESH1 B43_PHY_N(0x229)
730 #define B43_NPHY_ED_CRS20LDEASSERTTHRESH0 B43_PHY_N(0x22A)
731 #define B43_NPHY_ED_CRS20LDEASSERTTHRESH1 B43_PHY_N(0x22B)
732 #define B43_NPHY_ED_CRS20UASSERTTHRESH0 B43_PHY_N(0x22C)
733 #define B43_NPHY_ED_CRS20UASSERTTHRESH1 B43_PHY_N(0x22D)
734 #define B43_NPHY_ED_CRS20UDEASSERTTHRESH0 B43_PHY_N(0x22E)
735 #define B43_NPHY_ED_CRS20UDEASSERTTHRESH1 B43_PHY_N(0x22F)
736 #define B43_NPHY_ED_CRS B43_PHY_N(0x230)
737 #define B43_NPHY_TIMEOUTEN B43_PHY_N(0x231)
738 #define B43_NPHY_OFDMPAYDECODETIMEOUTLEN B43_PHY_N(0x232)
739 #define B43_NPHY_CCKPAYDECODETIMEOUTLEN B43_PHY_N(0x233)
740 #define B43_NPHY_NONPAYDECODETIMEOUTLEN B43_PHY_N(0x234)
741 #define B43_NPHY_TIMEOUTSTATUS B43_PHY_N(0x235)
742 #define B43_NPHY_RFCTRLCORE0GPIO0 B43_PHY_N(0x236)
743 #define B43_NPHY_RFCTRLCORE0GPIO1 B43_PHY_N(0x237)
744 #define B43_NPHY_RFCTRLCORE0GPIO2 B43_PHY_N(0x238)
745 #define B43_NPHY_RFCTRLCORE0GPIO3 B43_PHY_N(0x239)
746 #define B43_NPHY_RFCTRLCORE1GPIO0 B43_PHY_N(0x23A)
747 #define B43_NPHY_RFCTRLCORE1GPIO1 B43_PHY_N(0x23B)
748 #define B43_NPHY_RFCTRLCORE1GPIO2 B43_PHY_N(0x23C)
749 #define B43_NPHY_RFCTRLCORE1GPIO3 B43_PHY_N(0x23D)
750 #define B43_NPHY_BPHYTESTCONTROL B43_PHY_N(0x23E)
751
752 #define B43_NPHY_FORCEFRONT0 B43_PHY_N(0x23F)
753 #define B43_NPHY_FORCEFRONT1 B43_PHY_N(0x240)
754 #define B43_NPHY_NORMVARHYSTTH B43_PHY_N(0x241)
755 #define B43_NPHY_TXCCKERROR B43_PHY_N(0x242)
756 #define B43_NPHY_AFESEQINITDACGAIN B43_PHY_N(0x243)
757 #define B43_NPHY_TXANTSWLUT B43_PHY_N(0x244)
758 #define B43_NPHY_CORECONFIG B43_PHY_N(0x245)
759 #define B43_NPHY_ANTENNADIVDWELLTIME B43_PHY_N(0x246)
760 #define B43_NPHY_ANTENNACCKDIVDWELLTIME B43_PHY_N(0x247)
761 #define B43_NPHY_ANTENNADIVBACKOFFGAIN B43_PHY_N(0x248)
762 #define B43_NPHY_ANTENNADIVMINGAIN B43_PHY_N(0x249)
763 #define B43_NPHY_BRDSEL_NORMVARHYSTTH B43_PHY_N(0x24A)
764 #define B43_NPHY_RXANTSWITCHCTRL B43_PHY_N(0x24B)
765 #define B43_NPHY_ENERGYDROPTIMEOUTLEN2 B43_PHY_N(0x24C)
766 #define B43_NPHY_ML_LOG_TXEVM0 B43_PHY_N(0x250)
767 #define B43_NPHY_ML_LOG_TXEVM1 B43_PHY_N(0x251)
768 #define B43_NPHY_ML_LOG_TXEVM2 B43_PHY_N(0x252)
769 #define B43_NPHY_ML_LOG_TXEVM3 B43_PHY_N(0x253)
770 #define B43_NPHY_ML_LOG_TXEVM4 B43_PHY_N(0x254)
771 #define B43_NPHY_ML_LOG_TXEVM5 B43_PHY_N(0x255)
772 #define B43_NPHY_ML_LOG_TXEVM6 B43_PHY_N(0x256)
773 #define B43_NPHY_ML_LOG_TXEVM7 B43_PHY_N(0x257)
774 #define B43_NPHY_ML_SCALE_TWEAK B43_PHY_N(0x258)
775 #define B43_NPHY_MLUA B43_PHY_N(0x259)
776 #define B43_NPHY_ZFUA B43_PHY_N(0x25A)
777 #define B43_NPHY_CHANUPSYM01 B43_PHY_N(0x25B)
778 #define B43_NPHY_CHANUPSYM2 B43_PHY_N(0x25C)
779 #define B43_NPHY_RXSTRNFILT20NUM00 B43_PHY_N(0x25D)
780 #define B43_NPHY_RXSTRNFILT20NUM01 B43_PHY_N(0x25E)
781 #define B43_NPHY_RXSTRNFILT20NUM02 B43_PHY_N(0x25F)
782 #define B43_NPHY_RXSTRNFILT20DEN00 B43_PHY_N(0x260)
783 #define B43_NPHY_RXSTRNFILT20DEN01 B43_PHY_N(0x261)
784 #define B43_NPHY_RXSTRNFILT20NUM10 B43_PHY_N(0x262)
785 #define B43_NPHY_RXSTRNFILT20NUM11 B43_PHY_N(0x263)
786 #define B43_NPHY_RXSTRNFILT20NUM12 B43_PHY_N(0x264)
787 #define B43_NPHY_RXSTRNFILT20DEN10 B43_PHY_N(0x265)
788 #define B43_NPHY_RXSTRNFILT20DEN11 B43_PHY_N(0x266)
789 #define B43_NPHY_RXSTRNFILT40NUM00 B43_PHY_N(0x267)
790 #define B43_NPHY_RXSTRNFILT40NUM01 B43_PHY_N(0x268)
791 #define B43_NPHY_RXSTRNFILT40NUM02 B43_PHY_N(0x269)
792 #define B43_NPHY_RXSTRNFILT40DEN00 B43_PHY_N(0x26A)
793 #define B43_NPHY_RXSTRNFILT40DEN01 B43_PHY_N(0x26B)
794 #define B43_NPHY_RXSTRNFILT40NUM10 B43_PHY_N(0x26C)
795 #define B43_NPHY_RXSTRNFILT40NUM11 B43_PHY_N(0x26D)
796 #define B43_NPHY_RXSTRNFILT40NUM12 B43_PHY_N(0x26E)
797 #define B43_NPHY_RXSTRNFILT40DEN10 B43_PHY_N(0x26F)
798 #define B43_NPHY_RXSTRNFILT40DEN11 B43_PHY_N(0x270)
799 #define B43_NPHY_CRSHIGHPOWTHRESHOLD1 B43_PHY_N(0x271)
800 #define B43_NPHY_CRSHIGHPOWTHRESHOLD2 B43_PHY_N(0x272)
801 #define B43_NPHY_CRSHIGHLOWPOWTHRESHOLD B43_PHY_N(0x273)
802 #define B43_NPHY_CRSHIGHPOWTHRESHOLD1L B43_PHY_N(0x274)
803 #define B43_NPHY_CRSHIGHPOWTHRESHOLD2L B43_PHY_N(0x275)
804 #define B43_NPHY_CRSHIGHLOWPOWTHRESHOLDL B43_PHY_N(0x276)
805 #define B43_NPHY_CRSHIGHPOWTHRESHOLD1U B43_PHY_N(0x277)
806 #define B43_NPHY_CRSHIGHPOWTHRESHOLD2U B43_PHY_N(0x278)
807 #define B43_NPHY_CRSHIGHLOWPOWTHRESHOLDU B43_PHY_N(0x279)
808 #define B43_NPHY_CRSACIDETECTTHRESH B43_PHY_N(0x27A)
809 #define B43_NPHY_CRSACIDETECTTHRESHL B43_PHY_N(0x27B)
810 #define B43_NPHY_CRSACIDETECTTHRESHU B43_PHY_N(0x27C)
811 #define B43_NPHY_CRSMINPOWER0 B43_PHY_N(0x27D)
812 #define B43_NPHY_CRSMINPOWER1 B43_PHY_N(0x27E)
813 #define B43_NPHY_CRSMINPOWER2 B43_PHY_N(0x27F)
814 #define B43_NPHY_CRSMINPOWERL0 B43_PHY_N(0x280)
815 #define B43_NPHY_CRSMINPOWERL1 B43_PHY_N(0x281)
816 #define B43_NPHY_CRSMINPOWERL2 B43_PHY_N(0x282)
817 #define B43_NPHY_CRSMINPOWERU0 B43_PHY_N(0x283)
818 #define B43_NPHY_CRSMINPOWERU1 B43_PHY_N(0x284)
819 #define B43_NPHY_CRSMINPOWERU2 B43_PHY_N(0x285)
820 #define B43_NPHY_STRPARAM B43_PHY_N(0x286)
821 #define B43_NPHY_STRPARAML B43_PHY_N(0x287)
822 #define B43_NPHY_STRPARAMU B43_PHY_N(0x288)
823 #define B43_NPHY_BPHYCRSMINPOWER0 B43_PHY_N(0x289)
824 #define B43_NPHY_BPHYCRSMINPOWER1 B43_PHY_N(0x28A)
825 #define B43_NPHY_BPHYCRSMINPOWER2 B43_PHY_N(0x28B)
826 #define B43_NPHY_BPHYFILTDEN0COEF B43_PHY_N(0x28C)
827 #define B43_NPHY_BPHYFILTDEN1COEF B43_PHY_N(0x28D)
828 #define B43_NPHY_BPHYFILTDEN2COEF B43_PHY_N(0x28E)
829 #define B43_NPHY_BPHYFILTNUM0COEF B43_PHY_N(0x28F)
830 #define B43_NPHY_BPHYFILTNUM1COEF B43_PHY_N(0x290)
831 #define B43_NPHY_BPHYFILTNUM2COEF B43_PHY_N(0x291)
832 #define B43_NPHY_BPHYFILTNUM01COEF2 B43_PHY_N(0x292)
833 #define B43_NPHY_BPHYFILTBYPASS B43_PHY_N(0x293)
834 #define B43_NPHY_SGILTRNOFFSET B43_PHY_N(0x294)
835 #define B43_NPHY_RADAR_T2_MIN B43_PHY_N(0x295)
836 #define B43_NPHY_TXPWRCTRLDAMPING B43_PHY_N(0x296)
837 #define B43_NPHY_PAPD_EN0 B43_PHY_N(0x297)
838 #define B43_NPHY_EPS_TABLE_ADJ0 B43_PHY_N(0x298)
839 #define B43_NPHY_EPS_OVERRIDEI_0 B43_PHY_N(0x299)
840 #define B43_NPHY_EPS_OVERRIDEQ_0 B43_PHY_N(0x29A)
841 #define B43_NPHY_PAPD_EN1 B43_PHY_N(0x29B)
842 #define B43_NPHY_EPS_TABLE_ADJ1 B43_PHY_N(0x29C)
843 #define B43_NPHY_EPS_OVERRIDEI_1 B43_PHY_N(0x29D)
844 #define B43_NPHY_EPS_OVERRIDEQ_1 B43_PHY_N(0x29E)
845 #define B43_NPHY_PAPD_CAL_ADDRESS B43_PHY_N(0x29F)
846 #define B43_NPHY_PAPD_CAL_YREFEPSILON B43_PHY_N(0x2A0)
847 #define B43_NPHY_PAPD_CAL_SETTLE B43_PHY_N(0x2A1)
848 #define B43_NPHY_PAPD_CAL_CORRELATE B43_PHY_N(0x2A2)
849 #define B43_NPHY_PAPD_CAL_SHIFTS0 B43_PHY_N(0x2A3)
850 #define B43_NPHY_PAPD_CAL_SHIFTS1 B43_PHY_N(0x2A4)
851 #define B43_NPHY_SAMPLE_START_ADDR B43_PHY_N(0x2A5)
852 #define B43_NPHY_RADAR_ADC_TO_DBM B43_PHY_N(0x2A6)
853 #define B43_NPHY_REV3_C2_INITGAIN_A B43_PHY_N(0x2A7)
854 #define B43_NPHY_REV3_C2_INITGAIN_B B43_PHY_N(0x2A8)
855 #define B43_NPHY_REV3_C2_CLIP_HIGAIN_A B43_PHY_N(0x2A9)
856 #define B43_NPHY_REV3_C2_CLIP_HIGAIN_B B43_PHY_N(0x2AA)
857 #define B43_NPHY_REV3_C2_CLIP_MEDGAIN_A B43_PHY_N(0x2AB)
858 #define B43_NPHY_REV3_C2_CLIP_MEDGAIN_B B43_PHY_N(0x2AC)
859 #define B43_NPHY_REV3_C2_CLIP_LOGAIN_A B43_PHY_N(0x2AD)
860 #define B43_NPHY_REV3_C2_CLIP_LOGAIN_B B43_PHY_N(0x2AE)
861 #define B43_NPHY_REV3_C2_CLIP2_GAIN_A B43_PHY_N(0x2AF)
862 #define B43_NPHY_REV3_C2_CLIP2_GAIN_B B43_PHY_N(0x2B0)
863
864 #define B43_NPHY_REV7_RF_CTL_MISC_REG3 B43_PHY_N(0x340)
865 #define B43_NPHY_REV7_RF_CTL_MISC_REG4 B43_PHY_N(0x341)
866 #define B43_NPHY_REV7_RF_CTL_OVER3 B43_PHY_N(0x342)
867 #define B43_NPHY_REV7_RF_CTL_OVER4 B43_PHY_N(0x343)
868 #define B43_NPHY_REV7_RF_CTL_MISC_REG5 B43_PHY_N(0x344)
869 #define B43_NPHY_REV7_RF_CTL_MISC_REG6 B43_PHY_N(0x345)
870 #define B43_NPHY_REV7_RF_CTL_OVER5 B43_PHY_N(0x346)
871 #define B43_NPHY_REV7_RF_CTL_OVER6 B43_PHY_N(0x347)
872
873 #define B43_PHY_B_BBCFG B43_PHY_N_BMODE(0x001)
874 #define B43_PHY_B_BBCFG_RSTCCA 0x4000
875 #define B43_PHY_B_BBCFG_RSTRX 0x8000
876 #define B43_PHY_B_TEST B43_PHY_N_BMODE(0x00A)
877
878 struct b43_wldev;
879
880 enum b43_nphy_spur_avoid {
881 B43_SPUR_AVOID_DISABLE,
882 B43_SPUR_AVOID_AUTO,
883 B43_SPUR_AVOID_FORCE,
884 };
885
886 struct b43_chanspec {
887 u16 center_freq;
888 enum nl80211_channel_type channel_type;
889 };
890
891 struct b43_phy_n_iq_comp {
892 s16 a0;
893 s16 b0;
894 s16 a1;
895 s16 b1;
896 };
897
898 struct b43_phy_n_rssical_cache {
899 u16 rssical_radio_regs_2G[2];
900 u16 rssical_phy_regs_2G[12];
901
902 u16 rssical_radio_regs_5G[2];
903 u16 rssical_phy_regs_5G[12];
904 };
905
906 struct b43_phy_n_cal_cache {
907 u16 txcal_radio_regs_2G[8];
908 u16 txcal_coeffs_2G[8];
909 struct b43_phy_n_iq_comp rxcal_coeffs_2G;
910
911 u16 txcal_radio_regs_5G[8];
912 u16 txcal_coeffs_5G[8];
913 struct b43_phy_n_iq_comp rxcal_coeffs_5G;
914 };
915
916 struct b43_phy_n_txpwrindex {
917 s8 index;
918 s8 index_internal;
919 s8 index_internal_save;
920 u16 AfectrlOverride;
921 u16 AfeCtrlDacGain;
922 u16 rad_gain;
923 u8 bbmult;
924 u16 iqcomp_a;
925 u16 iqcomp_b;
926 u16 locomp;
927 };
928
929 struct b43_phy_n_pwr_ctl_info {
930 u8 idle_tssi_2g;
931 u8 idle_tssi_5g;
932 };
933
934 struct b43_phy_n {
935 u8 antsel_type;
936 u8 cal_orig_pwr_idx[2];
937 u8 measure_hold;
938 u8 phyrxchain;
939 u8 hw_phyrxchain;
940 u8 hw_phytxchain;
941 u8 perical;
942 u32 deaf_count;
943 u32 rxcalparams;
944 bool hang_avoid;
945 bool mute;
946 u16 papd_epsilon_offset[2];
947 s32 preamble_override;
948 u32 bb_mult_save;
949
950 bool gain_boost;
951 bool elna_gain_config;
952 bool band5g_pwrgain;
953 bool use_int_tx_iq_lo_cal;
954 bool lpf_bw_overrode_for_sample_play;
955
956 u8 mphase_cal_phase_id;
957 u16 mphase_txcal_cmdidx;
958 u16 mphase_txcal_numcmds;
959 u16 mphase_txcal_bestcoeffs[11];
960
961 bool txpwrctrl;
962 bool pwg_gain_5ghz;
963 u8 tx_pwr_idx[2];
964 s8 tx_power_offset[101];
965 u16 adj_pwr_tbl[84];
966 u16 txcal_bbmult;
967 u16 txiqlocal_bestc[11];
968 bool txiqlocal_coeffsvalid;
969 struct b43_phy_n_txpwrindex txpwrindex[2];
970 struct b43_phy_n_pwr_ctl_info pwr_ctl_info[2];
971 struct b43_chanspec txiqlocal_chanspec;
972 struct b43_ppr tx_pwr_max_ppr;
973 u16 tx_pwr_last_recalc_freq;
974 int tx_pwr_last_recalc_limit;
975
976 u8 txrx_chain;
977 u16 tx_rx_cal_phy_saveregs[11];
978 u16 tx_rx_cal_radio_saveregs[22];
979
980 u16 rfctrl_intc1_save;
981 u16 rfctrl_intc2_save;
982
983 u16 classifier_state;
984 u16 clip_state[2];
985
986 enum b43_nphy_spur_avoid spur_avoid;
987 bool aband_spurwar_en;
988 bool gband_spurwar_en;
989
990 bool ipa2g_on;
991 struct b43_chanspec iqcal_chanspec_2G;
992 struct b43_chanspec rssical_chanspec_2G;
993
994 bool ipa5g_on;
995 struct b43_chanspec iqcal_chanspec_5G;
996 struct b43_chanspec rssical_chanspec_5G;
997
998 struct b43_phy_n_rssical_cache rssical_cache;
999 struct b43_phy_n_cal_cache cal_cache;
1000 bool crsminpwr_adjusted;
1001 bool noisevars_adjusted;
1002 };
1003
1004
1005 struct b43_phy_operations;
1006 extern const struct b43_phy_operations b43_phyops_n;
1007
1008 #endif