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
8 For other pages, it is based on MAC_Register.doc SVN502
9 Most IC is the same with 8812A
10 -------------------------Modification Log-----------------------------------*/
12 /*--------------------------Include File--------------------------------------*/
13 #include "halmac_hw_cfg.h"
14 /*--------------------------Include File--------------------------------------*/
19 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
21 #define REG_SYS_ISO_CTRL 0x0000
26 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
28 #define REG_SDIO_TX_CTRL 0x10250000
33 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
46 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
48 #define REG_SDIO_HIMR 0x10250014
53 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
55 #define REG_SYS_SWR_CTRL3 0x0018
60 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
62 #define REG_SDIO_HISR 0x10250018
67 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
69 #define REG_RSV_CTRL 0x001C
74 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
76 #define REG_SDIO_RX_REQ_LEN 0x1025001C
81 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
83 #define REG_RF_CTRL 0x001F
88 #if (HALMAC_8197F_SUPPORT)
90 #define REG_RF0_CTRL 0x001F
95 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
97 #define REG_SDIO_FREE_TXPG_SEQ_V1 0x1025001F
102 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
104 #define REG_AFE_LDO_CTRL 0x0020
109 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
111 #define REG_SDIO_FREE_TXPG 0x10250020
116 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
118 #define REG_AFE_CTRL1 0x0024
123 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
125 #define REG_SDIO_FREE_TXPG2 0x10250024
130 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
132 #define REG_AFE_CTRL2 0x0028
137 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
139 #define REG_SDIO_OQT_FREE_TXPG_V1 0x10250028
144 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
146 #define REG_AFE_CTRL3 0x002C
147 #define REG_EFUSE_CTRL 0x0030
152 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
154 #define REG_SDIO_HTSFR_INFO 0x10250030
159 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
161 #define REG_LDO_EFUSE_CTRL 0x0034
162 #define REG_PWR_OPTION_CTRL 0x0038
167 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
169 #define REG_SDIO_HCPWM1_V2 0x10250038
170 #define REG_SDIO_HCPWM2_V2 0x1025003A
175 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
177 #define REG_CAL_TIMER 0x003C
178 #define REG_ACLK_MON 0x003E
179 #define REG_GPIO_MUXCFG 0x0040
184 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
186 #define REG_SDIO_INDIRECT_REG_CFG 0x10250040
191 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
193 #define REG_GPIO_PIN_CTRL 0x0044
198 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
200 #define REG_SDIO_INDIRECT_REG_DATA 0x10250044
205 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
218 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
220 #define REG_SDIO_H2C 0x10250060
225 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
227 #define REG_PAD_CTRL1 0x0064
232 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
234 #define REG_SDIO_C2H 0x10250064
239 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
241 #define REG_WL_BT_PWR_CTRL 0x0068
246 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
248 #define REG_SDM_DEBUG 0x006C
253 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
255 #define REG_GSSR 0x006C
260 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
262 #define REG_SYS_SDIO_CTRL 0x0070
267 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
269 #define REG_SYS_CLKR 0x0070
274 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
276 #define REG_HCI_OPT_CTRL 0x0074
281 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
283 #define REG_AFE_CTRL4 0x0078
288 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
290 #define REG_AFE_XTAL_CTRL_EXT 0x0078
295 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
297 #define REG_LDO_SWR_CTRL 0x007C
302 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
304 #define REG_8051FW_CTRL 0x0080
309 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
311 #define REG_MCUFW_CTRL 0x0080
316 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
318 #define REG_SDIO_HRPWM1 0x10250080
319 #define REG_SDIO_HRPWM2 0x10250082
324 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
326 #define REG_MCU_TST_CFG 0x0084
331 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
333 #define REG_SDIO_HPS_CLKR 0x10250084
334 #define REG_SDIO_BUS_CTRL 0x10250085
339 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
341 #define REG_SDIO_HSUS_CTRL 0x10250086
346 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
348 #define REG_HMEBOX_E0_E1 0x0088
353 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
355 #define REG_SDIO_RESPONSE_TIMER 0x10250088
360 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
362 #define REG_SDIO_CMD_CRC 0x1025008A
367 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
369 #define REG_HMEBOX_E2_E3 0x008C
370 #define REG_WLLPS_CTRL 0x0090
375 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
377 #define REG_SDIO_HSISR 0x10250090
378 #define REG_SDIO_HSIMR 0x10250091
383 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
385 #define REG_AFE_CTRL5 0x0094
390 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
392 #define REG_GPIO_DEBOUNCE_CTRL 0x0098
393 #define REG_RPWM2 0x009C
394 #define REG_SYSON_FSM_MON 0x00A0
399 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
401 #define REG_AFE_CTRL6 0x00A4
406 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
408 #define REG_PMC_DBG_CTRL1 0x00A8
413 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
415 #define REG_AFE_CTRL7 0x00AC
420 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
431 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
433 #define REG_SDIO_ERR_RPT 0x102500C0
434 #define REG_SDIO_CMD_ERRCNT 0x102500C1
435 #define REG_SDIO_DATA_ERRCNT 0x102500C2
440 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
442 #define REG_PAD_CTRL2 0x00C4
447 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
449 #define REG_SDIO_CMD_ERR_CONTENT 0x102500C4
454 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
456 #define REG_MEM_RMC 0x00C8
461 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
463 #define REG_SDIO_CRC_ERR_IDX 0x102500C9
464 #define REG_SDIO_DATA_CRC 0x102500CA
465 #define REG_SDIO_DATA_REPLY_TIME 0x102500CB
470 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
480 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
482 #define REG_AFE_CTRL8 0x00DC
487 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
489 #define REG_WLAN_DBG 0x00DC
494 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
496 #define REG_USB_SIE_INTF 0x00E0
497 #define REG_PCIE_MIO_INTF 0x00E4
498 #define REG_PCIE_MIO_INTD 0x00E8
503 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
505 #define REG_WLRF1 0x00EC
510 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
512 #define REG_HPON_FSM 0x00EC
517 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
528 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8881A_SUPPORT)
530 #define REG_PKT_BUFF_ACCESS_CTRL 0x0106
535 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
537 #define REG_TSF_CLK_STATE 0x0108
538 #define REG_TXDMA_PQ_MAP 0x010C
539 #define REG_TRXFF_BNDY 0x0114
544 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
546 #define REG_PTA_I2C_MBOX 0x0118
551 #if (HALMAC_8814A_SUPPORT)
553 #define REG_FF_STATUS 0x0118
558 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8881A_SUPPORT)
560 #define REG_RXFF_PTR 0x011C
565 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
567 #define REG_RXFF_BNDY 0x011C
572 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
574 #define REG_FEIMR 0x0120
579 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
581 #define REG_FE1IMR 0x0120
586 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
588 #define REG_FEISR 0x0124
593 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
595 #define REG_FE1ISR 0x0124
600 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
626 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
628 #define REG_MBIST_ROM_CRC_DATA 0x017C
633 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
635 #define REG_MBIST_FAIL_NRML 0x017C
640 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
642 #define REG_AES_DECRPT_DATA 0x0180
643 #define REG_AES_DECRPT_CFG 0x0184
648 #if (HALMAC_8197F_SUPPORT)
650 #define REG_MACCLKFRQ 0x018C
655 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
657 #define REG_TMETER 0x0190
658 #define REG_OSC_32K_CTRL 0x0194
659 #define REG_32K_CAL_REG1 0x0198
660 #define REG_C2HEVT 0x01A0
665 #if (HALMAC_8814A_SUPPORT)
667 #define REG_TC7_CTRL 0x01B0
668 #define REG_TC8_CTRL 0x01B4
673 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
689 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
691 #define REG_GENTST 0x01E4
696 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
698 #define REG_LLT_INIT_ADDR 0x01E4
703 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
715 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
717 #define REG_RQPN_CTRL_HLPQ 0x0200
722 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
724 #define REG_FIFOPAGE_CTRL_1 0x0200
729 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
731 #define REG_FIFOPAGE_INFO 0x0204
736 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
738 #define REG_FIFOPAGE_CTRL_2 0x0204
743 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
745 #define REG_DWBCN0_CTRL 0x0208
750 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
752 #define REG_AUTO_LLT_V1 0x0208
757 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
759 #define REG_TXDMA_OFFSET_CHK 0x020C
760 #define REG_TXDMA_STATUS 0x0210
765 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
767 #define REG_RQPN_NPQ 0x0214
772 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
774 #define REG_TX_DMA_DBG 0x0214
779 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
781 #define REG_TQPNT1 0x0218
782 #define REG_TQPNT2 0x021C
787 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
789 #define REG_TDE_DEBUG 0x0220
794 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
796 #define REG_TQPNT3 0x0220
801 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
803 #define REG_AUTO_LLT 0x0224
808 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
810 #define REG_TQPNT4 0x0224
815 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
817 #define REG_DWBCN1_CTRL 0x0228
822 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
835 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
846 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
858 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
860 #define REG_FWFF_C2H 0x0298
861 #define REG_FWFF_CTRL 0x029C
862 #define REG_FWFF_PKT_INFO 0x02A0
867 #if (HALMAC_8197F_SUPPORT)
869 #define REG_FC2H_INFO 0x02A6
874 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
876 #define REG_PCIE_CTRL 0x0300
881 #if (HALMAC_8197F_SUPPORT)
883 #define REG_HCI_CTRL 0x0300
888 #if (HALMAC_8881A_SUPPORT)
890 #define REG_LX_CTRL1 0x0300
895 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
947 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
949 #define REG_DBG_SEL_V1 0x03D8
954 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
956 #define REG_PCIE_HRPWM1_V1 0x03D9
961 #if (HALMAC_8197F_SUPPORT)
963 #define REG_HCI_HRPWM1_V1 0x03D9
968 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
970 #define REG_PCIE_HCPWM1_V1 0x03DA
975 #if (HALMAC_8197F_SUPPORT)
977 #define REG_HCI_HCPWM1_V1 0x03DA
982 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
984 #define REG_PCIE_CTRL2 0x03DB
989 #if (HALMAC_8197F_SUPPORT)
991 #define REG_HCI_CTRL2 0x03DB
996 #if (HALMAC_8881A_SUPPORT)
998 #define REG_LX_CTRL2 0x03DB
1003 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1005 #define REG_PCIE_HRPWM2_V1 0x03DC
1010 #if (HALMAC_8197F_SUPPORT)
1012 #define REG_HCI_HRPWM2_V1 0x03DC
1017 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1019 #define REG_PCIE_HCPWM2_V1 0x03DE
1024 #if (HALMAC_8197F_SUPPORT)
1026 #define REG_HCI_HCPWM2_V1 0x03DE
1031 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1033 #define REG_PCIE_H2C_MSG_V1 0x03E0
1038 #if (HALMAC_8197F_SUPPORT)
1040 #define REG_HCI_H2C_MSG_V1 0x03E0
1045 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1047 #define REG_PCIE_C2H_MSG_V1 0x03E4
1052 #if (HALMAC_8197F_SUPPORT)
1054 #define REG_HCI_C2H_MSG_V1 0x03E4
1059 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1061 #define REG_DBI_WDATA_V1 0x03E8
1066 #if (HALMAC_8881A_SUPPORT)
1068 #define REG_LX_DMA_ISR 0x03E8
1073 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1075 #define REG_DBI_RDATA_V1 0x03EC
1080 #if (HALMAC_8881A_SUPPORT)
1082 #define REG_LX_DMA_IMR 0x03EC
1087 #if (HALMAC_8192E_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1089 #define REG_DBI_FLAG_V1 0x03F0
1094 #if (HALMAC_8197F_SUPPORT)
1096 #define REG_STUCK_FLAG_V1 0x03F0
1101 #if (HALMAC_8881A_SUPPORT)
1103 #define REG_LX_DMA_DBG 0x03F0
1108 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1110 #define REG_MDIO_V1 0x03F4
1115 #if (HALMAC_8197F_SUPPORT)
1117 #define REG_WDT_CFG 0x03F8
1122 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1124 #define REG_PCIE_MIX_CFG 0x03F8
1129 #if (HALMAC_8881A_SUPPORT)
1131 #define REG_BUS_MIX_CFG 0x03F8
1136 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1138 #define REG_HCI_MIX_CFG 0x03FC
1143 #if (HALMAC_8881A_SUPPORT)
1145 #define REG_BUS_MIX_CFG1 0x03FC
1150 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1166 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1168 #define REG_HWSEQ_CTRL 0x0423
1173 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1175 #define REG_DATAFB_SEL 0x0423
1180 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1182 #define REG_BCNQ_BDNY 0x0424
1187 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1189 #define REG_BCNQ_BDNY_V1 0x0424
1194 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1196 #define REG_MGQ_BDNY 0x0425
1201 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1203 #define REG_LIFETIME_EN 0x0426
1208 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1210 #define REG_FW_FREE_TAIL 0x0427
1215 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1230 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1232 #define REG_AMPDU_BURST_CTRL 0x0455
1237 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1239 #define REG_AMPDU_MAX_TIME_V1 0x0455
1244 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1246 #define REG_AMPDU_MAX_TIME 0x0456
1251 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1253 #define REG_BCNQ1_BDNY_V1 0x0456
1258 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1260 #define REG_BCNQ1_BDNY 0x0457
1265 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1267 #define REG_AMPDU_MAX_LENGTH 0x0458
1268 #define REG_ACQ_STOP 0x045C
1273 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1275 #define REG_WMAC_LBK_BUF_HD 0x045D
1280 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1282 #define REG_NDPA_RATE 0x045D
1287 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1289 #define REG_TX_HANG_CTRL 0x045E
1290 #define REG_NDPA_OPT_CTRL 0x045F
1295 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1297 #define REG_FAST_EDCA_CTRL 0x0460
1302 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1314 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1316 #define REG_WMAC_LBK_BUF_HD_V1 0x0478
1317 #define REG_MGQ_BDNY_V1 0x047A
1322 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1340 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1342 #define REG_TRYING_CNT_TH 0x04B0
1347 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1349 #define REG_POWER_STAGE1 0x04B4
1354 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1356 #define REG_POWER_STAGE2 0x04B8
1361 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1378 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1380 #define REG_HW_SEQ0 0x04D8
1381 #define REG_HW_SEQ1 0x04DA
1382 #define REG_HW_SEQ2 0x04DC
1383 #define REG_HW_SEQ3 0x04DE
1388 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
1390 #define REG_CSI_SEQ 0x04DE
1395 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1397 #define REG_NULL_PKT_STATUS 0x04E0
1402 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1404 #define REG_NULL_PKT_STATUS_V1 0x04E0
1409 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1411 #define REG_PTCL_ERR_STATUS 0x04E2
1416 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1418 #define REG_PTCL_PKT_NUM 0x04E3
1423 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1425 #define REG_NULL_PKT_STATUS_EXTEND 0x04E3
1430 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
1432 #define REG_TRXRPT_MISS_CNT 0x04E3
1437 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1439 #define REG_VIDEO_ENHANCEMENT_FUN 0x04E4
1444 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1446 #define REG_BT_POLLUTE_PKT_CNT 0x04E8
1447 #define REG_PTCL_DBG 0x04EC
1452 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1454 #define REG_PTCL_TX_RPT 0x04F0
1459 #if (HALMAC_8197F_SUPPORT)
1461 #define REG_TXOP_EXTRA_CTRL 0x04F0
1466 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1468 #define REG_CPUMGQ_TIMER_CTRL2 0x04F4
1473 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8881A_SUPPORT)
1475 #define REG_DUMMY_PAGE4 0x04FC
1480 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1482 #define REG_DUMMY_PAGE4_V1 0x04FC
1483 #define REG_MOREDATA 0x04FE
1488 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1513 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1515 #define REG_BAR_TX_CTRL 0x0530
1520 #if (HALMAC_8197F_SUPPORT || HALMAC_8822B_SUPPORT)
1522 #define REG_QUEUE_INCOL_THR 0x0538
1523 #define REG_QUEUE_INCOL_EN 0x053C
1528 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1538 #if (HALMAC_8197F_SUPPORT)
1540 #define REG_FTM_CTRL 0x0548
1541 #define REG_FTM_TSF_CNT 0x054C
1546 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1548 #define REG_BCN_CTRL 0x0550
1553 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1555 #define REG_BCN_CTRL1 0x0551
1560 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1562 #define REG_BCN_CTRL_CLINT0 0x0551
1567 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1584 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1586 #define REG_TSFTR1 0x0568
1591 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1593 #define REG_FREERUN_CNT 0x0568
1598 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8881A_SUPPORT)
1600 #define REG_ATIMWND1 0x0570
1605 #if (HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1607 #define REG_ATIMWND1_V1 0x0570
1612 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1614 #define REG_TBTT_PROHIBIT_INFRA 0x0571
1619 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1621 #define REG_CTWND 0x0572
1622 #define REG_BCNIVLCUNT 0x0573
1623 #define REG_BCNDROPCTRL 0x0574
1624 #define REG_HGQ_TIMEOUT_PERIOD 0x0575
1629 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
1640 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1642 #define REG_EXTEND_CTRL 0x057B
1647 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
1657 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1659 #define REG_PS_TIMER 0x0580
1664 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1666 #define REG_PS_TIMER0 0x0580
1671 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1673 #define REG_TIMER0 0x0584
1678 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1680 #define REG_PS_TIMER1 0x0584
1685 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1687 #define REG_TIMER1 0x0588
1692 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1694 #define REG_PS_TIMER2 0x0588
1699 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1710 #if (HALMAC_8197F_SUPPORT)
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
1721 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1744 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
1758 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1773 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1775 #define REG_NOA_SUBIE 0x05ED
1780 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1782 #define REG_P2P_RST 0x05F0
1783 #define REG_SCHEDULER_RST 0x05F1
1788 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1790 #define REG_SCH_TXCMD 0x05F8
1791 #define REG_PAGE5_DUMMY 0x05FC
1792 #define REG_WMAC_CR 0x0600
1797 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1799 #define REG_WMAC_FWPKT_CR 0x0601
1804 #if (HALMAC_8821C_SUPPORT)
1806 #define REG_FW_STS_FILTER 0x0602
1811 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1813 #define REG_BWOPMODE 0x0603
1818 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1834 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1836 #define REG_MCU_TEST_1 0x0630
1841 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1843 #define REG_WMAC_TCR_TSFT_OFS 0x0630
1844 #define REG_UDF_THSD 0x0632
1845 #define REG_ZLD_NUM 0x0633
1850 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1852 #define REG_MCU_TEST_2 0x0634
1857 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1859 #define REG_STMP_THSD 0x0634
1860 #define REG_WMAC_TXTIMEOUT 0x0635
1861 #define REG_MCU_TEST_2_V1 0x0636
1866 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1868 #define REG_USTIME_EDCA 0x0638
1873 #if (HALMAC_8821C_SUPPORT)
1875 #define REG_ACKTO_CCK 0x0639
1880 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1892 #if (HALMAC_8821C_SUPPORT)
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
1902 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1904 #define REG_NAV_CTRL 0x0650
1905 #define REG_BACAMCMD 0x0654
1906 #define REG_BACAMCONTENT 0x0658
1907 #define REG_LBDLY 0x0660
1912 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1914 #define REG_WMAC_BACAM_RPMEN 0x0661
1919 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1921 #define REG_TX_RX 0x0662
1926 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
1939 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
1955 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1957 #define REG_WOW_CTRL 0x0690
1962 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1964 #define REG_NAN_RX_TSF_FILTER 0x0691
1969 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1971 #define REG_PS_RX_INFO 0x0692
1972 #define REG_WMMPS_UAPSD_TID 0x0693
1973 #define REG_LPNAV_CTRL 0x0694
1978 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
1980 #define REG_WKFMCAM_NUM 0x0698
1985 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
1987 #define REG_WKFMCAM_CMD 0x0698
1988 #define REG_WKFMCAM_RWD 0x069C
1993 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
1995 #define REG_RXFLTMAP0 0x06A0
1996 #define REG_RXFLTMAP1 0x06A2
1997 #define REG_RXFLTMAP 0x06A4
1998 #define REG_BCN_PSR_RPT 0x06A8
2003 #if (HALMAC_8192E_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2005 #define REG_FLC_RPC 0x06AC
2006 #define REG_FLC_RPCT 0x06AD
2007 #define REG_FLC_PTS 0x06AE
2008 #define REG_FLC_TRPC 0x06AF
2013 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2015 #define REG_RXPKTMON_CTRL 0x06B0
2020 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2022 #define REG_STATE_MON 0x06B4
2027 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2029 #define REG_ERROR_MON 0x06B8
2030 #define REG_SEARCH_MACID 0x06BC
2035 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2037 #define REG_BT_COEX_TABLE 0x06C0
2042 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2044 #define REG_RXCMD_0 0x06D0
2045 #define REG_RXCMD_1 0x06D4
2050 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2052 #define REG_WMAC_RESP_TXINFO 0x06D8
2057 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2059 #define REG_BBPSF_CTRL 0x06DC
2064 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
2077 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2079 #define REG_BSSID1 0x0708
2084 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
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
2096 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2098 #define REG_NS_ARP_IPADDR 0x0728
2103 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2105 #define REG_BEAMFORMING_INFO_NSARP_V1 0x0728
2110 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2112 #define REG_WRITE_RX_CSI_RPT_INFO 0x072C
2117 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2119 #define REG_BEAMFORMING_INFO_NSARP 0x072C
2124 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2126 #define REG_NS_ARP_IPV6_MYADDR 0x0730
2131 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2133 #define REG_WMAC_RTX_CTX_SUBTYPE_CFG 0x0750
2138 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2140 #define REG_WMAC_SWAES_CFG 0x0760
2145 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2147 #define REG_BT_COEX_V2 0x0762
2152 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2154 #define REG_BT_COEX 0x0764
2159 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2161 #define REG_WLAN_ACT_MSK_CTRL 0x0768
2166 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2168 #define REG_WLAN_ACT_MASK_CTRL 0x0768
2173 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2175 #define REG_BT_STATISTICS_CTRL 0x076E
2176 #define REG_BT_COEX_ENH_INTF_CTRL 0x076E
2181 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2183 #define REG_BT_COEX_ENHANCED_INTR_CTRL 0x076E
2188 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2190 #define REG_BT_ACT_STATISTICS 0x0770
2195 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2197 #define REG_BT_STATISTICS_OTH_CTRL 0x0778
2202 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2204 #define REG_BT_STATISTICS_CONTROL_REGISTER 0x0778
2209 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2211 #define REG_BT_CMD_ID 0x077C
2216 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2218 #define REG_BT_STATUS_REPORT_REGISTER 0x077C
2223 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2225 #define REG_BT__STATUS_RPT 0x077D
2226 #define REG_BT_DATA 0x0780
2231 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2233 #define REG_BT_INTERRUPT_CONTROL_REGISTER 0x0780
2238 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2240 #define REG_WLAN_RPT_ 0x0781
2241 #define REG_BT_ISR_CTRL 0x0783
2242 #define REG_WLAN_RPT_TO_CTR 0x0784
2247 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2249 #define REG_WLAN_REPORT_TIME_OUT_CONTROL_REGISTER 0x0784
2254 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2256 #define REG_BT_ISOLATION_TABLE 0x0785
2261 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2263 #define REG_BT_ISOLATION_TABLE_REGISTER_REGISTER 0x0785
2268 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2270 #define REG_BT_ISR_STA 0x078F
2275 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2277 #define REG_BT_INTERRUPT_STATUS_REGISTER 0x078F
2282 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2284 #define REG_TDMA_TIME_AND_RPT_SAM_SET 0x0790
2289 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2291 #define REG_BT_TDMA_TIME_REGISTER 0x0790
2296 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2298 #define REG_BT_CH_INFO 0x0794
2303 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2305 #define REG_BT_ACT_REGISTER 0x0794
2310 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2312 #define REG_BT_STATIC_INFO_EXT 0x0795
2313 #define REG_LTR_IDLE_LATENCY 0x0798
2318 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2320 #define REG_OBFF_CTRL_BASIC 0x0798
2325 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2327 #define REG_LTR_ACTIVE_LATENCY 0x079C
2332 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2334 #define REG_OBFF_CTRL2_TIMER 0x079C
2339 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2341 #define REG_OBFF_CTRL 0x07A0
2346 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2348 #define REG_LTR_CTRL_BASIC 0x07A0
2353 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2355 #define REG_LTR_CTRL 0x07A4
2360 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2362 #define REG_LTR_CTRL2_TIMER_THRESHOLD 0x07A4
2367 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2369 #define REG_LTR_CTRL2 0x07A8
2374 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2376 #define REG_LTR_IDLE_LATENCY_V1 0x07A8
2377 #define REG_LTR_ACTIVE_LATENCY_V1 0x07AC
2382 #if (HALMAC_8192E_SUPPORT || HALMAC_8881A_SUPPORT)
2384 #define REG_ANTTRN_CTRL 0x07B0
2389 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2391 #define REG_ANTENNA_TRAINING_CONTROL_REGISTER 0x07B0
2396 #if (HALMAC_8192E_SUPPORT || HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT || HALMAC_8881A_SUPPORT)
2398 #define REG_WMAC_PKTCNT_RWD 0x07B8
2399 #define REG_WMAC_PKTCNT_CTRL 0x07BC
2404 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2406 #define REG_IQ_DUMP 0x07C0
2411 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2413 #define REG_WMAC_FTM_CTL 0x07CC
2418 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2420 #define REG_WMAC_IQ_MDPK_FUNC 0x07CE
2425 #if (HALMAC_8197F_SUPPORT)
2427 #define REG_IQ_DUMP_EXT 0x07CF
2432 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT)
2434 #define REG_OFDM_CCK_LEN_MASK 0x07D0
2439 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2441 #define REG_WMAC_OPTION_FUNCTION 0x07D0
2446 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2448 #define REG_RX_FILTER_FUNCTION 0x07DA
2453 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2455 #define REG_NDP_SIG 0x07E0
2456 #define REG_TXCMD_INFO_FOR_RSP_PKT 0x07E4
2461 #if (HALMAC_8814AMP_SUPPORT)
2463 #define REG_SEC_OPT 0x07E8
2468 #if (HALMAC_8197F_SUPPORT)
2470 #define REG_SEC_OPT_V2 0x07EC
2475 #if (HALMAC_8821C_SUPPORT)
2477 #define REG_WSEC_OPTION 0x07EC
2482 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2484 #define REG_RTS_ADDRESS_0 0x07F0
2489 #if (HALMAC_8814AMP_SUPPORT)
2491 #define REG_RTS_ADDR0 0x07F0
2496 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2498 #define REG_RTS_ADDRESS_1 0x07F8
2503 #if (HALMAC_8814AMP_SUPPORT)
2505 #define REG_RTS_ADDR1 0x07F8
2510 #if (HALMAC_8822B_SUPPORT)
2512 #define REG__RPFM_MAP1 0x07FE
2517 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2519 #define REG_SYS_CFG3 0x1000
2520 #define REG_SYS_CFG4 0x1034
2525 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2527 #define REG_SYS_CFG5 0x1070
2532 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2534 #define REG_CPU_DMEM_CON 0x1080
2539 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2541 #define REG_BOOT_REASON 0x1088
2542 #define REG_NFCPAD_CTRL 0x10A8
2547 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2559 #if (HALMAC_8197F_SUPPORT)
2561 #define REG_DBG_GPIO_BMUX 0x10C8
2562 #define REG_FPGA_TAG 0x10CC
2563 #define REG_WL_DSS_CTRL0 0x10D0
2568 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2570 #define REG_H2C_PKT_READADDR 0x10D0
2571 #define REG_H2C_PKT_WRITEADDR 0x10D4
2576 #if (HALMAC_8197F_SUPPORT)
2578 #define REG_WL_DSS_CTRL1 0x10D8
2583 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2585 #define REG_MEM_PWR_CRTL 0x10D8
2590 #if (HALMAC_8197F_SUPPORT)
2592 #define REG_WL_DSS_STATUS1 0x10DC
2597 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2613 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2615 #define REG_RXFF_PTR_V1 0x1118
2616 #define REG_RXFF_WTR_V1 0x111C
2621 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2640 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2642 #define REG_TC7_CTRL_V1 0x1158
2643 #define REG_TC8_CTRL_V1 0x115C
2648 #if (HALMAC_8197F_SUPPORT)
2650 #define REG_RXBCN_TBTT_INTERVAL_PORT0TO3 0x1160
2651 #define REG_RXBCN_TBTT_INTERVAL_PORT4 0x1164
2656 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
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
2670 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
2672 #define REG_FT2IMR 0x11E0
2673 #define REG_FT2ISR 0x11E4
2678 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2710 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2724 #if (HALMAC_8197F_SUPPORT)
2726 #define REG_AXI_EXCEPT_CS 0x1350
2727 #define REG_AXI_EXCEPT_TIME 0x1354
2732 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2760 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2774 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
2776 #define REG_SHCUT_SETTING 0x1480
2781 #if (HALMAC_8822B_SUPPORT)
2783 #define REG_MACID_SHCUT_OFFSET 0x1480
2788 #if (HALMAC_8197F_SUPPORT || HALMAC_8814AMP_SUPPORT)
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
2800 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2810 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2825 #if (HALMAC_8197F_SUPPORT || HALMAC_8814A_SUPPORT || HALMAC_8814AMP_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2841 #if (HALMAC_8197F_SUPPORT || HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2854 #if (HALMAC_8821C_SUPPORT || HALMAC_8822B_SUPPORT)
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
2864 /* ----------------------------------------------------- */
2866 /* 0xFB00h ~ 0xFCFFh TX/RX packet buffer affress */
2868 /* ----------------------------------------------------- */
2869 #define REG_RXPKTBUF_STARTADDR 0xFB00
2870 #define REG_TXPKTBUF_STARTADDR 0xFC00
2872 /* ----------------------------------------------------- */
2874 /* 0xFD00h ~ 0xFDFFh 8051 CPU Local REG */
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 */
2889 #define REG_U3_STATE 0xFD48 /* (Read only) [7:4] : usb3 changed last state. [3:0] usb3 state */
2892 #define REG_OUTDATA0 0xFD50
2893 #define REG_OUTDATA1 0xFD54
2894 #define REG_OUTRDY 0xFD58 /* bit[0] : OutReady, bit[1] : OutEmptyIntEn */
2896 #define REG_INDATA0 0xFD60
2897 #define REG_INDATA1 0xFD64
2898 #define REG_INRDY 0xFD68 /* bit[0] : InReady, bit[1] : InRdyIntEn */
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.. */
2913 /* ----------------------------------------------------- */
2915 /* 0xFE00h ~ 0xFEFFh USB Configuration */
2917 /* ----------------------------------------------------- */
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
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
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
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
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
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 */
2982 #define REG_USB_ALTERNATE_SETTING 0xFE4F
2983 #define REG_USB_INT_BINTERVAL 0xFE6E
2984 #define REG_USB_GPS_EP_CONFIG 0xFE6D
2986 #endif /* __HALMAC_COM_REG_H__ */