xref: /linux/drivers/net/wireless/realtek/rtw89/reg.h (revision 34f7c6e7d4396090692a09789db231e12cb4762b)
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2019-2020  Realtek Corporation
3  */
4 
5 #ifndef __RTW89_REG_H__
6 #define __RTW89_REG_H__
7 
8 #define R_AX_SYS_WL_EFUSE_CTRL 0x000A
9 #define B_AX_AUTOLOAD_SUS BIT(5)
10 
11 #define R_AX_SYS_ISO_CTRL 0x0000
12 #define B_AX_PWC_EV2EF_MASK GENMASK(15, 14)
13 #define B_AX_PWC_EV2EF_B15 BIT(15)
14 #define B_AX_PWC_EV2EF_B14 BIT(14)
15 #define B_AX_ISO_EB2CORE BIT(8)
16 
17 #define R_AX_SYS_FUNC_EN 0x0002
18 #define B_AX_FEN_BB_GLB_RSTN BIT(1)
19 #define B_AX_FEN_BBRSTB BIT(0)
20 
21 #define R_AX_SYS_PW_CTRL 0x0004
22 #define B_AX_XTAL_OFF_A_DIE BIT(22)
23 #define B_AX_DIS_WLBT_PDNSUSEN_SOPC BIT(18)
24 #define B_AX_RDY_SYSPWR BIT(17)
25 #define B_AX_EN_WLON BIT(16)
26 #define B_AX_APDM_HPDN BIT(15)
27 #define B_AX_PSUS_OFF_CAPC_EN BIT(14)
28 #define B_AX_AFSM_PCIE_SUS_EN BIT(12)
29 #define B_AX_AFSM_WLSUS_EN BIT(11)
30 #define B_AX_APFM_SWLPS BIT(10)
31 #define B_AX_APFM_OFFMAC BIT(9)
32 #define B_AX_APFN_ONMAC BIT(8)
33 
34 #define R_AX_SYS_CLK_CTRL 0x0008
35 #define B_AX_CPU_CLK_EN BIT(14)
36 
37 #define R_AX_SYS_ADIE_PAD_PWR_CTRL 0x0018
38 #define B_AX_SYM_PADPDN_WL_PTA_1P3 BIT(6)
39 #define B_AX_SYM_PADPDN_WL_RFC_1P3 BIT(5)
40 
41 #define R_AX_RSV_CTRL 0x001C
42 #define B_AX_R_DIS_PRST BIT(6)
43 #define B_AX_WLOCK_1C_BIT6 BIT(5)
44 
45 #define R_AX_EFUSE_CTRL_1 0x0038
46 #define B_AX_EF_PGPD_MASK GENMASK(30, 28)
47 #define B_AX_EF_RDT BIT(27)
48 #define B_AX_EF_VDDQST_MASK GENMASK(26, 24)
49 #define B_AX_EF_PGTS_MASK GENMASK(23, 20)
50 #define B_AX_EF_PD_DIS BIT(11)
51 #define B_AX_EF_POR BIT(10)
52 #define B_AX_EF_CELL_SEL_MASK GENMASK(9, 8)
53 
54 #define R_AX_SPSLDO_ON_CTRL0 0x0200
55 #define B_AX_OCP_L1_MASK GENMASK(15, 13)
56 
57 #define R_AX_EFUSE_CTRL 0x0030
58 #define B_AX_EF_MODE_SEL_MASK GENMASK(31, 30)
59 #define B_AX_EF_RDY BIT(29)
60 #define B_AX_EF_COMP_RESULT BIT(28)
61 #define B_AX_EF_ADDR_MASK GENMASK(26, 16)
62 #define B_AX_EF_DATA_MASK GENMASK(15, 0)
63 
64 #define R_AX_EFUSE_CTRL_1_V1 0x0038
65 #define B_AX_EF_ENT BIT(31)
66 #define B_AX_EF_BURST BIT(19)
67 #define B_AX_EF_TEST_SEL_MASK GENMASK(18, 16)
68 #define B_AX_EF_TROW_EN BIT(15)
69 #define B_AX_EF_ERR_FLAG BIT(14)
70 #define B_AX_EF_DSB_EN BIT(11)
71 #define B_AX_PCIE_CALIB_EN_V1 BIT(12)
72 #define B_AX_WDT_WAKE_PCIE_EN BIT(10)
73 #define B_AX_WDT_WAKE_USB_EN BIT(9)
74 
75 #define R_AX_GPIO_MUXCFG 0x0040
76 #define B_AX_BOOT_MODE BIT(19)
77 #define B_AX_WL_EECS_EXT_32K_SEL BIT(18)
78 #define B_AX_WL_SEC_BONDING_OPT_STS BIT(17)
79 #define B_AX_SECSIC_SEL BIT(16)
80 #define B_AX_ENHTP BIT(14)
81 #define B_AX_BT_AOD_GPIO3 BIT(13)
82 #define B_AX_ENSIC BIT(12)
83 #define B_AX_SIC_SWRST BIT(11)
84 #define B_AX_PO_WIFI_PTA_PINS BIT(10)
85 #define B_AX_PO_BT_PTA_PINS BIT(9)
86 #define B_AX_ENUARTTX BIT(8)
87 #define B_AX_BTMODE_MASK GENMASK(7, 6)
88 #define MAC_AX_BT_MODE_0_3 0
89 #define MAC_AX_BT_MODE_2 2
90 #define B_AX_ENBT BIT(5)
91 #define B_AX_EROM_EN BIT(4)
92 #define B_AX_ENUARTRX BIT(2)
93 #define B_AX_GPIOSEL_MASK GENMASK(1, 0)
94 
95 #define R_AX_DBG_CTRL 0x0058
96 #define B_AX_DBG_SEL1_4BIT GENMASK(31, 30)
97 #define B_AX_DBG_SEL1_16BIT BIT(27)
98 #define B_AX_DBG_SEL1 GENMASK(23, 16)
99 #define B_AX_DBG_SEL0_4BIT GENMASK(15, 14)
100 #define B_AX_DBG_SEL0_16BIT BIT(11)
101 #define B_AX_DBG_SEL0 GENMASK(7, 0)
102 
103 #define R_AX_SYS_SDIO_CTRL 0x0070
104 #define B_AX_PCIE_DIS_L2_CTRL_LDO_HCI BIT(15)
105 #define B_AX_PCIE_DIS_WLSUS_AFT_PDN BIT(14)
106 #define B_AX_PCIE_CALIB_EN_V1 BIT(12)
107 #define B_AX_PCIE_AUXCLK_GATE BIT(11)
108 #define B_AX_LTE_MUX_CTRL_PATH BIT(26)
109 
110 #define R_AX_PLATFORM_ENABLE 0x0088
111 #define B_AX_WCPU_EN BIT(1)
112 #define B_AX_PLATFORM_EN BIT(0)
113 
114 #define R_AX_WLLPS_CTRL 0x0090
115 #define B_AX_DIS_WLBT_LPSEN_LOPC BIT(1)
116 
117 #define R_AX_SCOREBOARD  0x00AC
118 #define B_AX_TOGGLE BIT(31)
119 #define B_MAC_AX_SB_FW_MASK GENMASK(30, 24)
120 #define B_MAC_AX_SB_DRV_MASK GENMASK(23, 0)
121 #define B_MAC_AX_BTGS1_NOTIFY BIT(0)
122 #define MAC_AX_NOTIFY_TP_MAJOR 0x81
123 #define MAC_AX_NOTIFY_PWR_MAJOR 0x80
124 
125 #define R_AX_DBG_PORT_SEL 0x00C0
126 #define B_AX_DEBUG_ST_MASK GENMASK(31, 0)
127 
128 #define R_AX_PMC_DBG_CTRL2 0x00CC
129 #define B_AX_SYSON_DIS_PMCR_AX_WRMSK BIT(2)
130 
131 #define R_AX_SYS_CFG1 0x00F0
132 #define B_AX_CHIP_VER_MASK GENMASK(15, 12)
133 
134 #define R_AX_SYS_STATUS1 0x00F4
135 #define B_AX_SEL_0XC0_MASK GENMASK(17, 16)
136 #define B_AX_PAD_HCI_SEL_V2_MASK GENMASK(5, 3)
137 #define MAC_AX_HCI_SEL_SDIO_UART 0
138 #define MAC_AX_HCI_SEL_MULTI_USB 1
139 #define MAC_AX_HCI_SEL_PCIE_UART 2
140 #define MAC_AX_HCI_SEL_PCIE_USB 3
141 #define MAC_AX_HCI_SEL_MULTI_SDIO 4
142 
143 #define R_AX_HALT_H2C_CTRL 0x0160
144 #define R_AX_HALT_H2C 0x0168
145 #define B_AX_HALT_H2C_TRIGGER BIT(0)
146 #define R_AX_HALT_C2H_CTRL 0x0164
147 #define R_AX_HALT_C2H 0x016C
148 
149 #define R_AX_WCPU_FW_CTRL 0x01E0
150 #define B_AX_WCPU_FWDL_STS_MASK GENMASK(7, 5)
151 #define B_AX_FWDL_PATH_RDY BIT(2)
152 #define B_AX_H2C_PATH_RDY BIT(1)
153 #define B_AX_WCPU_FWDL_EN BIT(0)
154 
155 #define R_AX_RPWM 0x01E4
156 #define R_AX_PCIE_HRPWM 0x10C0
157 #define PS_RPWM_TOGGLE BIT(15)
158 #define PS_RPWM_ACK BIT(14)
159 #define PS_RPWM_SEQ_NUM GENMASK(13, 12)
160 #define PS_RPWM_NOTIFY_WAKE BIT(8)
161 #define PS_RPWM_STATE 0x7
162 #define RPWM_SEQ_NUM_MAX 3
163 #define PS_CPWM_SEQ_NUM GENMASK(13, 12)
164 #define PS_CPWM_RSP_SEQ_NUM GENMASK(9, 8)
165 #define PS_CPWM_STATE GENMASK(2, 0)
166 #define CPWM_SEQ_NUM_MAX 3
167 
168 #define R_AX_BOOT_REASON 0x01E6
169 #define B_AX_BOOT_REASON_MASK GENMASK(2, 0)
170 
171 #define R_AX_LDM 0x01E8
172 #define B_AX_EN_32K BIT(31)
173 
174 #define R_AX_UDM0 0x01F0
175 #define R_AX_UDM1 0x01F4
176 #define R_AX_UDM2 0x01F8
177 #define R_AX_UDM3 0x01FC
178 
179 #define R_AX_LDO_AON_CTRL0 0x0218
180 #define B_AX_PD_REGU_L BIT(16)
181 
182 #define R_AX_WLAN_XTAL_SI_CTRL 0x0270
183 #define B_AX_WL_XTAL_SI_CMD_POLL BIT(31)
184 #define B_AX_BT_XTAL_SI_ERR_FLAG BIT(30)
185 #define B_AX_WL_XTAL_GNT BIT(29)
186 #define B_AX_BT_XTAL_GNT BIT(28)
187 #define B_AX_WL_XTAL_SI_MODE_MASK GENMASK(25, 24)
188 #define XTAL_SI_NORMAL_WRITE 0x00
189 #define XTAL_SI_NORMAL_READ 0x01
190 #define B_AX_WL_XTAL_SI_BITMASK_MASK GENMASK(23, 16)
191 #define B_AX_WL_XTAL_SI_DATA_MASK GENMASK(15, 8)
192 #define B_AX_WL_XTAL_SI_ADDR_MASK GENMASK(7, 0)
193 
194 #define R_AX_XTAL_ON_CTRL0 0x0280
195 #define B_AX_XTAL_SC_LPS BIT(31)
196 #define B_AX_XTAL_SC_XO_MASK GENMASK(23, 17)
197 #define B_AX_XTAL_SC_XI_MASK GENMASK(16, 10)
198 #define B_AX_XTAL_SC_MASK GENMASK(6, 0)
199 
200 #define R_AX_GPIO0_7_FUNC_SEL 0x02D0
201 
202 #define R_AX_GPIO0_15_EECS_EESK_LED1_PULL_LOW_EN 0x02E4
203 #define B_AX_LED1_PULL_LOW_EN BIT(18)
204 #define B_AX_EESK_PULL_LOW_EN BIT(17)
205 #define B_AX_EECS_PULL_LOW_EN BIT(16)
206 
207 #define R_AX_WLRF_CTRL 0x02F0
208 #define B_AX_WLRF1_CTRL_7 BIT(15)
209 #define B_AX_WLRF1_CTRL_1 BIT(9)
210 #define B_AX_WLRF_CTRL_7 BIT(7)
211 #define B_AX_WLRF_CTRL_1 BIT(1)
212 
213 #define R_AX_IC_PWR_STATE 0x03F0
214 #define B_AX_WHOLE_SYS_PWR_STE_MASK GENMASK(25, 16)
215 #define B_AX_WLMAC_PWR_STE_MASK GENMASK(9, 8)
216 #define B_AX_UART_HCISYS_PWR_STE_MASK GENMASK(7, 6)
217 #define B_AX_SDIO_HCISYS_PWR_STE_MASK GENMASK(5, 4)
218 #define B_AX_USB_HCISYS_PWR_STE_MASK GENMASK(3, 2)
219 #define B_AX_PCIE_HCISYS_PWR_STE_MASK GENMASK(1, 0)
220 
221 #define R_AX_FILTER_MODEL_ADDR 0x0C04
222 
223 #define R_AX_PCIE_DBG_CTRL 0x11C0
224 #define B_AX_DBG_DUMMY_MASK GENMASK(23, 16)
225 #define B_AX_DBG_SEL_MASK GENMASK(15, 13)
226 #define B_AX_PCIE_DBG_SEL BIT(12)
227 #define B_AX_MRD_TIMEOUT_EN BIT(10)
228 #define B_AX_ASFF_FULL_NO_STK BIT(1)
229 #define B_AX_EN_STUCK_DBG BIT(0)
230 
231 #define R_AX_HCI_FC_CTRL_V1 0x1700
232 #define R_AX_CH_PAGE_CTRL_V1 0x1704
233 
234 #define R_AX_ACH0_PAGE_CTRL_V1 0x1710
235 #define R_AX_ACH1_PAGE_CTRL_V1 0x1714
236 #define R_AX_ACH2_PAGE_CTRL_V1 0x1718
237 #define R_AX_ACH3_PAGE_CTRL_V1 0x171C
238 #define R_AX_ACH4_PAGE_CTRL_V1 0x1720
239 #define R_AX_ACH5_PAGE_CTRL_V1 0x1724
240 #define R_AX_ACH6_PAGE_CTRL_V1 0x1728
241 #define R_AX_ACH7_PAGE_CTRL_V1 0x172C
242 #define R_AX_CH8_PAGE_CTRL_V1 0x1730
243 #define R_AX_CH9_PAGE_CTRL_V1 0x1734
244 #define R_AX_CH10_PAGE_CTRL_V1 0x1738
245 #define R_AX_CH11_PAGE_CTRL_V1 0x173C
246 
247 #define R_AX_ACH0_PAGE_INFO_V1 0x1750
248 #define R_AX_ACH1_PAGE_INFO_V1 0x1754
249 #define R_AX_ACH2_PAGE_INFO_V1 0x1758
250 #define R_AX_ACH3_PAGE_INFO_V1 0x175C
251 #define R_AX_ACH4_PAGE_INFO_V1 0x1760
252 #define R_AX_ACH5_PAGE_INFO_V1 0x1764
253 #define R_AX_ACH6_PAGE_INFO_V1 0x1768
254 #define R_AX_ACH7_PAGE_INFO_V1 0x176C
255 #define R_AX_CH8_PAGE_INFO_V1 0x1770
256 #define R_AX_CH9_PAGE_INFO_V1 0x1774
257 #define R_AX_CH10_PAGE_INFO_V1 0x1778
258 #define R_AX_CH11_PAGE_INFO_V1 0x177C
259 #define R_AX_CH12_PAGE_INFO_V1 0x1780
260 
261 #define R_AX_PUB_PAGE_INFO3_V1 0x178C
262 #define R_AX_PUB_PAGE_CTRL1_V1 0x1790
263 #define R_AX_PUB_PAGE_CTRL2_V1 0x1794
264 #define R_AX_PUB_PAGE_INFO1_V1 0x1798
265 #define R_AX_PUB_PAGE_INFO2_V1 0x179C
266 #define R_AX_WP_PAGE_CTRL1_V1 0x17A0
267 #define R_AX_WP_PAGE_CTRL2_V1 0x17A4
268 #define R_AX_WP_PAGE_INFO1_V1 0x17A8
269 
270 #define R_AX_H2CREG_DATA0_V1 0x7140
271 #define R_AX_H2CREG_DATA1_V1 0x7144
272 #define R_AX_H2CREG_DATA2_V1 0x7148
273 #define R_AX_H2CREG_DATA3_V1 0x714C
274 #define R_AX_C2HREG_DATA0_V1 0x7150
275 #define R_AX_C2HREG_DATA1_V1 0x7154
276 #define R_AX_C2HREG_DATA2_V1 0x7158
277 #define R_AX_C2HREG_DATA3_V1 0x715C
278 #define R_AX_H2CREG_CTRL_V1 0x7160
279 #define R_AX_C2HREG_CTRL_V1 0x7164
280 
281 #define R_AX_HCI_FUNC_EN_V1 0x7880
282 
283 #define R_AX_PHYREG_SET 0x8040
284 #define PHYREG_SET_ALL_CYCLE 0x8
285 
286 #define R_AX_HD0IMR 0x8110
287 #define B_AX_WDT_PTFM_INT_EN BIT(5)
288 #define B_AX_CPWM_INT_EN BIT(2)
289 #define B_AX_GT3_INT_EN BIT(1)
290 #define B_AX_C2H_INT_EN BIT(0)
291 #define R_AX_HD0ISR 0x8114
292 #define B_AX_C2H_INT BIT(0)
293 
294 #define R_AX_H2CREG_DATA0 0x8140
295 #define R_AX_H2CREG_DATA1 0x8144
296 #define R_AX_H2CREG_DATA2 0x8148
297 #define R_AX_H2CREG_DATA3 0x814C
298 #define R_AX_C2HREG_DATA0 0x8150
299 #define R_AX_C2HREG_DATA1 0x8154
300 #define R_AX_C2HREG_DATA2 0x8158
301 #define R_AX_C2HREG_DATA3 0x815C
302 #define R_AX_H2CREG_CTRL 0x8160
303 #define B_AX_H2CREG_TRIGGER BIT(0)
304 #define R_AX_C2HREG_CTRL 0x8164
305 #define B_AX_C2HREG_TRIGGER BIT(0)
306 #define R_AX_CPWM 0x8170
307 
308 #define R_AX_HCI_FUNC_EN 0x8380
309 #define B_AX_HCI_RXDMA_EN BIT(1)
310 #define B_AX_HCI_TXDMA_EN BIT(0)
311 
312 #define R_AX_BOOT_DBG 0x83F0
313 
314 #define R_AX_DMAC_FUNC_EN 0x8400
315 #define B_AX_DMAC_CRPRT BIT(31)
316 #define B_AX_MAC_FUNC_EN BIT(30)
317 #define B_AX_DMAC_FUNC_EN BIT(29)
318 #define B_AX_MPDU_PROC_EN BIT(28)
319 #define B_AX_WD_RLS_EN BIT(27)
320 #define B_AX_DLE_WDE_EN BIT(26)
321 #define B_AX_TXPKT_CTRL_EN BIT(25)
322 #define B_AX_STA_SCH_EN BIT(24)
323 #define B_AX_DLE_PLE_EN BIT(23)
324 #define B_AX_PKT_BUF_EN BIT(22)
325 #define B_AX_DMAC_TBL_EN BIT(21)
326 #define B_AX_PKT_IN_EN BIT(20)
327 #define B_AX_DLE_CPUIO_EN BIT(19)
328 #define B_AX_DISPATCHER_EN BIT(18)
329 #define B_AX_BBRPT_EN BIT(17)
330 #define B_AX_MAC_SEC_EN BIT(16)
331 #define B_AX_MAC_UN_EN BIT(15)
332 #define B_AX_H_AXIDMA_EN BIT(14)
333 
334 #define R_AX_DMAC_CLK_EN 0x8404
335 #define B_AX_WD_RLS_CLK_EN BIT(27)
336 #define B_AX_DLE_WDE_CLK_EN BIT(26)
337 #define B_AX_TXPKT_CTRL_CLK_EN BIT(25)
338 #define B_AX_STA_SCH_CLK_EN BIT(24)
339 #define B_AX_DLE_PLE_CLK_EN BIT(23)
340 #define B_AX_PKT_IN_CLK_EN BIT(20)
341 #define B_AX_DLE_CPUIO_CLK_EN BIT(19)
342 #define B_AX_DISPATCHER_CLK_EN BIT(18)
343 #define B_AX_BBRPT_CLK_EN BIT(17)
344 #define B_AX_MAC_SEC_CLK_EN BIT(16)
345 
346 #define PCI_LTR_IDLE_TIMER_1US 0
347 #define PCI_LTR_IDLE_TIMER_10US 1
348 #define PCI_LTR_IDLE_TIMER_100US 2
349 #define PCI_LTR_IDLE_TIMER_200US 3
350 #define PCI_LTR_IDLE_TIMER_400US 4
351 #define PCI_LTR_IDLE_TIMER_800US 5
352 #define PCI_LTR_IDLE_TIMER_1_6MS 6
353 #define PCI_LTR_IDLE_TIMER_3_2MS 7
354 #define PCI_LTR_IDLE_TIMER_R_ERR 0xFD
355 #define PCI_LTR_IDLE_TIMER_DEF 0xFE
356 #define PCI_LTR_IDLE_TIMER_IGNORE 0xFF
357 
358 #define PCI_LTR_SPC_10US 0
359 #define PCI_LTR_SPC_100US 1
360 #define PCI_LTR_SPC_500US 2
361 #define PCI_LTR_SPC_1MS 3
362 #define PCI_LTR_SPC_R_ERR 0xFD
363 #define PCI_LTR_SPC_DEF 0xFE
364 #define PCI_LTR_SPC_IGNORE 0xFF
365 
366 #define R_AX_LTR_CTRL_0 0x8410
367 #define B_AX_LTR_SPACE_IDX_MASK GENMASK(13, 12)
368 #define B_AX_LTR_IDLE_TIMER_IDX_MASK GENMASK(10, 8)
369 #define B_AX_APP_LTR_ACT BIT(5)
370 #define B_AX_APP_LTR_IDLE BIT(4)
371 #define B_AX_LTR_EN BIT(1)
372 #define B_AX_LTR_HW_EN BIT(0)
373 
374 #define R_AX_LTR_CTRL_1 0x8414
375 #define B_AX_LTR_RX1_TH_MASK GENMASK(27, 16)
376 #define B_AX_LTR_RX0_TH_MASK GENMASK(11, 0)
377 
378 #define R_AX_LTR_IDLE_LATENCY 0x8418
379 
380 #define R_AX_LTR_ACTIVE_LATENCY 0x841C
381 
382 #define R_AX_SER_DBG_INFO 0x8424
383 #define B_AX_L0_TO_L1_EVENT_MASK GENMASK(31, 28)
384 
385 #define R_AX_DLE_EMPTY0 0x8430
386 #define B_AX_PLE_EMPTY_QTA_DMAC_CPUIO BIT(26)
387 #define B_AX_PLE_EMPTY_QTA_DMAC_MPDU_TX BIT(25)
388 #define B_AX_PLE_EMPTY_QTA_DMAC_WLAN_CPU BIT(24)
389 #define B_AX_PLE_EMPTY_QTA_DMAC_H2C BIT(23)
390 #define B_AX_PLE_EMPTY_QTA_DMAC_B1_TXPL BIT(22)
391 #define B_AX_PLE_EMPTY_QTA_DMAC_B0_TXPL BIT(21)
392 #define B_AX_WDE_EMPTY_QTA_DMAC_CPUIO BIT(20)
393 #define B_AX_WDE_EMPTY_QTA_DMAC_PKTIN BIT(19)
394 #define B_AX_WDE_EMPTY_QTA_DMAC_DATA_CPU BIT(18)
395 #define B_AX_WDE_EMPTY_QTA_DMAC_WLAN_CPU BIT(17)
396 #define B_AX_WDE_EMPTY_QTA_DMAC_HIF BIT(16)
397 #define B_AX_WDE_EMPTY_QUE_DMAC_PKTIN BIT(10)
398 #define B_AX_PLE_EMPTY_QUE_DMAC_SEC_TX BIT(9)
399 #define B_AX_PLE_EMPTY_QUE_DMAC_MPDU_TX BIT(8)
400 #define B_AX_WDE_EMPTY_QUE_OTHERS BIT(7)
401 #define B_AX_WDE_EMPTY_QUE_CMAC0_WMM1 BIT(4)
402 #define B_AX_WDE_EMPTY_QUE_CMAC0_WMM0 BIT(3)
403 #define B_AX_WDE_EMPTY_QUE_CMAC1_MBH BIT(2)
404 #define B_AX_WDE_EMPTY_QUE_CMAC0_MBH BIT(1)
405 #define B_AX_WDE_EMPTY_QUE_CMAC0_ALL_AC BIT(0)
406 
407 #define R_AX_DMAC_ERR_ISR 0x8524
408 #define B_AX_DLE_CPUIO_ERR_FLAG BIT(10)
409 #define B_AX_APB_BRIDGE_ERR_FLAG BIT(9)
410 #define B_AX_DISPATCH_ERR_FLAG BIT(8)
411 #define B_AX_PKTIN_ERR_FLAG BIT(7)
412 #define B_AX_PLE_DLE_ERR_FLAG BIT(6)
413 #define B_AX_TXPKTCTRL_ERR_FLAG BIT(5)
414 #define B_AX_WDE_DLE_ERR_FLAG BIT(4)
415 #define B_AX_STA_SCHEDULER_ERR_FLAG BIT(3)
416 #define B_AX_MPDU_ERR_FLAG BIT(2)
417 #define B_AX_WSEC_ERR_FLAG BIT(1)
418 #define B_AX_WDRLS_ERR_FLAG BIT(0)
419 
420 #define R_AX_DISPATCHER_GLOBAL_SETTING_0 0x8800
421 #define B_AX_PL_PAGE_128B_SEL BIT(9)
422 #define B_AX_WD_PAGE_64B_SEL BIT(8)
423 #define R_AX_OTHER_DISPATCHER_ERR_ISR 0x8804
424 #define R_AX_HOST_DISPATCHER_ERR_ISR 0x8808
425 #define R_AX_CPU_DISPATCHER_ERR_ISR 0x880C
426 #define R_AX_TX_ADDRESS_INFO_MODE_SETTING 0x8810
427 #define B_AX_HOST_ADDR_INFO_8B_SEL BIT(0)
428 
429 #define R_AX_HOST_DISPATCHER_ERR_IMR 0x8850
430 #define B_AX_HDT_OFFSET_UNMATCH_INT_EN BIT(7)
431 #define B_AX_HDT_PKT_FAIL_DBG_INT_EN BIT(2)
432 
433 #define R_AX_CPU_DISPATCHER_ERR_IMR 0x8854
434 #define B_AX_CPU_SHIFT_EN_ERR_INT_EN BIT(25)
435 
436 #define R_AX_OTHER_DISPATCHER_ERR_IMR 0x8858
437 
438 #define R_AX_HCI_FC_CTRL 0x8A00
439 #define B_AX_HCI_FC_CH12_FULL_COND_MASK GENMASK(11, 10)
440 #define B_AX_HCI_FC_WP_CH811_FULL_COND_MASK GENMASK(9, 8)
441 #define B_AX_HCI_FC_WP_CH07_FULL_COND_MASK GENMASK(7, 6)
442 #define B_AX_HCI_FC_WD_FULL_COND_MASK GENMASK(5, 4)
443 #define B_AX_HCI_FC_CH12_EN BIT(3)
444 #define B_AX_HCI_FC_MODE_MASK GENMASK(2, 1)
445 #define B_AX_HCI_FC_EN BIT(0)
446 
447 #define R_AX_CH_PAGE_CTRL 0x8A04
448 #define B_AX_PREC_PAGE_CH12_MASK GENMASK(24, 16)
449 #define B_AX_PREC_PAGE_CH011_MASK GENMASK(8, 0)
450 
451 #define B_AX_MAX_PG_MASK GENMASK(28, 16)
452 #define B_AX_MIN_PG_MASK GENMASK(12, 0)
453 #define B_AX_GRP BIT(31)
454 #define R_AX_ACH0_PAGE_CTRL 0x8A10
455 #define R_AX_ACH1_PAGE_CTRL 0x8A14
456 #define R_AX_ACH2_PAGE_CTRL 0x8A18
457 #define R_AX_ACH3_PAGE_CTRL 0x8A1C
458 #define R_AX_ACH4_PAGE_CTRL 0x8A20
459 #define R_AX_ACH5_PAGE_CTRL 0x8A24
460 #define R_AX_ACH6_PAGE_CTRL 0x8A28
461 #define R_AX_ACH7_PAGE_CTRL 0x8A2C
462 #define R_AX_CH8_PAGE_CTRL 0x8A30
463 #define R_AX_CH9_PAGE_CTRL 0x8A34
464 #define R_AX_CH10_PAGE_CTRL 0x8A38
465 #define R_AX_CH11_PAGE_CTRL 0x8A3C
466 
467 #define B_AX_AVAL_PG_MASK GENMASK(27, 16)
468 #define B_AX_USE_PG_MASK GENMASK(12, 0)
469 #define R_AX_ACH0_PAGE_INFO 0x8A50
470 #define R_AX_ACH1_PAGE_INFO 0x8A54
471 #define R_AX_ACH2_PAGE_INFO 0x8A58
472 #define R_AX_ACH3_PAGE_INFO 0x8A5C
473 #define R_AX_ACH4_PAGE_INFO 0x8A60
474 #define R_AX_ACH5_PAGE_INFO 0x8A64
475 #define R_AX_ACH6_PAGE_INFO 0x8A68
476 #define R_AX_ACH7_PAGE_INFO 0x8A6C
477 #define R_AX_CH8_PAGE_INFO 0x8A70
478 #define R_AX_CH9_PAGE_INFO 0x8A74
479 #define R_AX_CH10_PAGE_INFO 0x8A78
480 #define R_AX_CH11_PAGE_INFO 0x8A7C
481 #define R_AX_CH12_PAGE_INFO 0x8A80
482 
483 #define R_AX_PUB_PAGE_INFO3 0x8A8C
484 #define B_AX_G1_AVAL_PG_MASK GENMASK(28, 16)
485 #define B_AX_G0_AVAL_PG_MASK GENMASK(12, 0)
486 
487 #define R_AX_PUB_PAGE_CTRL1 0x8A90
488 #define B_AX_PUBPG_G1_MASK GENMASK(28, 16)
489 #define B_AX_PUBPG_G0_MASK GENMASK(12, 0)
490 
491 #define R_AX_PUB_PAGE_CTRL2 0x8A94
492 #define B_AX_PUBPG_ALL_MASK GENMASK(12, 0)
493 
494 #define R_AX_PUB_PAGE_INFO1 0x8A98
495 #define B_AX_G1_USE_PG_MASK GENMASK(28, 16)
496 #define B_AX_G0_USE_PG_MASK GENMASK(12, 0)
497 
498 #define R_AX_PUB_PAGE_INFO2 0x8A9C
499 #define B_AX_PUB_AVAL_PG_MASK GENMASK(12, 0)
500 
501 #define R_AX_WP_PAGE_CTRL1 0x8AA0
502 #define B_AX_PREC_PAGE_WP_CH811_MASK GENMASK(24, 16)
503 #define B_AX_PREC_PAGE_WP_CH07_MASK GENMASK(8, 0)
504 
505 #define R_AX_WP_PAGE_CTRL2 0x8AA4
506 #define B_AX_WP_THRD_MASK GENMASK(12, 0)
507 
508 #define R_AX_WP_PAGE_INFO1 0x8AA8
509 #define B_AX_WP_AVAL_PG_MASK GENMASK(28, 16)
510 
511 #define R_AX_WDE_PKTBUF_CFG 0x8C08
512 #define B_AX_WDE_START_BOUND_MASK GENMASK(13, 8)
513 #define B_AX_WDE_PAGE_SEL_MASK GENMASK(1, 0)
514 #define B_AX_WDE_FREE_PAGE_NUM_MASK GENMASK(28, 16)
515 #define R_AX_WDE_ERR_FLAG_CFG 0x8C34
516 #define R_AX_WDE_ERR_IMR 0x8C38
517 #define R_AX_WDE_ERR_ISR 0x8C3C
518 
519 #define B_AX_WDE_MAX_SIZE_MASK GENMASK(27, 16)
520 #define B_AX_WDE_MIN_SIZE_MASK GENMASK(11, 0)
521 #define R_AX_WDE_QTA0_CFG 0x8C40
522 #define R_AX_WDE_QTA1_CFG 0x8C44
523 #define R_AX_WDE_QTA2_CFG 0x8C48
524 #define R_AX_WDE_QTA3_CFG 0x8C4C
525 #define R_AX_WDE_QTA4_CFG 0x8C50
526 
527 #define B_AX_DLE_PUB_PGNUM GENMASK(12, 0)
528 #define B_AX_DLE_FREE_HEADPG GENMASK(11, 0)
529 #define B_AX_DLE_FREE_TAILPG GENMASK(27, 16)
530 #define B_AX_DLE_USE_PGNUM GENMASK(27, 16)
531 #define B_AX_DLE_RSV_PGNUM GENMASK(11, 0)
532 #define B_AX_DLE_QEMPTY_GRP GENMASK(31, 0)
533 
534 #define R_AX_WDE_INI_STATUS 0x8D00
535 #define B_AX_WDE_Q_MGN_INI_RDY BIT(1)
536 #define B_AX_WDE_BUF_MGN_INI_RDY BIT(0)
537 #define WDE_MGN_INI_RDY (B_AX_WDE_Q_MGN_INI_RDY | B_AX_WDE_BUF_MGN_INI_RDY)
538 #define R_AX_WDE_DBG_FUN_INTF_CTL 0x8D10
539 #define B_AX_WDE_DFI_ACTIVE BIT(31)
540 #define B_AX_WDE_DFI_TRGSEL_MASK GENMASK(19, 16)
541 #define B_AX_WDE_DFI_ADDR_MASK GENMASK(15, 0)
542 #define R_AX_WDE_DBG_FUN_INTF_DATA 0x8D14
543 #define B_AX_WDE_DFI_DATA_MASK GENMASK(31, 0)
544 
545 #define R_AX_PLE_PKTBUF_CFG 0x9008
546 #define B_AX_PLE_START_BOUND_MASK GENMASK(13, 8)
547 #define B_AX_PLE_PAGE_SEL_MASK GENMASK(1, 0)
548 #define B_AX_PLE_FREE_PAGE_NUM_MASK GENMASK(28, 16)
549 #define R_AX_PLE_ERR_FLAG_CFG 0x9034
550 
551 #define R_AX_PLE_ERR_IMR 0x9038
552 #define B_AX_PLE_GETNPG_STRPG_ERR_INT_EN BIT(5)
553 
554 #define R_AX_PLE_ERR_FLAG_ISR 0x903C
555 #define B_AX_PLE_MAX_SIZE_MASK GENMASK(27, 16)
556 #define B_AX_PLE_MIN_SIZE_MASK GENMASK(11, 0)
557 #define R_AX_PLE_QTA0_CFG 0x9040
558 #define R_AX_PLE_QTA1_CFG 0x9044
559 #define R_AX_PLE_QTA2_CFG 0x9048
560 #define R_AX_PLE_QTA3_CFG 0x904C
561 #define R_AX_PLE_QTA4_CFG 0x9050
562 #define R_AX_PLE_QTA5_CFG 0x9054
563 #define R_AX_PLE_QTA6_CFG 0x9058
564 #define B_AX_PLE_Q6_MAX_SIZE_MASK GENMASK(27, 16)
565 #define B_AX_PLE_Q6_MIN_SIZE_MASK GENMASK(11, 0)
566 #define R_AX_PLE_QTA7_CFG 0x905C
567 #define R_AX_PLE_QTA8_CFG 0x9060
568 #define R_AX_PLE_QTA9_CFG 0x9064
569 #define R_AX_PLE_QTA10_CFG 0x9068
570 #define R_AX_PLE_QTA11_CFG 0x906C
571 
572 #define R_AX_PLE_INI_STATUS 0x9100
573 #define B_AX_PLE_Q_MGN_INI_RDY BIT(1)
574 #define B_AX_PLE_BUF_MGN_INI_RDY BIT(0)
575 #define PLE_MGN_INI_RDY (B_AX_PLE_Q_MGN_INI_RDY | B_AX_PLE_BUF_MGN_INI_RDY)
576 #define R_AX_PLE_DBG_FUN_INTF_CTL 0x9110
577 #define B_AX_PLE_DFI_ACTIVE BIT(31)
578 #define B_AX_PLE_DFI_TRGSEL_MASK GENMASK(19, 16)
579 #define B_AX_PLE_DFI_ADDR_MASK GENMASK(15, 0)
580 #define R_AX_PLE_DBG_FUN_INTF_DATA 0x9114
581 #define B_AX_PLE_DFI_DATA_MASK GENMASK(31, 0)
582 
583 #define R_AX_WDRLS_CFG 0x9408
584 #define B_AX_RLSRPT_BUFREQ_TO_MASK GENMASK(15, 8)
585 #define B_AX_WDRLS_MODE_MASK GENMASK(1, 0)
586 
587 #define R_AX_RLSRPT0_CFG0 0x9410
588 #define B_AX_RLSRPT0_FLTR_MAP_MASK GENMASK(27, 24)
589 #define B_AX_RLSRPT0_PKTTYPE_MASK GENMASK(19, 16)
590 #define B_AX_RLSRPT0_PID_MASK GENMASK(10, 8)
591 #define B_AX_RLSRPT0_QID_MASK GENMASK(5, 0)
592 
593 #define R_AX_RLSRPT0_CFG1 0x9414
594 #define B_AX_RLSRPT0_TO_MASK GENMASK(23, 16)
595 #define B_AX_RLSRPT0_AGGNUM_MASK GENMASK(7, 0)
596 
597 #define R_AX_WDRLS_ERR_IMR 0x9430
598 #define B_AX_WDRLS_RPT1_FRZTO_ERR_INT_EN BIT(13)
599 #define B_AX_WDRLS_RPT1_AGGNUM0_ERR_INT_EN BIT(12)
600 #define B_AX_WDRLS_RPT0_FRZTO_ERR_INT_EN BIT(9)
601 #define B_AX_WDRLS_RPT0_AGGNUM0_ERR_INT_EN BIT(8)
602 #define B_AX_WDRLS_PLEBREQ_PKTID_ISNULL_ERR_INT_EN BIT(5)
603 #define B_AX_WDRLS_PLEBREQ_TO_ERR_INT_EN BIT(4)
604 #define B_AX_WDRLS_CTL_FRZTO_ERR_INT_EN BIT(2)
605 #define B_AX_WDRLS_CTL_PLPKTID_ISNULL_ERR_INT_EN BIT(1)
606 #define B_AX_WDRLS_CTL_WDPKTID_ISNULL_ERR_INT_EN BIT(0)
607 #define R_AX_WDRLS_ERR_ISR 0x9434
608 
609 #define R_AX_BBRPT_COM_ERR_IMR_ISR 0x960C
610 #define R_AX_BBRPT_CHINFO_ERR_IMR_ISR 0x962C
611 #define R_AX_BBRPT_DFS_ERR_IMR_ISR 0x963C
612 #define R_AX_LA_ERRFLAG 0x966C
613 
614 #define R_AX_WD_BUF_REQ 0x9800
615 #define R_AX_PL_BUF_REQ 0x9820
616 #define B_AX_WD_BUF_REQ_EXEC BIT(31)
617 #define B_AX_WD_BUF_REQ_QUOTA_ID_MASK GENMASK(23, 16)
618 #define B_AX_WD_BUF_REQ_LEN_MASK GENMASK(15, 0)
619 
620 #define R_AX_WD_BUF_STATUS 0x9804
621 #define R_AX_PL_BUF_STATUS 0x9824
622 #define B_AX_WD_BUF_STAT_DONE BIT(31)
623 #define B_AX_WD_BUF_STAT_PKTID_MASK GENMASK(11, 0)
624 
625 #define R_AX_WD_CPUQ_OP_0 0x9810
626 #define R_AX_PL_CPUQ_OP_0 0x9830
627 #define B_AX_WD_CPUQ_OP_EXEC BIT(31)
628 #define B_AX_CPUQ_OP_CMD_TYPE_MASK GENMASK(27, 24)
629 #define B_AX_CPUQ_OP_MACID_MASK GENMASK(23, 16)
630 #define B_AX_CPUQ_OP_PKTNUM_MASK GENMASK(7, 0)
631 
632 #define R_AX_WD_CPUQ_OP_1 0x9814
633 #define R_AX_PL_CPUQ_OP_1 0x9834
634 #define B_AX_CPUQ_OP_SRC_PID_MASK GENMASK(24, 22)
635 #define B_AX_CPUQ_OP_SRC_QID_MASK GENMASK(21, 16)
636 #define B_AX_CPUQ_OP_DST_PID_MASK GENMASK(8, 6)
637 #define B_AX_CPUQ_OP_DST_QID_MASK GENMASK(5, 0)
638 
639 #define R_AX_WD_CPUQ_OP_2 0x9818
640 #define R_AX_PL_CPUQ_OP_2 0x9838
641 #define B_AX_WD_CPUQ_OP_STRT_PKTID_MASK GENMASK(27, 16)
642 #define B_AX_WD_CPUQ_OP_END_PKTID_MASK GENMASK(11, 0)
643 
644 #define R_AX_WD_CPUQ_OP_STATUS 0x981C
645 #define R_AX_PL_CPUQ_OP_STATUS 0x983C
646 #define B_AX_WD_CPUQ_OP_STAT_DONE BIT(31)
647 #define B_AX_WD_CPUQ_OP_PKTID_MASK GENMASK(11, 0)
648 #define R_AX_CPUIO_ERR_IMR 0x9840
649 #define R_AX_CPUIO_ERR_ISR 0x9844
650 
651 #define R_AX_SEC_ERR_IMR_ISR 0x991C
652 
653 #define R_AX_PKTIN_SETTING 0x9A00
654 #define B_AX_WD_ADDR_INFO_LENGTH BIT(1)
655 #define R_AX_PKTIN_ERR_IMR 0x9A20
656 #define R_AX_PKTIN_ERR_ISR 0x9A24
657 
658 #define R_AX_MPDU_TX_ERR_ISR 0x9BF0
659 #define R_AX_MPDU_TX_ERR_IMR 0x9BF4
660 
661 #define R_AX_MPDU_PROC 0x9C00
662 #define B_AX_A_ICV_ERR BIT(1)
663 #define B_AX_APPEND_FCS BIT(0)
664 
665 #define R_AX_ACTION_FWD0 0x9C04
666 #define TRXCFG_MPDU_PROC_ACT_FRWD 0x02A95A95
667 
668 #define R_AX_TF_FWD 0x9C14
669 #define TRXCFG_MPDU_PROC_TF_FRWD 0x0000AA55
670 
671 #define R_AX_HW_RPT_FWD 0x9C18
672 #define B_AX_FWD_PPDU_STAT_MASK GENMASK(1, 0)
673 #define RTW89_PRPT_DEST_HOST 1
674 #define RTW89_PRPT_DEST_WLCPU 2
675 
676 #define R_AX_CUT_AMSDU_CTRL 0x9C40
677 #define TRXCFG_MPDU_PROC_CUT_CTRL	0x010E05F0
678 
679 #define R_AX_MPDU_RX_ERR_ISR 0x9CF0
680 #define R_AX_MPDU_RX_ERR_IMR 0x9CF4
681 
682 #define R_AX_SEC_ENG_CTRL 0x9D00
683 #define B_AX_TX_PARTIAL_MODE BIT(11)
684 #define B_AX_CLK_EN_CGCMP BIT(10)
685 #define B_AX_CLK_EN_WAPI BIT(9)
686 #define B_AX_CLK_EN_WEP_TKIP BIT(8)
687 #define B_AX_BMC_MGNT_DEC BIT(5)
688 #define B_AX_UC_MGNT_DEC BIT(4)
689 #define B_AX_MC_DEC BIT(3)
690 #define B_AX_BC_DEC BIT(2)
691 #define B_AX_SEC_RX_DEC BIT(1)
692 #define B_AX_SEC_TX_ENC BIT(0)
693 
694 #define R_AX_SEC_MPDU_PROC 0x9D04
695 #define B_AX_APPEND_ICV BIT(1)
696 #define B_AX_APPEND_MIC BIT(0)
697 
698 #define R_AX_SEC_CAM_ACCESS 0x9D10
699 #define R_AX_SEC_CAM_RDATA 0x9D14
700 #define R_AX_SEC_CAM_WDATA 0x9D18
701 #define R_AX_SEC_DEBUG 0x9D1C
702 #define R_AX_SEC_TX_DEBUG 0x9D20
703 #define R_AX_SEC_RX_DEBUG 0x9D24
704 #define R_AX_SEC_TRX_PKT_CNT 0x9D28
705 #define R_AX_SEC_TRX_BLK_CNT 0x9D2C
706 
707 #define R_AX_SS_CTRL 0x9E10
708 #define B_AX_SS_INIT_DONE_1 BIT(31)
709 #define B_AX_SS_WARM_INIT_FLG BIT(29)
710 #define B_AX_SS_EN BIT(0)
711 
712 #define R_AX_SS_MACID_PAUSE_0 0x9EB0
713 #define B_AX_SS_MACID31_0_PAUSE_SH 0
714 #define B_AX_SS_MACID31_0_PAUSE_MASK GENMASK(31, 0)
715 
716 #define R_AX_SS_MACID_PAUSE_1 0x9EB4
717 #define B_AX_SS_MACID63_32_PAUSE_SH 0
718 #define B_AX_SS_MACID63_32_PAUSE_MASK GENMASK(31, 0)
719 
720 #define R_AX_SS_MACID_PAUSE_2 0x9EB8
721 #define B_AX_SS_MACID95_64_PAUSE_SH 0
722 #define B_AX_SS_MACID95_64_PAUSE_MASK GENMASK(31, 0)
723 
724 #define R_AX_SS_MACID_PAUSE_3 0x9EBC
725 #define B_AX_SS_MACID127_96_PAUSE_SH 0
726 #define B_AX_SS_MACID127_96_PAUSE_MASK GENMASK(31, 0)
727 
728 #define R_AX_STA_SCHEDULER_ERR_IMR 0x9EF0
729 #define R_AX_STA_SCHEDULER_ERR_ISR 0x9EF4
730 
731 #define R_AX_TXPKTCTL_ERR_IMR_ISR 0x9F1C
732 #define R_AX_TXPKTCTL_ERR_IMR_ISR_B1 0x9F2C
733 #define B_AX_TXPKTCTL_CMDPSR_FRZTO_ERR_INT_EN BIT(9)
734 #define B_AX_TXPKTCTL_USRCTL_RLSBMPLEN_ERR_INT_EN BIT(3)
735 #define B_AX_TXPKTCTL_USRCTL_RDNRLSCMD_ERR_INT_EN BIT(2)
736 #define B_AX_TXPKTCTL_USRCTL_NOINIT_ERR_INT_EN BIT(1)
737 
738 #define R_AX_DBG_FUN_INTF_CTL 0x9F30
739 #define B_AX_DFI_ACTIVE BIT(31)
740 #define B_AX_DFI_TRGSEL_MASK GENMASK(19, 16)
741 #define B_AX_DFI_ADDR_MASK GENMASK(15, 0)
742 #define R_AX_DBG_FUN_INTF_DATA 0x9F34
743 #define B_AX_DFI_DATA_MASK GENMASK(31, 0)
744 
745 #define R_AX_TXPKTCTL_B0_PRELD_CFG0 0x9F48
746 #define B_AX_B0_PRELD_FEN BIT(31)
747 #define B_AX_B0_PRELD_USEMAXSZ_MASK GENMASK(25, 16)
748 #define PRELD_B0_ENT_NUM 10
749 #define PRELD_AMSDU_SIZE 52
750 #define B_AX_B0_PRELD_CAM_G1ENTNUM_MASK GENMASK(12, 8)
751 #define B_AX_B0_PRELD_CAM_G0ENTNUM_MASK GENMASK(4, 0)
752 
753 #define R_AX_TXPKTCTL_B0_PRELD_CFG1 0x9F4C
754 #define B_AX_B0_PRELD_NXT_TXENDWIN_MASK GENMASK(11, 8)
755 #define PRELD_NEXT_WND 1
756 #define B_AX_B0_PRELD_NXT_RSVMINSZ_MASK GENMASK(7, 0)
757 
758 #define R_AX_TXPKTCTL_B1_PRELD_CFG0 0x9F88
759 #define B_AX_B1_PRELD_FEN BIT(31)
760 #define B_AX_B1_PRELD_USEMAXSZ_MASK GENMASK(25, 16)
761 #define PRELD_B1_ENT_NUM 4
762 #define B_AX_B1_PRELD_CAM_G1ENTNUM_MASK GENMASK(12, 8)
763 #define B_AX_B1_PRELD_CAM_G0ENTNUM_MASK GENMASK(4, 0)
764 
765 #define R_AX_TXPKTCTL_B1_PRELD_CFG1 0x9F8C
766 #define B_AX_B1_PRELD_NXT_TXENDWIN_MASK GENMASK(11, 8)
767 #define B_AX_B1_PRELD_NXT_RSVMINSZ_MASK GENMASK(7, 0)
768 
769 #define R_AX_AFE_CTRL1 0x0024
770 
771 #define B_AX_R_SYM_WLCMAC1_P4_PC_EN BIT(4)
772 #define B_AX_R_SYM_WLCMAC1_P3_PC_EN BIT(3)
773 #define B_AX_R_SYM_WLCMAC1_P2_PC_EN BIT(2)
774 #define B_AX_R_SYM_WLCMAC1_P1_PC_EN BIT(1)
775 #define B_AX_R_SYM_WLCMAC1_PC_EN BIT(0)
776 
777 #define R_AX_SYS_ISO_CTRL_EXTEND 0x0080
778 #define B_AX_CMAC1_FEN BIT(30)
779 #define B_AX_R_SYM_FEN_WLBBGLB_1 BIT(17)
780 #define B_AX_R_SYM_FEN_WLBBFUN_1 BIT(16)
781 #define B_AX_R_SYM_ISO_CMAC12PP BIT(5)
782 
783 #define R_AX_CMAC_REG_START 0xC000
784 
785 #define R_AX_CMAC_FUNC_EN 0xC000
786 #define R_AX_CMAC_FUNC_EN_C1 0xE000
787 #define B_AX_CMAC_CRPRT BIT(31)
788 #define B_AX_CMAC_EN BIT(30)
789 #define B_AX_CMAC_TXEN BIT(29)
790 #define B_AX_CMAC_RXEN BIT(28)
791 #define B_AX_FORCE_CMACREG_GCKEN BIT(15)
792 #define B_AX_PHYINTF_EN BIT(5)
793 #define B_AX_CMAC_DMA_EN BIT(4)
794 #define B_AX_PTCLTOP_EN BIT(3)
795 #define B_AX_SCHEDULER_EN BIT(2)
796 #define B_AX_TMAC_EN BIT(1)
797 #define B_AX_RMAC_EN BIT(0)
798 
799 #define R_AX_CK_EN 0xC004
800 #define R_AX_CK_EN_C1 0xE004
801 #define B_AX_CMAC_ALLCKEN GENMASK(31, 0)
802 #define B_AX_CMAC_CKEN BIT(30)
803 #define B_AX_PHYINTF_CKEN BIT(5)
804 #define B_AX_CMAC_DMA_CKEN BIT(4)
805 #define B_AX_PTCLTOP_CKEN BIT(3)
806 #define B_AX_SCHEDULER_CKEN BIT(2)
807 #define B_AX_TMAC_CKEN BIT(1)
808 #define B_AX_RMAC_CKEN BIT(0)
809 
810 #define R_AX_WMAC_RFMOD 0xC010
811 #define R_AX_WMAC_RFMOD_C1 0xE010
812 #define B_AX_WMAC_RFMOD_MASK GENMASK(1, 0)
813 
814 #define R_AX_GID_POSITION0 0xC070
815 #define R_AX_GID_POSITION0_C1 0xE070
816 #define R_AX_GID_POSITION1 0xC074
817 #define R_AX_GID_POSITION1_C1 0xE074
818 #define R_AX_GID_POSITION2 0xC078
819 #define R_AX_GID_POSITION2_C1 0xE078
820 #define R_AX_GID_POSITION3 0xC07C
821 #define R_AX_GID_POSITION3_C1 0xE07C
822 #define R_AX_GID_POSITION_EN0 0xC080
823 #define R_AX_GID_POSITION_EN0_C1 0xE080
824 #define R_AX_GID_POSITION_EN1 0xC084
825 #define R_AX_GID_POSITION_EN1_C1 0xE084
826 
827 #define R_AX_TX_SUB_CARRIER_VALUE 0xC088
828 #define R_AX_TX_SUB_CARRIER_VALUE_C1 0xE088
829 #define B_AX_TXSC_80M_MASK GENMASK(11, 8)
830 #define B_AX_TXSC_40M_MASK GENMASK(7, 4)
831 #define B_AX_TXSC_20M_MASK GENMASK(3, 0)
832 
833 #define R_AX_CMAC_ERR_ISR 0xC164
834 #define R_AX_CMAC_ERR_ISR_C1 0xE164
835 #define B_AX_WMAC_TX_ERR_IND BIT(7)
836 #define B_AX_WMAC_RX_ERR_IND BIT(6)
837 #define B_AX_TXPWR_CTRL_ERR_IND BIT(5)
838 #define B_AX_PHYINTF_ERR_IND BIT(4)
839 #define B_AX_DMA_TOP_ERR_IND BIT(3)
840 #define B_AX_PTCL_TOP_ERR_IND BIT(1)
841 #define B_AX_SCHEDULE_TOP_ERR_IND BIT(0)
842 
843 #define R_AX_MACID_SLEEP_0 0xC2C0
844 #define R_AX_MACID_SLEEP_0_C1 0xE2C0
845 #define B_AX_MACID31_0_SLEEP_SH 0
846 #define B_AX_MACID31_0_SLEEP_MASK GENMASK(31, 0)
847 
848 #define R_AX_MACID_SLEEP_1 0xC2C4
849 #define R_AX_MACID_SLEEP_1_C1 0xE2C4
850 #define B_AX_MACID63_32_SLEEP_SH 0
851 #define B_AX_MACID63_32_SLEEP_MASK GENMASK(31, 0)
852 
853 #define R_AX_MACID_SLEEP_2 0xC2C8
854 #define R_AX_MACID_SLEEP_2_C1 0xE2C8
855 #define B_AX_MACID95_64_SLEEP_SH 0
856 #define B_AX_MACID95_64_SLEEP_MASK GENMASK(31, 0)
857 
858 #define R_AX_MACID_SLEEP_3 0xC2CC
859 #define R_AX_MACID_SLEEP_3_C1 0xE2CC
860 #define B_AX_MACID127_96_SLEEP_SH 0
861 #define B_AX_MACID127_96_SLEEP_MASK GENMASK(31, 0)
862 
863 #define SCH_PREBKF_24US 0x18
864 #define R_AX_PREBKF_CFG_0 0xC338
865 #define R_AX_PREBKF_CFG_0_C1 0xE338
866 #define B_AX_PREBKF_TIME_MASK GENMASK(4, 0)
867 
868 #define R_AX_CCA_CFG_0 0xC340
869 #define R_AX_CCA_CFG_0_C1 0xE340
870 #define B_AX_BTCCA_BRK_TXOP_EN BIT(9)
871 #define B_AX_BTCCA_EN BIT(5)
872 #define B_AX_EDCCA_EN BIT(4)
873 #define B_AX_SEC80_EN BIT(3)
874 #define B_AX_SEC40_EN BIT(2)
875 #define B_AX_SEC20_EN BIT(1)
876 #define B_AX_CCA_EN BIT(0)
877 
878 #define R_AX_CTN_TXEN 0xC348
879 #define R_AX_CTN_TXEN_C1 0xE348
880 #define B_AX_CTN_TXEN_TWT_1 BIT(15)
881 #define B_AX_CTN_TXEN_TWT_0 BIT(14)
882 #define B_AX_CTN_TXEN_ULQ BIT(13)
883 #define B_AX_CTN_TXEN_BCNQ BIT(12)
884 #define B_AX_CTN_TXEN_HGQ BIT(11)
885 #define B_AX_CTN_TXEN_CPUMGQ BIT(10)
886 #define B_AX_CTN_TXEN_MGQ1 BIT(9)
887 #define B_AX_CTN_TXEN_MGQ BIT(8)
888 #define B_AX_CTN_TXEN_VO_1 BIT(7)
889 #define B_AX_CTN_TXEN_VI_1 BIT(6)
890 #define B_AX_CTN_TXEN_BK_1 BIT(5)
891 #define B_AX_CTN_TXEN_BE_1 BIT(4)
892 #define B_AX_CTN_TXEN_VO_0 BIT(3)
893 #define B_AX_CTN_TXEN_VI_0 BIT(2)
894 #define B_AX_CTN_TXEN_BK_0 BIT(1)
895 #define B_AX_CTN_TXEN_BE_0 BIT(0)
896 #define B_AX_CTN_TXEN_ALL_MASK GENMASK(15, 0)
897 
898 #define R_AX_MUEDCA_BE_PARAM_0 0xC350
899 #define R_AX_MUEDCA_BE_PARAM_0_C1 0xE350
900 #define B_AX_MUEDCA_BE_PARAM_0_TIMER_MASK GENMASK(31, 16)
901 #define B_AX_MUEDCA_BE_PARAM_0_CW_MASK GENMASK(15, 8)
902 #define B_AX_MUEDCA_BE_PARAM_0_AIFS_MASK GENMASK(7, 0)
903 
904 #define R_AX_MUEDCA_BK_PARAM_0 0xC354
905 #define R_AX_MUEDCA_BK_PARAM_0_C1 0xE354
906 #define R_AX_MUEDCA_VI_PARAM_0 0xC358
907 #define R_AX_MUEDCA_VI_PARAM_0_C1 0xE358
908 #define R_AX_MUEDCA_VO_PARAM_0 0xC35C
909 #define R_AX_MUEDCA_VO_PARAM_0_C1 0xE35C
910 
911 #define R_AX_MUEDCA_EN 0xC370
912 #define R_AX_MUEDCA_EN_C1 0xE370
913 #define B_AX_MUEDCA_WMM_SEL BIT(8)
914 #define B_AX_SET_MUEDCATIMER_TF_0 BIT(4)
915 #define B_AX_MUEDCA_EN_0 BIT(0)
916 
917 #define R_AX_CCA_CONTROL 0xC390
918 #define R_AX_CCA_CONTROL_C1 0xE390
919 #define B_AX_TB_CHK_TX_NAV BIT(31)
920 #define B_AX_TB_CHK_BASIC_NAV BIT(30)
921 #define B_AX_TB_CHK_BTCCA BIT(29)
922 #define B_AX_TB_CHK_EDCCA BIT(28)
923 #define B_AX_TB_CHK_CCA_S80 BIT(27)
924 #define B_AX_TB_CHK_CCA_S40 BIT(26)
925 #define B_AX_TB_CHK_CCA_S20 BIT(25)
926 #define B_AX_TB_CHK_CCA_P20 BIT(24)
927 #define B_AX_SIFS_CHK_BTCCA BIT(21)
928 #define B_AX_SIFS_CHK_EDCCA BIT(20)
929 #define B_AX_SIFS_CHK_CCA_S80 BIT(19)
930 #define B_AX_SIFS_CHK_CCA_S40 BIT(18)
931 #define B_AX_SIFS_CHK_CCA_S20 BIT(17)
932 #define B_AX_SIFS_CHK_CCA_P20 BIT(16)
933 #define B_AX_CTN_CHK_TXNAV BIT(8)
934 #define B_AX_CTN_CHK_INTRA_NAV BIT(7)
935 #define B_AX_CTN_CHK_BASIC_NAV BIT(6)
936 #define B_AX_CTN_CHK_BTCCA BIT(5)
937 #define B_AX_CTN_CHK_EDCCA BIT(4)
938 #define B_AX_CTN_CHK_CCA_S80 BIT(3)
939 #define B_AX_CTN_CHK_CCA_S40 BIT(2)
940 #define B_AX_CTN_CHK_CCA_S20 BIT(1)
941 #define B_AX_CTN_CHK_CCA_P20 BIT(0)
942 
943 #define R_AX_CTN_DRV_TXEN 0xC398
944 #define R_AX_CTN_DRV_TXEN_C1 0xE398
945 #define B_AX_CTN_TXEN_TWT_3 BIT(17)
946 #define B_AX_CTN_TXEN_TWT_2 BIT(16)
947 #define B_AX_CTN_TXEN_ALL_MASK_V1 GENMASK(17, 0)
948 
949 #define R_AX_SCHEDULE_ERR_IMR 0xC3E8
950 #define R_AX_SCHEDULE_ERR_IMR_C1 0xE3E8
951 #define B_AX_SORT_NON_IDLE_ERR_INT_EN BIT(1)
952 #define B_AX_FSM_TIMEOUT_ERR_INT_EN BIT(0)
953 
954 #define R_AX_SCHEDULE_ERR_ISR 0xC3EC
955 #define R_AX_SCHEDULE_ERR_ISR_C1 0xE3EC
956 
957 #define R_AX_SCH_DBG_SEL 0xC3F4
958 #define R_AX_SCH_DBG_SEL_C1 0xE3F4
959 #define B_AX_SCH_DBG_EN BIT(16)
960 #define B_AX_SCH_CFG_CMD_SEL GENMASK(15, 8)
961 #define B_AX_SCH_DBG_SEL_MASK GENMASK(7, 0)
962 
963 #define R_AX_SCH_DBG 0xC3F8
964 #define R_AX_SCH_DBG_C1 0xE3F8
965 #define B_AX_SCHEDULER_DBG_MASK GENMASK(31, 0)
966 
967 #define R_AX_PORT_CFG_P0 0xC400
968 #define R_AX_PORT_CFG_P1 0xC440
969 #define R_AX_PORT_CFG_P2 0xC480
970 #define R_AX_PORT_CFG_P3 0xC4C0
971 #define R_AX_PORT_CFG_P4 0xC500
972 #define B_AX_BRK_SETUP BIT(16)
973 #define B_AX_TBTT_UPD_SHIFT_SEL BIT(15)
974 #define B_AX_BCN_DROP_ALLOW BIT(14)
975 #define B_AX_TBTT_PROHIB_EN BIT(13)
976 #define B_AX_BCNTX_EN BIT(12)
977 #define B_AX_NET_TYPE_MASK GENMASK(11, 10)
978 #define B_AX_BCN_FORCETX_EN BIT(9)
979 #define B_AX_TXBCN_BTCCA_EN BIT(8)
980 #define B_AX_BCNERR_CNT_EN BIT(7)
981 #define B_AX_BCN_AGRES BIT(6)
982 #define B_AX_TSFTR_RST BIT(5)
983 #define B_AX_RX_BSSID_FIT_EN BIT(4)
984 #define B_AX_TSF_UDT_EN BIT(3)
985 #define B_AX_PORT_FUNC_EN BIT(2)
986 #define B_AX_TXBCN_RPT_EN BIT(1)
987 #define B_AX_RXBCN_RPT_EN BIT(0)
988 
989 #define R_AX_TBTT_PROHIB_P0 0xC404
990 #define R_AX_TBTT_PROHIB_P1 0xC444
991 #define R_AX_TBTT_PROHIB_P2 0xC484
992 #define R_AX_TBTT_PROHIB_P3 0xC4C4
993 #define R_AX_TBTT_PROHIB_P4 0xC504
994 #define B_AX_TBTT_HOLD_MASK GENMASK(27, 16)
995 #define B_AX_TBTT_SETUP_MASK GENMASK(7, 0)
996 
997 #define R_AX_BCN_AREA_P0 0xC408
998 #define R_AX_BCN_AREA_P1 0xC448
999 #define R_AX_BCN_AREA_P2 0xC488
1000 #define R_AX_BCN_AREA_P3 0xC4C8
1001 #define R_AX_BCN_AREA_P4 0xC508
1002 #define B_AX_BCN_MSK_AREA_MASK GENMASK(27, 16)
1003 #define B_AX_BCN_CTN_AREA_MASK GENMASK(11, 0)
1004 
1005 #define R_AX_BCNERLYINT_CFG_P0 0xC40C
1006 #define R_AX_BCNERLYINT_CFG_P1 0xC44C
1007 #define R_AX_BCNERLYINT_CFG_P2 0xC48C
1008 #define R_AX_BCNERLYINT_CFG_P3 0xC4CC
1009 #define R_AX_BCNERLYINT_CFG_P4 0xC50C
1010 #define B_AX_BCNERLY_MASK GENMASK(11, 0)
1011 
1012 #define R_AX_TBTTERLYINT_CFG_P0 0xC40E
1013 #define R_AX_TBTTERLYINT_CFG_P1 0xC44E
1014 #define R_AX_TBTTERLYINT_CFG_P2 0xC48E
1015 #define R_AX_TBTTERLYINT_CFG_P3 0xC4CE
1016 #define R_AX_TBTTERLYINT_CFG_P4 0xC50E
1017 #define B_AX_TBTTERLY_MASK GENMASK(11, 0)
1018 
1019 #define R_AX_TBTT_AGG_P0 0xC412
1020 #define R_AX_TBTT_AGG_P1 0xC452
1021 #define R_AX_TBTT_AGG_P2 0xC492
1022 #define R_AX_TBTT_AGG_P3 0xC4D2
1023 #define R_AX_TBTT_AGG_P4 0xC512
1024 #define B_AX_TBTT_AGG_NUM_MASK GENMASK(15, 8)
1025 
1026 #define R_AX_BCN_SPACE_CFG_P0 0xC414
1027 #define R_AX_BCN_SPACE_CFG_P1 0xC454
1028 #define R_AX_BCN_SPACE_CFG_P2 0xC494
1029 #define R_AX_BCN_SPACE_CFG_P3 0xC4D4
1030 #define R_AX_BCN_SPACE_CFG_P4 0xC514
1031 #define B_AX_SUB_BCN_SPACE_MASK GENMASK(23, 16)
1032 #define B_AX_BCN_SPACE_MASK GENMASK(15, 0)
1033 
1034 #define R_AX_BCN_FORCETX_P0 0xC418
1035 #define R_AX_BCN_FORCETX_P1 0xC458
1036 #define R_AX_BCN_FORCETX_P2 0xC498
1037 #define R_AX_BCN_FORCETX_P3 0xC4D8
1038 #define R_AX_BCN_FORCETX_P4 0xC518
1039 #define B_AX_FORCE_BCN_CURRCNT_MASK GENMASK(23, 16)
1040 #define B_AX_FORCE_BCN_NUM_MASK GENMASK(15, 0)
1041 #define B_AX_BCN_MAX_ERR_MASK GENMASK(7, 0)
1042 
1043 #define R_AX_BCN_ERR_CNT_P0 0xC420
1044 #define R_AX_BCN_ERR_CNT_P1 0xC460
1045 #define R_AX_BCN_ERR_CNT_P2 0xC4A0
1046 #define R_AX_BCN_ERR_CNT_P3 0xC4E0
1047 #define R_AX_BCN_ERR_CNT_P4 0xC520
1048 #define B_AX_BCN_ERR_CNT_SUM_MASK GENMASK(31, 24)
1049 #define B_AX_BCN_ERR_CNT_NAV_MASK GENMASK(23, 16)
1050 #define B_AX_BCN_ERR_CNT_EDCCA_MASK GENMASK(15, 0)
1051 #define B_AX_BCN_ERR_CNT_CCA_MASK GENMASK(7, 0)
1052 
1053 #define R_AX_BCN_ERR_FLAG_P0 0xC424
1054 #define R_AX_BCN_ERR_FLAG_P1 0xC464
1055 #define R_AX_BCN_ERR_FLAG_P2 0xC4A4
1056 #define R_AX_BCN_ERR_FLAG_P3 0xC4E4
1057 #define R_AX_BCN_ERR_FLAG_P4 0xC524
1058 #define B_AX_BCN_ERR_FLAG_OTHERS BIT(6)
1059 #define B_AX_BCN_ERR_FLAG_MAC BIT(5)
1060 #define B_AX_BCN_ERR_FLAG_TXON BIT(4)
1061 #define B_AX_BCN_ERR_FLAG_SRCHEND BIT(3)
1062 #define B_AX_BCN_ERR_FLAG_INVALID BIT(2)
1063 #define B_AX_BCN_ERR_FLAG_CMP BIT(1)
1064 #define B_AX_BCN_ERR_FLAG_LOCK BIT(0)
1065 
1066 #define R_AX_DTIM_CTRL_P0 0xC426
1067 #define R_AX_DTIM_CTRL_P1 0xC466
1068 #define R_AX_DTIM_CTRL_P2 0xC4A6
1069 #define R_AX_DTIM_CTRL_P3 0xC4E6
1070 #define R_AX_DTIM_CTRL_P4 0xC526
1071 #define B_AX_DTIM_NUM_MASK GENMASK(15, 8)
1072 #define B_AX_DTIM_CURRCNT_MASK GENMASK(7, 0)
1073 
1074 #define R_AX_TBTT_SHIFT_P0 0xC428
1075 #define R_AX_TBTT_SHIFT_P1 0xC468
1076 #define R_AX_TBTT_SHIFT_P2 0xC4A8
1077 #define R_AX_TBTT_SHIFT_P3 0xC4E8
1078 #define R_AX_TBTT_SHIFT_P4 0xC528
1079 #define B_AX_TBTT_SHIFT_OFST_MASK GENMASK(11, 0)
1080 
1081 #define R_AX_BCN_CNT_TMR_P0 0xC434
1082 #define R_AX_BCN_CNT_TMR_P1 0xC474
1083 #define R_AX_BCN_CNT_TMR_P2 0xC4B4
1084 #define R_AX_BCN_CNT_TMR_P3 0xC4F4
1085 #define R_AX_BCN_CNT_TMR_P4 0xC534
1086 #define B_AX_BCN_CNT_TMR_MASK GENMASK(31, 0)
1087 
1088 #define R_AX_TSFTR_LOW_P0 0xC438
1089 #define R_AX_TSFTR_LOW_P1 0xC478
1090 #define R_AX_TSFTR_LOW_P2 0xC4B8
1091 #define R_AX_TSFTR_LOW_P3 0xC4F8
1092 #define R_AX_TSFTR_LOW_P4 0xC538
1093 #define B_AX_TSFTR_LOW_MASK GENMASK(31, 0)
1094 
1095 #define R_AX_TSFTR_HIGH_P0 0xC43C
1096 #define R_AX_TSFTR_HIGH_P1 0xC47C
1097 #define R_AX_TSFTR_HIGH_P2 0xC4BC
1098 #define R_AX_TSFTR_HIGH_P3 0xC4FC
1099 #define R_AX_TSFTR_HIGH_P4 0xC53C
1100 #define B_AX_TSFTR_HIGH_MASK GENMASK(31, 0)
1101 
1102 #define R_AX_MBSSID_CTRL 0xC568
1103 #define R_AX_MBSSID_CTRL_C1 0xE568
1104 #define B_AX_P0MB_ALL_MASK GENMASK(23, 1)
1105 #define B_AX_P0MB_NUM_MASK GENMASK(19, 16)
1106 #define B_AX_P0MB15_EN BIT(15)
1107 #define B_AX_P0MB14_EN BIT(14)
1108 #define B_AX_P0MB13_EN BIT(13)
1109 #define B_AX_P0MB12_EN BIT(12)
1110 #define B_AX_P0MB11_EN BIT(11)
1111 #define B_AX_P0MB10_EN BIT(10)
1112 #define B_AX_P0MB9_EN BIT(9)
1113 #define B_AX_P0MB8_EN BIT(8)
1114 #define B_AX_P0MB7_EN BIT(7)
1115 #define B_AX_P0MB6_EN BIT(6)
1116 #define B_AX_P0MB5_EN BIT(5)
1117 #define B_AX_P0MB4_EN BIT(4)
1118 #define B_AX_P0MB3_EN BIT(3)
1119 #define B_AX_P0MB2_EN BIT(2)
1120 #define B_AX_P0MB1_EN BIT(1)
1121 
1122 #define R_AX_P0MB_HGQ_WINDOW_CFG_0 0xC590
1123 #define R_AX_P0MB_HGQ_WINDOW_CFG_0_C1 0xE590
1124 #define R_AX_PORT_HGQ_WINDOW_CFG 0xC5A0
1125 #define R_AX_PORT_HGQ_WINDOW_CFG_C1 0xE5A0
1126 
1127 #define R_AX_AMPDU_AGG_LIMIT 0xC610
1128 #define B_AX_AMPDU_MAX_TIME_MASK GENMASK(31, 24)
1129 #define B_AX_RA_TRY_RATE_AGG_LMT_MASK GENMASK(23, 16)
1130 #define B_AX_RTS_MAX_AGG_NUM_MASK GENMASK(15, 8)
1131 #define B_AX_MAX_AGG_NUM_MASK GENMASK(7, 0)
1132 
1133 #define R_AX_AGG_LEN_HT_0 0xC614
1134 #define R_AX_AGG_LEN_HT_0_C1 0xE614
1135 #define B_AX_AMPDU_MAX_LEN_HT_MASK GENMASK(31, 16)
1136 #define B_AX_RTS_TXTIME_TH_MASK GENMASK(15, 8)
1137 #define B_AX_RTS_LEN_TH_MASK GENMASK(7, 0)
1138 
1139 #define S_AX_CTS2S_TH_SEC_256B 1
1140 #define R_AX_SIFS_SETTING 0xC624
1141 #define R_AX_SIFS_SETTING_C1 0xE624
1142 #define B_AX_HW_CTS2SELF_PKT_LEN_TH_MASK GENMASK(31, 24)
1143 #define B_AX_HW_CTS2SELF_PKT_LEN_TH_TWW_MASK GENMASK(23, 18)
1144 #define B_AX_HW_CTS2SELF_EN BIT(16)
1145 #define B_AX_SPEC_SIFS_OFDM_PTCL_SH 8
1146 #define B_AX_SPEC_SIFS_OFDM_PTCL_MASK GENMASK(15, 8)
1147 #define B_AX_SPEC_SIFS_CCK_PTCL_MASK GENMASK(7, 0)
1148 #define S_AX_CTS2S_TH_1K 4
1149 
1150 #define R_AX_TXRATE_CHK 0xC628
1151 #define R_AX_TXRATE_CHK_C1 0xE628
1152 #define B_AX_DEFT_RATE_MASK GENMASK(15, 7)
1153 #define B_AX_BAND_MODE BIT(4)
1154 #define B_AX_MAX_TXNSS_MASK GENMASK(3, 2)
1155 #define B_AX_RTS_LIMIT_IN_OFDM6 BIT(1)
1156 #define B_AX_CHECK_CCK_EN BIT(0)
1157 
1158 #define R_AX_TXCNT 0xC62C
1159 #define R_AX_TXCNT_C1 0xE62C
1160 #define B_AX_ADD_TXCNT_BY BIT(31)
1161 #define B_AX_S_TXCNT_LMT_MASK GENMASK(29, 24)
1162 #define B_AX_L_TXCNT_LMT_MASK GENMASK(21, 16)
1163 
1164 #define R_AX_MBSSID_DROP_0 0xC63C
1165 #define R_AX_MBSSID_DROP_0_C1 0xE63C
1166 #define B_AX_GI_LTF_FB_SEL BIT(30)
1167 #define B_AX_RATE_SEL_MASK GENMASK(29, 24)
1168 #define B_AX_PORT_DROP_4_0_MASK GENMASK(20, 16)
1169 #define B_AX_MBSSID_DROP_15_0_MASK GENMASK(15, 0)
1170 
1171 #define R_AX_BT_PLT 0xC67C
1172 #define R_AX_BT_PLT_C1 0xE67C
1173 #define B_AX_BT_PLT_PKT_CNT_MASK GENMASK(31, 16)
1174 #define B_AX_BT_PLT_RST BIT(9)
1175 #define B_AX_PLT_EN BIT(8)
1176 #define B_AX_RX_PLT_GNT_LTE_RX BIT(7)
1177 #define B_AX_RX_PLT_GNT_BT_RX BIT(6)
1178 #define B_AX_RX_PLT_GNT_BT_TX BIT(5)
1179 #define B_AX_RX_PLT_GNT_WL BIT(4)
1180 #define B_AX_TX_PLT_GNT_LTE_RX BIT(3)
1181 #define B_AX_TX_PLT_GNT_BT_RX BIT(2)
1182 #define B_AX_TX_PLT_GNT_BT_TX BIT(1)
1183 #define B_AX_TX_PLT_GNT_WL BIT(0)
1184 
1185 #define R_AX_PTCL_BSS_COLOR_0 0xC6A0
1186 #define R_AX_PTCL_BSS_COLOR_0_C1 0xE6A0
1187 #define B_AX_BSS_COLOB_AX_PORT_3_MASK GENMASK(29, 24)
1188 #define B_AX_BSS_COLOB_AX_PORT_2_MASK GENMASK(21, 16)
1189 #define B_AX_BSS_COLOB_AX_PORT_1_MASK GENMASK(13, 8)
1190 #define B_AX_BSS_COLOB_AX_PORT_0_MASK GENMASK(5, 0)
1191 
1192 #define R_AX_PTCL_BSS_COLOR_1 0xC6A4
1193 #define R_AX_PTCL_BSS_COLOR_1_C1 0xE6A4
1194 #define B_AX_BSS_COLOB_AX_PORT_4_MASK GENMASK(5, 0)
1195 
1196 #define R_AX_PTCL_IMR0 0xC6C0
1197 #define R_AX_PTCL_IMR0_C1 0xE6C0
1198 #define B_AX_F2PCMD_USER_ALLC_ERR_INT_EN BIT(28)
1199 #define B_AX_TX_RECORD_PKTID_ERR_INT_EN BIT(23)
1200 
1201 #define R_AX_PTCL_ISR0 0xC6C4
1202 #define R_AX_PTCL_ISR0_C1 0xE6C4
1203 
1204 #define S_AX_PTCL_TO_2MS 0x3F
1205 #define R_AX_PTCL_FSM_MON 0xC6E8
1206 #define R_AX_PTCL_FSM_MON_C1 0xE6E8
1207 #define B_AX_PTCL_TX_ARB_TO_MODE BIT(6)
1208 #define B_AX_PTCL_TX_ARB_TO_THR_MASK GENMASK(5, 0)
1209 
1210 #define R_AX_PTCL_TX_CTN_SEL 0xC6EC
1211 #define R_AX_PTCL_TX_CTN_SEL_C1 0xE6EC
1212 #define B_AX_PTCL_TX_ON_STAT BIT(7)
1213 
1214 #define R_AX_PTCL_DBG_INFO 0xC6F0
1215 #define R_AX_PTCL_DBG_INFO_C1 0xE6F0
1216 #define B_AX_PTCL_DBG_INFO_MASK GENMASK(31, 0)
1217 #define R_AX_PTCL_DBG 0xC6F4
1218 #define R_AX_PTCL_DBG_C1 0xE6F4
1219 #define B_AX_PTCL_DBG_EN BIT(8)
1220 #define B_AX_PTCL_DBG_SEL_MASK GENMASK(7, 0)
1221 
1222 #define R_AX_DLE_CTRL 0xC800
1223 #define R_AX_DLE_CTRL_C1 0xE800
1224 #define B_AX_NO_RESERVE_PAGE_ERR_IMR BIT(23)
1225 #define B_AX_RXDATA_FSM_HANG_ERROR_IMR BIT(15)
1226 #define R_AX_RXDMA_PKT_INFO_0 0xC814
1227 #define R_AX_RXDMA_PKT_INFO_1 0xC818
1228 #define R_AX_RXDMA_PKT_INFO_2 0xC81C
1229 
1230 #define R_AX_TCR1 0xCA04
1231 #define R_AX_TCR1_C1 0xEA04
1232 #define B_AX_TXDFIFO_THRESHOLD GENMASK(31, 28)
1233 #define B_AX_TCR_CCK_LOCK_CLK BIT(27)
1234 #define B_AX_TCR_FORCE_READ_TXDFIFO BIT(26)
1235 #define B_AX_TCR_USTIME GENMASK(23, 16)
1236 #define B_AX_TCR_SMOOTH_VAL BIT(15)
1237 #define B_AX_TCR_SMOOTH_CTRL BIT(14)
1238 #define B_AX_CS_REQ_VAL BIT(13)
1239 #define B_AX_CS_REQ_SEL BIT(12)
1240 #define B_AX_TCR_ZLD_USTIME_AFTERPHYTXON GENMASK(11, 8)
1241 #define B_AX_TCR_TXTIMEOUT GENMASK(7, 0)
1242 
1243 #define R_AX_MD_TSFT_STMP_CTL 0xCA08
1244 #define R_AX_MD_TSFT_STMP_CTL_C1 0xEA08
1245 #define B_AX_TSFT_OFS_MASK GENMASK(31, 16)
1246 #define B_AX_STMP_THSD_MASK GENMASK(15, 8)
1247 #define B_AX_UPD_HGQMD BIT(1)
1248 #define B_AX_UPD_TIMIE BIT(0)
1249 
1250 #define R_AX_PPWRBIT_SETTING 0xCA0C
1251 #define R_AX_PPWRBIT_SETTING_C1 0xEA0C
1252 
1253 #define R_AX_MACTX_DBG_SEL_CNT 0xCA20
1254 #define R_AX_MACTX_DBG_SEL_CNT_C1 0xEA20
1255 #define B_AX_MACTX_MPDU_CNT GENMASK(31, 24)
1256 #define B_AX_MACTX_DMA_CNT GENMASK(23, 16)
1257 #define B_AX_LENGTH_ERR_FLAG_U3 BIT(11)
1258 #define B_AX_LENGTH_ERR_FLAG_U2 BIT(10)
1259 #define B_AX_LENGTH_ERR_FLAG_U1 BIT(9)
1260 #define B_AX_LENGTH_ERR_FLAG_U0 BIT(8)
1261 #define B_AX_DBGSEL_MACTX_MASK GENMASK(5, 0)
1262 
1263 #define R_AX_WMAC_TX_CTRL_DEBUG 0xCAE4
1264 #define R_AX_WMAC_TX_CTRL_DEBUG_C1 0xEAE4
1265 #define B_AX_TX_CTRL_DEBUG_SEL_MASK GENMASK(3, 0)
1266 
1267 #define R_AX_WMAC_TX_INFO0_DEBUG 0xCAE8
1268 #define R_AX_WMAC_TX_INFO0_DEBUG_C1 0xEAE8
1269 #define B_AX_TX_CTRL_INFO_P0_MASK GENMASK(31, 0)
1270 
1271 #define R_AX_WMAC_TX_INFO1_DEBUG 0xCAEC
1272 #define R_AX_WMAC_TX_INFO1_DEBUG_C1 0xEAEC
1273 #define B_AX_TX_CTRL_INFO_P1_MASK GENMASK(31, 0)
1274 
1275 #define R_AX_RSP_CHK_SIG 0xCC00
1276 #define R_AX_RSP_CHK_SIG_C1 0xEC00
1277 #define B_AX_RSP_STATIC_RTS_CHK_SERV_BW_EN BIT(30)
1278 #define B_AX_RSP_TBPPDU_CHK_PWR BIT(29)
1279 #define B_AX_RSP_CHK_BASIC_NAV BIT(21)
1280 #define B_AX_RSP_CHK_INTRA_NAV BIT(20)
1281 #define B_AX_RSP_CHK_TXNAV BIT(19)
1282 #define B_AX_TXDATA_END_PS_OPT BIT(18)
1283 #define B_AX_CHECK_SOUNDING_SEQ BIT(17)
1284 #define B_AX_RXBA_IGNOREA2 BIT(16)
1285 #define B_AX_ACKTO_CCK_MASK GENMASK(15, 8)
1286 #define B_AX_ACKTO_MASK GENMASK(7, 0)
1287 
1288 #define R_AX_TRXPTCL_RESP_0 0xCC04
1289 #define R_AX_TRXPTCL_RESP_0_C1 0xEC04
1290 #define B_AX_WMAC_RESP_STBC_EN BIT(31)
1291 #define B_AX_WMAC_RXFTM_TXACK_SC BIT(30)
1292 #define B_AX_WMAC_RXFTM_TXACKBWEQ BIT(29)
1293 #define B_AX_RSP_CHK_SEC_CCA_80 BIT(28)
1294 #define B_AX_RSP_CHK_SEC_CCA_40 BIT(27)
1295 #define B_AX_RSP_CHK_SEC_CCA_20 BIT(26)
1296 #define B_AX_RSP_CHK_BTCCA BIT(25)
1297 #define B_AX_RSP_CHK_EDCCA BIT(24)
1298 #define B_AX_RSP_CHK_CCA BIT(23)
1299 #define B_AX_WMAC_LDPC_EN BIT(22)
1300 #define B_AX_WMAC_SGIEN BIT(21)
1301 #define B_AX_WMAC_SPLCPEN BIT(20)
1302 #define B_AX_WMAC_BESP_EARLY_TXBA BIT(17)
1303 #define B_AX_WMAC_SPEC_SIFS_OFDM_MASK GENMASK(15, 8)
1304 #define B_AX_WMAC_SPEC_SIFS_CCK_MASK GENMASK(7, 0)
1305 #define WMAC_SPEC_SIFS_OFDM_52A 0x15
1306 #define WMAC_SPEC_SIFS_OFDM_52B 0x11
1307 #define WMAC_SPEC_SIFS_OFDM_52C 0x11
1308 #define WMAC_SPEC_SIFS_CCK	 0xA
1309 
1310 #define R_AX_MAC_LOOPBACK 0xCC20
1311 #define R_AX_MAC_LOOPBACK_C1 0xEC20
1312 #define B_AX_MACLBK_EN BIT(0)
1313 
1314 #define R_AX_RXTRIG_TEST_USER_2 0xCCB0
1315 #define R_AX_RXTRIG_TEST_USER_2_C1 0xECB0
1316 #define B_AX_RXTRIG_MACID_MASK GENMASK(31, 24)
1317 #define B_AX_RXTRIG_RU26_DIS BIT(21)
1318 #define B_AX_RXTRIG_FCSCHK_EN BIT(20)
1319 #define B_AX_RXTRIG_PORT_SEL_MASK GENMASK(19, 17)
1320 #define B_AX_RXTRIG_EN BIT(16)
1321 #define B_AX_RXTRIG_USERINFO_2_MASK GENMASK(15, 0)
1322 
1323 #define R_AX_WMAC_TX_TF_INFO_0 0xCCD0
1324 #define R_AX_WMAC_TX_TF_INFO_0_C1 0xECD0
1325 #define B_AX_WMAC_TX_TF_INFO_SEL_MASK GENMASK(2, 0)
1326 
1327 #define R_AX_WMAC_TX_TF_INFO_1 0xCCD4
1328 #define R_AX_WMAC_TX_TF_INFO_1_C1 0xECD4
1329 #define B_AX_WMAC_TX_TF_INFO_P0_MASK GENMASK(31, 0)
1330 
1331 #define R_AX_WMAC_TX_TF_INFO_2 0xCCD8
1332 #define R_AX_WMAC_TX_TF_INFO_2_C1 0xECD8
1333 #define B_AX_WMAC_TX_TF_INFO_P1_MASK GENMASK(31, 0)
1334 
1335 #define R_AX_TMAC_ERR_IMR_ISR 0xCCEC
1336 #define R_AX_TMAC_ERR_IMR_ISR_C1 0xECEC
1337 
1338 #define R_AX_DBGSEL_TRXPTCL 0xCCF4
1339 #define R_AX_DBGSEL_TRXPTCL_C1 0xECF4
1340 #define B_AX_DBGSEL_TRXPTCL_MASK GENMASK(7, 0)
1341 
1342 #define R_AX_PHYINFO_ERR_IMR 0xCCFC
1343 #define R_AX_PHYINFO_ERR_IMR_C1 0xECFC
1344 #define B_AX_CSI_ON_TIMEOUT BIT(29)
1345 #define B_AX_STS_ON_TIMEOUT BIT(28)
1346 #define B_AX_DATA_ON_TIMEOUT BIT(27)
1347 #define B_AX_OFDM_CCA_TIMEOUT BIT(26)
1348 #define B_AX_CCK_CCA_TIMEOUT BIT(25)
1349 #define B_AXC_PHY_TXON_TIMEOUT BIT(24)
1350 #define B_AX_CSI_ON_TIMEOUT_INT_EN BIT(21)
1351 #define B_AX_STS_ON_TIMEOUT_INT_EN BIT(20)
1352 #define B_AX_DATA_ON_TIMEOUT_INT_EN BIT(19)
1353 #define B_AX_OFDM_CCA_TIMEOUT_INT_EN BIT(18)
1354 #define B_AX_CCK_CCA_TIMEOUT_INT_EN BIT(17)
1355 #define B_AX_PHY_TXON_TIMEOUT_INT_EN BIT(16)
1356 #define B_AX_PHYINTF_TIMEOUT_THR_MSAK GENMASK(5, 0)
1357 
1358 #define R_AX_PHYINFO_ERR_ISR 0xCCFC
1359 #define R_AX_PHYINFO_ERR_ISR_C1 0xECFC
1360 
1361 #define R_AX_BFMER_CTRL_0 0xCD78
1362 #define R_AX_BFMER_CTRL_0_C1 0xED78
1363 #define B_AX_BFMER_HE_CSI_OFFSET_MASK GENMASK(31, 24)
1364 #define B_AX_BFMER_VHT_CSI_OFFSET_MASK GENMASK(23, 16)
1365 #define B_AX_BFMER_HT_CSI_OFFSET_MASK GENMASK(15, 8)
1366 #define B_AX_BFMER_NDP_BFEN BIT(2)
1367 #define B_AX_BFMER_VHT_BFPRT_CHK BIT(0)
1368 
1369 #define R_AX_BFMEE_RESP_OPTION 0xCD80
1370 #define R_AX_BFMEE_RESP_OPTION_C1 0xED80
1371 #define B_AX_BFMEE_NDP_RX_STANDBY_TIMER_MASK GENMASK(31, 24)
1372 #define B_AX_BFMEE_BFRP_RX_STANDBY_TIMER_MASK GENMASK(23, 20)
1373 #define B_AX_MU_BFRPTSEG_SEL_MASK GENMASK(18, 17)
1374 #define B_AX_BFMEE_NDP_RXSTDBY_SEL BIT(16)
1375 #define BFRP_RX_STANDBY_TIMER		0x0
1376 #define NDP_RX_STANDBY_TIMER		0xFF
1377 #define B_AX_BFMEE_HE_NDPA_EN BIT(2)
1378 #define B_AX_BFMEE_VHT_NDPA_EN BIT(1)
1379 #define B_AX_BFMEE_HT_NDPA_EN BIT(0)
1380 
1381 #define R_AX_TRXPTCL_RESP_CSI_CTRL_0 0xCD88
1382 #define R_AX_TRXPTCL_RESP_CSI_CTRL_0_C1 0xED88
1383 #define R_AX_TRXPTCL_RESP_CSI_CTRL_1 0xCD94
1384 #define R_AX_TRXPTCL_RESP_CSI_CTRL_1_C1 0xED94
1385 #define B_AX_BFMEE_CSISEQ_SEL BIT(29)
1386 #define B_AX_BFMEE_BFPARAM_SEL BIT(28)
1387 #define B_AX_BFMEE_OFDM_LEN_TH_MASK GENMASK(27, 24)
1388 #define B_AX_BFMEE_BF_PORT_SEL BIT(23)
1389 #define B_AX_BFMEE_USE_NSTS BIT(22)
1390 #define B_AX_BFMEE_CSI_RATE_FB_EN BIT(21)
1391 #define B_AX_BFMEE_CSI_GID_SEL BIT(20)
1392 #define B_AX_BFMEE_CSI_RSC_MASK GENMASK(19, 18)
1393 #define B_AX_BFMEE_CSI_FORCE_RETE_EN BIT(17)
1394 #define B_AX_BFMEE_CSI_USE_NDPARATE BIT(16)
1395 #define B_AX_BFMEE_CSI_WITHHTC_EN BIT(15)
1396 #define B_AX_BFMEE_CSIINFO0_BF_EN BIT(14)
1397 #define B_AX_BFMEE_CSIINFO0_STBC_EN BIT(13)
1398 #define B_AX_BFMEE_CSIINFO0_LDPC_EN BIT(12)
1399 #define B_AX_BFMEE_CSIINFO0_CS_MASK GENMASK(11, 10)
1400 #define B_AX_BFMEE_CSIINFO0_CB_MASK GENMASK(9, 8)
1401 #define B_AX_BFMEE_CSIINFO0_NG_MASK GENMASK(7, 6)
1402 #define B_AX_BFMEE_CSIINFO0_NR_MASK GENMASK(5, 3)
1403 #define B_AX_BFMEE_CSIINFO0_NC_MASK GENMASK(2, 0)
1404 
1405 #define R_AX_TRXPTCL_RESP_CSI_RRSC 0xCD8C
1406 #define R_AX_TRXPTCL_RESP_CSI_RRSC_C1 0xED8C
1407 #define CSI_RRSC_BMAP 0x29292911
1408 
1409 #define R_AX_TRXPTCL_RESP_CSI_RATE 0xCD90
1410 #define R_AX_TRXPTCL_RESP_CSI_RATE_C1 0xED90
1411 #define B_AX_BFMEE_HE_CSI_RATE_MASK GENMASK(22, 16)
1412 #define B_AX_BFMEE_VHT_CSI_RATE_MASK GENMASK(14, 8)
1413 #define B_AX_BFMEE_HT_CSI_RATE_MASK GENMASK(6, 0)
1414 #define CSI_INIT_RATE_HE		0x3
1415 #define CSI_INIT_RATE_VHT		0x3
1416 #define CSI_INIT_RATE_HT		0x3
1417 
1418 #define R_AX_RCR 0xCE00
1419 #define R_AX_RCR_C1 0xEE00
1420 #define B_AX_STOP_RX_IN BIT(11)
1421 #define B_AX_DRV_INFO_SIZE_MASK GENMASK(10, 8)
1422 #define B_AX_CH_EN_MASK GENMASK(3, 0)
1423 
1424 #define R_AX_DLK_PROTECT_CTL 0xCE02
1425 #define R_AX_DLK_PROTECT_CTL_C1 0xEE02
1426 #define B_AX_RX_DLK_CCA_TIME_MASK GENMASK(15, 8)
1427 #define B_AX_RX_DLK_DATA_TIME_MASK GENMASK(7, 4)
1428 
1429 #define R_AX_PLCP_HDR_FLTR 0xCE04
1430 #define R_AX_PLCP_HDR_FLTR_C1 0xEE04
1431 #define B_AX_DIS_CHK_MIN_LEN BIT(8)
1432 #define B_AX_HE_SIGB_CRC_CHK BIT(6)
1433 #define B_AX_VHT_MU_SIGB_CRC_CHK BIT(5)
1434 #define B_AX_VHT_SU_SIGB_CRC_CHK BIT(4)
1435 #define B_AX_SIGA_CRC_CHK BIT(3)
1436 #define B_AX_LSIG_PARITY_CHK_EN BIT(2)
1437 #define B_AX_CCK_SIG_CHK BIT(1)
1438 #define B_AX_CCK_CRC_CHK BIT(0)
1439 
1440 #define R_AX_RX_FLTR_OPT 0xCE20
1441 #define R_AX_RX_FLTR_OPT_C1 0xEE20
1442 #define B_AX_UID_FILTER_MASK GENMASK(31, 24)
1443 #define B_AX_UNSPT_FILTER_SH 22
1444 #define B_AX_UNSPT_FILTER_MASK GENMASK(23, 22)
1445 #define B_AX_RX_MPDU_MAX_LEN_MASK GENMASK(21, 16)
1446 #define B_AX_RX_MPDU_MAX_LEN_SIZE 0x3f
1447 #define B_AX_A_FTM_REQ BIT(14)
1448 #define B_AX_A_ERR_PKT BIT(13)
1449 #define B_AX_A_UNSUP_PKT BIT(12)
1450 #define B_AX_A_CRC32_ERR BIT(11)
1451 #define B_AX_A_PWR_MGNT BIT(10)
1452 #define B_AX_A_BCN_CHK_RULE_MASK GENMASK(9, 8)
1453 #define B_AX_A_BCN_CHK_EN BIT(7)
1454 #define B_AX_A_MC_LIST_CAM_MATCH BIT(6)
1455 #define B_AX_A_BC_CAM_MATCH BIT(5)
1456 #define B_AX_A_UC_CAM_MATCH BIT(4)
1457 #define B_AX_A_MC BIT(3)
1458 #define B_AX_A_BC BIT(2)
1459 #define B_AX_A_A1_MATCH BIT(1)
1460 #define B_AX_SNIFFER_MODE BIT(0)
1461 #define DEFAULT_AX_RX_FLTR (B_AX_A_A1_MATCH | B_AX_A_BC | B_AX_A_MC |	       \
1462 			    B_AX_A_UC_CAM_MATCH | B_AX_A_BC_CAM_MATCH |	       \
1463 			    B_AX_A_PWR_MGNT | B_AX_A_FTM_REQ |		       \
1464 			    u32_encode_bits(3, B_AX_UID_FILTER_MASK) |	       \
1465 			    B_AX_A_BCN_CHK_EN)
1466 #define B_AX_RX_FLTR_CFG_MASK ((u32)~B_AX_RX_MPDU_MAX_LEN_MASK)
1467 
1468 #define R_AX_CTRL_FLTR 0xCE24
1469 #define R_AX_CTRL_FLTR_C1 0xEE24
1470 #define R_AX_MGNT_FLTR 0xCE28
1471 #define R_AX_MGNT_FLTR_C1 0xEE28
1472 #define R_AX_DATA_FLTR 0xCE2C
1473 #define R_AX_DATA_FLTR_C1 0xEE2C
1474 #define RX_FLTR_FRAME_DROP	0x00000000
1475 #define RX_FLTR_FRAME_TO_HOST	0x55555555
1476 #define RX_FLTR_FRAME_TO_WLCPU	0xAAAAAAAA
1477 
1478 #define R_AX_ADDR_CAM_CTRL 0xCE34
1479 #define R_AX_ADDR_CAM_CTRL_C1 0xEE34
1480 #define B_AX_ADDR_CAM_RANGE_MASK GENMASK(23, 16)
1481 #define B_AX_ADDR_CAM_CMPLIMT_MASK GENMASK(15, 12)
1482 #define B_AX_ADDR_CAM_CLR BIT(8)
1483 #define B_AX_ADDR_CAM_A2_B0_CHK BIT(2)
1484 #define B_AX_ADDR_CAM_SRCH_PERPKT BIT(1)
1485 #define B_AX_ADDR_CAM_EN BIT(0)
1486 
1487 #define R_AX_RESPBA_CAM_CTRL 0xCE3C
1488 #define R_AX_RESPBA_CAM_CTRL_C1 0xEE3C
1489 #define B_AX_SSN_SEL BIT(2)
1490 
1491 #define R_AX_PPDU_STAT 0xCE40
1492 #define R_AX_PPDU_STAT_C1 0xEE40
1493 #define B_AX_PPDU_STAT_RPT_TRIG BIT(8)
1494 #define B_AX_PPDU_STAT_RPT_CRC32 BIT(5)
1495 #define B_AX_PPDU_STAT_RPT_A1M BIT(4)
1496 #define B_AX_APP_PLCP_HDR_RPT BIT(3)
1497 #define B_AX_APP_RX_CNT_RPT BIT(2)
1498 #define B_AX_APP_MAC_INFO_RPT BIT(1)
1499 #define B_AX_PPDU_STAT_RPT_EN BIT(0)
1500 
1501 #define R_AX_RX_SR_CTRL 0xCE4A
1502 #define R_AX_RX_SR_CTRL_C1 0xEE4A
1503 #define B_AX_SR_EN BIT(0)
1504 
1505 #define R_AX_RX_STATE_MONITOR 0xCEF0
1506 #define R_AX_RX_STATE_MONITOR_C1 0xEEF0
1507 #define B_AX_RX_STATE_MONITOR_MASK GENMASK(31, 0)
1508 #define B_AX_STATE_CUR_MASK GENMASK(31, 16)
1509 #define B_AX_STATE_NXT_MASK GENMASK(13, 8)
1510 #define B_AX_STATE_UPD BIT(7)
1511 #define B_AX_STATE_SEL_MASK GENMASK(4, 0)
1512 
1513 #define R_AX_RMAC_ERR_ISR 0xCEF4
1514 #define R_AX_RMAC_ERR_ISR_C1 0xEEF4
1515 #define B_AX_RXERR_INTPS_EN BIT(31)
1516 #define B_AX_RMAC_RX_CSI_TIMEOUT_INT_EN BIT(19)
1517 #define B_AX_RMAC_RX_TIMEOUT_INT_EN BIT(18)
1518 #define B_AX_RMAC_CSI_TIMEOUT_INT_EN BIT(17)
1519 #define B_AX_RMAC_DATA_ON_TIMEOUT_INT_EN BIT(16)
1520 #define B_AX_RMAC_CCA_TIMEOUT_INT_EN BIT(15)
1521 #define B_AX_RMAC_DMA_TIMEOUT_INT_EN BIT(14)
1522 #define B_AX_RMAC_DATA_ON_TO_IDLE_TIMEOUT_INT_EN BIT(13)
1523 #define B_AX_RMAC_CCA_TO_IDLE_TIMEOUT_INT_EN BIT(12)
1524 #define B_AX_RMAC_RX_CSI_TIMEOUT_FLAG BIT(7)
1525 #define B_AX_RMAC_RX_TIMEOUT_FLAG BIT(6)
1526 #define B_AX_BMAC_CSI_TIMEOUT_FLAG BIT(5)
1527 #define B_AX_BMAC_DATA_ON_TIMEOUT_FLAG BIT(4)
1528 #define B_AX_BMAC_CCA_TIMEOUT_FLAG BIT(3)
1529 #define B_AX_BMAC_DMA_TIMEOUT_FLAG BIT(2)
1530 #define B_AX_BMAC_DATA_ON_TO_IDLE_TIMEOUT_FLAG BIT(1)
1531 #define B_AX_BMAC_CCA_TO_IDLE_TIMEOUT_FLAG BIT(0)
1532 
1533 #define R_AX_RMAC_PLCP_MON 0xCEF8
1534 #define R_AX_RMAC_PLCP_MON_C1 0xEEF8
1535 #define B_AX_RMAC_PLCP_MON_MASK GENMASK(31, 0)
1536 #define B_AX_PCLP_MON_SEL_MASK GENMASK(31, 28)
1537 #define B_AX_PCLP_MON_CONT_MASK GENMASK(27, 0)
1538 
1539 #define R_AX_RX_DEBUG_SELECT 0xCEFC
1540 #define R_AX_RX_DEBUG_SELECT_C1 0xEEFC
1541 #define B_AX_DEBUG_SEL_MASK GENMASK(7, 0)
1542 
1543 #define R_AX_PWR_RATE_CTRL 0xD200
1544 #define R_AX_PWR_RATE_CTRL_C1 0xF200
1545 #define B_AX_FORCE_PWR_BY_RATE_EN BIT(9)
1546 #define B_AX_FORCE_PWR_BY_RATE_VALUE_MASK GENMASK(8, 0)
1547 
1548 #define R_AX_PWR_RATE_OFST_CTRL 0xD204
1549 #define R_AX_PWR_COEXT_CTRL 0xD220
1550 #define B_AX_TXAGC_BT_EN BIT(1)
1551 #define B_AX_TXAGC_BT_MASK GENMASK(11, 3)
1552 
1553 #define R_AX_PWR_UL_CTRL0 0xD240
1554 #define R_AX_PWR_UL_CTRL2 0xD248
1555 #define B_AX_PWR_UL_CFO_MASK GENMASK(2, 0)
1556 #define B_AX_PWR_UL_CTRL2_MASK 0x07700007
1557 #define R_AX_PWR_UL_TB_CTRL 0xD288
1558 #define B_AX_PWR_UL_TB_CTRL_EN BIT(31)
1559 #define R_AX_PWR_UL_TB_1T 0xD28C
1560 #define B_AX_PWR_UL_TB_1T_MASK GENMASK(4, 0)
1561 #define B_AX_PWR_UL_TB_1T_V1_MASK GENMASK(7, 0)
1562 #define R_AX_PWR_UL_TB_2T 0xD290
1563 #define B_AX_PWR_UL_TB_2T_MASK GENMASK(4, 0)
1564 #define B_AX_PWR_UL_TB_2T_V1_MASK GENMASK(7, 0)
1565 #define R_AX_PWR_BY_RATE_TABLE0 0xD2C0
1566 #define R_AX_PWR_BY_RATE_TABLE10 0xD2E8
1567 #define R_AX_PWR_BY_RATE R_AX_PWR_BY_RATE_TABLE0
1568 #define R_AX_PWR_BY_RATE_MAX R_AX_PWR_BY_RATE_TABLE10
1569 #define R_AX_PWR_LMT_TABLE0 0xD2EC
1570 #define R_AX_PWR_LMT_TABLE19 0xD338
1571 #define R_AX_PWR_LMT R_AX_PWR_LMT_TABLE0
1572 #define R_AX_PWR_LMT_MAX R_AX_PWR_LMT_TABLE19
1573 #define R_AX_PWR_RU_LMT_TABLE0 0xD33C
1574 #define R_AX_PWR_RU_LMT_TABLE11 0xD368
1575 #define R_AX_PWR_RU_LMT R_AX_PWR_RU_LMT_TABLE0
1576 #define R_AX_PWR_RU_LMT_MAX R_AX_PWR_RU_LMT_TABLE11
1577 #define R_AX_PWR_MACID_LMT_TABLE0 0xD36C
1578 #define R_AX_PWR_MACID_LMT_TABLE127 0xD568
1579 
1580 #define R_AX_TXPWR_IMR 0xD9E0
1581 #define R_AX_TXPWR_IMR_C1 0xF9E0
1582 #define R_AX_TXPWR_ISR 0xD9E4
1583 #define R_AX_TXPWR_ISR_C1 0xF9E4
1584 
1585 #define R_AX_BTC_CFG 0xDA00
1586 #define B_AX_DIS_BTC_CLK_G BIT(2)
1587 
1588 #define R_AX_WL_PRI_MSK 0xDA10
1589 #define B_AX_PTA_WL_PRI_MASK_BCNQ BIT(8)
1590 
1591 #define R_AX_BTC_FUNC_EN 0xDA20
1592 #define R_AX_BTC_FUNC_EN_C1 0xFA20
1593 #define B_AX_PTA_WL_TX_EN BIT(1)
1594 #define B_AX_PTA_EDCCA_EN BIT(0)
1595 
1596 #define R_BTC_BREAK_TABLE 0xDA2C
1597 #define BTC_BREAK_PARAM 0xf0ffffff
1598 
1599 #define R_BTC_BT_COEX_MSK_TABLE 0xDA30
1600 #define B_BTC_PRI_MASK_TX_RESP_V1 BIT(3)
1601 
1602 #define R_AX_BT_COEX_CFG_2 0xDA34
1603 #define R_AX_BT_COEX_CFG_2_C1 0xFA34
1604 #define B_AX_GNT_BT_BYPASS_PRIORITY BIT(12)
1605 #define B_AX_GNT_BT_POLARITY BIT(8)
1606 #define B_AX_TIMER_MASK GENMASK(7, 0)
1607 #define MAC_AX_CSR_RATE 80
1608 
1609 #define R_AX_CSR_MODE 0xDA40
1610 #define R_AX_CSR_MODE_C1 0xFA40
1611 #define B_AX_BT_CNT_RST BIT(16)
1612 #define B_AX_BT_STAT_DELAY_MASK GENMASK(15, 12)
1613 #define MAC_AX_CSR_DELAY 0
1614 #define B_AX_BT_TRX_INIT_DETECT_MASK GENMASK(11, 8)
1615 #define MAC_AX_CSR_TRX_TO 4
1616 #define B_AX_BT_PRI_DETECT_TO_MASK GENMASK(7, 4)
1617 #define MAC_AX_CSR_PRI_TO 5
1618 #define B_AX_WL_ACT_MSK BIT(3)
1619 #define B_AX_STATIS_BT_EN BIT(2)
1620 #define B_AX_WL_ACT_MASK_ENABLE BIT(1)
1621 #define B_AX_ENHANCED_BT BIT(0)
1622 
1623 #define R_AX_BT_STAST_HIGH 0xDA44
1624 #define B_AX_STATIS_BT_HI_RX_MASK GENMASK(31, 16)
1625 #define B_AX_STATIS_BT_HI_TX_MASK GENMASK(15, 0)
1626 #define R_AX_BT_STAST_LOW 0xDA48
1627 #define B_AX_STATIS_BT_LO_TX_1_MASK GENMASK(15, 0)
1628 #define B_AX_STATIS_BT_LO_RX_1_MASK GENMASK(31, 16)
1629 
1630 #define R_AX_GNT_SW_CTRL 0xDA48
1631 #define R_AX_GNT_SW_CTRL_C1 0xFA48
1632 #define B_AX_WL_ACT2_VAL BIT(21)
1633 #define B_AX_WL_ACT2_SWCTRL BIT(20)
1634 #define B_AX_WL_ACT_VAL BIT(19)
1635 #define B_AX_WL_ACT_SWCTRL BIT(18)
1636 #define B_AX_GNT_BT_RX_VAL BIT(17)
1637 #define B_AX_GNT_BT_RX_SWCTRL BIT(16)
1638 #define B_AX_GNT_BT_TX_VAL BIT(15)
1639 #define B_AX_GNT_BT_TX_SWCTRL BIT(14)
1640 #define B_AX_GNT_WL_RX_VAL BIT(13)
1641 #define B_AX_GNT_WL_RX_SWCTRL BIT(12)
1642 #define B_AX_GNT_WL_TX_VAL BIT(11)
1643 #define B_AX_GNT_WL_TX_SWCTRL BIT(10)
1644 #define B_AX_GNT_BT_RFC_S1_VAL BIT(9)
1645 #define B_AX_GNT_BT_RFC_S1_SWCTRL BIT(8)
1646 #define B_AX_GNT_WL_RFC_S1_VAL BIT(7)
1647 #define B_AX_GNT_WL_RFC_S1_SWCTRL BIT(6)
1648 #define B_AX_GNT_BT_RFC_S0_VAL BIT(5)
1649 #define B_AX_GNT_BT_RFC_S0_SWCTRL BIT(4)
1650 #define B_AX_GNT_WL_RFC_S0_VAL BIT(3)
1651 #define B_AX_GNT_WL_RFC_S0_SWCTRL BIT(2)
1652 #define B_AX_GNT_WL_BB_VAL BIT(1)
1653 #define B_AX_GNT_WL_BB_SWCTRL BIT(0)
1654 
1655 #define R_AX_TDMA_MODE 0xDA4C
1656 #define R_AX_TDMA_MODE_C1 0xFA4C
1657 #define B_AX_R_BT_CMD_RPT_MASK GENMASK(31, 16)
1658 #define B_AX_R_RPT_FROM_BT_MASK GENMASK(15, 8)
1659 #define B_AX_BT_HID_ISR_SET_MASK GENMASK(7, 6)
1660 #define B_AX_TDMA_BT_START_NOTIFY BIT(5)
1661 #define B_AX_ENABLE_TDMA_FW_MODE BIT(4)
1662 #define B_AX_ENABLE_PTA_TDMA_MODE BIT(3)
1663 #define B_AX_ENABLE_COEXIST_TAB_IN_TDMA BIT(2)
1664 #define B_AX_GPIO2_GPIO3_EXANGE_OR_NO_BT_CCA BIT(1)
1665 #define B_AX_RTK_BT_ENABLE BIT(0)
1666 
1667 #define R_AX_BT_COEX_CFG_5 0xDA6C
1668 #define R_AX_BT_COEX_CFG_5_C1 0xFA6C
1669 #define B_AX_BT_TIME_MASK GENMASK(31, 6)
1670 #define B_AX_BT_RPT_SAMPLE_RATE_MASK GENMASK(5, 0)
1671 #define MAC_AX_RTK_RATE 5
1672 
1673 #define R_AX_LTE_CTRL 0xDAF0
1674 #define R_AX_LTE_WDATA 0xDAF4
1675 #define R_AX_LTE_RDATA 0xDAF8
1676 
1677 #define CMAC1_START_ADDR 0xE000
1678 #define CMAC1_END_ADDR 0xFFFF
1679 #define R_AX_CMAC_REG_END 0xFFFF
1680 
1681 #define R_AX_LTE_SW_CFG_1 0x0038
1682 #define R_AX_LTE_SW_CFG_1_C1 0x2038
1683 #define B_AX_GNT_BT_RFC_S1_SW_VAL BIT(31)
1684 #define B_AX_GNT_BT_RFC_S1_SW_CTRL BIT(30)
1685 #define B_AX_GNT_WL_RFC_S1_SW_VAL BIT(29)
1686 #define B_AX_GNT_WL_RFC_S1_SW_CTRL BIT(28)
1687 #define B_AX_GNT_BT_BB_S1_SW_VAL BIT(27)
1688 #define B_AX_GNT_BT_BB_S1_SW_CTRL BIT(26)
1689 #define B_AX_GNT_WL_BB_S1_SW_VAL BIT(25)
1690 #define B_AX_GNT_WL_BB_S1_SW_CTRL BIT(24)
1691 #define B_AX_BT_SW_CTRL_WL_PRIORITY BIT(19)
1692 #define B_AX_WL_SW_CTRL_WL_PRIORITY BIT(18)
1693 #define B_AX_LTE_PATTERN_2_EN BIT(17)
1694 #define B_AX_LTE_PATTERN_1_EN BIT(16)
1695 #define B_AX_GNT_BT_RFC_S0_SW_VAL BIT(15)
1696 #define B_AX_GNT_BT_RFC_S0_SW_CTRL BIT(14)
1697 #define B_AX_GNT_WL_RFC_S0_SW_VAL BIT(13)
1698 #define B_AX_GNT_WL_RFC_S0_SW_CTRL BIT(12)
1699 #define B_AX_GNT_BT_BB_S0_SW_VAL BIT(11)
1700 #define B_AX_GNT_BT_BB_S0_SW_CTRL BIT(10)
1701 #define B_AX_GNT_WL_BB_S0_SW_VAL BIT(9)
1702 #define B_AX_GNT_WL_BB_S0_SW_CTRL BIT(8)
1703 #define B_AX_LTECOEX_FUN_EN BIT(7)
1704 #define B_AX_LTECOEX_3WIRE_CTRL_MUX BIT(6)
1705 #define B_AX_LTECOEX_OP_MODE_SEL_MASK GENMASK(5, 4)
1706 #define B_AX_LTECOEX_UART_MUX BIT(3)
1707 #define B_AX_LTECOEX_UART_MODE_SEL_MASK GENMASK(2, 0)
1708 
1709 #define R_AX_LTE_SW_CFG_2 0x003C
1710 #define R_AX_LTE_SW_CFG_2_C1 0x203C
1711 #define B_AX_WL_RX_CTRL BIT(8)
1712 #define B_AX_GNT_WL_RX_SW_VAL BIT(7)
1713 #define B_AX_GNT_WL_RX_SW_CTRL BIT(6)
1714 #define B_AX_GNT_WL_TX_SW_VAL BIT(5)
1715 #define B_AX_GNT_WL_TX_SW_CTRL BIT(4)
1716 #define B_AX_GNT_BT_RX_SW_VAL BIT(3)
1717 #define B_AX_GNT_BT_RX_SW_CTRL BIT(2)
1718 #define B_AX_GNT_BT_TX_SW_VAL BIT(1)
1719 #define B_AX_GNT_BT_TX_SW_CTRL BIT(0)
1720 
1721 #define RR_MOD 0x00
1722 #define RR_MOD_IQK GENMASK(19, 4)
1723 #define RR_MOD_DPK GENMASK(19, 5)
1724 #define RR_MOD_MASK GENMASK(19, 16)
1725 #define RR_MOD_V_DOWN 0x0
1726 #define RR_MOD_V_STANDBY 0x1
1727 #define RR_MOD_V_TX 0x2
1728 #define RR_MOD_V_RX 0x3
1729 #define RR_MOD_V_TXIQK 0x4
1730 #define RR_MOD_V_DPK 0x5
1731 #define RR_MOD_V_RXK1 0x6
1732 #define RR_MOD_V_RXK2 0x7
1733 #define RR_MOD_M_RXG GENMASK(13, 4)
1734 #define RR_MOD_M_RXBB GENMASK(9, 5)
1735 #define RR_MODOPT 0x01
1736 #define RR_MODOPT_M_TXPWR GENMASK(5, 0)
1737 #define RR_WLSEL 0x02
1738 #define RR_WLSEL_AG GENMASK(18, 16)
1739 #define RR_RSV1 0x05
1740 #define RR_RSV1_RST BIT(0)
1741 #define RR_DTXLOK 0x08
1742 #define RR_RSV2 0x09
1743 #define RR_CFGCH 0x18
1744 #define RR_BTC 0x1a
1745 #define RR_BTC_TXBB GENMASK(14, 12)
1746 #define RR_BTC_RXBB GENMASK(11, 10)
1747 #define RR_RCKC 0x1b
1748 #define RR_RCKC_CA GENMASK(14, 10)
1749 #define RR_RCKS 0x1c
1750 #define RR_RCKO 0x1d
1751 #define RR_RCKO_OFF GENMASK(13, 9)
1752 #define RR_RXKPLL 0x1e
1753 #define RR_RXKPLL_OFF GENMASK(5, 0)
1754 #define RR_RXKPLL_POW BIT(19)
1755 #define RR_RSV4 0x1f
1756 #define RR_RXK 0x20
1757 #define RR_RXK_PLLEN BIT(5)
1758 #define RR_RXK_SEL5G BIT(7)
1759 #define RR_RXK_SEL2G BIT(8)
1760 #define RR_LUTWA 0x33
1761 #define RR_LUTWA_MASK GENMASK(9, 0)
1762 #define RR_LUTWD1 0x3e
1763 #define RR_LUTWD0 0x3f
1764 #define RR_TM 0x42
1765 #define RR_TM_TRI BIT(19)
1766 #define RR_TM_VAL GENMASK(6, 1)
1767 #define RR_TM2 0x43
1768 #define RR_TM2_OFF GENMASK(19, 16)
1769 #define RR_TXG1 0x51
1770 #define RR_TXG1_ATT2 BIT(19)
1771 #define RR_TXG1_ATT1 BIT(11)
1772 #define RR_TXG2 0x52
1773 #define RR_TXG2_ATT0 BIT(11)
1774 #define RR_BSPAD 0x54
1775 #define RR_TXGA 0x55
1776 #define RR_TXGA_LOK_EN BIT(0)
1777 #define RR_TXGA_TRK_EN BIT(7)
1778 #define RR_GAINTX 0x56
1779 #define RR_GAINTX_ALL GENMASK(15, 0)
1780 #define RR_GAINTX_PAD GENMASK(9, 5)
1781 #define RR_GAINTX_BB GENMASK(4, 0)
1782 #define RR_TXMO 0x58
1783 #define RR_TXMO_COI GENMASK(19, 15)
1784 #define RR_TXMO_COQ GENMASK(14, 10)
1785 #define RR_TXMO_FII GENMASK(9, 6)
1786 #define RR_TXMO_FIQ GENMASK(5, 2)
1787 #define RR_TXA 0x5d
1788 #define RR_TXA_TRK GENMASK(19, 14)
1789 #define RR_TXRSV 0x5c
1790 #define RR_TXRSV_GAPK BIT(19)
1791 #define RR_BIAS 0x5e
1792 #define RR_BIAS_GAPK BIT(19)
1793 #define RR_BIASA 0x60
1794 #define RR_BIASA_TXG GENMASK(15, 12)
1795 #define RR_BIASA_TXA GENMASK(19, 16)
1796 #define RR_BIASA_A GENMASK(2, 0)
1797 #define RR_BIASA2 0x63
1798 #define RR_BIASA2_LB GENMASK(4, 2)
1799 #define RR_TXATANK 0x64
1800 #define RR_TXATANK_LBSW GENMASK(16, 15)
1801 #define RR_TRXIQ 0x66
1802 #define RR_RSV6 0x6d
1803 #define RR_TXPOW 0x7f
1804 #define RR_TXPOW_TXG BIT(1)
1805 #define RR_TXPOW_TXA BIT(8)
1806 #define RR_RXPOW 0x80
1807 #define RR_RXPOW_IQK GENMASK(17, 16)
1808 #define RR_RXBB 0x83
1809 #define RR_RXBB_C2G GENMASK(16, 10)
1810 #define RR_RXBB_C1G GENMASK(9, 8)
1811 #define RR_RXBB_ATTR GENMASK(7, 4)
1812 #define RR_RXBB_ATTC GENMASK(2, 0)
1813 #define RR_XGLNA2 0x85
1814 #define RR_XGLNA2_SW GENMASK(1, 0)
1815 #define RR_RXA 0x8a
1816 #define RR_RXA_DPK GENMASK(9, 8)
1817 #define RR_RXA2 0x8c
1818 #define RR_RXA2_C2 GENMASK(9, 3)
1819 #define RR_RXA2_C1 GENMASK(12, 10)
1820 #define RR_RXIQGEN 0x8d
1821 #define RR_RXIQGEN_ATTL GENMASK(12, 8)
1822 #define RR_RXIQGEN_ATTH GENMASK(14, 13)
1823 #define RR_RXBB2 0x8f
1824 #define RR_EN_TIA_IDA GENMASK(11, 10)
1825 #define RR_RXBB2_DAC_EN BIT(13)
1826 #define RR_XALNA2 0x90
1827 #define RR_XALNA2_SW GENMASK(1, 0)
1828 #define RR_DCK 0x92
1829 #define RR_DCK_FINE BIT(1)
1830 #define RR_DCK_LV BIT(0)
1831 #define RR_DCK1 0x93
1832 #define RR_DCK1_SEL BIT(3)
1833 #define RR_DCK2 0x94
1834 #define RR_DCK2_CYCLE GENMASK(7, 2)
1835 #define RR_MIXER 0x9f
1836 #define RR_MIXER_GN GENMASK(4, 3)
1837 #define RR_XTALX2 0xb8
1838 #define RR_MALSEL 0xbe
1839 #define RR_RCKD 0xde
1840 #define RR_RCKD_POW GENMASK(19, 13)
1841 #define RR_RCKD_BW BIT(2)
1842 #define RR_TXADBG 0xde
1843 #define RR_LUTDBG 0xdf
1844 #define RR_LUTDBG_LOK BIT(2)
1845 #define RR_LUTWE2 0xee
1846 #define RR_LUTWE 0xef
1847 #define RR_LUTWE_LOK BIT(2)
1848 #define RR_RFC 0xf0
1849 #define RR_RFC_CKEN BIT(1)
1850 
1851 #define R_UPD_P0 0x0000
1852 #define R_RSTB_WATCH_DOG 0x000C
1853 #define B_P0_RSTB_WATCH_DOG BIT(0)
1854 #define B_P1_RSTB_WATCH_DOG BIT(1)
1855 #define B_UPD_P0_EN BIT(31)
1856 #define R_ANAPAR_PW15 0x030C
1857 #define B_ANAPAR_PW15 GENMASK(31, 24)
1858 #define B_ANAPAR_PW15_H GENMASK(27, 24)
1859 #define B_ANAPAR_PW15_H2 GENMASK(27, 26)
1860 #define R_ANAPAR 0x032C
1861 #define B_ANAPAR_15 GENMASK(31, 16)
1862 #define B_ANAPAR_ADCCLK BIT(30)
1863 #define B_ANAPAR_FLTRST BIT(22)
1864 #define B_ANAPAR_CRXBB GENMASK(18, 16)
1865 #define B_ANAPAR_14 GENMASK(15, 0)
1866 #define R_SWSI_DATA_V1 0x0370
1867 #define B_SWSI_DATA_VAL_V1 GENMASK(19, 0)
1868 #define B_SWSI_DATA_ADDR_V1 GENMASK(27, 20)
1869 #define B_SWSI_DATA_PATH_V1 GENMASK(30, 28)
1870 #define B_SWSI_DATA_BIT_MASK_EN_V1 BIT(31)
1871 #define R_SWSI_BIT_MASK_V1 0x0374
1872 #define B_SWSI_BIT_MASK_V1 GENMASK(19, 0)
1873 #define R_SWSI_READ_ADDR_V1 0x0378
1874 #define B_SWSI_READ_ADDR_ADDR_V1 GENMASK(7, 0)
1875 #define B_SWSI_READ_ADDR_PATH_V1 GENMASK(10, 8)
1876 #define B_SWSI_READ_ADDR_V1 GENMASK(10, 0)
1877 #define R_UPD_CLK_ADC 0x0700
1878 #define B_UPD_CLK_ADC_ON BIT(24)
1879 #define B_UPD_CLK_ADC_VAL GENMASK(26, 25)
1880 #define R_RSTB_ASYNC 0x0704
1881 #define B_RSTB_ASYNC_ALL BIT(1)
1882 #define R_MAC_PIN_SEL 0x0734
1883 #define B_CH_IDX_SEG0 GENMASK(23, 16)
1884 #define R_PLCP_HISTOGRAM 0x0738
1885 #define B_STS_DIS_TRIG_BY_BRK BIT(2)
1886 #define B_STS_DIS_TRIG_BY_FAIL BIT(3)
1887 #define R_PHY_STS_BITMAP_ADDR_START R_PHY_STS_BITMAP_SEARCH_FAIL
1888 #define B_PHY_STS_BITMAP_ADDR_MASK GENMASK(6, 2)
1889 #define R_PHY_STS_BITMAP_SEARCH_FAIL 0x073C
1890 #define B_PHY_STS_BITMAP_MSK_52A 0x337cff3f
1891 #define R_PHY_STS_BITMAP_R2T 0x0740
1892 #define R_PHY_STS_BITMAP_CCA_SPOOF 0x0744
1893 #define R_PHY_STS_BITMAP_OFDM_BRK 0x0748
1894 #define R_PHY_STS_BITMAP_CCK_BRK 0x074C
1895 #define R_PHY_STS_BITMAP_DL_MU_SPOOF 0x0750
1896 #define R_PHY_STS_BITMAP_HE_MU 0x0754
1897 #define R_PHY_STS_BITMAP_VHT_MU 0x0758
1898 #define R_PHY_STS_BITMAP_UL_TB_SPOOF 0x075C
1899 #define R_PHY_STS_BITMAP_TRIGBASE 0x0760
1900 #define R_PHY_STS_BITMAP_CCK 0x0764
1901 #define R_PHY_STS_BITMAP_LEGACY 0x0768
1902 #define R_PHY_STS_BITMAP_HT 0x076C
1903 #define R_PHY_STS_BITMAP_VHT 0x0770
1904 #define R_PHY_STS_BITMAP_HE 0x0774
1905 #define R_PMAC_GNT 0x0980
1906 #define B_PMAC_GNT_TXEN BIT(0)
1907 #define B_PMAC_GNT_RXEN BIT(16)
1908 #define B_PMAC_GNT_P1 GENMASK(20, 17)
1909 #define B_PMAC_GNT_P2 GENMASK(29, 26)
1910 #define R_PMAC_RX_CFG1 0x0988
1911 #define B_PMAC_OPT1_MSK GENMASK(11, 0)
1912 #define R_PMAC_RXMOD 0x0994
1913 #define B_PMAC_RXMOD_MSK GENMASK(7, 4)
1914 #define R_MAC_SEL 0x09A4
1915 #define B_MAC_SEL_MOD GENMASK(4, 2)
1916 #define B_MAC_SEL_DPD_EN BIT(10)
1917 #define B_MAC_SEL_PWR_EN BIT(16)
1918 #define R_PMAC_TX_CTRL 0x09C0
1919 #define B_PMAC_TXEN_DIS BIT(0)
1920 #define R_PMAC_TX_PRD 0x09C4
1921 #define B_PMAC_TX_PRD_MSK GENMASK(31, 8)
1922 #define B_PMAC_CTX_EN BIT(0)
1923 #define B_PMAC_PTX_EN BIT(4)
1924 #define R_PMAC_TX_CNT 0x09C8
1925 #define B_PMAC_TX_CNT_MSK GENMASK(31, 0)
1926 #define R_CCX 0x0C00
1927 #define B_CCX_EDCCA_OPT_MSK GENMASK(6, 4)
1928 #define B_MEASUREMENT_TRIG_MSK BIT(2)
1929 #define B_CCX_TRIG_OPT_MSK BIT(1)
1930 #define B_CCX_EN_MSK BIT(0)
1931 #define R_IFS_COUNTER 0x0C28
1932 #define B_IFS_CLM_PERIOD_MSK GENMASK(31, 16)
1933 #define B_IFS_CLM_COUNTER_UNIT_MSK GENMASK(15, 14)
1934 #define B_IFS_COUNTER_CLR_MSK BIT(13)
1935 #define B_IFS_COLLECT_EN BIT(12)
1936 #define R_IFS_T1 0x0C2C
1937 #define B_IFS_T1_TH_HIGH_MSK GENMASK(31, 16)
1938 #define B_IFS_T1_EN_MSK BIT(15)
1939 #define B_IFS_T1_TH_LOW_MSK GENMASK(14, 0)
1940 #define R_IFS_T2 0x0C30
1941 #define B_IFS_T2_TH_HIGH_MSK GENMASK(31, 16)
1942 #define B_IFS_T2_EN_MSK BIT(15)
1943 #define B_IFS_T2_TH_LOW_MSK GENMASK(14, 0)
1944 #define R_IFS_T3 0x0C34
1945 #define B_IFS_T3_TH_HIGH_MSK GENMASK(31, 16)
1946 #define B_IFS_T3_EN_MSK BIT(15)
1947 #define B_IFS_T3_TH_LOW_MSK GENMASK(14, 0)
1948 #define R_IFS_T4 0x0C38
1949 #define B_IFS_T4_TH_HIGH_MSK GENMASK(31, 16)
1950 #define B_IFS_T4_EN_MSK BIT(15)
1951 #define B_IFS_T4_TH_LOW_MSK GENMASK(14, 0)
1952 #define R_PD_CTRL 0x0C3C
1953 #define B_PD_HIT_DIS BIT(9)
1954 #define R_IOQ_IQK_DPK 0x0C60
1955 #define B_IOQ_IQK_DPK_EN BIT(1)
1956 #define R_P0_EN_SOUND_WO_NDP 0x0D7C
1957 #define B_P0_EN_SOUND_WO_NDP BIT(1)
1958 #define R_SPOOF_ASYNC_RST 0x0D84
1959 #define B_SPOOF_ASYNC_RST BIT(15)
1960 #define R_NDP_BRK0 0xDA0
1961 #define R_NDP_BRK1 0xDA4
1962 #define B_NDP_RU_BRK BIT(0)
1963 #define R_BRK_ASYNC_RST_EN_1 0x0DC0
1964 #define R_BRK_ASYNC_RST_EN_2 0x0DC4
1965 #define R_BRK_ASYNC_RST_EN_3 0x0DC8
1966 #define R_P0_RXCK 0x12A0
1967 #define B_P0_RXCK_VAL GENMASK(18, 16)
1968 #define B_P0_RXCK_ON BIT(19)
1969 #define B_P0_RXCK_BW3 BIT(30)
1970 #define R_P0_NRBW 0x12B8
1971 #define B_P0_NRBW_DBG BIT(30)
1972 #define R_S0_RXDC 0x12D4
1973 #define B_S0_RXDC_I GENMASK(25, 16)
1974 #define B_S0_RXDC_Q GENMASK(31, 26)
1975 #define R_S0_RXDC2 0x12D8
1976 #define B_S0_RXDC2_SEL GENMASK(9, 8)
1977 #define B_S0_RXDC2_AVG GENMASK(7, 6)
1978 #define B_S0_RXDC2_MEN GENMASK(5, 4)
1979 #define B_S0_RXDC2_Q2 GENMASK(3, 0)
1980 #define R_CFO_COMP_SEG0_L 0x1384
1981 #define R_CFO_COMP_SEG0_H 0x1388
1982 #define R_CFO_COMP_SEG0_CTRL 0x138C
1983 #define R_DBG32_D 0x1730
1984 #define R_SWSI_V1 0x174C
1985 #define B_SWSI_W_BUSY_V1 BIT(24)
1986 #define B_SWSI_R_BUSY_V1 BIT(25)
1987 #define B_SWSI_R_DATA_DONE_V1 BIT(26)
1988 #define R_TX_COUNTER 0x1A40
1989 #define R_IFS_CLM_TX_CNT 0x1ACC
1990 #define B_IFS_CLM_EDCCA_EXCLUDE_CCA_FA_MSK GENMASK(31, 16)
1991 #define B_IFS_CLM_TX_CNT_MSK GENMASK(15, 0)
1992 #define R_IFS_CLM_CCA 0x1AD0
1993 #define B_IFS_CLM_OFDMCCA_EXCLUDE_FA_MSK GENMASK(31, 16)
1994 #define B_IFS_CLM_CCKCCA_EXCLUDE_FA_MSK GENMASK(15, 0)
1995 #define R_IFS_CLM_FA 0x1AD4
1996 #define B_IFS_CLM_OFDM_FA_MSK GENMASK(31, 16)
1997 #define B_IFS_CLM_CCK_FA_MSK GENMASK(15, 0)
1998 #define R_IFS_HIS 0x1AD8
1999 #define B_IFS_T4_HIS_MSK GENMASK(31, 24)
2000 #define B_IFS_T3_HIS_MSK GENMASK(23, 16)
2001 #define B_IFS_T2_HIS_MSK GENMASK(15, 8)
2002 #define B_IFS_T1_HIS_MSK GENMASK(7, 0)
2003 #define R_IFS_AVG_L 0x1ADC
2004 #define B_IFS_T2_AVG_MSK GENMASK(31, 16)
2005 #define B_IFS_T1_AVG_MSK GENMASK(15, 0)
2006 #define R_IFS_AVG_H 0x1AE0
2007 #define B_IFS_T4_AVG_MSK GENMASK(31, 16)
2008 #define B_IFS_T3_AVG_MSK GENMASK(15, 0)
2009 #define R_IFS_CCA_L 0x1AE4
2010 #define B_IFS_T2_CCA_MSK GENMASK(31, 16)
2011 #define B_IFS_T1_CCA_MSK GENMASK(15, 0)
2012 #define R_IFS_CCA_H 0x1AE8
2013 #define B_IFS_T4_CCA_MSK GENMASK(31, 16)
2014 #define B_IFS_T3_CCA_MSK GENMASK(15, 0)
2015 #define R_IFSCNT 0x1AEC
2016 #define B_IFSCNT_DONE_MSK BIT(16)
2017 #define B_IFSCNT_TOTAL_CNT_MSK GENMASK(15, 0)
2018 #define R_TXAGC_TP 0x1C04
2019 #define B_TXAGC_TP GENMASK(2, 0)
2020 #define R_TSSI_THER 0x1C10
2021 #define B_TSSI_THER GENMASK(29, 24)
2022 #define R_TXAGC_BB 0x1C60
2023 #define B_TXAGC_BB_OFT GENMASK(31, 16)
2024 #define B_TXAGC_BB GENMASK(31, 24)
2025 #define R_S0_ADDCK 0x1E00
2026 #define B_S0_ADDCK_I GENMASK(9, 0)
2027 #define B_S0_ADDCK_Q GENMASK(19, 10)
2028 #define R_ADC_FIFO 0x20fc
2029 #define B_ADC_FIFO_RST GENMASK(31, 24)
2030 #define R_TXFIR0 0x2300
2031 #define B_TXFIR_C01 GENMASK(23, 0)
2032 #define R_TXFIR2 0x2304
2033 #define B_TXFIR_C23 GENMASK(23, 0)
2034 #define R_TXFIR4 0x2308
2035 #define B_TXFIR_C45 GENMASK(23, 0)
2036 #define R_TXFIR6 0x230c
2037 #define B_TXFIR_C67 GENMASK(23, 0)
2038 #define R_TXFIR8 0x2310
2039 #define B_TXFIR_C89 GENMASK(23, 0)
2040 #define R_TXFIRA 0x2314
2041 #define B_TXFIR_CAB GENMASK(23, 0)
2042 #define R_TXFIRC 0x2318
2043 #define B_TXFIR_CCD GENMASK(23, 0)
2044 #define R_TXFIRE 0x231c
2045 #define B_TXFIR_CEF GENMASK(23, 0)
2046 #define R_RXCCA 0x2344
2047 #define B_RXCCA_DIS BIT(31)
2048 #define R_RXSC 0x237C
2049 #define B_RXSC_EN BIT(0)
2050 #define R_RXSCOBC 0x23B0
2051 #define B_RXSCOBC_TH GENMASK(18, 0)
2052 #define R_RXSCOCCK 0x23B4
2053 #define B_RXSCOCCK_TH GENMASK(18, 0)
2054 #define R_P1_EN_SOUND_WO_NDP 0x2D7C
2055 #define B_P1_EN_SOUND_WO_NDP BIT(1)
2056 #define R_P1_DBGMOD 0x32B8
2057 #define B_P1_DBGMOD_ON BIT(30)
2058 #define R_S1_RXDC 0x32D4
2059 #define B_S1_RXDC_I GENMASK(25, 16)
2060 #define B_S1_RXDC_Q GENMASK(31, 26)
2061 #define R_S1_RXDC2 0x32D8
2062 #define B_S1_RXDC2_EN GENMASK(5, 4)
2063 #define B_S1_RXDC2_SEL GENMASK(9, 8)
2064 #define B_S1_RXDC2_Q2 GENMASK(3, 0)
2065 #define R_TXAGC_BB_S1 0x3C60
2066 #define B_TXAGC_BB_S1_OFT GENMASK(31, 16)
2067 #define B_TXAGC_BB_S1 GENMASK(31, 24)
2068 #define R_S1_ADDCK 0x3E00
2069 #define B_S1_ADDCK_I GENMASK(9, 0)
2070 #define B_S1_ADDCK_Q GENMASK(19, 10)
2071 #define R_DCFO 0x4264
2072 #define B_DCFO GENMASK(1, 0)
2073 #define R_SEG0CSI 0x42AC
2074 #define B_SEG0CSI_IDX GENMASK(10, 0)
2075 #define R_SEG0CSI_EN 0x42C4
2076 #define B_SEG0CSI_EN BIT(23)
2077 #define R_BSS_CLR_MAP 0x43ac
2078 #define B_BSS_CLR_MAP_VLD0 BIT(28)
2079 #define B_BSS_CLR_MAP_TGT GENMASK(27, 22)
2080 #define B_BSS_CLR_MAP_STAID GENMASK(21, 11)
2081 #define R_CFO_TRK0 0x4404
2082 #define R_CFO_TRK1 0x440C
2083 #define B_CFO_TRK_MSK GENMASK(14, 10)
2084 #define R_DCFO_COMP_S0 0x448C
2085 #define B_DCFO_COMP_S0_MSK GENMASK(11, 0)
2086 #define R_DCFO_WEIGHT 0x4490
2087 #define B_DCFO_WEIGHT_MSK GENMASK(27, 24)
2088 #define R_DCFO_OPT 0x4494
2089 #define B_DCFO_OPT_EN BIT(29)
2090 #define R_BANDEDGE 0x4498
2091 #define B_BANDEDGE_EN BIT(30)
2092 #define R_TXPATH_SEL 0x458C
2093 #define B_TXPATH_SEL_MSK GENMASK(31, 28)
2094 #define R_TXPWR 0x4594
2095 #define B_TXPWR_MSK GENMASK(30, 22)
2096 #define R_TXNSS_MAP 0x45B4
2097 #define B_TXNSS_MAP_MSK GENMASK(20, 17)
2098 #define R_PATH0_IB_PKPW 0x4628
2099 #define B_PATH0_IB_PKPW_MSK GENMASK(11, 6)
2100 #define R_PATH0_LNA_ERR1 0x462C
2101 #define B_PATH0_LNA_ERR_G1_A_MSK GENMASK(29, 24)
2102 #define B_PATH0_LNA_ERR_G0_G_MSK GENMASK(17, 12)
2103 #define B_PATH0_LNA_ERR_G0_A_MSK GENMASK(11, 6)
2104 #define R_PATH0_LNA_ERR2 0x4630
2105 #define B_PATH0_LNA_ERR_G2_G_MSK GENMASK(23, 18)
2106 #define B_PATH0_LNA_ERR_G2_A_MSK GENMASK(17, 12)
2107 #define B_PATH0_LNA_ERR_G1_G_MSK GENMASK(5, 0)
2108 #define R_PATH0_LNA_ERR3 0x4634
2109 #define B_PATH0_LNA_ERR_G4_G_MSK GENMASK(29, 24)
2110 #define B_PATH0_LNA_ERR_G4_A_MSK GENMASK(23, 18)
2111 #define B_PATH0_LNA_ERR_G3_G_MSK GENMASK(11, 6)
2112 #define B_PATH0_LNA_ERR_G3_A_MSK GENMASK(5, 0)
2113 #define R_PATH0_LNA_ERR4 0x4638
2114 #define B_PATH0_LNA_ERR_G6_A_MSK GENMASK(29, 24)
2115 #define B_PATH0_LNA_ERR_G5_G_MSK GENMASK(17, 12)
2116 #define B_PATH0_LNA_ERR_G5_A_MSK GENMASK(11, 6)
2117 #define R_PATH0_LNA_ERR5 0x463C
2118 #define B_PATH0_LNA_ERR_G6_G_MSK GENMASK(5, 0)
2119 #define R_PATH0_TIA_ERR_G0 0x4640
2120 #define B_PATH0_TIA_ERR_G0_G_MSK GENMASK(23, 18)
2121 #define B_PATH0_TIA_ERR_G0_A_MSK GENMASK(17, 12)
2122 #define R_PATH0_TIA_ERR_G1 0x4644
2123 #define B_PATH0_TIA_ERR_G1_SEL GENMASK(31, 30)
2124 #define B_PATH0_TIA_ERR_G1_G_MSK GENMASK(11, 6)
2125 #define B_PATH0_TIA_ERR_G1_A_MSK GENMASK(5, 0)
2126 #define R_PATH0_IB_PBK 0x4650
2127 #define B_PATH0_IB_PBK_MSK GENMASK(14, 10)
2128 #define R_PATH0_RXB_INIT 0x4658
2129 #define B_PATH0_RXB_INIT_IDX_MSK GENMASK(9, 5)
2130 #define R_PATH0_LNA_INIT 0x4668
2131 #define B_PATH0_LNA_INIT_IDX_MSK GENMASK(26, 24)
2132 #define R_PATH0_BTG 0x466C
2133 #define B_PATH0_BTG_SHEN GENMASK(18, 17)
2134 #define R_PATH0_TIA_INIT 0x4674
2135 #define B_PATH0_TIA_INIT_IDX_MSK BIT(17)
2136 #define R_PATH0_P20_FOLLOW_BY_PAGCUGC 0x46A0
2137 #define B_PATH0_P20_FOLLOW_BY_PAGCUGC_EN_MSK BIT(5)
2138 #define R_PATH0_S20_FOLLOW_BY_PAGCUGC 0x46A4
2139 #define B_PATH0_S20_FOLLOW_BY_PAGCUGC_EN_MSK BIT(5)
2140 #define R_P0_NBIIDX 0x469C
2141 #define B_P0_NBIIDX_VAL GENMASK(11, 0)
2142 #define B_P0_NBIIDX_NOTCH_EN BIT(12)
2143 #define R_P1_MODE 0x4718
2144 #define B_P1_MODE_SEL GENMASK(31, 30)
2145 #define R_PATH1_LNA_INIT 0x473C
2146 #define B_PATH1_LNA_INIT_IDX_MSK GENMASK(26, 24)
2147 #define R_PATH1_TIA_INIT 0x4748
2148 #define B_PATH1_TIA_INIT_IDX_MSK BIT(17)
2149 #define R_PATH1_BTG 0x4740
2150 #define B_PATH1_BTG_SHEN GENMASK(18, 17)
2151 #define R_PATH1_RXB_INIT 0x472C
2152 #define B_PATH1_RXB_INIT_IDX_MSK GENMASK(9, 5)
2153 #define R_PATH1_P20_FOLLOW_BY_PAGCUGC 0x4774
2154 #define B_PATH1_P20_FOLLOW_BY_PAGCUGC_EN_MSK BIT(5)
2155 #define R_PATH1_S20_FOLLOW_BY_PAGCUGC 0x4778
2156 #define B_PATH1_S20_FOLLOW_BY_PAGCUGC_EN_MSK BIT(5)
2157 #define R_P1_NBIIDX 0x4770
2158 #define B_P1_NBIIDX_VAL GENMASK(11, 0)
2159 #define B_P1_NBIIDX_NOTCH_EN BIT(12)
2160 #define R_SEG0R_PD 0x481C
2161 #define B_SEG0R_PD_SPATIAL_REUSE_EN_MSK BIT(29)
2162 #define B_SEG0R_PD_LOWER_BOUND_MSK GENMASK(10, 6)
2163 #define R_2P4G_BAND 0x4970
2164 #define B_2P4G_BAND_SEL BIT(1)
2165 #define R_FC0_BW 0x4974
2166 #define B_FC0_BW_INV GENMASK(6, 0)
2167 #define B_FC0_BW_SET GENMASK(31, 30)
2168 #define R_CHBW_MOD 0x4978
2169 #define B_CHBW_MOD_PRICH GENMASK(11, 8)
2170 #define B_CHBW_MOD_SBW GENMASK(13, 12)
2171 #define R_DCFO_COMP_S0_V1 0x4A40
2172 #define B_DCFO_COMP_S0_V1_MSK GENMASK(13, 0)
2173 #define R_BMODE_PDTH_V1 0x4B64
2174 #define B_BMODE_PDTH_LOWER_BOUND_MSK_V1 GENMASK(31, 24)
2175 #define R_BMODE_PDTH_EN_V1 0x4B74
2176 #define B_BMODE_PDTH_LIMIT_EN_MSK_V1 BIT(30)
2177 #define R_CFO_COMP_SEG1_L 0x5384
2178 #define R_CFO_COMP_SEG1_H 0x5388
2179 #define R_CFO_COMP_SEG1_CTRL 0x538C
2180 #define B_CFO_COMP_VALID_BIT BIT(29)
2181 #define B_CFO_COMP_WEIGHT_MSK GENMASK(27, 24)
2182 #define B_CFO_COMP_VAL_MSK GENMASK(11, 0)
2183 #define R_DPD_OFT_EN 0x5800
2184 #define B_DPD_OFT_EN BIT(28)
2185 #define R_DPD_OFT_ADDR 0x5804
2186 #define B_DPD_OFT_ADDR GENMASK(31, 27)
2187 #define R_P0_TMETER 0x5810
2188 #define B_P0_TMETER GENMASK(15, 10)
2189 #define B_P0_TMETER_DIS BIT(16)
2190 #define B_P0_TMETER_TRK BIT(24)
2191 #define R_P0_TSSI_TRK 0x5818
2192 #define B_P0_TSSI_TRK_EN BIT(30)
2193 #define B_P0_TSSI_OFT_EN BIT(28)
2194 #define B_P0_TSSI_OFT GENMASK(7, 0)
2195 #define R_P0_TSSI_AVG 0x5820
2196 #define B_P0_TSSI_AVG GENMASK(15, 12)
2197 #define R_P0_RFCTM 0x5864
2198 #define B_P0_RFCTM_VAL GENMASK(25, 20)
2199 #define R_P0_RFCTM_RDY BIT(26)
2200 #define R_P0_TXDPD 0x58D4
2201 #define B_P0_TXDPD GENMASK(31, 28)
2202 #define R_P0_TXPW_RSTB 0x58DC
2203 #define B_P0_TXPW_RSTB_MANON BIT(30)
2204 #define B_P0_TXPW_RSTB_TSSI BIT(31)
2205 #define R_P0_TSSI_MV_AVG 0x58E4
2206 #define B_P0_TSSI_MV_AVG GENMASK(13, 11)
2207 #define R_TXGAIN_SCALE 0x58F0
2208 #define B_TXGAIN_SCALE_EN BIT(19)
2209 #define B_TXGAIN_SCALE_OFT GENMASK(31, 24)
2210 #define R_P0_TSSI_BASE 0x5C00
2211 #define R_S0_DACKI 0x5E00
2212 #define B_S0_DACKI_AR GENMASK(31, 28)
2213 #define B_S0_DACKI_EN BIT(3)
2214 #define R_S0_DACKI2 0x5E30
2215 #define B_S0_DACKI2_K GENMASK(21, 12)
2216 #define R_S0_DACKI7 0x5E44
2217 #define B_S0_DACKI7_K GENMASK(15, 8)
2218 #define R_S0_DACKI8 0x5E48
2219 #define B_S0_DACKI8_K GENMASK(15, 8)
2220 #define R_S0_DACKQ 0x5E50
2221 #define B_S0_DACKQ_AR GENMASK(31, 28)
2222 #define B_S0_DACKQ_EN BIT(3)
2223 #define R_S0_DACKQ2 0x5E80
2224 #define B_S0_DACKQ2_K GENMASK(21, 12)
2225 #define R_S0_DACKQ7 0x5E94
2226 #define B_S0_DACKQ7_K GENMASK(15, 8)
2227 #define R_S0_DACKQ8 0x5E98
2228 #define B_S0_DACKQ8_K GENMASK(15, 8)
2229 #define R_P1_TMETER 0x7810
2230 #define B_P1_TMETER GENMASK(15, 10)
2231 #define B_P1_TMETER_DIS BIT(16)
2232 #define B_P1_TMETER_TRK BIT(24)
2233 #define R_P1_TSSI_TRK 0x7818
2234 #define B_P1_TSSI_TRK_EN BIT(30)
2235 #define B_P1_TSSI_OFT_EN BIT(28)
2236 #define B_P1_TSSI_OFT GENMASK(7, 0)
2237 #define R_P1_TSSI_AVG 0x7820
2238 #define B_P1_TSSI_AVG GENMASK(15, 12)
2239 #define R_P1_RFCTM 0x7864
2240 #define R_P1_RFCTM_RDY BIT(26)
2241 #define B_P1_RFCTM_VAL GENMASK(25, 20)
2242 #define R_P1_TXPW_RSTB 0x78DC
2243 #define B_P1_TXPW_RSTB_MANON BIT(30)
2244 #define B_P1_TXPW_RSTB_TSSI BIT(31)
2245 #define R_P1_TSSI_MV_AVG 0x78E4
2246 #define B_P1_TSSI_MV_AVG GENMASK(13, 11)
2247 #define R_TSSI_THOF 0x7C00
2248 #define R_S1_DACKI 0x7E00
2249 #define B_S1_DACKI_AR GENMASK(31, 28)
2250 #define B_S1_DACKI_EN BIT(3)
2251 #define R_S1_DACKI2 0x7E30
2252 #define B_S1_DACKI2_K GENMASK(21, 12)
2253 #define R_S1_DACKI7 0x7E44
2254 #define B_S1_DACKI_K GENMASK(15, 8)
2255 #define R_S1_DACKI8 0x7E48
2256 #define B_S1_DACKI8_K GENMASK(15, 8)
2257 #define R_S1_DACKQ 0x7E50
2258 #define B_S1_DACKQ_AR GENMASK(31, 28)
2259 #define B_S1_DACKQ_EN BIT(3)
2260 #define R_S1_DACKQ2 0x7E80
2261 #define B_S1_DACKQ2_K GENMASK(21, 12)
2262 #define R_S1_DACKQ7 0x7E94
2263 #define B_S1_DACKQ7_K GENMASK(15, 8)
2264 #define R_S1_DACKQ8 0x7E98
2265 #define B_S1_DACKQ8_K GENMASK(15, 8)
2266 #define R_NCTL_CFG 0x8000
2267 #define B_NCTL_CFG_SPAGE GENMASK(2, 1)
2268 #define R_NCTL_RPT 0x8008
2269 #define B_NCTL_RPT_FLG BIT(26)
2270 #define R_NCTL_N1 0x8010
2271 #define B_NCTL_N1_CIP GENMASK(7, 0)
2272 #define R_NCTL_N2 0x8014
2273 #define R_IQK_COM 0x8018
2274 #define R_IQK_DIF 0x801C
2275 #define B_IQK_DIF_TRX GENMASK(1, 0)
2276 #define R_IQK_DIF1 0x8020
2277 #define B_IQK_DIF1_TXPI GENMASK(19, 0)
2278 #define R_IQK_DIF2 0x8024
2279 #define B_IQK_DIF2_RXPI GENMASK(19, 0)
2280 #define R_IQK_DIF4 0x802C
2281 #define B_IQK_DIF4_TXT GENMASK(11, 0)
2282 #define B_IQK_DIF4_RXT GENMASK(27, 16)
2283 #define R_IQK_CFG 0x8034
2284 #define B_IQK_CFG_SET GENMASK(5, 4)
2285 #define R_TPG_MOD 0x806C
2286 #define B_TPG_MOD_F GENMASK(2, 1)
2287 #define R_MDPK_SYNC 0x8070
2288 #define B_MDPK_SYNC_SEL BIT(31)
2289 #define B_MDPK_SYNC_MAN GENMASK(31, 28)
2290 #define R_MDPK_RX_DCK 0x8074
2291 #define R_NCTL_RW 0x8080
2292 #define R_KIP_SYSCFG 0x8088
2293 #define R_KIP_CLK 0x808C
2294 #define R_LDL_NORM 0x80A0
2295 #define B_LDL_NORM_PN GENMASK(12, 8)
2296 #define B_LDL_NORM_OP GENMASK(1, 0)
2297 #define R_DPK_CTL 0x80B0
2298 #define B_DPK_CTL_EN BIT(28)
2299 #define R_DPK_CFG 0x80B8
2300 #define B_DPK_CFG_IDX GENMASK(14, 12)
2301 #define R_DPK_CFG2 0x80BC
2302 #define B_DPK_CFG2_ST BIT(14)
2303 #define R_DPK_CFG3 0x80C0
2304 #define R_KPATH_CFG 0x80D0
2305 #define R_KIP_RPT1 0x80D4
2306 #define B_KIP_RPT1_SEL GENMASK(21, 16)
2307 #define R_SRAM_IQRX 0x80D8
2308 #define R_GAPK 0x80E0
2309 #define B_GAPK_ADR BIT(0)
2310 #define R_SRAM_IQRX2 0x80E8
2311 #define R_DPK_TRK 0x80f0
2312 #define B_DPK_TRK_DIS BIT(31)
2313 #define R_RPT_COM 0x80FC
2314 #define B_PRT_COM_SYNERR BIT(30)
2315 #define B_PRT_COM_DCI GENMASK(27, 16)
2316 #define B_PRT_COM_CORV GENMASK(15, 8)
2317 #define B_PRT_COM_DCQ GENMASK(11, 0)
2318 #define B_PRT_COM_GL GENMASK(7, 4)
2319 #define B_PRT_COM_CORI GENMASK(7, 0)
2320 #define R_COEF_SEL 0x8104
2321 #define B_COEF_SEL_IQC BIT(0)
2322 #define B_COEF_SEL_MDPD BIT(8)
2323 #define R_CFIR_SYS 0x8120
2324 #define R_IQK_RES 0x8124
2325 #define B_IQK_RES_TXCFIR GENMASK(11, 8)
2326 #define B_IQK_RES_RXCFIR GENMASK(3, 0)
2327 #define R_TXIQC 0x8138
2328 #define R_RXIQC 0x813c
2329 #define B_RXIQC_BYPASS BIT(0)
2330 #define B_RXIQC_BYPASS2 BIT(2)
2331 #define B_RXIQC_NEWP GENMASK(19, 8)
2332 #define B_RXIQC_NEWX GENMASK(31, 20)
2333 #define R_KIP 0x8140
2334 #define B_KIP_DBCC BIT(0)
2335 #define B_KIP_RFGAIN BIT(8)
2336 #define R_RFGAIN 0x8144
2337 #define B_RFGAIN_PAD GENMASK(4, 0)
2338 #define B_RFGAIN_TXBB GENMASK(12, 8)
2339 #define R_RFGAIN_BND 0x8148
2340 #define B_RFGAIN_BND GENMASK(4, 0)
2341 #define R_CFIR_MAP 0x8150
2342 #define R_CFIR_LUT 0x8154
2343 #define B_CFIR_LUT_SEL BIT(8)
2344 #define B_CFIR_LUT_G3 BIT(3)
2345 #define B_CFIR_LUT_G2 BIT(2)
2346 #define B_CFIR_LUT_GP GENMASK(1, 0)
2347 #define R_DPD_V1 0x81a0
2348 #define R_DPD_CH0 0x81AC
2349 #define R_DPD_BND 0x81B4
2350 #define R_DPD_CH0A 0x81BC
2351 #define R_TXAGC_RFK 0x81C4
2352 #define B_TXAGC_RFK_CH0 GENMASK(5, 0)
2353 #define R_DPD_COM 0x81C8
2354 #define R_KIP_IQP 0x81CC
2355 #define B_KIP_IQP_IQSW GENMASK(5, 0)
2356 #define R_KIP_RPT 0x81D4
2357 #define B_KIP_RPT_SEL GENMASK(21, 16)
2358 #define R_W_COEF 0x81D8
2359 #define R_LOAD_COEF 0x81DC
2360 #define B_LOAD_COEF_MDPD BIT(16)
2361 #define B_LOAD_COEF_CFIR GENMASK(1, 0)
2362 #define B_LOAD_COEF_AUTO BIT(0)
2363 #define R_RPT_PER 0x81FC
2364 #define R_RXCFIR_P0C0 0x8D40
2365 #define R_RXCFIR_P0C1 0x8D84
2366 #define R_RXCFIR_P0C2 0x8DC8
2367 #define R_RXCFIR_P0C3 0x8E0C
2368 #define R_TXCFIR_P0C0 0x8F50
2369 #define R_TXCFIR_P0C1 0x8F84
2370 #define R_TXCFIR_P0C2 0x8FB8
2371 #define R_TXCFIR_P0C3 0x8FEC
2372 #define R_RXCFIR_P1C0 0x9140
2373 #define R_RXCFIR_P1C1 0x9184
2374 #define R_RXCFIR_P1C2 0x91C8
2375 #define R_RXCFIR_P1C3 0x920C
2376 #define R_TXCFIR_P1C0 0x9350
2377 #define R_TXCFIR_P1C1 0x9384
2378 #define R_TXCFIR_P1C2 0x93B8
2379 #define R_TXCFIR_P1C3 0x93EC
2380 #define R_IQKINF 0x9FE0
2381 #define B_IQKINF_VER GENMASK(31, 24)
2382 #define B_IQKINF_FAIL_RXGRP GENMASK(23, 16)
2383 #define B_IQKINF_FAIL_TXGRP GENMASK(15, 8)
2384 #define B_IQKINF_FAIL GENMASK(3, 0)
2385 #define B_IQKINF_F_RX BIT(3)
2386 #define B_IQKINF_FTX BIT(2)
2387 #define B_IQKINF_FFIN BIT(1)
2388 #define B_IQKINF_FCOR BIT(0)
2389 #define R_IQKCH 0x9FE4
2390 #define B_IQKCH_CH GENMASK(15, 8)
2391 #define B_IQKCH_BW GENMASK(7, 4)
2392 #define B_IQKCH_BAND GENMASK(3, 0)
2393 #define R_IQKINF2 0x9FE8
2394 #define B_IQKINF2_FCNT GENMASK(23, 16)
2395 #define B_IQKINF2_KCNT GENMASK(15, 8)
2396 #define B_IQKINF2_NCTLV GENMAKS(7, 0)
2397 #endif
2398