net: wireless: rockchip: add rtl8822be pcie wifi driver
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8822be / hal / halmac / halmac_reg2.h
1 #ifndef __HALMAC_COM_REG_H__
2 #define __HALMAC_COM_REG_H__
3 /*-------------------------Modification Log-----------------------------------
4         For Page0, it is based on Combo_And_WL_Only_Page0_Reg.xls SVN524
5         The supported IC are 8723A, 8881A, 8723B, 8192E, 8881A
6         8812A and 8188E is not included in page0 register
7
8         For other pages, it is based on MAC_Register.doc SVN502
9         Most IC is the same with 8812A
10 -------------------------Modification Log-----------------------------------*/
11
12 /*--------------------------Include File--------------------------------------*/
13 #include "halmac_hw_cfg.h"
14 /*--------------------------Include File--------------------------------------*/
15
16
17
18
19 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
20
21 #define REG_SYS_ISO_CTRL                                0x0000
22
23 #endif
24
25
26 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
27
28 #define REG_SDIO_TX_CTRL                                0x10250000
29
30 #endif
31
32
33 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
34
35 #define REG_SYS_FUNC_EN                         0x0002
36 #define REG_SYS_PW_CTRL                         0x0004
37 #define REG_SYS_CLK_CTRL                                0x0008
38 #define REG_SYS_EEPROM_CTRL                             0x000A
39 #define REG_EE_VPD                                      0x000C
40 #define REG_SYS_SWR_CTRL1                               0x0010
41 #define REG_SYS_SWR_CTRL2                               0x0014
42
43 #endif
44
45
46 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
47
48 #define REG_SDIO_HIMR                                   0x10250014
49
50 #endif
51
52
53 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
54
55 #define REG_SYS_SWR_CTRL3                               0x0018
56
57 #endif
58
59
60 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
61
62 #define REG_SDIO_HISR                                   0x10250018
63
64 #endif
65
66
67 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
68
69 #define REG_RSV_CTRL                                    0x001C
70
71 #endif
72
73
74 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
75
76 #define REG_SDIO_RX_REQ_LEN                             0x1025001C
77
78 #endif
79
80
81 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
82
83 #define REG_RF_CTRL                                     0x001F
84
85 #endif
86
87
88 #if (HALMAC_8197F_SUPPORT)
89
90 #define REG_RF0_CTRL                                    0x001F
91
92 #endif
93
94
95 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
96
97 #define REG_SDIO_FREE_TXPG_SEQ_V1                       0x1025001F
98
99 #endif
100
101
102 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
103
104 #define REG_AFE_LDO_CTRL                                0x0020
105
106 #endif
107
108
109 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
110
111 #define REG_SDIO_FREE_TXPG                              0x10250020
112
113 #endif
114
115
116 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
117
118 #define REG_AFE_CTRL1                                   0x0024
119
120 #endif
121
122
123 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
124
125 #define REG_SDIO_FREE_TXPG2                             0x10250024
126
127 #endif
128
129
130 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
131
132 #define REG_AFE_CTRL2                                   0x0028
133
134 #endif
135
136
137 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
138
139 #define REG_SDIO_OQT_FREE_TXPG_V1                       0x10250028
140
141 #endif
142
143
144 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
145
146 #define REG_AFE_CTRL3                                   0x002C
147 #define REG_EFUSE_CTRL                                  0x0030
148
149 #endif
150
151
152 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
153
154 #define REG_SDIO_HTSFR_INFO                             0x10250030
155
156 #endif
157
158
159 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
160
161 #define REG_LDO_EFUSE_CTRL                              0x0034
162 #define REG_PWR_OPTION_CTRL                             0x0038
163
164 #endif
165
166
167 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
168
169 #define REG_SDIO_HCPWM1_V2                              0x10250038
170 #define REG_SDIO_HCPWM2_V2                              0x1025003A
171
172 #endif
173
174
175 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
176
177 #define REG_CAL_TIMER                                   0x003C
178 #define REG_ACLK_MON                                    0x003E
179 #define REG_GPIO_MUXCFG                         0x0040
180
181 #endif
182
183
184 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
185
186 #define REG_SDIO_INDIRECT_REG_CFG                       0x10250040
187
188 #endif
189
190
191 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
192
193 #define REG_GPIO_PIN_CTRL                               0x0044
194
195 #endif
196
197
198 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
199
200 #define REG_SDIO_INDIRECT_REG_DATA                      0x10250044
201
202 #endif
203
204
205 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
206
207 #define REG_GPIO_INTM                                   0x0048
208 #define REG_LED_CFG                                     0x004C
209 #define REG_FSIMR                                       0x0050
210 #define REG_FSISR                                       0x0054
211 #define REG_HSIMR                                       0x0058
212 #define REG_HSISR                                       0x005C
213 #define REG_GPIO_EXT_CTRL                               0x0060
214
215 #endif
216
217
218 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
219
220 #define REG_SDIO_H2C                                    0x10250060
221
222 #endif
223
224
225 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
226
227 #define REG_PAD_CTRL1                                   0x0064
228
229 #endif
230
231
232 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
233
234 #define REG_SDIO_C2H                                    0x10250064
235
236 #endif
237
238
239 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
240
241 #define REG_WL_BT_PWR_CTRL                              0x0068
242
243 #endif
244
245
246 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
247
248 #define REG_SDM_DEBUG                                   0x006C
249
250 #endif
251
252
253 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
254
255 #define REG_GSSR                                        0x006C
256
257 #endif
258
259
260 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
261
262 #define REG_SYS_SDIO_CTRL                               0x0070
263
264 #endif
265
266
267 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
268
269 #define REG_SYS_CLKR                                    0x0070
270
271 #endif
272
273
274 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
275
276 #define REG_HCI_OPT_CTRL                                0x0074
277
278 #endif
279
280
281 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
282
283 #define REG_AFE_CTRL4                                   0x0078
284
285 #endif
286
287
288 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
289
290 #define REG_AFE_XTAL_CTRL_EXT                           0x0078
291
292 #endif
293
294
295 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
296
297 #define REG_LDO_SWR_CTRL                                0x007C
298
299 #endif
300
301
302 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
303
304 #define REG_8051FW_CTRL                         0x0080
305
306 #endif
307
308
309 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
310
311 #define REG_MCUFW_CTRL                                  0x0080
312
313 #endif
314
315
316 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
317
318 #define REG_SDIO_HRPWM1                         0x10250080
319 #define REG_SDIO_HRPWM2                         0x10250082
320
321 #endif
322
323
324 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
325
326 #define REG_MCU_TST_CFG                         0x0084
327
328 #endif
329
330
331 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
332
333 #define REG_SDIO_HPS_CLKR                               0x10250084
334 #define REG_SDIO_BUS_CTRL                               0x10250085
335
336 #endif
337
338
339 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
340
341 #define REG_SDIO_HSUS_CTRL                              0x10250086
342
343 #endif
344
345
346 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
347
348 #define REG_HMEBOX_E0_E1                                0x0088
349
350 #endif
351
352
353 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
354
355 #define REG_SDIO_RESPONSE_TIMER                 0x10250088
356
357 #endif
358
359
360 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
361
362 #define REG_SDIO_CMD_CRC                                0x1025008A
363
364 #endif
365
366
367 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
368
369 #define REG_HMEBOX_E2_E3                                0x008C
370 #define REG_WLLPS_CTRL                                  0x0090
371
372 #endif
373
374
375 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
376
377 #define REG_SDIO_HSISR                                  0x10250090
378 #define REG_SDIO_HSIMR                                  0x10250091
379
380 #endif
381
382
383 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
384
385 #define REG_AFE_CTRL5                                   0x0094
386
387 #endif
388
389
390 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
391
392 #define REG_GPIO_DEBOUNCE_CTRL                          0x0098
393 #define REG_RPWM2                                       0x009C
394 #define REG_SYSON_FSM_MON                               0x00A0
395
396 #endif
397
398
399 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
400
401 #define REG_AFE_CTRL6                                   0x00A4
402
403 #endif
404
405
406 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
407
408 #define REG_PMC_DBG_CTRL1                               0x00A8
409
410 #endif
411
412
413 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
414
415 #define REG_AFE_CTRL7                                   0x00AC
416
417 #endif
418
419
420 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
421
422 #define REG_HIMR0                                       0x00B0
423 #define REG_HISR0                                       0x00B4
424 #define REG_HIMR1                                       0x00B8
425 #define REG_HISR1                                       0x00BC
426 #define REG_DBG_PORT_SEL                                0x00C0
427
428 #endif
429
430
431 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
432
433 #define REG_SDIO_ERR_RPT                                0x102500C0
434 #define REG_SDIO_CMD_ERRCNT                             0x102500C1
435 #define REG_SDIO_DATA_ERRCNT                            0x102500C2
436
437 #endif
438
439
440 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
441
442 #define REG_PAD_CTRL2                                   0x00C4
443
444 #endif
445
446
447 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
448
449 #define REG_SDIO_CMD_ERR_CONTENT                        0x102500C4
450
451 #endif
452
453
454 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
455
456 #define REG_MEM_RMC                                     0x00C8
457
458 #endif
459
460
461 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
462
463 #define REG_SDIO_CRC_ERR_IDX                            0x102500C9
464 #define REG_SDIO_DATA_CRC                               0x102500CA
465 #define REG_SDIO_DATA_REPLY_TIME                        0x102500CB
466
467 #endif
468
469
470 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
471
472 #define REG_PMC_DBG_CTRL2                               0x00CC
473 #define REG_BIST_CTRL                                   0x00D0
474 #define REG_BIST_RPT                                    0x00D4
475 #define REG_MEM_CTRL                                    0x00D8
476
477 #endif
478
479
480 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
481
482 #define REG_AFE_CTRL8                                   0x00DC
483
484 #endif
485
486
487 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
488
489 #define REG_WLAN_DBG                                    0x00DC
490
491 #endif
492
493
494 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
495
496 #define REG_USB_SIE_INTF                                0x00E0
497 #define REG_PCIE_MIO_INTF                               0x00E4
498 #define REG_PCIE_MIO_INTD                               0x00E8
499
500 #endif
501
502
503 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
504
505 #define REG_WLRF1                                       0x00EC
506
507 #endif
508
509
510 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
511
512 #define REG_HPON_FSM                                    0x00EC
513
514 #endif
515
516
517 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
518
519 #define REG_SYS_CFG1                                    0x00F0
520 #define REG_SYS_STATUS1                         0x00F4
521 #define REG_SYS_STATUS2                         0x00F8
522 #define REG_SYS_CFG2                                    0x00FC
523 #define REG_CR                                          0x0100
524
525 #endif
526
527
528 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8881A_SUPPORT)
529
530 #define REG_PKT_BUFF_ACCESS_CTRL                        0x0106
531
532 #endif
533
534
535 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
536
537 #define REG_TSF_CLK_STATE                               0x0108
538 #define REG_TXDMA_PQ_MAP                                0x010C
539 #define REG_TRXFF_BNDY                                  0x0114
540
541 #endif
542
543
544 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
545
546 #define REG_PTA_I2C_MBOX                                0x0118
547
548 #endif
549
550
551 #if (HALMAC_8814A_SUPPORT)
552
553 #define REG_FF_STATUS                                   0x0118
554
555 #endif
556
557
558 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8881A_SUPPORT)
559
560 #define REG_RXFF_PTR                                    0x011C
561
562 #endif
563
564
565 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
566
567 #define REG_RXFF_BNDY                                   0x011C
568
569 #endif
570
571
572 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
573
574 #define REG_FEIMR                                       0x0120
575
576 #endif
577
578
579 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
580
581 #define REG_FE1IMR                                      0x0120
582
583 #endif
584
585
586 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
587
588 #define REG_FEISR                                       0x0124
589
590 #endif
591
592
593 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
594
595 #define REG_FE1ISR                                      0x0124
596
597 #endif
598
599
600 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
601
602 #define REG_CPWM                                        0x012C
603 #define REG_FWIMR                                       0x0130
604 #define REG_FWISR                                       0x0134
605 #define REG_FTIMR                                       0x0138
606 #define REG_FTISR                                       0x013C
607 #define REG_PKTBUF_DBG_CTRL                             0x0140
608 #define REG_PKTBUF_DBG_DATA_L                           0x0144
609 #define REG_PKTBUF_DBG_DATA_H                           0x0148
610 #define REG_CPWM2                                       0x014C
611 #define REG_TC0_CTRL                                    0x0150
612 #define REG_TC1_CTRL                                    0x0154
613 #define REG_TC2_CTRL                                    0x0158
614 #define REG_TC3_CTRL                                    0x015C
615 #define REG_TC4_CTRL                                    0x0160
616 #define REG_TCUNIT_BASE                         0x0164
617 #define REG_TC5_CTRL                                    0x0168
618 #define REG_TC6_CTRL                                    0x016C
619 #define REG_MBIST_FAIL                                  0x0170
620 #define REG_MBIST_START_PAUSE                           0x0174
621 #define REG_MBIST_DONE                                  0x0178
622
623 #endif
624
625
626 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
627
628 #define REG_MBIST_ROM_CRC_DATA                          0x017C
629
630 #endif
631
632
633 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
634
635 #define REG_MBIST_FAIL_NRML                             0x017C
636
637 #endif
638
639
640 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
641
642 #define REG_AES_DECRPT_DATA                             0x0180
643 #define REG_AES_DECRPT_CFG                              0x0184
644
645 #endif
646
647
648 #if (HALMAC_8197F_SUPPORT)
649
650 #define REG_MACCLKFRQ                                   0x018C
651
652 #endif
653
654
655 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
656
657 #define REG_TMETER                                      0x0190
658 #define REG_OSC_32K_CTRL                                0x0194
659 #define REG_32K_CAL_REG1                                0x0198
660 #define REG_C2HEVT                                      0x01A0
661
662 #endif
663
664
665 #if (HALMAC_8814A_SUPPORT)
666
667 #define REG_TC7_CTRL                                    0x01B0
668 #define REG_TC8_CTRL                                    0x01B4
669
670 #endif
671
672
673 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
674
675 #define REG_SW_DEFINED_PAGE1                            0x01B8
676 #define REG_MCUTST_I                                    0x01C0
677 #define REG_MCUTST_II                                   0x01C4
678 #define REG_FMETHR                                      0x01C8
679 #define REG_HMETFR                                      0x01CC
680 #define REG_HMEBOX0                                     0x01D0
681 #define REG_HMEBOX1                                     0x01D4
682 #define REG_HMEBOX2                                     0x01D8
683 #define REG_HMEBOX3                                     0x01DC
684 #define REG_LLT_INIT                                    0x01E0
685
686 #endif
687
688
689 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
690
691 #define REG_GENTST                                      0x01E4
692
693 #endif
694
695
696 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
697
698 #define REG_LLT_INIT_ADDR                               0x01E4
699
700 #endif
701
702
703 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
704
705 #define REG_BB_ACCESS_CTRL                              0x01E8
706 #define REG_BB_ACCESS_DATA                              0x01EC
707 #define REG_HMEBOX_E0                                   0x01F0
708 #define REG_HMEBOX_E1                                   0x01F4
709 #define REG_HMEBOX_E2                                   0x01F8
710 #define REG_HMEBOX_E3                                   0x01FC
711
712 #endif
713
714
715 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
716
717 #define REG_RQPN_CTRL_HLPQ                              0x0200
718
719 #endif
720
721
722 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
723
724 #define REG_FIFOPAGE_CTRL_1                             0x0200
725
726 #endif
727
728
729 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
730
731 #define REG_FIFOPAGE_INFO                               0x0204
732
733 #endif
734
735
736 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
737
738 #define REG_FIFOPAGE_CTRL_2                             0x0204
739
740 #endif
741
742
743 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
744
745 #define REG_DWBCN0_CTRL                         0x0208
746
747 #endif
748
749
750 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
751
752 #define REG_AUTO_LLT_V1                         0x0208
753
754 #endif
755
756
757 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
758
759 #define REG_TXDMA_OFFSET_CHK                            0x020C
760 #define REG_TXDMA_STATUS                                0x0210
761
762 #endif
763
764
765 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
766
767 #define REG_RQPN_NPQ                                    0x0214
768
769 #endif
770
771
772 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
773
774 #define REG_TX_DMA_DBG                                  0x0214
775
776 #endif
777
778
779 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
780
781 #define REG_TQPNT1                                      0x0218
782 #define REG_TQPNT2                                      0x021C
783
784 #endif
785
786
787 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
788
789 #define REG_TDE_DEBUG                                   0x0220
790
791 #endif
792
793
794 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
795
796 #define REG_TQPNT3                                      0x0220
797
798 #endif
799
800
801 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
802
803 #define REG_AUTO_LLT                                    0x0224
804
805 #endif
806
807
808 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
809
810 #define REG_TQPNT4                                      0x0224
811
812 #endif
813
814
815 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
816
817 #define REG_DWBCN1_CTRL                         0x0228
818
819 #endif
820
821
822 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
823
824 #define REG_RQPN_CTRL_1                         0x0228
825 #define REG_RQPN_CTRL_2                         0x022C
826 #define REG_FIFOPAGE_INFO_1                             0x0230
827 #define REG_FIFOPAGE_INFO_2                             0x0234
828 #define REG_FIFOPAGE_INFO_3                             0x0238
829 #define REG_FIFOPAGE_INFO_4                             0x023C
830 #define REG_FIFOPAGE_INFO_5                             0x0240
831
832 #endif
833
834
835 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
836
837 #define REG_H2C_HEAD                                    0x0244
838 #define REG_H2C_TAIL                                    0x0248
839 #define REG_H2C_READ_ADDR                               0x024C
840 #define REG_H2C_WR_ADDR                         0x0250
841 #define REG_H2C_INFO                                    0x0254
842
843 #endif
844
845
846 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
847
848 #define REG_RXDMA_AGG_PG_TH                             0x0280
849 #define REG_RXPKT_NUM                                   0x0284
850 #define REG_RXDMA_STATUS                                0x0288
851 #define REG_RXDMA_DPR                                   0x028C
852 #define REG_RXDMA_MODE                                  0x0290
853 #define REG_C2H_PKT                                     0x0294
854
855 #endif
856
857
858 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
859
860 #define REG_FWFF_C2H                                    0x0298
861 #define REG_FWFF_CTRL                                   0x029C
862 #define REG_FWFF_PKT_INFO                               0x02A0
863
864 #endif
865
866
867 #if (HALMAC_8197F_SUPPORT)
868
869 #define REG_FC2H_INFO                                   0x02A6
870
871 #endif
872
873
874 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
875
876 #define REG_PCIE_CTRL                                   0x0300
877
878 #endif
879
880
881 #if (HALMAC_8197F_SUPPORT)
882
883 #define REG_HCI_CTRL                                    0x0300
884
885 #endif
886
887
888 #if (HALMAC_8881A_SUPPORT)
889
890 #define REG_LX_CTRL1                                    0x0300
891
892 #endif
893
894
895 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
896
897 #define REG_INT_MIG                                     0x0304
898 #define REG_BCNQ_TXBD_DESA                              0x0308
899 #define REG_MGQ_TXBD_DESA                               0x0310
900 #define REG_VOQ_TXBD_DESA                               0x0318
901 #define REG_VIQ_TXBD_DESA                               0x0320
902 #define REG_BEQ_TXBD_DESA                               0x0328
903 #define REG_BKQ_TXBD_DESA                               0x0330
904 #define REG_RXQ_RXBD_DESA                               0x0338
905 #define REG_HI0Q_TXBD_DESA                              0x0340
906 #define REG_HI1Q_TXBD_DESA                              0x0348
907 #define REG_HI2Q_TXBD_DESA                              0x0350
908 #define REG_HI3Q_TXBD_DESA                              0x0358
909 #define REG_HI4Q_TXBD_DESA                              0x0360
910 #define REG_HI5Q_TXBD_DESA                              0x0368
911 #define REG_HI6Q_TXBD_DESA                              0x0370
912 #define REG_HI7Q_TXBD_DESA                              0x0378
913 #define REG_MGQ_TXBD_NUM                                0x0380
914 #define REG_RX_RXBD_NUM                         0x0382
915 #define REG_VOQ_TXBD_NUM                                0x0384
916 #define REG_VIQ_TXBD_NUM                                0x0386
917 #define REG_BEQ_TXBD_NUM                                0x0388
918 #define REG_BKQ_TXBD_NUM                                0x038A
919 #define REG_HI0Q_TXBD_NUM                               0x038C
920 #define REG_HI1Q_TXBD_NUM                               0x038E
921 #define REG_HI2Q_TXBD_NUM                               0x0390
922 #define REG_HI3Q_TXBD_NUM                               0x0392
923 #define REG_HI4Q_TXBD_NUM                               0x0394
924 #define REG_HI5Q_TXBD_NUM                               0x0396
925 #define REG_HI6Q_TXBD_NUM                               0x0398
926 #define REG_HI7Q_TXBD_NUM                               0x039A
927 #define REG_TSFTIMER_HCI                                0x039C
928 #define REG_BD_RWPTR_CLR                                0x039C
929 #define REG_VOQ_TXBD_IDX                                0x03A0
930 #define REG_VIQ_TXBD_IDX                                0x03A4
931 #define REG_BEQ_TXBD_IDX                                0x03A8
932 #define REG_BKQ_TXBD_IDX                                0x03AC
933 #define REG_MGQ_TXBD_IDX                                0x03B0
934 #define REG_RXQ_RXBD_IDX                                0x03B4
935 #define REG_HI0Q_TXBD_IDX                               0x03B8
936 #define REG_HI1Q_TXBD_IDX                               0x03BC
937 #define REG_HI2Q_TXBD_IDX                               0x03C0
938 #define REG_HI3Q_TXBD_IDX                               0x03C4
939 #define REG_HI4Q_TXBD_IDX                               0x03C8
940 #define REG_HI5Q_TXBD_IDX                               0x03CC
941 #define REG_HI6Q_TXBD_IDX                               0x03D0
942 #define REG_HI7Q_TXBD_IDX                               0x03D4
943
944 #endif
945
946
947 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
948
949 #define REG_DBG_SEL_V1                                  0x03D8
950
951 #endif
952
953
954 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
955
956 #define REG_PCIE_HRPWM1_V1                              0x03D9
957
958 #endif
959
960
961 #if (HALMAC_8197F_SUPPORT)
962
963 #define REG_HCI_HRPWM1_V1                               0x03D9
964
965 #endif
966
967
968 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
969
970 #define REG_PCIE_HCPWM1_V1                              0x03DA
971
972 #endif
973
974
975 #if (HALMAC_8197F_SUPPORT)
976
977 #define REG_HCI_HCPWM1_V1                               0x03DA
978
979 #endif
980
981
982 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
983
984 #define REG_PCIE_CTRL2                                  0x03DB
985
986 #endif
987
988
989 #if (HALMAC_8197F_SUPPORT)
990
991 #define REG_HCI_CTRL2                                   0x03DB
992
993 #endif
994
995
996 #if (HALMAC_8881A_SUPPORT)
997
998 #define REG_LX_CTRL2                                    0x03DB
999
1000 #endif
1001
1002
1003 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1004
1005 #define REG_PCIE_HRPWM2_V1                              0x03DC
1006
1007 #endif
1008
1009
1010 #if (HALMAC_8197F_SUPPORT)
1011
1012 #define REG_HCI_HRPWM2_V1                               0x03DC
1013
1014 #endif
1015
1016
1017 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1018
1019 #define REG_PCIE_HCPWM2_V1                              0x03DE
1020
1021 #endif
1022
1023
1024 #if (HALMAC_8197F_SUPPORT)
1025
1026 #define REG_HCI_HCPWM2_V1                               0x03DE
1027
1028 #endif
1029
1030
1031 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1032
1033 #define REG_PCIE_H2C_MSG_V1                             0x03E0
1034
1035 #endif
1036
1037
1038 #if (HALMAC_8197F_SUPPORT)
1039
1040 #define REG_HCI_H2C_MSG_V1                              0x03E0
1041
1042 #endif
1043
1044
1045 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1046
1047 #define REG_PCIE_C2H_MSG_V1                             0x03E4
1048
1049 #endif
1050
1051
1052 #if (HALMAC_8197F_SUPPORT)
1053
1054 #define REG_HCI_C2H_MSG_V1                              0x03E4
1055
1056 #endif
1057
1058
1059 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1060
1061 #define REG_DBI_WDATA_V1                                0x03E8
1062
1063 #endif
1064
1065
1066 #if (HALMAC_8881A_SUPPORT)
1067
1068 #define REG_LX_DMA_ISR                                  0x03E8
1069
1070 #endif
1071
1072
1073 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1074
1075 #define REG_DBI_RDATA_V1                                0x03EC
1076
1077 #endif
1078
1079
1080 #if (HALMAC_8881A_SUPPORT)
1081
1082 #define REG_LX_DMA_IMR                                  0x03EC
1083
1084 #endif
1085
1086
1087 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1088
1089 #define REG_DBI_FLAG_V1                         0x03F0
1090
1091 #endif
1092
1093
1094 #if (HALMAC_8197F_SUPPORT)
1095
1096 #define REG_STUCK_FLAG_V1                               0x03F0
1097
1098 #endif
1099
1100
1101 #if (HALMAC_8881A_SUPPORT)
1102
1103 #define REG_LX_DMA_DBG                                  0x03F0
1104
1105 #endif
1106
1107
1108 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1109
1110 #define REG_MDIO_V1                                     0x03F4
1111
1112 #endif
1113
1114
1115 #if (HALMAC_8197F_SUPPORT)
1116
1117 #define REG_WDT_CFG                                     0x03F8
1118
1119 #endif
1120
1121
1122 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1123
1124 #define REG_PCIE_MIX_CFG                                0x03F8
1125
1126 #endif
1127
1128
1129 #if (HALMAC_8881A_SUPPORT)
1130
1131 #define REG_BUS_MIX_CFG                         0x03F8
1132
1133 #endif
1134
1135
1136 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1137
1138 #define REG_HCI_MIX_CFG                         0x03FC
1139
1140 #endif
1141
1142
1143 #if (HALMAC_8881A_SUPPORT)
1144
1145 #define REG_BUS_MIX_CFG1                                0x03FC
1146
1147 #endif
1148
1149
1150 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1151
1152 #define REG_Q0_INFO                                     0x0400
1153 #define REG_Q1_INFO                                     0x0404
1154 #define REG_Q2_INFO                                     0x0408
1155 #define REG_Q3_INFO                                     0x040C
1156 #define REG_MGQ_INFO                                    0x0410
1157 #define REG_HIQ_INFO                                    0x0414
1158 #define REG_BCNQ_INFO                                   0x0418
1159 #define REG_TXPKT_EMPTY                         0x041A
1160 #define REG_CPU_MGQ_INFO                                0x041C
1161 #define REG_FWHW_TXQ_CTRL                               0x0420
1162
1163 #endif
1164
1165
1166 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1167
1168 #define REG_HWSEQ_CTRL                                  0x0423
1169
1170 #endif
1171
1172
1173 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1174
1175 #define REG_DATAFB_SEL                                  0x0423
1176
1177 #endif
1178
1179
1180 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1181
1182 #define REG_BCNQ_BDNY                                   0x0424
1183
1184 #endif
1185
1186
1187 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1188
1189 #define REG_BCNQ_BDNY_V1                                0x0424
1190
1191 #endif
1192
1193
1194 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1195
1196 #define REG_MGQ_BDNY                                    0x0425
1197
1198 #endif
1199
1200
1201 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1202
1203 #define REG_LIFETIME_EN                         0x0426
1204
1205 #endif
1206
1207
1208 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1209
1210 #define REG_FW_FREE_TAIL                                0x0427
1211
1212 #endif
1213
1214
1215 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1216
1217 #define REG_SPEC_SIFS                                   0x0428
1218 #define REG_RETRY_LIMIT                         0x042A
1219 #define REG_TXBF_CTRL                                   0x042C
1220 #define REG_DARFRC                                      0x0430
1221 #define REG_RARFRC                                      0x0438
1222 #define REG_RRSR                                        0x0440
1223 #define REG_ARFR0                                       0x0444
1224 #define REG_ARFR1_V1                                    0x044C
1225 #define REG_CCK_CHECK                                   0x0454
1226
1227 #endif
1228
1229
1230 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1231
1232 #define REG_AMPDU_BURST_CTRL                            0x0455
1233
1234 #endif
1235
1236
1237 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1238
1239 #define REG_AMPDU_MAX_TIME_V1                           0x0455
1240
1241 #endif
1242
1243
1244 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1245
1246 #define REG_AMPDU_MAX_TIME                              0x0456
1247
1248 #endif
1249
1250
1251 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1252
1253 #define REG_BCNQ1_BDNY_V1                               0x0456
1254
1255 #endif
1256
1257
1258 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1259
1260 #define REG_BCNQ1_BDNY                                  0x0457
1261
1262 #endif
1263
1264
1265 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1266
1267 #define REG_AMPDU_MAX_LENGTH                            0x0458
1268 #define REG_ACQ_STOP                                    0x045C
1269
1270 #endif
1271
1272
1273 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1274
1275 #define REG_WMAC_LBK_BUF_HD                             0x045D
1276
1277 #endif
1278
1279
1280 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1281
1282 #define REG_NDPA_RATE                                   0x045D
1283
1284 #endif
1285
1286
1287 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1288
1289 #define REG_TX_HANG_CTRL                                0x045E
1290 #define REG_NDPA_OPT_CTRL                               0x045F
1291
1292 #endif
1293
1294
1295 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1296
1297 #define REG_FAST_EDCA_CTRL                              0x0460
1298
1299 #endif
1300
1301
1302 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1303
1304 #define REG_RD_RESP_PKT_TH                              0x0463
1305 #define REG_CMDQ_INFO                                   0x0464
1306 #define REG_Q4_INFO                                     0x0468
1307 #define REG_Q5_INFO                                     0x046C
1308 #define REG_Q6_INFO                                     0x0470
1309 #define REG_Q7_INFO                                     0x0474
1310
1311 #endif
1312
1313
1314 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1315
1316 #define REG_WMAC_LBK_BUF_HD_V1                          0x0478
1317 #define REG_MGQ_BDNY_V1                         0x047A
1318
1319 #endif
1320
1321
1322 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1323
1324 #define REG_TXRPT_CTRL                                  0x047C
1325 #define REG_INIRTS_RATE_SEL                             0x0480
1326 #define REG_BASIC_CFEND_RATE                            0x0481
1327 #define REG_STBC_CFEND_RATE                             0x0482
1328 #define REG_DATA_SC                                     0x0483
1329 #define REG_MACID_SLEEP3                                0x0484
1330 #define REG_MACID_SLEEP1                                0x0488
1331 #define REG_ARFR2_V1                                    0x048C
1332 #define REG_ARFR3_V1                                    0x0494
1333 #define REG_ARFR4                                       0x049C
1334 #define REG_ARFR5                                       0x04A4
1335 #define REG_TXRPT_START_OFFSET                          0x04AC
1336
1337 #endif
1338
1339
1340 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1341
1342 #define REG_TRYING_CNT_TH                               0x04B0
1343
1344 #endif
1345
1346
1347 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1348
1349 #define REG_POWER_STAGE1                                0x04B4
1350
1351 #endif
1352
1353
1354 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1355
1356 #define REG_POWER_STAGE2                                0x04B8
1357
1358 #endif
1359
1360
1361 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1362
1363 #define REG_SW_AMPDU_BURST_MODE_CTRL                    0x04BC
1364 #define REG_PKT_LIFE_TIME                               0x04C0
1365 #define REG_STBC_SETTING                                0x04C4
1366 #define REG_STBC_SETTING2                               0x04C5
1367 #define REG_QUEUE_CTRL                                  0x04C6
1368 #define REG_SINGLE_AMPDU_CTRL                           0x04C7
1369 #define REG_PROT_MODE_CTRL                              0x04C8
1370 #define REG_BAR_MODE_CTRL                               0x04CC
1371 #define REG_RA_TRY_RATE_AGG_LMT                 0x04CF
1372 #define REG_MACID_SLEEP2                                0x04D0
1373 #define REG_MACID_SLEEP                         0x04D4
1374
1375 #endif
1376
1377
1378 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1379
1380 #define REG_HW_SEQ0                                     0x04D8
1381 #define REG_HW_SEQ1                                     0x04DA
1382 #define REG_HW_SEQ2                                     0x04DC
1383 #define REG_HW_SEQ3                                     0x04DE
1384
1385 #endif
1386
1387
1388 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
1389
1390 #define REG_CSI_SEQ                                     0x04DE
1391
1392 #endif
1393
1394
1395 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1396
1397 #define REG_NULL_PKT_STATUS                             0x04E0
1398
1399 #endif
1400
1401
1402 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1403
1404 #define REG_NULL_PKT_STATUS_V1                          0x04E0
1405
1406 #endif
1407
1408
1409 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1410
1411 #define REG_PTCL_ERR_STATUS                             0x04E2
1412
1413 #endif
1414
1415
1416 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1417
1418 #define REG_PTCL_PKT_NUM                                0x04E3
1419
1420 #endif
1421
1422
1423 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1424
1425 #define REG_NULL_PKT_STATUS_EXTEND                      0x04E3
1426
1427 #endif
1428
1429
1430 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
1431
1432 #define REG_TRXRPT_MISS_CNT                             0x04E3
1433
1434 #endif
1435
1436
1437 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1438
1439 #define REG_VIDEO_ENHANCEMENT_FUN                       0x04E4
1440
1441 #endif
1442
1443
1444 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1445
1446 #define REG_BT_POLLUTE_PKT_CNT                          0x04E8
1447 #define REG_PTCL_DBG                                    0x04EC
1448
1449 #endif
1450
1451
1452 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1453
1454 #define REG_PTCL_TX_RPT                         0x04F0
1455
1456 #endif
1457
1458
1459 #if (HALMAC_8197F_SUPPORT)
1460
1461 #define REG_TXOP_EXTRA_CTRL                             0x04F0
1462
1463 #endif
1464
1465
1466 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1467
1468 #define REG_CPUMGQ_TIMER_CTRL2                          0x04F4
1469
1470 #endif
1471
1472
1473 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8881A_SUPPORT)
1474
1475 #define REG_DUMMY_PAGE4                         0x04FC
1476
1477 #endif
1478
1479
1480 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1481
1482 #define REG_DUMMY_PAGE4_V1                              0x04FC
1483 #define REG_MOREDATA                                    0x04FE
1484
1485 #endif
1486
1487
1488 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1489
1490 #define REG_EDCA_VO_PARAM                               0x0500
1491 #define REG_EDCA_VI_PARAM                               0x0504
1492 #define REG_EDCA_BE_PARAM                               0x0508
1493 #define REG_EDCA_BK_PARAM                               0x050C
1494 #define REG_BCNTCFG                                     0x0510
1495 #define REG_PIFS                                        0x0512
1496 #define REG_RDG_PIFS                                    0x0513
1497 #define REG_SIFS                                        0x0514
1498 #define REG_TSFTR_SYN_OFFSET                            0x0518
1499 #define REG_AGGR_BREAK_TIME                             0x051A
1500 #define REG_SLOT                                        0x051B
1501 #define REG_TX_PTCL_CTRL                                0x0520
1502 #define REG_TXPAUSE                                     0x0522
1503 #define REG_DIS_TXREQ_CLR                               0x0523
1504 #define REG_RD_CTRL                                     0x0524
1505 #define REG_MBSSID_CTRL                         0x0526
1506 #define REG_P2PPS_CTRL                                  0x0527
1507 #define REG_PKT_LIFETIME_CTRL                           0x0528
1508 #define REG_P2PPS_SPEC_STATE                            0x052B
1509
1510 #endif
1511
1512
1513 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1514
1515 #define REG_BAR_TX_CTRL                         0x0530
1516
1517 #endif
1518
1519
1520 #if (HALMAC_8197F_SUPPORT || HALMAC_8822B_SUPPORT)
1521
1522 #define REG_QUEUE_INCOL_THR                             0x0538
1523 #define REG_QUEUE_INCOL_EN                              0x053C
1524
1525 #endif
1526
1527
1528 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1529
1530 #define REG_TBTT_PROHIBIT                               0x0540
1531 #define REG_P2PPS_STATE                         0x0543
1532 #define REG_RD_NAV_NXT                                  0x0544
1533 #define REG_NAV_PROT_LEN                                0x0546
1534
1535 #endif
1536
1537
1538 #if (HALMAC_8197F_SUPPORT)
1539
1540 #define REG_FTM_CTRL                                    0x0548
1541 #define REG_FTM_TSF_CNT                         0x054C
1542
1543 #endif
1544
1545
1546 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1547
1548 #define REG_BCN_CTRL                                    0x0550
1549
1550 #endif
1551
1552
1553 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1554
1555 #define REG_BCN_CTRL1                                   0x0551
1556
1557 #endif
1558
1559
1560 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1561
1562 #define REG_BCN_CTRL_CLINT0                             0x0551
1563
1564 #endif
1565
1566
1567 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1568
1569 #define REG_MBID_NUM                                    0x0552
1570 #define REG_DUAL_TSF_RST                                0x0553
1571 #define REG_MBSSID_BCN_SPACE                            0x0554
1572 #define REG_DRVERLYINT                                  0x0558
1573 #define REG_BCNDMATIM                                   0x0559
1574 #define REG_ATIMWND                                     0x055A
1575 #define REG_USTIME_TSF                                  0x055C
1576 #define REG_BCN_MAX_ERR                         0x055D
1577 #define REG_RXTSF_OFFSET_CCK                            0x055E
1578 #define REG_RXTSF_OFFSET_OFDM                           0x055F
1579 #define REG_TSFTR                                       0x0560
1580
1581 #endif
1582
1583
1584 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1585
1586 #define REG_TSFTR1                                      0x0568
1587
1588 #endif
1589
1590
1591 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1592
1593 #define REG_FREERUN_CNT                         0x0568
1594
1595 #endif
1596
1597
1598 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8881A_SUPPORT)
1599
1600 #define REG_ATIMWND1                                    0x0570
1601
1602 #endif
1603
1604
1605 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1606
1607 #define REG_ATIMWND1_V1                         0x0570
1608
1609 #endif
1610
1611
1612 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1613
1614 #define REG_TBTT_PROHIBIT_INFRA                 0x0571
1615
1616 #endif
1617
1618
1619 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1620
1621 #define REG_CTWND                                       0x0572
1622 #define REG_BCNIVLCUNT                                  0x0573
1623 #define REG_BCNDROPCTRL                         0x0574
1624 #define REG_HGQ_TIMEOUT_PERIOD                          0x0575
1625
1626 #endif
1627
1628
1629 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1630
1631 #define REG_TXCMD_TIMEOUT_PERIOD                        0x0576
1632 #define REG_MISC_CTRL                                   0x0577
1633 #define REG_BCN_CTRL_CLINT1                             0x0578
1634 #define REG_BCN_CTRL_CLINT2                             0x0579
1635 #define REG_BCN_CTRL_CLINT3                             0x057A
1636
1637 #endif
1638
1639
1640 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1641
1642 #define REG_EXTEND_CTRL                         0x057B
1643
1644 #endif
1645
1646
1647 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1648
1649 #define REG_P2PPS1_SPEC_STATE                           0x057C
1650 #define REG_P2PPS1_STATE                                0x057D
1651 #define REG_P2PPS2_SPEC_STATE                           0x057E
1652 #define REG_P2PPS2_STATE                                0x057F
1653
1654 #endif
1655
1656
1657 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1658
1659 #define REG_PS_TIMER                                    0x0580
1660
1661 #endif
1662
1663
1664 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1665
1666 #define REG_PS_TIMER0                                   0x0580
1667
1668 #endif
1669
1670
1671 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1672
1673 #define REG_TIMER0                                      0x0584
1674
1675 #endif
1676
1677
1678 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1679
1680 #define REG_PS_TIMER1                                   0x0584
1681
1682 #endif
1683
1684
1685 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1686
1687 #define REG_TIMER1                                      0x0588
1688
1689 #endif
1690
1691
1692 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1693
1694 #define REG_PS_TIMER2                                   0x0588
1695
1696 #endif
1697
1698
1699 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1700
1701 #define REG_TBTT_CTN_AREA                               0x058C
1702 #define REG_FORCE_BCN_IFS                               0x058E
1703 #define REG_TXOP_MIN                                    0x0590
1704 #define REG_PRE_BKF_TIME                                0x0592
1705 #define REG_CROSS_TXOP_CTRL                             0x0593
1706
1707 #endif
1708
1709
1710 #if (HALMAC_8197F_SUPPORT)
1711
1712 #define REG_TBTT_INT_SHIFT_CLI0                 0x0594
1713 #define REG_TBTT_INT_SHIFT_CLI1                 0x0595
1714 #define REG_TBTT_INT_SHIFT_CLI2                 0x0596
1715 #define REG_TBTT_INT_SHIFT_CLI3                 0x0597
1716 #define REG_TBTT_INT_SHIFT_ENABLE                       0x0598
1717
1718 #endif
1719
1720
1721 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1722
1723 #define REG_ATIMWND2                                    0x05A0
1724 #define REG_ATIMWND3                                    0x05A1
1725 #define REG_ATIMWND4                                    0x05A2
1726 #define REG_ATIMWND5                                    0x05A3
1727 #define REG_ATIMWND6                                    0x05A4
1728 #define REG_ATIMWND7                                    0x05A5
1729 #define REG_ATIMUGT                                     0x05A6
1730 #define REG_HIQ_NO_LMT_EN                               0x05A7
1731 #define REG_DTIM_COUNTER_ROOT                           0x05A8
1732 #define REG_DTIM_COUNTER_VAP1                           0x05A9
1733 #define REG_DTIM_COUNTER_VAP2                           0x05AA
1734 #define REG_DTIM_COUNTER_VAP3                           0x05AB
1735 #define REG_DTIM_COUNTER_VAP4                           0x05AC
1736 #define REG_DTIM_COUNTER_VAP5                           0x05AD
1737 #define REG_DTIM_COUNTER_VAP6                           0x05AE
1738 #define REG_DTIM_COUNTER_VAP7                           0x05AF
1739 #define REG_DIS_ATIM                                    0x05B0
1740
1741 #endif
1742
1743
1744 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1745
1746 #define REG_EARLY_128US                         0x05B1
1747 #define REG_P2PPS1_CTRL                         0x05B2
1748 #define REG_P2PPS2_CTRL                         0x05B3
1749 #define REG_TIMER0_SRC_SEL                              0x05B4
1750 #define REG_NOA_UNIT_SEL                                0x05B5
1751 #define REG_P2POFF_DIS_TXTIME                           0x05B7
1752 #define REG_MBSSID_BCN_SPACE2                           0x05B8
1753 #define REG_MBSSID_BCN_SPACE3                           0x05BC
1754
1755 #endif
1756
1757
1758 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1759
1760 #define REG_ACMHWCTRL                                   0x05C0
1761 #define REG_ACMRSTCTRL                                  0x05C1
1762 #define REG_ACMAVG                                      0x05C2
1763 #define REG_VO_ADMTIME                                  0x05C4
1764 #define REG_VI_ADMTIME                                  0x05C6
1765 #define REG_BE_ADMTIME                                  0x05C8
1766 #define REG_EDCA_RANDOM_GEN                             0x05CC
1767 #define REG_TXCMD_NOA_SEL                               0x05CF
1768 #define REG_NOA_PARAM                                   0x05E0
1769
1770 #endif
1771
1772
1773 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1774
1775 #define REG_NOA_SUBIE                                   0x05ED
1776
1777 #endif
1778
1779
1780 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1781
1782 #define REG_P2P_RST                                     0x05F0
1783 #define REG_SCHEDULER_RST                               0x05F1
1784
1785 #endif
1786
1787
1788 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1789
1790 #define REG_SCH_TXCMD                                   0x05F8
1791 #define REG_PAGE5_DUMMY                         0x05FC
1792 #define REG_WMAC_CR                                     0x0600
1793
1794 #endif
1795
1796
1797 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1798
1799 #define REG_WMAC_FWPKT_CR                               0x0601
1800
1801 #endif
1802
1803
1804 #if (HALMAC_8821C_SUPPORT)
1805
1806 #define REG_FW_STS_FILTER                               0x0602
1807
1808 #endif
1809
1810
1811 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1812
1813 #define REG_BWOPMODE                                    0x0603
1814
1815 #endif
1816
1817
1818 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1819
1820 #define REG_TCR                                 0x0604
1821 #define REG_RCR                                 0x0608
1822 #define REG_RX_PKT_LIMIT                                0x060C
1823 #define REG_RX_DLK_TIME                         0x060D
1824 #define REG_RX_DRVINFO_SZ                               0x060F
1825 #define REG_MACID                                       0x0610
1826 #define REG_BSSID                                       0x0618
1827 #define REG_MAR                                 0x0620
1828 #define REG_MBIDCAMCFG_1                                0x0628
1829 #define REG_MBIDCAMCFG_2                                0x062C
1830
1831 #endif
1832
1833
1834 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1835
1836 #define REG_MCU_TEST_1                                  0x0630
1837
1838 #endif
1839
1840
1841 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1842
1843 #define REG_WMAC_TCR_TSFT_OFS                           0x0630
1844 #define REG_UDF_THSD                                    0x0632
1845 #define REG_ZLD_NUM                                     0x0633
1846
1847 #endif
1848
1849
1850 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1851
1852 #define REG_MCU_TEST_2                                  0x0634
1853
1854 #endif
1855
1856
1857 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1858
1859 #define REG_STMP_THSD                                   0x0634
1860 #define REG_WMAC_TXTIMEOUT                              0x0635
1861 #define REG_MCU_TEST_2_V1                               0x0636
1862
1863 #endif
1864
1865
1866 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1867
1868 #define REG_USTIME_EDCA                         0x0638
1869
1870 #endif
1871
1872
1873 #if (HALMAC_8821C_SUPPORT)
1874
1875 #define REG_ACKTO_CCK                                   0x0639
1876
1877 #endif
1878
1879
1880 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1881
1882 #define REG_MAC_SPEC_SIFS                               0x063A
1883 #define REG_RESP_SIFS_CCK                               0x063C
1884 #define REG_RESP_SIFS_OFDM                              0x063E
1885 #define REG_ACKTO                                       0x0640
1886 #define REG_CTS2TO                                      0x0641
1887 #define REG_EIFS                                        0x0642
1888
1889 #endif
1890
1891
1892 #if (HALMAC_8821C_SUPPORT)
1893
1894 #define REG_RPFM_MAP0                                   0x0644
1895 #define REG_RPFM_MAP1                                   0x0646
1896 #define REG_RPFM_CAM_CMD                                0x0648
1897 #define REG_RPFM_CAM_RWD                                0x064C
1898
1899 #endif
1900
1901
1902 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1903
1904 #define REG_NAV_CTRL                                    0x0650
1905 #define REG_BACAMCMD                                    0x0654
1906 #define REG_BACAMCONTENT                                0x0658
1907 #define REG_LBDLY                                       0x0660
1908
1909 #endif
1910
1911
1912 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1913
1914 #define REG_WMAC_BACAM_RPMEN                            0x0661
1915
1916 #endif
1917
1918
1919 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1920
1921 #define REG_TX_RX                                       0x0662
1922
1923 #endif
1924
1925
1926 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1927
1928 #define REG_RXERR_RPT                                   0x0664
1929 #define REG_WMAC_TRXPTCL_CTL                            0x0668
1930 #define REG_CAMCMD                                      0x0670
1931 #define REG_CAMWRITE                                    0x0674
1932 #define REG_CAMREAD                                     0x0678
1933 #define REG_CAMDBG                                      0x067C
1934 #define REG_SECCFG                                      0x0680
1935
1936 #endif
1937
1938
1939 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1940
1941 #define REG_RXFILTER_CATEGORY_1                 0x0682
1942 #define REG_RXFILTER_ACTION_1                           0x0683
1943 #define REG_RXFILTER_CATEGORY_2                 0x0684
1944 #define REG_RXFILTER_ACTION_2                           0x0685
1945 #define REG_RXFILTER_CATEGORY_3                 0x0686
1946 #define REG_RXFILTER_ACTION_3                           0x0687
1947 #define REG_RXFLTMAP3                                   0x0688
1948 #define REG_RXFLTMAP4                                   0x068A
1949 #define REG_RXFLTMAP5                                   0x068C
1950 #define REG_RXFLTMAP6                                   0x068E
1951
1952 #endif
1953
1954
1955 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1956
1957 #define REG_WOW_CTRL                                    0x0690
1958
1959 #endif
1960
1961
1962 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1963
1964 #define REG_NAN_RX_TSF_FILTER                           0x0691
1965
1966 #endif
1967
1968
1969 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1970
1971 #define REG_PS_RX_INFO                                  0x0692
1972 #define REG_WMMPS_UAPSD_TID                             0x0693
1973 #define REG_LPNAV_CTRL                                  0x0694
1974
1975 #endif
1976
1977
1978 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1979
1980 #define REG_WKFMCAM_NUM                         0x0698
1981
1982 #endif
1983
1984
1985 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1986
1987 #define REG_WKFMCAM_CMD                         0x0698
1988 #define REG_WKFMCAM_RWD                         0x069C
1989
1990 #endif
1991
1992
1993 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1994
1995 #define REG_RXFLTMAP0                                   0x06A0
1996 #define REG_RXFLTMAP1                                   0x06A2
1997 #define REG_RXFLTMAP                                    0x06A4
1998 #define REG_BCN_PSR_RPT                         0x06A8
1999
2000 #endif
2001
2002
2003 #if (HALMAC_8192E_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2004
2005 #define REG_FLC_RPC                                     0x06AC
2006 #define REG_FLC_RPCT                                    0x06AD
2007 #define REG_FLC_PTS                                     0x06AE
2008 #define REG_FLC_TRPC                                    0x06AF
2009
2010 #endif
2011
2012
2013 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2014
2015 #define REG_RXPKTMON_CTRL                               0x06B0
2016
2017 #endif
2018
2019
2020 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2021
2022 #define REG_STATE_MON                                   0x06B4
2023
2024 #endif
2025
2026
2027 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2028
2029 #define REG_ERROR_MON                                   0x06B8
2030 #define REG_SEARCH_MACID                                0x06BC
2031
2032 #endif
2033
2034
2035 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2036
2037 #define REG_BT_COEX_TABLE                               0x06C0
2038
2039 #endif
2040
2041
2042 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2043
2044 #define REG_RXCMD_0                                     0x06D0
2045 #define REG_RXCMD_1                                     0x06D4
2046
2047 #endif
2048
2049
2050 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2051
2052 #define REG_WMAC_RESP_TXINFO                            0x06D8
2053
2054 #endif
2055
2056
2057 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2058
2059 #define REG_BBPSF_CTRL                                  0x06DC
2060
2061 #endif
2062
2063
2064 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2065
2066 #define REG_P2P_RX_BCN_NOA                              0x06E0
2067 #define REG_ASSOCIATED_BFMER0_INFO                      0x06E4
2068 #define REG_ASSOCIATED_BFMER1_INFO                      0x06EC
2069 #define REG_TX_CSI_RPT_PARAM_BW20                       0x06F4
2070 #define REG_TX_CSI_RPT_PARAM_BW40                       0x06F8
2071 #define REG_TX_CSI_RPT_PARAM_BW80                       0x06FC
2072 #define REG_MACID1                                      0x0700
2073
2074 #endif
2075
2076
2077 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2078
2079 #define REG_BSSID1                                      0x0708
2080
2081 #endif
2082
2083
2084 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2085
2086 #define REG_BCN_PSR_RPT1                                0x0710
2087 #define REG_ASSOCIATED_BFMEE_SEL                        0x0714
2088 #define REG_SND_PTCL_CTRL                               0x0718
2089 #define REG_RX_CSI_RPT_INFO                             0x071C
2090 #define REG_NS_ARP_CTRL                         0x0720
2091 #define REG_NS_ARP_INFO                         0x0724
2092
2093 #endif
2094
2095
2096 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2097
2098 #define REG_NS_ARP_IPADDR                               0x0728
2099
2100 #endif
2101
2102
2103 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2104
2105 #define REG_BEAMFORMING_INFO_NSARP_V1                   0x0728
2106
2107 #endif
2108
2109
2110 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2111
2112 #define REG_WRITE_RX_CSI_RPT_INFO                       0x072C
2113
2114 #endif
2115
2116
2117 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2118
2119 #define REG_BEAMFORMING_INFO_NSARP                      0x072C
2120
2121 #endif
2122
2123
2124 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2125
2126 #define REG_NS_ARP_IPV6_MYADDR                          0x0730
2127
2128 #endif
2129
2130
2131 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2132
2133 #define REG_WMAC_RTX_CTX_SUBTYPE_CFG                    0x0750
2134
2135 #endif
2136
2137
2138 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2139
2140 #define REG_WMAC_SWAES_CFG                              0x0760
2141
2142 #endif
2143
2144
2145 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2146
2147 #define REG_BT_COEX_V2                                  0x0762
2148
2149 #endif
2150
2151
2152 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2153
2154 #define REG_BT_COEX                                     0x0764
2155
2156 #endif
2157
2158
2159 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2160
2161 #define REG_WLAN_ACT_MSK_CTRL                           0x0768
2162
2163 #endif
2164
2165
2166 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2167
2168 #define REG_WLAN_ACT_MASK_CTRL                          0x0768
2169
2170 #endif
2171
2172
2173 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2174
2175 #define REG_BT_STATISTICS_CTRL                          0x076E
2176 #define REG_BT_COEX_ENH_INTF_CTRL                       0x076E
2177
2178 #endif
2179
2180
2181 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2182
2183 #define REG_BT_COEX_ENHANCED_INTR_CTRL                  0x076E
2184
2185 #endif
2186
2187
2188 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2189
2190 #define REG_BT_ACT_STATISTICS                           0x0770
2191
2192 #endif
2193
2194
2195 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2196
2197 #define REG_BT_STATISTICS_OTH_CTRL                      0x0778
2198
2199 #endif
2200
2201
2202 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2203
2204 #define REG_BT_STATISTICS_CONTROL_REGISTER              0x0778
2205
2206 #endif
2207
2208
2209 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2210
2211 #define REG_BT_CMD_ID                                   0x077C
2212
2213 #endif
2214
2215
2216 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2217
2218 #define REG_BT_STATUS_REPORT_REGISTER                   0x077C
2219
2220 #endif
2221
2222
2223 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2224
2225 #define REG_BT__STATUS_RPT                              0x077D
2226 #define REG_BT_DATA                                     0x0780
2227
2228 #endif
2229
2230
2231 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2232
2233 #define REG_BT_INTERRUPT_CONTROL_REGISTER               0x0780
2234
2235 #endif
2236
2237
2238 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2239
2240 #define REG_WLAN_RPT_                                   0x0781
2241 #define REG_BT_ISR_CTRL                         0x0783
2242 #define REG_WLAN_RPT_TO_CTR                             0x0784
2243
2244 #endif
2245
2246
2247 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2248
2249 #define REG_WLAN_REPORT_TIME_OUT_CONTROL_REGISTER       0x0784
2250
2251 #endif
2252
2253
2254 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2255
2256 #define REG_BT_ISOLATION_TABLE                          0x0785
2257
2258 #endif
2259
2260
2261 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2262
2263 #define REG_BT_ISOLATION_TABLE_REGISTER_REGISTER        0x0785
2264
2265 #endif
2266
2267
2268 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2269
2270 #define REG_BT_ISR_STA                                  0x078F
2271
2272 #endif
2273
2274
2275 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2276
2277 #define REG_BT_INTERRUPT_STATUS_REGISTER                0x078F
2278
2279 #endif
2280
2281
2282 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2283
2284 #define REG_TDMA_TIME_AND_RPT_SAM_SET                   0x0790
2285
2286 #endif
2287
2288
2289 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2290
2291 #define REG_BT_TDMA_TIME_REGISTER                       0x0790
2292
2293 #endif
2294
2295
2296 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2297
2298 #define REG_BT_CH_INFO                                  0x0794
2299
2300 #endif
2301
2302
2303 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2304
2305 #define REG_BT_ACT_REGISTER                             0x0794
2306
2307 #endif
2308
2309
2310 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2311
2312 #define REG_BT_STATIC_INFO_EXT                          0x0795
2313 #define REG_LTR_IDLE_LATENCY                            0x0798
2314
2315 #endif
2316
2317
2318 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2319
2320 #define REG_OBFF_CTRL_BASIC                             0x0798
2321
2322 #endif
2323
2324
2325 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2326
2327 #define REG_LTR_ACTIVE_LATENCY                          0x079C
2328
2329 #endif
2330
2331
2332 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2333
2334 #define REG_OBFF_CTRL2_TIMER                            0x079C
2335
2336 #endif
2337
2338
2339 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2340
2341 #define REG_OBFF_CTRL                                   0x07A0
2342
2343 #endif
2344
2345
2346 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2347
2348 #define REG_LTR_CTRL_BASIC                              0x07A0
2349
2350 #endif
2351
2352
2353 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2354
2355 #define REG_LTR_CTRL                                    0x07A4
2356
2357 #endif
2358
2359
2360 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2361
2362 #define REG_LTR_CTRL2_TIMER_THRESHOLD                   0x07A4
2363
2364 #endif
2365
2366
2367 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2368
2369 #define REG_LTR_CTRL2                                   0x07A8
2370
2371 #endif
2372
2373
2374 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2375
2376 #define REG_LTR_IDLE_LATENCY_V1                 0x07A8
2377 #define REG_LTR_ACTIVE_LATENCY_V1                       0x07AC
2378
2379 #endif
2380
2381
2382 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2383
2384 #define REG_ANTTRN_CTRL                         0x07B0
2385
2386 #endif
2387
2388
2389 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2390
2391 #define REG_ANTENNA_TRAINING_CONTROL_REGISTER           0x07B0
2392
2393 #endif
2394
2395
2396 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2397
2398 #define REG_WMAC_PKTCNT_RWD                             0x07B8
2399 #define REG_WMAC_PKTCNT_CTRL                            0x07BC
2400
2401 #endif
2402
2403
2404 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2405
2406 #define REG_IQ_DUMP                                     0x07C0
2407
2408 #endif
2409
2410
2411 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2412
2413 #define REG_WMAC_FTM_CTL                                0x07CC
2414
2415 #endif
2416
2417
2418 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2419
2420 #define REG_WMAC_IQ_MDPK_FUNC                           0x07CE
2421
2422 #endif
2423
2424
2425 #if (HALMAC_8197F_SUPPORT)
2426
2427 #define REG_IQ_DUMP_EXT                         0x07CF
2428
2429 #endif
2430
2431
2432 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
2433
2434 #define REG_OFDM_CCK_LEN_MASK                           0x07D0
2435
2436 #endif
2437
2438
2439 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2440
2441 #define REG_WMAC_OPTION_FUNCTION                        0x07D0
2442
2443 #endif
2444
2445
2446 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2447
2448 #define REG_RX_FILTER_FUNCTION                          0x07DA
2449
2450 #endif
2451
2452
2453 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2454
2455 #define REG_NDP_SIG                                     0x07E0
2456 #define REG_TXCMD_INFO_FOR_RSP_PKT                      0x07E4
2457
2458 #endif
2459
2460
2461 #if (HALMAC_8814AMP_SUPPORT)
2462
2463 #define REG_SEC_OPT                                     0x07E8
2464
2465 #endif
2466
2467
2468 #if (HALMAC_8197F_SUPPORT)
2469
2470 #define REG_SEC_OPT_V2                                  0x07EC
2471
2472 #endif
2473
2474
2475 #if (HALMAC_8821C_SUPPORT)
2476
2477 #define REG_WSEC_OPTION                         0x07EC
2478
2479 #endif
2480
2481
2482 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2483
2484 #define REG_RTS_ADDRESS_0                               0x07F0
2485
2486 #endif
2487
2488
2489 #if (HALMAC_8814AMP_SUPPORT)
2490
2491 #define REG_RTS_ADDR0                                   0x07F0
2492
2493 #endif
2494
2495
2496 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2497
2498 #define REG_RTS_ADDRESS_1                               0x07F8
2499
2500 #endif
2501
2502
2503 #if (HALMAC_8814AMP_SUPPORT)
2504
2505 #define REG_RTS_ADDR1                                   0x07F8
2506
2507 #endif
2508
2509
2510 #if (HALMAC_8822B_SUPPORT)
2511
2512 #define REG__RPFM_MAP1                                  0x07FE
2513
2514 #endif
2515
2516
2517 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2518
2519 #define REG_SYS_CFG3                                    0x1000
2520 #define REG_SYS_CFG4                                    0x1034
2521
2522 #endif
2523
2524
2525 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2526
2527 #define REG_SYS_CFG5                                    0x1070
2528
2529 #endif
2530
2531
2532 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2533
2534 #define REG_CPU_DMEM_CON                                0x1080
2535
2536 #endif
2537
2538
2539 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2540
2541 #define REG_BOOT_REASON                         0x1088
2542 #define REG_NFCPAD_CTRL                         0x10A8
2543
2544 #endif
2545
2546
2547 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2548
2549 #define REG_HIMR2                                       0x10B0
2550 #define REG_HISR2                                       0x10B4
2551 #define REG_HIMR3                                       0x10B8
2552 #define REG_HISR3                                       0x10BC
2553 #define REG_SW_MDIO                                     0x10C0
2554 #define REG_SW_FLUSH                                    0x10C4
2555
2556 #endif
2557
2558
2559 #if (HALMAC_8197F_SUPPORT)
2560
2561 #define REG_DBG_GPIO_BMUX                               0x10C8
2562 #define REG_FPGA_TAG                                    0x10CC
2563 #define REG_WL_DSS_CTRL0                                0x10D0
2564
2565 #endif
2566
2567
2568 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2569
2570 #define REG_H2C_PKT_READADDR                            0x10D0
2571 #define REG_H2C_PKT_WRITEADDR                           0x10D4
2572
2573 #endif
2574
2575
2576 #if (HALMAC_8197F_SUPPORT)
2577
2578 #define REG_WL_DSS_CTRL1                                0x10D8
2579
2580 #endif
2581
2582
2583 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2584
2585 #define REG_MEM_PWR_CRTL                                0x10D8
2586
2587 #endif
2588
2589
2590 #if (HALMAC_8197F_SUPPORT)
2591
2592 #define REG_WL_DSS_STATUS1                              0x10DC
2593
2594 #endif
2595
2596
2597 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2598
2599 #define REG_FW_DBG0                                     0x10E0
2600 #define REG_FW_DBG1                                     0x10E4
2601 #define REG_FW_DBG2                                     0x10E8
2602 #define REG_FW_DBG3                                     0x10EC
2603 #define REG_FW_DBG4                                     0x10F0
2604 #define REG_FW_DBG5                                     0x10F4
2605 #define REG_FW_DBG6                                     0x10F8
2606 #define REG_FW_DBG7                                     0x10FC
2607 #define REG_CR_EXT                                      0x1100
2608 #define REG_FWFF                                        0x1114
2609
2610 #endif
2611
2612
2613 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2614
2615 #define REG_RXFF_PTR_V1                         0x1118
2616 #define REG_RXFF_WTR_V1                         0x111C
2617
2618 #endif
2619
2620
2621 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2622
2623 #define REG_FE2IMR                                      0x1120
2624 #define REG_FE2ISR                                      0x1124
2625 #define REG_FE3IMR                                      0x1128
2626 #define REG_FE3ISR                                      0x112C
2627 #define REG_FE4IMR                                      0x1130
2628 #define REG_FE4ISR                                      0x1134
2629 #define REG_FT1IMR                                      0x1138
2630 #define REG_FT1ISR                                      0x113C
2631 #define REG_SPWR0                                       0x1140
2632 #define REG_SPWR1                                       0x1144
2633 #define REG_SPWR2                                       0x1148
2634 #define REG_SPWR3                                       0x114C
2635 #define REG_POWSEQ                                      0x1150
2636
2637 #endif
2638
2639
2640 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2641
2642 #define REG_TC7_CTRL_V1                         0x1158
2643 #define REG_TC8_CTRL_V1                         0x115C
2644
2645 #endif
2646
2647
2648 #if (HALMAC_8197F_SUPPORT)
2649
2650 #define REG_RXBCN_TBTT_INTERVAL_PORT0TO3                0x1160
2651 #define REG_RXBCN_TBTT_INTERVAL_PORT4                   0x1164
2652
2653 #endif
2654
2655
2656 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
2657
2658 #define REG_EXT_QUEUE_REG                               0x11C0
2659 #define REG_COUNTER_CONTROL                             0x11C4
2660 #define REG_COUNTER_TH                                  0x11C8
2661 #define REG_COUNTER_SET                         0x11CC
2662 #define REG_COUNTER_OVERFLOW                            0x11D0
2663 #define REG_TDE_LEN_TH                                  0x11D4
2664 #define REG_RDE_LEN_TH                                  0x11D8
2665 #define REG_PCIE_EXEC_TIME                              0x11DC
2666
2667 #endif
2668
2669
2670 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2671
2672 #define REG_FT2IMR                                      0x11E0
2673 #define REG_FT2ISR                                      0x11E4
2674
2675 #endif
2676
2677
2678 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2679
2680 #define REG_MSG2                                        0x11F0
2681 #define REG_MSG3                                        0x11F4
2682 #define REG_MSG4                                        0x11F8
2683 #define REG_MSG5                                        0x11FC
2684 #define REG_DDMA_CH0SA                                  0x1200
2685 #define REG_DDMA_CH0DA                                  0x1204
2686 #define REG_DDMA_CH0CTRL                                0x1208
2687 #define REG_DDMA_CH1SA                                  0x1210
2688 #define REG_DDMA_CH1DA                                  0x1214
2689 #define REG_DDMA_CH1CTRL                                0x1218
2690 #define REG_DDMA_CH2SA                                  0x1220
2691 #define REG_DDMA_CH2DA                                  0x1224
2692 #define REG_DDMA_CH2CTRL                                0x1228
2693 #define REG_DDMA_CH3SA                                  0x1230
2694 #define REG_DDMA_CH3DA                                  0x1234
2695 #define REG_DDMA_CH3CTRL                                0x1238
2696 #define REG_DDMA_CH4SA                                  0x1240
2697 #define REG_DDMA_CH4DA                                  0x1244
2698 #define REG_DDMA_CH4CTRL                                0x1248
2699 #define REG_DDMA_CH5SA                                  0x1250
2700 #define REG_DDMA_CH5DA                                  0x1254
2701 #define REG_REG_DDMA_CH5CTRL                            0x1258
2702 #define REG_DDMA_INT_MSK                                0x12E0
2703 #define REG_DDMA_CHSTATUS                               0x12E8
2704 #define REG_DDMA_CHKSUM                         0x12F0
2705 #define REG_DDMA_MONITOR                                0x12FC
2706
2707 #endif
2708
2709
2710 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2711
2712 #define REG_STC_INT_CS                                  0x1300
2713 #define REG_ST_INT_CFG                                  0x1304
2714 #define REG_CMU_DLY_CTRL                                0x1310
2715 #define REG_CMU_DLY_CFG                         0x1314
2716 #define REG_H2CQ_TXBD_DESA                              0x1320
2717 #define REG_H2CQ_TXBD_NUM                               0x1328
2718 #define REG_H2CQ_TXBD_IDX                               0x132C
2719 #define REG_H2CQ_CSR                                    0x1330
2720
2721 #endif
2722
2723
2724 #if (HALMAC_8197F_SUPPORT)
2725
2726 #define REG_AXI_EXCEPT_CS                               0x1350
2727 #define REG_AXI_EXCEPT_TIME                             0x1354
2728
2729 #endif
2730
2731
2732 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2733
2734 #define REG_Q0_Q1_INFO                                  0x1400
2735 #define REG_Q2_Q3_INFO                                  0x1404
2736 #define REG_Q4_Q5_INFO                                  0x1408
2737 #define REG_Q6_Q7_INFO                                  0x140C
2738 #define REG_MGQ_HIQ_INFO                                0x1410
2739 #define REG_CMDQ_BCNQ_INFO                              0x1414
2740 #define REG_USEREG_SETTING                              0x1420
2741 #define REG_AESIV_SETTING                               0x1424
2742 #define REG_BF0_TIME_SETTING                            0x1428
2743 #define REG_BF1_TIME_SETTING                            0x142C
2744 #define REG_BF_TIMEOUT_EN                               0x1430
2745 #define REG_MACID_RELEASE0                              0x1434
2746 #define REG_MACID_RELEASE1                              0x1438
2747 #define REG_MACID_RELEASE2                              0x143C
2748 #define REG_MACID_RELEASE3                              0x1440
2749 #define REG_MACID_RELEASE_SETTING                       0x1444
2750 #define REG_FAST_EDCA_VOVI_SETTING                      0x1448
2751 #define REG_FAST_EDCA_BEBK_SETTING                      0x144C
2752 #define REG_MACID_DROP0                         0x1450
2753 #define REG_MACID_DROP1                         0x1454
2754 #define REG_MACID_DROP2                         0x1458
2755 #define REG_MACID_DROP3                         0x145C
2756
2757 #endif
2758
2759
2760 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2761
2762 #define REG_R_MACID_RELEASE_SUCCESS_0                   0x1460
2763 #define REG_R_MACID_RELEASE_SUCCESS_1                   0x1464
2764 #define REG_R_MACID_RELEASE_SUCCESS_2                   0x1468
2765 #define REG_R_MACID_RELEASE_SUCCESS_3                   0x146C
2766 #define REG_MGG_FIFO_CRTL                               0x1470
2767 #define REG_MGG_FIFO_INT                                0x1474
2768 #define REG_MGG_FIFO_LIFETIME                           0x1478
2769 #define REG_R_MACID_RELEASE_SUCCESS_CLEAR_OFFSET        0x147C
2770
2771 #endif
2772
2773
2774 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
2775
2776 #define REG_SHCUT_SETTING                               0x1480
2777
2778 #endif
2779
2780
2781 #if (HALMAC_8822B_SUPPORT)
2782
2783 #define REG_MACID_SHCUT_OFFSET                          0x1480
2784
2785 #endif
2786
2787
2788 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
2789
2790 #define REG_SHCUT_LLC_ETH_TYPE0                 0x1484
2791 #define REG_SHCUT_LLC_ETH_TYPE1                 0x1488
2792 #define REG_SHCUT_LLC_OUI0                              0x148C
2793 #define REG_SHCUT_LLC_OUI1                              0x1490
2794 #define REG_SHCUT_LLC_OUI2                              0x1494
2795 #define REG_SHCUT_LLC_OUI3                              0x1498
2796
2797 #endif
2798
2799
2800 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2801
2802 #define REG_MU_TX_CTL                                   0x14C0
2803 #define REG_MU_STA_GID_VLD                              0x14C4
2804 #define REG_MU_STA_USER_POS_INFO                        0x14C8
2805 #define REG_MU_TRX_DBG_CNT                              0x14D0
2806
2807 #endif
2808
2809
2810 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2811
2812 #define REG_CPUMGQ_TX_TIMER                             0x1500
2813 #define REG_PS_TIMER_A                                  0x1504
2814 #define REG_PS_TIMER_B                                  0x1508
2815 #define REG_PS_TIMER_C                                  0x150C
2816 #define REG_PS_TIMER_ABC_CPUMGQ_TIMER_CRTL              0x1510
2817 #define REG_CPUMGQ_TX_TIMER_EARLY                       0x1514
2818 #define REG_PS_TIMER_A_EARLY                            0x1515
2819 #define REG_PS_TIMER_B_EARLY                            0x1516
2820 #define REG_PS_TIMER_C_EARLY                            0x1517
2821
2822 #endif
2823
2824
2825 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2826
2827 #define REG_BCN_PSR_RPT2                                0x1600
2828 #define REG_BCN_PSR_RPT3                                0x1604
2829 #define REG_BCN_PSR_RPT4                                0x1608
2830 #define REG_A1_ADDR_MASK                                0x160C
2831 #define REG_MACID2                                      0x1620
2832 #define REG_BSSID2                                      0x1628
2833 #define REG_MACID3                                      0x1630
2834 #define REG_BSSID3                                      0x1638
2835 #define REG_MACID4                                      0x1640
2836 #define REG_BSSID4                                      0x1648
2837
2838 #endif
2839
2840
2841 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2842
2843 #define REG_NOA_REPORT                                  0x1650
2844 #define REG_PWRBIT_SETTING                              0x1660
2845 #define REG_TRANSMIT_ADDRSS_0                           0x16A0
2846 #define REG_TRANSMIT_ADDRSS_1                           0x16A8
2847 #define REG_TRANSMIT_ADDRSS_2                           0x16B0
2848 #define REG_TRANSMIT_ADDRSS_3                           0x16B8
2849 #define REG_TRANSMIT_ADDRSS_4                           0x16C0
2850
2851 #endif
2852
2853
2854 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2855
2856 #define REG_WL2LTECOEX_INDIRECT_ACCESS_CTRL_V1  0x1700
2857 #define REG_WL2LTECOEX_INDIRECT_ACCESS_WRITE_DATA_V1    0x1704
2858 #define REG_WL2LTECOEX_INDIRECT_ACCESS_READ_DATA_V1     0x1708
2859
2860 #endif
2861
2862
2863
2864 /* ----------------------------------------------------- */
2865 /*      */
2866 /* 0xFB00h ~ 0xFCFFh    TX/RX packet buffer affress */
2867 /*      */
2868 /* ----------------------------------------------------- */
2869 #define REG_RXPKTBUF_STARTADDR  0xFB00
2870 #define REG_TXPKTBUF_STARTADDR  0xFC00
2871
2872 /* ----------------------------------------------------- */
2873 /*      */
2874 /* 0xFD00h ~ 0xFDFFh    8051 CPU Local REG */
2875 /*      */
2876 /* ----------------------------------------------------- */
2877 #define REG_SYS_CTRL            0xFD00
2878 #define REG_PONSTS_RPT1         0xFD01
2879 #define REG_PONSTS_RPT2         0xFD02
2880 #define REG_PONSTS_RPT3         0xFD03
2881 #define REG_PONSTS_RPT4         0xFD04  /* 0x84 */
2882 #define REG_PONSTS_RPT5         0xFD05  /* 0x85 */
2883 #define REG_8051ERRFLAG         0xFD08
2884 #define REG_8051ERRFLAG_MASK    0xFD09
2885 #define REG_TXADDRH             0xFD10  /* Tx Packet High Address */
2886 #define REG_RXADDRH             0xFD11  /* Rx Packet High Address */
2887 #define REG_TXADDRH_EXT         0xFD12  /* 0xFD12[0] : for 8051 access txpktbuf high64k as external register */
2888
2889 #define REG_U3_STATE            0xFD48  /* (Read only) [7:4] : usb3 changed last state. [3:0]   usb3 state */
2890
2891 /* for MAILBOX */
2892 #define REG_OUTDATA0            0xFD50
2893 #define REG_OUTDATA1            0xFD54
2894 #define REG_OUTRDY              0xFD58  /* bit[0] : OutReady, bit[1] : OutEmptyIntEn */
2895
2896 #define REG_INDATA0             0xFD60
2897 #define REG_INDATA1             0xFD64
2898 #define REG_INRDY               0xFD68  /* bit[0] : InReady, bit[1] : InRdyIntEn */
2899
2900 /* MCU ERROR debug REG */
2901 #define REG_MCUERR_PCLSB                0xFD90  /* PC[7:0] */
2902 #define REG_MCUERR_PCMSB                0xFD91  /* PC[15:8] */
2903 #define REG_MCUERR_ACC          0xFD92
2904 #define REG_MCUERR_B            0xFD93
2905 #define REG_MCUERR_DPTRLSB      0xFD94  /* DPTR[7:0] */
2906 #define REG_MCUERR_DPTRMSB      0xFD95  /* DPTR[15:8] */
2907 #define REG_MCUERR_SP           0xFD96  /* SP[7:0] */
2908 #define REG_MCUERR_IE           0xFD97  /* IE[7:0] */
2909 #define REG_MCUERR_EIE          0xFD98  /* EIE[7:0] */
2910 #define REG_VERA_SIM            0xFD9F
2911 /* 0xFD99~0xFD9F are reserved.. */
2912
2913 /* ----------------------------------------------------- */
2914 /*      */
2915 /* 0xFE00h ~ 0xFEFFh    USB Configuration */
2916 /*      */
2917 /* ----------------------------------------------------- */
2918
2919 /* RTS5101 USB Register Definition */
2920 #define REG_USB_SETUP_DEC_INT           0xFE00
2921 #define REG_USB_DMACTL                  0xFE01
2922 #define REG_USB_IRQSTAT0                        0xFE02
2923 #define REG_USB_IRQSTAT1                        0xFE03
2924 #define REG_USB_IRQEN0                  0xFE04
2925 #define REG_USB_IRQEN1                  0xFE05
2926 #define REG_USB_AUTOPTRL                        0xFE06
2927 #define REG_USB_AUTOPTRH                        0xFE07
2928 #define REG_USB_AUTODAT                 0xFE08
2929
2930 #define REG_USB_SCRATCH0                        0xFE09
2931 #define REG_USB_SCRATCH1                        0xFE0A
2932 #define REG_USB_SEEPROM                 0xFE0B
2933 #define REG_USB_GPIO0                   0xFE0C
2934 #define REG_USB_GPIO0DIR                        0xFE0D
2935 #define REG_USB_CLKSEL                  0xFE0E
2936 #define REG_USB_BOOTCTL                 0xFE0F
2937
2938 #define REG_USB_USBCTL                  0xFE10
2939 #define REG_USB_USBSTAT                 0xFE11
2940 #define REG_USB_DEVADDR                 0xFE12
2941 #define REG_USB_USBTEST                 0xFE13
2942 #define REG_USB_FNUM0                   0xFE14
2943 #define REG_USB_FNUM1                   0xFE15
2944
2945 #define REG_USB_EP_IDX                  0xFE20
2946 #define REG_USB_EP_CFG                  0xFE21
2947 #define REG_USB_EP_CTL                  0xFE22
2948 #define REG_USB_EP_STAT                 0xFE23
2949 #define REG_USB_EP_IRQ                  0xFE24
2950 #define REG_USB_EP_IRQEN                        0xFE25
2951 #define REG_USB_EP_MAXPKT0              0xFE26
2952 #define REG_USB_EP_MAXPKT1              0xFE27
2953 #define REG_USB_EP_DAT                  0xFE28
2954 #define REG_USB_EP_BC0                  0xFE29
2955 #define REG_USB_EP_BC1                  0xFE2A
2956 #define REG_USB_EP_TC0                  0xFE2B
2957 #define REG_USB_EP_TC1                  0xFE2C
2958 #define REG_USB_EP_TC2                  0xFE2D
2959 #define REG_USB_EP_CTL2                 0xFE2E
2960
2961 #define REG_USB_INFO                    0xFE17
2962 #define REG_USB_SPECIAL_OPTION          0xFE55
2963 #define REG_USB_DMA_AGG_TO              0xFE5B
2964 #define REG_USB_AGG_TO                  0xFE5C
2965 #define REG_USB_AGG_TH                  0xFE5D
2966
2967 #define REG_USB_VID                     0xFE60
2968 #define REG_USB_PID                     0xFE62
2969 #define REG_USB_OPT                     0xFE64
2970 #define REG_USB_CONFIG                  0xFE65  /* RX EP setting. 0xFE65 Bit[3:0] : RXQ, Bit[7:4] : INTQ */
2971                                                         /* TX EP setting. 0xFE66 Bit[3:0] : TXQ0, Bit[7:4] : TXQ1, 0xFE67 Bit[3:0] : TXQ2 */
2972 #define REG_USB_PHY_PARA1               0xFE68  /* Bit[7:4]: XCVR_SEN   (USB PHY 0xE2[7:4]), Bit[3:0]: XCVR_SH  (USB PHY 0xE2[3:0]) */
2973 #define REG_USB_PHY_PARA2               0xFE69  /* Bit[7:5]: XCVR_BG    (USB PHY 0xE3[5:3]), Bit[4:2]: XCVR_DR  (USB PHY 0xE3[2:0]), Bit[1]: SE0_LVL    (USB PHY 0xE5[7]), Bit[0]:      FORCE_XTL_ON    (USB PHY 0xE5[1]) */
2974 #define REG_USB_PHY_PARA3               0xFE6A  /* Bit[7:5]: XCVR_SRC   (USB PHY 0xE5[4:2]), Bit[4]: LATE_DLLEN (USB PHY 0xF0[4]), Bit[3]: HS_LP_MODE   (USB PHY 0xF0[3]), Bit[2]: UTMI_POS_OUT (USB PHY 0xF1 [7]), Bit[1:0]: TX_DELAY  (USB PHY 0xF1 [2:1]) */
2975 #define REG_USB_PHY_PARA4               0xFE6B  /* (USB PHY 0xE7[7:0]) */
2976 #define REG_USB_OPT2                    0xFE6C
2977 #define REG_USB_MAC_ADDR                        0xFE70  /* 0xFE70~0xFE75 */
2978 #define REG_USB_MANUFACTURE_SETTING     0xFE80  /* 0xFE80~0xFE90        Max : 32 bytes */
2979 #define REG_USB_PRODUCT_STRING          0xFEA0  /* 0xFEA0~0xFECF        Max : 48 bytes */
2980 #define REG_USB_SERIAL_NUMBER_STRING    0xFED0  /* 0xFED0~0xFEDF        Max : 12 bytes */
2981
2982 #define REG_USB_ALTERNATE_SETTING       0xFE4F
2983 #define REG_USB_INT_BINTERVAL           0xFE6E
2984 #define REG_USB_GPS_EP_CONFIG           0xFE6D
2985
2986 #endif  /* __HALMAC_COM_REG_H__ */