18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* Copyright(c) 2009-2012 Realtek Corporation.*/ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __RTL8723E_REG_H__ 58c2ecf20Sopenharmony_ci#define __RTL8723E_REG_H__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#define REG_SYS_ISO_CTRL 0x0000 88c2ecf20Sopenharmony_ci#define REG_SYS_FUNC_EN 0x0002 98c2ecf20Sopenharmony_ci#define REG_APS_FSMCO 0x0004 108c2ecf20Sopenharmony_ci#define REG_SYS_CLKR 0x0008 118c2ecf20Sopenharmony_ci#define REG_9346CR 0x000A 128c2ecf20Sopenharmony_ci#define REG_EE_VPD 0x000C 138c2ecf20Sopenharmony_ci#define REG_AFE_MISC 0x0010 148c2ecf20Sopenharmony_ci#define REG_SPS0_CTRL 0x0011 158c2ecf20Sopenharmony_ci#define REG_SPS_OCP_CFG 0x0018 168c2ecf20Sopenharmony_ci#define REG_RSV_CTRL 0x001C 178c2ecf20Sopenharmony_ci#define REG_RF_CTRL 0x001F 188c2ecf20Sopenharmony_ci#define REG_LDOA15_CTRL 0x0020 198c2ecf20Sopenharmony_ci#define REG_LDOV12D_CTRL 0x0021 208c2ecf20Sopenharmony_ci#define REG_LDOHCI12_CTRL 0x0022 218c2ecf20Sopenharmony_ci#define REG_LPLDO_CTRL 0x0023 228c2ecf20Sopenharmony_ci#define REG_AFE_XTAL_CTRL 0x0024 238c2ecf20Sopenharmony_ci#define REG_AFE_PLL_CTRL 0x0028 248c2ecf20Sopenharmony_ci#define REG_EFUSE_CTRL 0x0030 258c2ecf20Sopenharmony_ci#define REG_EFUSE_TEST 0x0034 268c2ecf20Sopenharmony_ci#define REG_PWR_DATA 0x0038 278c2ecf20Sopenharmony_ci#define REG_CAL_TIMER 0x003C 288c2ecf20Sopenharmony_ci#define REG_ACLK_MON 0x003E 298c2ecf20Sopenharmony_ci#define REG_GPIO_MUXCFG 0x0040 308c2ecf20Sopenharmony_ci#define REG_GPIO_IO_SEL 0x0042 318c2ecf20Sopenharmony_ci#define REG_MAC_PINMUX_CFG 0x0043 328c2ecf20Sopenharmony_ci#define REG_GPIO_PIN_CTRL 0x0044 338c2ecf20Sopenharmony_ci#define REG_GPIO_INTM 0x0048 348c2ecf20Sopenharmony_ci#define REG_LEDCFG0 0x004C 358c2ecf20Sopenharmony_ci#define REG_LEDCFG1 0x004D 368c2ecf20Sopenharmony_ci#define REG_LEDCFG2 0x004E 378c2ecf20Sopenharmony_ci#define REG_LEDCFG3 0x004F 388c2ecf20Sopenharmony_ci#define REG_FSIMR 0x0050 398c2ecf20Sopenharmony_ci#define REG_FSISR 0x0054 408c2ecf20Sopenharmony_ci#define REG_GPIO_PIN_CTRL_2 0x0060 418c2ecf20Sopenharmony_ci#define REG_GPIO_IO_SEL_2 0x0062 428c2ecf20Sopenharmony_ci#define REG_MULTI_FUNC_CTRL 0x0068 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define REG_MCUFWDL 0x0080 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#define REG_HMEBOX_EXT_0 0x0088 478c2ecf20Sopenharmony_ci#define REG_HMEBOX_EXT_1 0x008A 488c2ecf20Sopenharmony_ci#define REG_HMEBOX_EXT_2 0x008C 498c2ecf20Sopenharmony_ci#define REG_HMEBOX_EXT_3 0x008E 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci#define REG_BIST_SCAN 0x00D0 528c2ecf20Sopenharmony_ci#define REG_BIST_RPT 0x00D4 538c2ecf20Sopenharmony_ci#define REG_BIST_ROM_RPT 0x00D8 548c2ecf20Sopenharmony_ci#define REG_USB_SIE_INTF 0x00E0 558c2ecf20Sopenharmony_ci#define REG_PCIE_MIO_INTF 0x00E4 568c2ecf20Sopenharmony_ci#define REG_PCIE_MIO_INTD 0x00E8 578c2ecf20Sopenharmony_ci#define REG_SYS_CFG 0x00F0 588c2ecf20Sopenharmony_ci#define REG_GPIO_OUTSTS 0x00F4 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci#define REG_CR 0x0100 618c2ecf20Sopenharmony_ci#define REG_PBP 0x0104 628c2ecf20Sopenharmony_ci#define REG_TRXDMA_CTRL 0x010C 638c2ecf20Sopenharmony_ci#define REG_TRXFF_BNDY 0x0114 648c2ecf20Sopenharmony_ci#define REG_TRXFF_STATUS 0x0118 658c2ecf20Sopenharmony_ci#define REG_RXFF_PTR 0x011C 668c2ecf20Sopenharmony_ci#define REG_HIMR 0x0120 678c2ecf20Sopenharmony_ci#define REG_HISR 0x0124 688c2ecf20Sopenharmony_ci#define REG_HIMRE 0x0128 698c2ecf20Sopenharmony_ci#define REG_HISRE 0x012C 708c2ecf20Sopenharmony_ci#define REG_CPWM 0x012F 718c2ecf20Sopenharmony_ci#define REG_FWIMR 0x0130 728c2ecf20Sopenharmony_ci#define REG_FWISR 0x0134 738c2ecf20Sopenharmony_ci#define REG_PKTBUF_DBG_CTRL 0x0140 748c2ecf20Sopenharmony_ci#define REG_PKTBUF_DBG_DATA_L 0x0144 758c2ecf20Sopenharmony_ci#define REG_PKTBUF_DBG_DATA_H 0x0148 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci#define REG_TC0_CTRL 0x0150 788c2ecf20Sopenharmony_ci#define REG_TC1_CTRL 0x0154 798c2ecf20Sopenharmony_ci#define REG_TC2_CTRL 0x0158 808c2ecf20Sopenharmony_ci#define REG_TC3_CTRL 0x015C 818c2ecf20Sopenharmony_ci#define REG_TC4_CTRL 0x0160 828c2ecf20Sopenharmony_ci#define REG_TCUNIT_BASE 0x0164 838c2ecf20Sopenharmony_ci#define REG_MBIST_START 0x0174 848c2ecf20Sopenharmony_ci#define REG_MBIST_DONE 0x0178 858c2ecf20Sopenharmony_ci#define REG_MBIST_FAIL 0x017C 868c2ecf20Sopenharmony_ci#define REG_C2HEVT_MSG_NORMAL 0x01A0 878c2ecf20Sopenharmony_ci#define REG_C2HEVT_MSG_TEST 0x01B8 888c2ecf20Sopenharmony_ci#define REG_MCUTST_1 0x01c0 898c2ecf20Sopenharmony_ci#define REG_FMETHR 0x01C8 908c2ecf20Sopenharmony_ci#define REG_HMETFR 0x01CC 918c2ecf20Sopenharmony_ci#define REG_HMEBOX_0 0x01D0 928c2ecf20Sopenharmony_ci#define REG_HMEBOX_1 0x01D4 938c2ecf20Sopenharmony_ci#define REG_HMEBOX_2 0x01D8 948c2ecf20Sopenharmony_ci#define REG_HMEBOX_3 0x01DC 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci#define REG_LLT_INIT 0x01E0 978c2ecf20Sopenharmony_ci#define REG_BB_ACCEESS_CTRL 0x01E8 988c2ecf20Sopenharmony_ci#define REG_BB_ACCESS_DATA 0x01EC 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_ci#define REG_RQPN 0x0200 1018c2ecf20Sopenharmony_ci#define REG_FIFOPAGE 0x0204 1028c2ecf20Sopenharmony_ci#define REG_TDECTRL 0x0208 1038c2ecf20Sopenharmony_ci#define REG_TXDMA_OFFSET_CHK 0x020C 1048c2ecf20Sopenharmony_ci#define REG_TXDMA_STATUS 0x0210 1058c2ecf20Sopenharmony_ci#define REG_RQPN_NPQ 0x0214 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci#define REG_RXDMA_AGG_PG_TH 0x0280 1088c2ecf20Sopenharmony_ci#define REG_RXPKT_NUM 0x0284 1098c2ecf20Sopenharmony_ci#define REG_RXDMA_STATUS 0x0288 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci#define REG_PCIE_CTRL_REG 0x0300 1128c2ecf20Sopenharmony_ci#define REG_INT_MIG 0x0304 1138c2ecf20Sopenharmony_ci#define REG_BCNQ_DESA 0x0308 1148c2ecf20Sopenharmony_ci#define REG_HQ_DESA 0x0310 1158c2ecf20Sopenharmony_ci#define REG_MGQ_DESA 0x0318 1168c2ecf20Sopenharmony_ci#define REG_VOQ_DESA 0x0320 1178c2ecf20Sopenharmony_ci#define REG_VIQ_DESA 0x0328 1188c2ecf20Sopenharmony_ci#define REG_BEQ_DESA 0x0330 1198c2ecf20Sopenharmony_ci#define REG_BKQ_DESA 0x0338 1208c2ecf20Sopenharmony_ci#define REG_RX_DESA 0x0340 1218c2ecf20Sopenharmony_ci#define REG_DBI 0x0348 1228c2ecf20Sopenharmony_ci#define REG_MDIO 0x0354 1238c2ecf20Sopenharmony_ci#define REG_DBG_SEL 0x0360 1248c2ecf20Sopenharmony_ci#define REG_PCIE_HRPWM 0x0361 1258c2ecf20Sopenharmony_ci#define REG_PCIE_HCPWM 0x0363 1268c2ecf20Sopenharmony_ci#define REG_UART_CTRL 0x0364 1278c2ecf20Sopenharmony_ci#define REG_UART_TX_DESA 0x0370 1288c2ecf20Sopenharmony_ci#define REG_UART_RX_DESA 0x0378 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ci#define REG_HDAQ_DESA_NODEF 0x0000 1318c2ecf20Sopenharmony_ci#define REG_CMDQ_DESA_NODEF 0x0000 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci#define REG_VOQ_INFORMATION 0x0400 1348c2ecf20Sopenharmony_ci#define REG_VIQ_INFORMATION 0x0404 1358c2ecf20Sopenharmony_ci#define REG_BEQ_INFORMATION 0x0408 1368c2ecf20Sopenharmony_ci#define REG_BKQ_INFORMATION 0x040C 1378c2ecf20Sopenharmony_ci#define REG_MGQ_INFORMATION 0x0410 1388c2ecf20Sopenharmony_ci#define REG_HGQ_INFORMATION 0x0414 1398c2ecf20Sopenharmony_ci#define REG_BCNQ_INFORMATION 0x0418 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ci#define REG_CPU_MGQ_INFORMATION 0x041C 1428c2ecf20Sopenharmony_ci#define REG_FWHW_TXQ_CTRL 0x0420 1438c2ecf20Sopenharmony_ci#define REG_HWSEQ_CTRL 0x0423 1448c2ecf20Sopenharmony_ci#define REG_TXPKTBUF_BCNQ_BDNY 0x0424 1458c2ecf20Sopenharmony_ci#define REG_TXPKTBUF_MGQ_BDNY 0x0425 1468c2ecf20Sopenharmony_ci#define REG_MULTI_BCNQ_EN 0x0426 1478c2ecf20Sopenharmony_ci#define REG_MULTI_BCNQ_OFFSET 0x0427 1488c2ecf20Sopenharmony_ci#define REG_SPEC_SIFS 0x0428 1498c2ecf20Sopenharmony_ci#define REG_RL 0x042A 1508c2ecf20Sopenharmony_ci#define REG_DARFRC 0x0430 1518c2ecf20Sopenharmony_ci#define REG_RARFRC 0x0438 1528c2ecf20Sopenharmony_ci#define REG_RRSR 0x0440 1538c2ecf20Sopenharmony_ci#define REG_ARFR0 0x0444 1548c2ecf20Sopenharmony_ci#define REG_ARFR1 0x0448 1558c2ecf20Sopenharmony_ci#define REG_ARFR2 0x044C 1568c2ecf20Sopenharmony_ci#define REG_ARFR3 0x0450 1578c2ecf20Sopenharmony_ci#define REG_AGGLEN_LMT 0x0458 1588c2ecf20Sopenharmony_ci#define REG_AMPDU_MIN_SPACE 0x045C 1598c2ecf20Sopenharmony_ci#define REG_TXPKTBUF_WMAC_LBK_BF_HD 0x045D 1608c2ecf20Sopenharmony_ci#define REG_FAST_EDCA_CTRL 0x0460 1618c2ecf20Sopenharmony_ci#define REG_RD_RESP_PKT_TH 0x0463 1628c2ecf20Sopenharmony_ci#define REG_INIRTS_RATE_SEL 0x0480 1638c2ecf20Sopenharmony_ci#define REG_INIDATA_RATE_SEL 0x0484 1648c2ecf20Sopenharmony_ci#define REG_POWER_STATUS 0x04A4 1658c2ecf20Sopenharmony_ci#define REG_POWER_STAGE1 0x04B4 1668c2ecf20Sopenharmony_ci#define REG_POWER_STAGE2 0x04B8 1678c2ecf20Sopenharmony_ci#define REG_PKT_LIFE_TIME 0x04C0 1688c2ecf20Sopenharmony_ci#define REG_STBC_SETTING 0x04C4 1698c2ecf20Sopenharmony_ci#define REG_PROT_MODE_CTRL 0x04C8 1708c2ecf20Sopenharmony_ci#define REG_BAR_MODE_CTRL 0x04CC 1718c2ecf20Sopenharmony_ci#define REG_RA_TRY_RATE_AGG_LMT 0x04CF 1728c2ecf20Sopenharmony_ci#define REG_NQOS_SEQ 0x04DC 1738c2ecf20Sopenharmony_ci#define REG_QOS_SEQ 0x04DE 1748c2ecf20Sopenharmony_ci#define REG_NEED_CPU_HANDLE 0x04E0 1758c2ecf20Sopenharmony_ci#define REG_PKT_LOSE_RPT 0x04E1 1768c2ecf20Sopenharmony_ci#define REG_PTCL_ERR_STATUS 0x04E2 1778c2ecf20Sopenharmony_ci#define REG_DUMMY 0x04FC 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ci#define REG_EDCA_VO_PARAM 0x0500 1808c2ecf20Sopenharmony_ci#define REG_EDCA_VI_PARAM 0x0504 1818c2ecf20Sopenharmony_ci#define REG_EDCA_BE_PARAM 0x0508 1828c2ecf20Sopenharmony_ci#define REG_EDCA_BK_PARAM 0x050C 1838c2ecf20Sopenharmony_ci#define REG_BCNTCFG 0x0510 1848c2ecf20Sopenharmony_ci#define REG_PIFS 0x0512 1858c2ecf20Sopenharmony_ci#define REG_RDG_PIFS 0x0513 1868c2ecf20Sopenharmony_ci#define REG_SIFS_CTX 0x0514 1878c2ecf20Sopenharmony_ci#define REG_SIFS_TRX 0x0516 1888c2ecf20Sopenharmony_ci#define REG_AGGR_BREAK_TIME 0x051A 1898c2ecf20Sopenharmony_ci#define REG_SLOT 0x051B 1908c2ecf20Sopenharmony_ci#define REG_TX_PTCL_CTRL 0x0520 1918c2ecf20Sopenharmony_ci#define REG_TXPAUSE 0x0522 1928c2ecf20Sopenharmony_ci#define REG_DIS_TXREQ_CLR 0x0523 1938c2ecf20Sopenharmony_ci#define REG_RD_CTRL 0x0524 1948c2ecf20Sopenharmony_ci#define REG_TBTT_PROHIBIT 0x0540 1958c2ecf20Sopenharmony_ci#define REG_RD_NAV_NXT 0x0544 1968c2ecf20Sopenharmony_ci#define REG_NAV_PROT_LEN 0x0546 1978c2ecf20Sopenharmony_ci#define REG_BCN_CTRL 0x0550 1988c2ecf20Sopenharmony_ci#define REG_MBID_NUM 0x0552 1998c2ecf20Sopenharmony_ci#define REG_DUAL_TSF_RST 0x0553 2008c2ecf20Sopenharmony_ci#define REG_BCN_INTERVAL 0x0554 2018c2ecf20Sopenharmony_ci#define REG_MBSSID_BCN_SPACE 0x0554 2028c2ecf20Sopenharmony_ci#define REG_DRVERLYINT 0x0558 2038c2ecf20Sopenharmony_ci#define REG_BCNDMATIM 0x0559 2048c2ecf20Sopenharmony_ci#define REG_ATIMWND 0x055A 2058c2ecf20Sopenharmony_ci#define REG_USTIME_TSF 0x055C 2068c2ecf20Sopenharmony_ci#define REG_BCN_MAX_ERR 0x055D 2078c2ecf20Sopenharmony_ci#define REG_RXTSF_OFFSET_CCK 0x055E 2088c2ecf20Sopenharmony_ci#define REG_RXTSF_OFFSET_OFDM 0x055F 2098c2ecf20Sopenharmony_ci#define REG_TSFTR 0x0560 2108c2ecf20Sopenharmony_ci#define REG_INIT_TSFTR 0x0564 2118c2ecf20Sopenharmony_ci#define REG_PSTIMER 0x0580 2128c2ecf20Sopenharmony_ci#define REG_TIMER0 0x0584 2138c2ecf20Sopenharmony_ci#define REG_TIMER1 0x0588 2148c2ecf20Sopenharmony_ci#define REG_ACMHWCTRL 0x05C0 2158c2ecf20Sopenharmony_ci#define REG_ACMRSTCTRL 0x05C1 2168c2ecf20Sopenharmony_ci#define REG_ACMAVG 0x05C2 2178c2ecf20Sopenharmony_ci#define REG_VO_ADMTIME 0x05C4 2188c2ecf20Sopenharmony_ci#define REG_VI_ADMTIME 0x05C6 2198c2ecf20Sopenharmony_ci#define REG_BE_ADMTIME 0x05C8 2208c2ecf20Sopenharmony_ci#define REG_EDCA_RANDOM_GEN 0x05CC 2218c2ecf20Sopenharmony_ci#define REG_SCH_TXCMD 0x05D0 2228c2ecf20Sopenharmony_ci 2238c2ecf20Sopenharmony_ci#define REG_APSD_CTRL 0x0600 2248c2ecf20Sopenharmony_ci#define REG_BWOPMODE 0x0603 2258c2ecf20Sopenharmony_ci#define REG_TCR 0x0604 2268c2ecf20Sopenharmony_ci#define REG_RCR 0x0608 2278c2ecf20Sopenharmony_ci#define REG_RX_PKT_LIMIT 0x060C 2288c2ecf20Sopenharmony_ci#define REG_RX_DLK_TIME 0x060D 2298c2ecf20Sopenharmony_ci#define REG_RX_DRVINFO_SZ 0x060F 2308c2ecf20Sopenharmony_ci 2318c2ecf20Sopenharmony_ci#define REG_MACID 0x0610 2328c2ecf20Sopenharmony_ci#define REG_BSSID 0x0618 2338c2ecf20Sopenharmony_ci#define REG_MAR 0x0620 2348c2ecf20Sopenharmony_ci#define REG_MBIDCAMCFG 0x0628 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_ci#define REG_USTIME_EDCA 0x0638 2378c2ecf20Sopenharmony_ci#define REG_MAC_SPEC_SIFS 0x063A 2388c2ecf20Sopenharmony_ci#define REG_RESP_SIFS_CCK 0x063C 2398c2ecf20Sopenharmony_ci#define REG_RESP_SIFS_OFDM 0x063E 2408c2ecf20Sopenharmony_ci#define REG_ACKTO 0x0640 2418c2ecf20Sopenharmony_ci#define REG_CTS2TO 0x0641 2428c2ecf20Sopenharmony_ci#define REG_EIFS 0x0642 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci#define REG_NAV_CTRL 0x0650 2458c2ecf20Sopenharmony_ci#define REG_BACAMCMD 0x0654 2468c2ecf20Sopenharmony_ci#define REG_BACAMCONTENT 0x0658 2478c2ecf20Sopenharmony_ci#define REG_LBDLY 0x0660 2488c2ecf20Sopenharmony_ci#define REG_FWDLY 0x0661 2498c2ecf20Sopenharmony_ci#define REG_RXERR_RPT 0x0664 2508c2ecf20Sopenharmony_ci#define REG_WMAC_TRXPTCL_CTL 0x0668 2518c2ecf20Sopenharmony_ci 2528c2ecf20Sopenharmony_ci#define REG_CAMCMD 0x0670 2538c2ecf20Sopenharmony_ci#define REG_CAMWRITE 0x0674 2548c2ecf20Sopenharmony_ci#define REG_CAMREAD 0x0678 2558c2ecf20Sopenharmony_ci#define REG_CAMDBG 0x067C 2568c2ecf20Sopenharmony_ci#define REG_SECCFG 0x0680 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_ci#define REG_WOW_CTRL 0x0690 2598c2ecf20Sopenharmony_ci#define REG_PSSTATUS 0x0691 2608c2ecf20Sopenharmony_ci#define REG_PS_RX_INFO 0x0692 2618c2ecf20Sopenharmony_ci#define REG_LPNAV_CTRL 0x0694 2628c2ecf20Sopenharmony_ci#define REG_WKFMCAM_CMD 0x0698 2638c2ecf20Sopenharmony_ci#define REG_WKFMCAM_RWD 0x069C 2648c2ecf20Sopenharmony_ci#define REG_RXFLTMAP0 0x06A0 2658c2ecf20Sopenharmony_ci#define REG_RXFLTMAP1 0x06A2 2668c2ecf20Sopenharmony_ci#define REG_RXFLTMAP2 0x06A4 2678c2ecf20Sopenharmony_ci#define REG_BCN_PSR_RPT 0x06A8 2688c2ecf20Sopenharmony_ci#define REG_CALB32K_CTRL 0x06AC 2698c2ecf20Sopenharmony_ci#define REG_PKT_MON_CTRL 0x06B4 2708c2ecf20Sopenharmony_ci#define REG_BT_COEX_TABLE 0x06C0 2718c2ecf20Sopenharmony_ci#define REG_WMAC_RESP_TXINFO 0x06D8 2728c2ecf20Sopenharmony_ci 2738c2ecf20Sopenharmony_ci#define REG_USB_INFO 0xFE17 2748c2ecf20Sopenharmony_ci#define REG_USB_SPECIAL_OPTION 0xFE55 2758c2ecf20Sopenharmony_ci#define REG_USB_DMA_AGG_TO 0xFE5B 2768c2ecf20Sopenharmony_ci#define REG_USB_AGG_TO 0xFE5C 2778c2ecf20Sopenharmony_ci#define REG_USB_AGG_TH 0xFE5D 2788c2ecf20Sopenharmony_ci 2798c2ecf20Sopenharmony_ci#define REG_TEST_USB_TXQS 0xFE48 2808c2ecf20Sopenharmony_ci#define REG_TEST_SIE_VID 0xFE60 2818c2ecf20Sopenharmony_ci#define REG_TEST_SIE_PID 0xFE62 2828c2ecf20Sopenharmony_ci#define REG_TEST_SIE_OPTIONAL 0xFE64 2838c2ecf20Sopenharmony_ci#define REG_TEST_SIE_CHIRP_K 0xFE65 2848c2ecf20Sopenharmony_ci#define REG_TEST_SIE_PHY 0xFE66 2858c2ecf20Sopenharmony_ci#define REG_TEST_SIE_MAC_ADDR 0xFE70 2868c2ecf20Sopenharmony_ci#define REG_TEST_SIE_STRING 0xFE80 2878c2ecf20Sopenharmony_ci 2888c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_VID 0xFE60 2898c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_PID 0xFE62 2908c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_OPTIONAL 0xFE64 2918c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_EP 0xFE65 2928c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_PHY 0xFE68 2938c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_MAC_ADDR 0xFE70 2948c2ecf20Sopenharmony_ci#define REG_NORMAL_SIE_STRING 0xFE80 2958c2ecf20Sopenharmony_ci 2968c2ecf20Sopenharmony_ci#define CR9346 REG_9346CR 2978c2ecf20Sopenharmony_ci#define MSR (REG_CR + 2) 2988c2ecf20Sopenharmony_ci#define ISR REG_HISR 2998c2ecf20Sopenharmony_ci#define TSFR REG_TSFTR 3008c2ecf20Sopenharmony_ci 3018c2ecf20Sopenharmony_ci#define MACIDR0 REG_MACID 3028c2ecf20Sopenharmony_ci#define MACIDR4 (REG_MACID + 4) 3038c2ecf20Sopenharmony_ci 3048c2ecf20Sopenharmony_ci#define PBP REG_PBP 3058c2ecf20Sopenharmony_ci 3068c2ecf20Sopenharmony_ci#define IDR0 MACIDR0 3078c2ecf20Sopenharmony_ci#define IDR4 MACIDR4 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_ci#define UNUSED_REGISTER 0x1BF 3108c2ecf20Sopenharmony_ci#define DCAM UNUSED_REGISTER 3118c2ecf20Sopenharmony_ci#define PSR UNUSED_REGISTER 3128c2ecf20Sopenharmony_ci#define BBADDR UNUSED_REGISTER 3138c2ecf20Sopenharmony_ci#define PHYDATAR UNUSED_REGISTER 3148c2ecf20Sopenharmony_ci 3158c2ecf20Sopenharmony_ci#define INVALID_BBRF_VALUE 0x12345678 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_ci#define MAX_MSS_DENSITY_2T 0x13 3188c2ecf20Sopenharmony_ci#define MAX_MSS_DENSITY_1T 0x0A 3198c2ecf20Sopenharmony_ci 3208c2ecf20Sopenharmony_ci#define CMDEEPROM_EN BIT(5) 3218c2ecf20Sopenharmony_ci#define CMDEEPROM_SEL BIT(4) 3228c2ecf20Sopenharmony_ci#define CMD9346CR_9356SEL BIT(4) 3238c2ecf20Sopenharmony_ci#define AUTOLOAD_EEPROM (CMDEEPROM_EN|CMDEEPROM_SEL) 3248c2ecf20Sopenharmony_ci#define AUTOLOAD_EFUSE CMDEEPROM_EN 3258c2ecf20Sopenharmony_ci 3268c2ecf20Sopenharmony_ci#define GPIOSEL_GPIO 0 3278c2ecf20Sopenharmony_ci#define GPIOSEL_ENBT BIT(5) 3288c2ecf20Sopenharmony_ci 3298c2ecf20Sopenharmony_ci#define GPIO_IN REG_GPIO_PIN_CTRL 3308c2ecf20Sopenharmony_ci#define GPIO_OUT (REG_GPIO_PIN_CTRL+1) 3318c2ecf20Sopenharmony_ci#define GPIO_IO_SEL (REG_GPIO_PIN_CTRL+2) 3328c2ecf20Sopenharmony_ci#define GPIO_MOD (REG_GPIO_PIN_CTRL+3) 3338c2ecf20Sopenharmony_ci 3348c2ecf20Sopenharmony_ci#define MSR_NOLINK 0x00 3358c2ecf20Sopenharmony_ci#define MSR_ADHOC 0x01 3368c2ecf20Sopenharmony_ci#define MSR_INFRA 0x02 3378c2ecf20Sopenharmony_ci#define MSR_AP 0x03 3388c2ecf20Sopenharmony_ci 3398c2ecf20Sopenharmony_ci#define RRSR_RSC_OFFSET 21 3408c2ecf20Sopenharmony_ci#define RRSR_SHORT_OFFSET 23 3418c2ecf20Sopenharmony_ci#define RRSR_RSC_BW_40M 0x600000 3428c2ecf20Sopenharmony_ci#define RRSR_RSC_UPSUBCHNL 0x400000 3438c2ecf20Sopenharmony_ci#define RRSR_RSC_LOWSUBCHNL 0x200000 3448c2ecf20Sopenharmony_ci#define RRSR_SHORT 0x800000 3458c2ecf20Sopenharmony_ci#define RRSR_1M BIT(0) 3468c2ecf20Sopenharmony_ci#define RRSR_2M BIT(1) 3478c2ecf20Sopenharmony_ci#define RRSR_5_5M BIT(2) 3488c2ecf20Sopenharmony_ci#define RRSR_11M BIT(3) 3498c2ecf20Sopenharmony_ci#define RRSR_6M BIT(4) 3508c2ecf20Sopenharmony_ci#define RRSR_9M BIT(5) 3518c2ecf20Sopenharmony_ci#define RRSR_12M BIT(6) 3528c2ecf20Sopenharmony_ci#define RRSR_18M BIT(7) 3538c2ecf20Sopenharmony_ci#define RRSR_24M BIT(8) 3548c2ecf20Sopenharmony_ci#define RRSR_36M BIT(9) 3558c2ecf20Sopenharmony_ci#define RRSR_48M BIT(10) 3568c2ecf20Sopenharmony_ci#define RRSR_54M BIT(11) 3578c2ecf20Sopenharmony_ci#define RRSR_MCS0 BIT(12) 3588c2ecf20Sopenharmony_ci#define RRSR_MCS1 BIT(13) 3598c2ecf20Sopenharmony_ci#define RRSR_MCS2 BIT(14) 3608c2ecf20Sopenharmony_ci#define RRSR_MCS3 BIT(15) 3618c2ecf20Sopenharmony_ci#define RRSR_MCS4 BIT(16) 3628c2ecf20Sopenharmony_ci#define RRSR_MCS5 BIT(17) 3638c2ecf20Sopenharmony_ci#define RRSR_MCS6 BIT(18) 3648c2ecf20Sopenharmony_ci#define RRSR_MCS7 BIT(19) 3658c2ecf20Sopenharmony_ci#define BRSR_ACKSHORTPMB BIT(23) 3668c2ecf20Sopenharmony_ci 3678c2ecf20Sopenharmony_ci#define RATR_1M 0x00000001 3688c2ecf20Sopenharmony_ci#define RATR_2M 0x00000002 3698c2ecf20Sopenharmony_ci#define RATR_55M 0x00000004 3708c2ecf20Sopenharmony_ci#define RATR_11M 0x00000008 3718c2ecf20Sopenharmony_ci#define RATR_6M 0x00000010 3728c2ecf20Sopenharmony_ci#define RATR_9M 0x00000020 3738c2ecf20Sopenharmony_ci#define RATR_12M 0x00000040 3748c2ecf20Sopenharmony_ci#define RATR_18M 0x00000080 3758c2ecf20Sopenharmony_ci#define RATR_24M 0x00000100 3768c2ecf20Sopenharmony_ci#define RATR_36M 0x00000200 3778c2ecf20Sopenharmony_ci#define RATR_48M 0x00000400 3788c2ecf20Sopenharmony_ci#define RATR_54M 0x00000800 3798c2ecf20Sopenharmony_ci#define RATR_MCS0 0x00001000 3808c2ecf20Sopenharmony_ci#define RATR_MCS1 0x00002000 3818c2ecf20Sopenharmony_ci#define RATR_MCS2 0x00004000 3828c2ecf20Sopenharmony_ci#define RATR_MCS3 0x00008000 3838c2ecf20Sopenharmony_ci#define RATR_MCS4 0x00010000 3848c2ecf20Sopenharmony_ci#define RATR_MCS5 0x00020000 3858c2ecf20Sopenharmony_ci#define RATR_MCS6 0x00040000 3868c2ecf20Sopenharmony_ci#define RATR_MCS7 0x00080000 3878c2ecf20Sopenharmony_ci#define RATR_MCS8 0x00100000 3888c2ecf20Sopenharmony_ci#define RATR_MCS9 0x00200000 3898c2ecf20Sopenharmony_ci#define RATR_MCS10 0x00400000 3908c2ecf20Sopenharmony_ci#define RATR_MCS11 0x00800000 3918c2ecf20Sopenharmony_ci#define RATR_MCS12 0x01000000 3928c2ecf20Sopenharmony_ci#define RATR_MCS13 0x02000000 3938c2ecf20Sopenharmony_ci#define RATR_MCS14 0x04000000 3948c2ecf20Sopenharmony_ci#define RATR_MCS15 0x08000000 3958c2ecf20Sopenharmony_ci 3968c2ecf20Sopenharmony_ci#define RATE_1M BIT(0) 3978c2ecf20Sopenharmony_ci#define RATE_2M BIT(1) 3988c2ecf20Sopenharmony_ci#define RATE_5_5M BIT(2) 3998c2ecf20Sopenharmony_ci#define RATE_11M BIT(3) 4008c2ecf20Sopenharmony_ci#define RATE_6M BIT(4) 4018c2ecf20Sopenharmony_ci#define RATE_9M BIT(5) 4028c2ecf20Sopenharmony_ci#define RATE_12M BIT(6) 4038c2ecf20Sopenharmony_ci#define RATE_18M BIT(7) 4048c2ecf20Sopenharmony_ci#define RATE_24M BIT(8) 4058c2ecf20Sopenharmony_ci#define RATE_36M BIT(9) 4068c2ecf20Sopenharmony_ci#define RATE_48M BIT(10) 4078c2ecf20Sopenharmony_ci#define RATE_54M BIT(11) 4088c2ecf20Sopenharmony_ci#define RATE_MCS0 BIT(12) 4098c2ecf20Sopenharmony_ci#define RATE_MCS1 BIT(13) 4108c2ecf20Sopenharmony_ci#define RATE_MCS2 BIT(14) 4118c2ecf20Sopenharmony_ci#define RATE_MCS3 BIT(15) 4128c2ecf20Sopenharmony_ci#define RATE_MCS4 BIT(16) 4138c2ecf20Sopenharmony_ci#define RATE_MCS5 BIT(17) 4148c2ecf20Sopenharmony_ci#define RATE_MCS6 BIT(18) 4158c2ecf20Sopenharmony_ci#define RATE_MCS7 BIT(19) 4168c2ecf20Sopenharmony_ci#define RATE_MCS8 BIT(20) 4178c2ecf20Sopenharmony_ci#define RATE_MCS9 BIT(21) 4188c2ecf20Sopenharmony_ci#define RATE_MCS10 BIT(22) 4198c2ecf20Sopenharmony_ci#define RATE_MCS11 BIT(23) 4208c2ecf20Sopenharmony_ci#define RATE_MCS12 BIT(24) 4218c2ecf20Sopenharmony_ci#define RATE_MCS13 BIT(25) 4228c2ecf20Sopenharmony_ci#define RATE_MCS14 BIT(26) 4238c2ecf20Sopenharmony_ci#define RATE_MCS15 BIT(27) 4248c2ecf20Sopenharmony_ci 4258c2ecf20Sopenharmony_ci#define RATE_ALL_CCK (RATR_1M | RATR_2M | RATR_55M | RATR_11M) 4268c2ecf20Sopenharmony_ci#define RATE_ALL_OFDM_AG (RATR_6M | RATR_9M | RATR_12M | RATR_18M |\ 4278c2ecf20Sopenharmony_ci RATR_24M | RATR_36M | RATR_48M | RATR_54M) 4288c2ecf20Sopenharmony_ci#define RATE_ALL_OFDM_1SS (RATR_MCS0 | RATR_MCS1 | RATR_MCS2 |\ 4298c2ecf20Sopenharmony_ci RATR_MCS3 | RATR_MCS4 | RATR_MCS5 |\ 4308c2ecf20Sopenharmony_ci RATR_MCS6 | RATR_MCS7) 4318c2ecf20Sopenharmony_ci#define RATE_ALL_OFDM_2SS (RATR_MCS8 | RATR_MCS9 | RATR_MCS10 |\ 4328c2ecf20Sopenharmony_ci RATR_MCS11 | RATR_MCS12 | RATR_MCS13 |\ 4338c2ecf20Sopenharmony_ci RATR_MCS14 | RATR_MCS15) 4348c2ecf20Sopenharmony_ci 4358c2ecf20Sopenharmony_ci#define BW_OPMODE_20MHZ BIT(2) 4368c2ecf20Sopenharmony_ci#define BW_OPMODE_5G BIT(1) 4378c2ecf20Sopenharmony_ci#define BW_OPMODE_11J BIT(0) 4388c2ecf20Sopenharmony_ci 4398c2ecf20Sopenharmony_ci#define CAM_VALID BIT(15) 4408c2ecf20Sopenharmony_ci#define CAM_NOTVALID 0x0000 4418c2ecf20Sopenharmony_ci#define CAM_USEDK BIT(5) 4428c2ecf20Sopenharmony_ci 4438c2ecf20Sopenharmony_ci#define CAM_NONE 0x0 4448c2ecf20Sopenharmony_ci#define CAM_WEP40 0x01 4458c2ecf20Sopenharmony_ci#define CAM_TKIP 0x02 4468c2ecf20Sopenharmony_ci#define CAM_AES 0x04 4478c2ecf20Sopenharmony_ci#define CAM_WEP104 0x05 4488c2ecf20Sopenharmony_ci 4498c2ecf20Sopenharmony_ci#define TOTAL_CAM_ENTRY 32 4508c2ecf20Sopenharmony_ci#define HALF_CAM_ENTRY 16 4518c2ecf20Sopenharmony_ci 4528c2ecf20Sopenharmony_ci#define CAM_WRITE BIT(16) 4538c2ecf20Sopenharmony_ci#define CAM_READ 0x00000000 4548c2ecf20Sopenharmony_ci#define CAM_POLLINIG BIT(31) 4558c2ecf20Sopenharmony_ci 4568c2ecf20Sopenharmony_ci#define SCR_USEDK 0x01 4578c2ecf20Sopenharmony_ci#define SCR_TXSEC_ENABLE 0x02 4588c2ecf20Sopenharmony_ci#define SCR_RXSEC_ENABLE 0x04 4598c2ecf20Sopenharmony_ci 4608c2ecf20Sopenharmony_ci#define WOW_PMEN BIT(0) 4618c2ecf20Sopenharmony_ci#define WOW_WOMEN BIT(1) 4628c2ecf20Sopenharmony_ci#define WOW_MAGIC BIT(2) 4638c2ecf20Sopenharmony_ci#define WOW_UWF BIT(3) 4648c2ecf20Sopenharmony_ci 4658c2ecf20Sopenharmony_ci#define IMR8190_DISABLED 0x0 4668c2ecf20Sopenharmony_ci#define IMR_BCNDMAINT6 BIT(31) 4678c2ecf20Sopenharmony_ci#define IMR_BCNDMAINT5 BIT(30) 4688c2ecf20Sopenharmony_ci#define IMR_BCNDMAINT4 BIT(29) 4698c2ecf20Sopenharmony_ci#define IMR_BCNDMAINT3 BIT(28) 4708c2ecf20Sopenharmony_ci#define IMR_BCNDMAINT2 BIT(27) 4718c2ecf20Sopenharmony_ci#define IMR_BCNDMAINT1 BIT(26) 4728c2ecf20Sopenharmony_ci#define IMR_BCNDOK8 BIT(25) 4738c2ecf20Sopenharmony_ci#define IMR_BCNDOK7 BIT(24) 4748c2ecf20Sopenharmony_ci#define IMR_BCNDOK6 BIT(23) 4758c2ecf20Sopenharmony_ci#define IMR_BCNDOK5 BIT(22) 4768c2ecf20Sopenharmony_ci#define IMR_BCNDOK4 BIT(21) 4778c2ecf20Sopenharmony_ci#define IMR_BCNDOK3 BIT(20) 4788c2ecf20Sopenharmony_ci#define IMR_BCNDOK2 BIT(19) 4798c2ecf20Sopenharmony_ci#define IMR_BCNDOK1 BIT(18) 4808c2ecf20Sopenharmony_ci#define IMR_TIMEOUT2 BIT(17) 4818c2ecf20Sopenharmony_ci#define IMR_TIMEOUT1 BIT(16) 4828c2ecf20Sopenharmony_ci#define IMR_TXFOVW BIT(15) 4838c2ecf20Sopenharmony_ci#define IMR_PSTIMEOUT BIT(14) 4848c2ecf20Sopenharmony_ci#define IMR_BCNINT BIT(13) 4858c2ecf20Sopenharmony_ci#define IMR_RXFOVW BIT(12) 4868c2ecf20Sopenharmony_ci#define IMR_RDU BIT(11) 4878c2ecf20Sopenharmony_ci#define IMR_ATIMEND BIT(10) 4888c2ecf20Sopenharmony_ci#define IMR_BDOK BIT(9) 4898c2ecf20Sopenharmony_ci#define IMR_HIGHDOK BIT(8) 4908c2ecf20Sopenharmony_ci#define IMR_TBDOK BIT(7) 4918c2ecf20Sopenharmony_ci#define IMR_MGNTDOK BIT(6) 4928c2ecf20Sopenharmony_ci#define IMR_TBDER BIT(5) 4938c2ecf20Sopenharmony_ci#define IMR_BKDOK BIT(4) 4948c2ecf20Sopenharmony_ci#define IMR_BEDOK BIT(3) 4958c2ecf20Sopenharmony_ci#define IMR_VIDOK BIT(2) 4968c2ecf20Sopenharmony_ci#define IMR_VODOK BIT(1) 4978c2ecf20Sopenharmony_ci#define IMR_ROK BIT(0) 4988c2ecf20Sopenharmony_ci 4998c2ecf20Sopenharmony_ci#define IMR_TXERR BIT(11) 5008c2ecf20Sopenharmony_ci#define IMR_RXERR BIT(10) 5018c2ecf20Sopenharmony_ci#define IMR_CPWM BIT(8) 5028c2ecf20Sopenharmony_ci#define IMR_OCPINT BIT(1) 5038c2ecf20Sopenharmony_ci#define IMR_WLANOFF BIT(0) 5048c2ecf20Sopenharmony_ci 5058c2ecf20Sopenharmony_ci/* 8723E series PCIE Host IMR/ISR bit */ 5068c2ecf20Sopenharmony_ci/* IMR DW0 Bit 0-31 */ 5078c2ecf20Sopenharmony_ci#define PHIMR_TIMEOUT2 BIT(31) 5088c2ecf20Sopenharmony_ci#define PHIMR_TIMEOUT1 BIT(30) 5098c2ecf20Sopenharmony_ci#define PHIMR_PSTIMEOUT BIT(29) 5108c2ecf20Sopenharmony_ci#define PHIMR_GTINT4 BIT(28) 5118c2ecf20Sopenharmony_ci#define PHIMR_GTINT3 BIT(27) 5128c2ecf20Sopenharmony_ci#define PHIMR_TXBCNERR BIT(26) 5138c2ecf20Sopenharmony_ci#define PHIMR_TXBCNOK BIT(25) 5148c2ecf20Sopenharmony_ci#define PHIMR_TSF_BIT32_TOGGLE BIT(24) 5158c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT3 BIT(23) 5168c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT2 BIT(22) 5178c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT1 BIT(21) 5188c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT0 BIT(20) 5198c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK3 BIT(19) 5208c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK2 BIT(18) 5218c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK1 BIT(17) 5228c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK0 BIT(16) 5238c2ecf20Sopenharmony_ci#define PHIMR_HSISR_IND_ON BIT(15) 5248c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT_E BIT(14) 5258c2ecf20Sopenharmony_ci#define PHIMR_ATIMEND_E BIT(13) 5268c2ecf20Sopenharmony_ci#define PHIMR_ATIM_CTW_END BIT(12) 5278c2ecf20Sopenharmony_ci#define PHIMR_HISRE_IND BIT(11) 5288c2ecf20Sopenharmony_ci#define PHIMR_C2HCMD BIT(10) 5298c2ecf20Sopenharmony_ci#define PHIMR_CPWM2 BIT(9) 5308c2ecf20Sopenharmony_ci#define PHIMR_CPWM BIT(8) 5318c2ecf20Sopenharmony_ci#define PHIMR_HIGHDOK BIT(7) 5328c2ecf20Sopenharmony_ci#define PHIMR_MGNTDOK BIT(6) 5338c2ecf20Sopenharmony_ci#define PHIMR_BKDOK BIT(5) 5348c2ecf20Sopenharmony_ci#define PHIMR_BEDOK BIT(4) 5358c2ecf20Sopenharmony_ci#define PHIMR_VIDOK BIT(3) 5368c2ecf20Sopenharmony_ci#define PHIMR_VODOK BIT(2) 5378c2ecf20Sopenharmony_ci#define PHIMR_RDU BIT(1) 5388c2ecf20Sopenharmony_ci#define PHIMR_ROK BIT(0) 5398c2ecf20Sopenharmony_ci 5408c2ecf20Sopenharmony_ci/* PCIE Host Interrupt Status Extension bit */ 5418c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT7 BIT(23) 5428c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT6 BIT(22) 5438c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT5 BIT(21) 5448c2ecf20Sopenharmony_ci#define PHIMR_BCNDMAINT4 BIT(20) 5458c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK7 BIT(19) 5468c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK6 BIT(18) 5478c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK5 BIT(17) 5488c2ecf20Sopenharmony_ci#define PHIMR_BCNDOK4 BIT(16) 5498c2ecf20Sopenharmony_ci/* bit12-15: RSVD */ 5508c2ecf20Sopenharmony_ci#define PHIMR_TXERR BIT(11) 5518c2ecf20Sopenharmony_ci#define PHIMR_RXERR BIT(10) 5528c2ecf20Sopenharmony_ci#define PHIMR_TXFOVW BIT(9) 5538c2ecf20Sopenharmony_ci#define PHIMR_RXFOVW BIT(8) 5548c2ecf20Sopenharmony_ci/* bit2-7: RSVD */ 5558c2ecf20Sopenharmony_ci#define PHIMR_OCPINT BIT(1) 5568c2ecf20Sopenharmony_ci 5578c2ecf20Sopenharmony_ci#define HWSET_MAX_SIZE 256 5588c2ecf20Sopenharmony_ci#define EFUSE_MAX_SECTION 32 5598c2ecf20Sopenharmony_ci#define EFUSE_REAL_CONTENT_LEN 512 5608c2ecf20Sopenharmony_ci#define EFUSE_OOB_PROTECT_BYTES 15 5618c2ecf20Sopenharmony_ci 5628c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_TSSI 0x0 5638c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_TXPOWERDIFF 0x0 5648c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_CRYSTALCAP 0x5 5658c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_BOARDTYPE 0x02 5668c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_TXPOWER 0x1010 5678c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_HT2T_TXPWR 0x10 5688c2ecf20Sopenharmony_ci 5698c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_LEGACYHTTXPOWERDIFF 0x3 5708c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_THERMALMETER 0x12 5718c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_ANTTXPOWERDIFF 0x0 5728c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_TXPWDIFF_CRYSTALCAP 0x5 5738c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_TXPOWERLEVEL 0x22 5748c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_HT40_2SDIFF 0x0 5758c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_HT20_DIFF 2 5768c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_LEGACYHTTXPOWERDIFF 0x3 5778c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_HT40_PWRMAXOFFSET 0 5788c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_HT20_PWRMAXOFFSET 0 5798c2ecf20Sopenharmony_ci 5808c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_PID 0x1234 5818c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_VID 0x5678 5828c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_CUSTOMERID 0xAB 5838c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_SUBCUSTOMERID 0xCD 5848c2ecf20Sopenharmony_ci#define EEPROM_DEFAULT_VERSION 0 5858c2ecf20Sopenharmony_ci 5868c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_FCC 0x0 5878c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_IC 0x1 5888c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_ETSI 0x2 5898c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_SPAIN 0x3 5908c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_FRANCE 0x4 5918c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_MKK 0x5 5928c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_MKK1 0x6 5938c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_ISRAEL 0x7 5948c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_TELEC 0x8 5958c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9 5968c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA 5978c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_NCC 0xB 5988c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80 5998c2ecf20Sopenharmony_ci 6008c2ecf20Sopenharmony_ci#define EEPROM_CID_DEFAULT 0x0 6018c2ecf20Sopenharmony_ci#define EEPROM_CID_TOSHIBA 0x4 6028c2ecf20Sopenharmony_ci#define EEPROM_CID_CCX 0x10 6038c2ecf20Sopenharmony_ci#define EEPROM_CID_QMI 0x0D 6048c2ecf20Sopenharmony_ci#define EEPROM_CID_WHQL 0xFE 6058c2ecf20Sopenharmony_ci 6068c2ecf20Sopenharmony_ci#define RTL8192_EEPROM_ID 0x8129 6078c2ecf20Sopenharmony_ci 6088c2ecf20Sopenharmony_ci#define RTL8190_EEPROM_ID 0x8129 6098c2ecf20Sopenharmony_ci#define EEPROM_HPON 0x02 6108c2ecf20Sopenharmony_ci#define EEPROM_CLK 0x06 6118c2ecf20Sopenharmony_ci#define EEPROM_TESTR 0x08 6128c2ecf20Sopenharmony_ci 6138c2ecf20Sopenharmony_ci#define EEPROM_VID 0x49 6148c2ecf20Sopenharmony_ci#define EEPROM_DID 0x4B 6158c2ecf20Sopenharmony_ci#define EEPROM_SVID 0x4D 6168c2ecf20Sopenharmony_ci#define EEPROM_SMID 0x4F 6178c2ecf20Sopenharmony_ci 6188c2ecf20Sopenharmony_ci#define EEPROM_MAC_ADDR 0x67 6198c2ecf20Sopenharmony_ci 6208c2ecf20Sopenharmony_ci#define EEPROM_CCK_TX_PWR_INX 0x5A 6218c2ecf20Sopenharmony_ci#define EEPROM_HT40_1S_TX_PWR_INX 0x60 6228c2ecf20Sopenharmony_ci#define EEPROM_HT40_2S_TX_PWR_INX_DIFF 0x66 6238c2ecf20Sopenharmony_ci#define EEPROM_HT20_TX_PWR_INX_DIFF 0x69 6248c2ecf20Sopenharmony_ci#define EEPROM_OFDM_TX_PWR_INX_DIFF 0x6C 6258c2ecf20Sopenharmony_ci#define EEPROM_HT40_MAX_PWR_OFFSET 0x25 6268c2ecf20Sopenharmony_ci#define EEPROM_HT20_MAX_PWR_OFFSET 0x22 6278c2ecf20Sopenharmony_ci 6288c2ecf20Sopenharmony_ci#define EEPROM_THERMAL_METER 0x2a 6298c2ecf20Sopenharmony_ci#define EEPROM_XTAL_K 0x78 6308c2ecf20Sopenharmony_ci#define EEPROM_RF_OPT1 0x79 6318c2ecf20Sopenharmony_ci#define EEPROM_RF_OPT2 0x7A 6328c2ecf20Sopenharmony_ci#define EEPROM_RF_OPT3 0x7B 6338c2ecf20Sopenharmony_ci#define EEPROM_RF_OPT4 0x7C 6348c2ecf20Sopenharmony_ci#define EEPROM_CHANNEL_PLAN 0x28 6358c2ecf20Sopenharmony_ci#define EEPROM_VERSION 0x30 6368c2ecf20Sopenharmony_ci#define EEPROM_CUSTOMER_ID 0x31 6378c2ecf20Sopenharmony_ci 6388c2ecf20Sopenharmony_ci#define EEPROM_PWRDIFF 0x54 6398c2ecf20Sopenharmony_ci 6408c2ecf20Sopenharmony_ci#define EEPROM_TXPOWERCCK 0x10 6418c2ecf20Sopenharmony_ci#define EEPROM_TXPOWERHT40_1S 0x16 6428c2ecf20Sopenharmony_ci#define EEPROM_TXPOWERHT40_2SDIFF 0x66 6438c2ecf20Sopenharmony_ci#define EEPROM_TXPOWERHT20DIFF 0x1C 6448c2ecf20Sopenharmony_ci#define EEPROM_TXPOWER_OFDMDIFF 0x1F 6458c2ecf20Sopenharmony_ci 6468c2ecf20Sopenharmony_ci#define EEPROM_TXPWR_GROUP 0x22 6478c2ecf20Sopenharmony_ci 6488c2ecf20Sopenharmony_ci#define EEPROM_TSSI_A 0x29 6498c2ecf20Sopenharmony_ci#define EEPROM_TSSI_B 0x77 6508c2ecf20Sopenharmony_ci 6518c2ecf20Sopenharmony_ci#define EEPROM_CHANNELPLAN 0x28 6528c2ecf20Sopenharmony_ci 6538c2ecf20Sopenharmony_ci#define RF_OPTION1 0x2B 6548c2ecf20Sopenharmony_ci#define RF_OPTION2 0x2C 6558c2ecf20Sopenharmony_ci#define RF_OPTION3 0x2D 6568c2ecf20Sopenharmony_ci#define RF_OPTION4 0x2E 6578c2ecf20Sopenharmony_ci 6588c2ecf20Sopenharmony_ci#define STOPBECON BIT(6) 6598c2ecf20Sopenharmony_ci#define STOPHIGHT BIT(5) 6608c2ecf20Sopenharmony_ci#define STOPMGT BIT(4) 6618c2ecf20Sopenharmony_ci#define STOPVO BIT(3) 6628c2ecf20Sopenharmony_ci#define STOPVI BIT(2) 6638c2ecf20Sopenharmony_ci#define STOPBE BIT(1) 6648c2ecf20Sopenharmony_ci#define STOPBK BIT(0) 6658c2ecf20Sopenharmony_ci 6668c2ecf20Sopenharmony_ci#define RCR_APPFCS BIT(31) 6678c2ecf20Sopenharmony_ci#define RCR_APP_MIC BIT(30) 6688c2ecf20Sopenharmony_ci#define RCR_APP_ICV BIT(29) 6698c2ecf20Sopenharmony_ci#define RCR_APP_PHYST_RXFF BIT(28) 6708c2ecf20Sopenharmony_ci#define RCR_APP_BA_SSN BIT(27) 6718c2ecf20Sopenharmony_ci#define RCR_ENMBID BIT(24) 6728c2ecf20Sopenharmony_ci#define RCR_LSIGEN BIT(23) 6738c2ecf20Sopenharmony_ci#define RCR_MFBEN BIT(22) 6748c2ecf20Sopenharmony_ci#define RCR_HTC_LOC_CTRL BIT(14) 6758c2ecf20Sopenharmony_ci#define RCR_AMF BIT(13) 6768c2ecf20Sopenharmony_ci#define RCR_ACF BIT(12) 6778c2ecf20Sopenharmony_ci#define RCR_ADF BIT(11) 6788c2ecf20Sopenharmony_ci#define RCR_AICV BIT(9) 6798c2ecf20Sopenharmony_ci#define RCR_ACRC32 BIT(8) 6808c2ecf20Sopenharmony_ci#define RCR_CBSSID_BCN BIT(7) 6818c2ecf20Sopenharmony_ci#define RCR_CBSSID_DATA BIT(6) 6828c2ecf20Sopenharmony_ci#define RCR_CBSSID RCR_CBSSID_DATA 6838c2ecf20Sopenharmony_ci#define RCR_APWRMGT BIT(5) 6848c2ecf20Sopenharmony_ci#define RCR_ADD3 BIT(4) 6858c2ecf20Sopenharmony_ci#define RCR_AB BIT(3) 6868c2ecf20Sopenharmony_ci#define RCR_AM BIT(2) 6878c2ecf20Sopenharmony_ci#define RCR_APM BIT(1) 6888c2ecf20Sopenharmony_ci#define RCR_AAP BIT(0) 6898c2ecf20Sopenharmony_ci#define RCR_MXDMA_OFFSET 8 6908c2ecf20Sopenharmony_ci#define RCR_FIFO_OFFSET 13 6918c2ecf20Sopenharmony_ci 6928c2ecf20Sopenharmony_ci#define RSV_CTRL 0x001C 6938c2ecf20Sopenharmony_ci#define RD_CTRL 0x0524 6948c2ecf20Sopenharmony_ci 6958c2ecf20Sopenharmony_ci#define REG_USB_INFO 0xFE17 6968c2ecf20Sopenharmony_ci#define REG_USB_SPECIAL_OPTION 0xFE55 6978c2ecf20Sopenharmony_ci#define REG_USB_DMA_AGG_TO 0xFE5B 6988c2ecf20Sopenharmony_ci#define REG_USB_AGG_TO 0xFE5C 6998c2ecf20Sopenharmony_ci#define REG_USB_AGG_TH 0xFE5D 7008c2ecf20Sopenharmony_ci 7018c2ecf20Sopenharmony_ci#define REG_USB_VID 0xFE60 7028c2ecf20Sopenharmony_ci#define REG_USB_PID 0xFE62 7038c2ecf20Sopenharmony_ci#define REG_USB_OPTIONAL 0xFE64 7048c2ecf20Sopenharmony_ci#define REG_USB_CHIRP_K 0xFE65 7058c2ecf20Sopenharmony_ci#define REG_USB_PHY 0xFE66 7068c2ecf20Sopenharmony_ci#define REG_USB_MAC_ADDR 0xFE70 7078c2ecf20Sopenharmony_ci#define REG_USB_HRPWM 0xFE58 7088c2ecf20Sopenharmony_ci#define REG_USB_HCPWM 0xFE57 7098c2ecf20Sopenharmony_ci 7108c2ecf20Sopenharmony_ci#define SW18_FPWM BIT(3) 7118c2ecf20Sopenharmony_ci 7128c2ecf20Sopenharmony_ci#define ISO_MD2PP BIT(0) 7138c2ecf20Sopenharmony_ci#define ISO_UA2USB BIT(1) 7148c2ecf20Sopenharmony_ci#define ISO_UD2CORE BIT(2) 7158c2ecf20Sopenharmony_ci#define ISO_PA2PCIE BIT(3) 7168c2ecf20Sopenharmony_ci#define ISO_PD2CORE BIT(4) 7178c2ecf20Sopenharmony_ci#define ISO_IP2MAC BIT(5) 7188c2ecf20Sopenharmony_ci#define ISO_DIOP BIT(6) 7198c2ecf20Sopenharmony_ci#define ISO_DIOE BIT(7) 7208c2ecf20Sopenharmony_ci#define ISO_EB2CORE BIT(8) 7218c2ecf20Sopenharmony_ci#define ISO_DIOR BIT(9) 7228c2ecf20Sopenharmony_ci 7238c2ecf20Sopenharmony_ci#define PWC_EV25V BIT(14) 7248c2ecf20Sopenharmony_ci#define PWC_EV12V BIT(15) 7258c2ecf20Sopenharmony_ci 7268c2ecf20Sopenharmony_ci#define FEN_BBRSTB BIT(0) 7278c2ecf20Sopenharmony_ci#define FEN_BB_GLB_RSTN BIT(1) 7288c2ecf20Sopenharmony_ci#define FEN_USBA BIT(2) 7298c2ecf20Sopenharmony_ci#define FEN_UPLL BIT(3) 7308c2ecf20Sopenharmony_ci#define FEN_USBD BIT(4) 7318c2ecf20Sopenharmony_ci#define FEN_DIO_PCIE BIT(5) 7328c2ecf20Sopenharmony_ci#define FEN_PCIEA BIT(6) 7338c2ecf20Sopenharmony_ci#define FEN_PPLL BIT(7) 7348c2ecf20Sopenharmony_ci#define FEN_PCIED BIT(8) 7358c2ecf20Sopenharmony_ci#define FEN_DIOE BIT(9) 7368c2ecf20Sopenharmony_ci#define FEN_CPUEN BIT(10) 7378c2ecf20Sopenharmony_ci#define FEN_DCORE BIT(11) 7388c2ecf20Sopenharmony_ci#define FEN_ELDR BIT(12) 7398c2ecf20Sopenharmony_ci#define FEN_DIO_RF BIT(13) 7408c2ecf20Sopenharmony_ci#define FEN_HWPDN BIT(14) 7418c2ecf20Sopenharmony_ci#define FEN_MREGEN BIT(15) 7428c2ecf20Sopenharmony_ci 7438c2ecf20Sopenharmony_ci#define PFM_LDALL BIT(0) 7448c2ecf20Sopenharmony_ci#define PFM_ALDN BIT(1) 7458c2ecf20Sopenharmony_ci#define PFM_LDKP BIT(2) 7468c2ecf20Sopenharmony_ci#define PFM_WOWL BIT(3) 7478c2ecf20Sopenharmony_ci#define ENPDN BIT(4) 7488c2ecf20Sopenharmony_ci#define PDN_PL BIT(5) 7498c2ecf20Sopenharmony_ci#define APFM_ONMAC BIT(8) 7508c2ecf20Sopenharmony_ci#define APFM_OFF BIT(9) 7518c2ecf20Sopenharmony_ci#define APFM_RSM BIT(10) 7528c2ecf20Sopenharmony_ci#define AFSM_HSUS BIT(11) 7538c2ecf20Sopenharmony_ci#define AFSM_PCIE BIT(12) 7548c2ecf20Sopenharmony_ci#define APDM_MAC BIT(13) 7558c2ecf20Sopenharmony_ci#define APDM_HOST BIT(14) 7568c2ecf20Sopenharmony_ci#define APDM_HPDN BIT(15) 7578c2ecf20Sopenharmony_ci#define RDY_MACON BIT(16) 7588c2ecf20Sopenharmony_ci#define SUS_HOST BIT(17) 7598c2ecf20Sopenharmony_ci#define ROP_ALD BIT(20) 7608c2ecf20Sopenharmony_ci#define ROP_PWR BIT(21) 7618c2ecf20Sopenharmony_ci#define ROP_SPS BIT(22) 7628c2ecf20Sopenharmony_ci#define SOP_MRST BIT(25) 7638c2ecf20Sopenharmony_ci#define SOP_FUSE BIT(26) 7648c2ecf20Sopenharmony_ci#define SOP_ABG BIT(27) 7658c2ecf20Sopenharmony_ci#define SOP_AMB BIT(28) 7668c2ecf20Sopenharmony_ci#define SOP_RCK BIT(29) 7678c2ecf20Sopenharmony_ci#define SOP_A8M BIT(30) 7688c2ecf20Sopenharmony_ci#define XOP_BTCK BIT(31) 7698c2ecf20Sopenharmony_ci 7708c2ecf20Sopenharmony_ci#define ANAD16V_EN BIT(0) 7718c2ecf20Sopenharmony_ci#define ANA8M BIT(1) 7728c2ecf20Sopenharmony_ci#define MACSLP BIT(4) 7738c2ecf20Sopenharmony_ci#define LOADER_CLK_EN BIT(5) 7748c2ecf20Sopenharmony_ci#define _80M_SSC_DIS BIT(7) 7758c2ecf20Sopenharmony_ci#define _80M_SSC_EN_HO BIT(8) 7768c2ecf20Sopenharmony_ci#define PHY_SSC_RSTB BIT(9) 7778c2ecf20Sopenharmony_ci#define SEC_CLK_EN BIT(10) 7788c2ecf20Sopenharmony_ci#define MAC_CLK_EN BIT(11) 7798c2ecf20Sopenharmony_ci#define SYS_CLK_EN BIT(12) 7808c2ecf20Sopenharmony_ci#define RING_CLK_EN BIT(13) 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_ci#define BOOT_FROM_EEPROM BIT(4) 7838c2ecf20Sopenharmony_ci#define EEPROM_EN BIT(5) 7848c2ecf20Sopenharmony_ci 7858c2ecf20Sopenharmony_ci#define AFE_BGEN BIT(0) 7868c2ecf20Sopenharmony_ci#define AFE_MBEN BIT(1) 7878c2ecf20Sopenharmony_ci#define MAC_ID_EN BIT(7) 7888c2ecf20Sopenharmony_ci 7898c2ecf20Sopenharmony_ci#define WLOCK_ALL BIT(0) 7908c2ecf20Sopenharmony_ci#define WLOCK_00 BIT(1) 7918c2ecf20Sopenharmony_ci#define WLOCK_04 BIT(2) 7928c2ecf20Sopenharmony_ci#define WLOCK_08 BIT(3) 7938c2ecf20Sopenharmony_ci#define WLOCK_40 BIT(4) 7948c2ecf20Sopenharmony_ci#define R_DIS_PRST_0 BIT(5) 7958c2ecf20Sopenharmony_ci#define R_DIS_PRST_1 BIT(6) 7968c2ecf20Sopenharmony_ci#define LOCK_ALL_EN BIT(7) 7978c2ecf20Sopenharmony_ci 7988c2ecf20Sopenharmony_ci#define RF_EN BIT(0) 7998c2ecf20Sopenharmony_ci#define RF_RSTB BIT(1) 8008c2ecf20Sopenharmony_ci#define RF_SDMRSTB BIT(2) 8018c2ecf20Sopenharmony_ci 8028c2ecf20Sopenharmony_ci#define LDA15_EN BIT(0) 8038c2ecf20Sopenharmony_ci#define LDA15_STBY BIT(1) 8048c2ecf20Sopenharmony_ci#define LDA15_OBUF BIT(2) 8058c2ecf20Sopenharmony_ci#define LDA15_REG_VOS BIT(3) 8068c2ecf20Sopenharmony_ci#define _LDA15_VOADJ(x) (((x) & 0x7) << 4) 8078c2ecf20Sopenharmony_ci 8088c2ecf20Sopenharmony_ci#define LDV12_EN BIT(0) 8098c2ecf20Sopenharmony_ci#define LDV12_SDBY BIT(1) 8108c2ecf20Sopenharmony_ci#define LPLDO_HSM BIT(2) 8118c2ecf20Sopenharmony_ci#define LPLDO_LSM_DIS BIT(3) 8128c2ecf20Sopenharmony_ci#define _LDV12_VADJ(x) (((x) & 0xF) << 4) 8138c2ecf20Sopenharmony_ci 8148c2ecf20Sopenharmony_ci#define XTAL_EN BIT(0) 8158c2ecf20Sopenharmony_ci#define XTAL_BSEL BIT(1) 8168c2ecf20Sopenharmony_ci#define _XTAL_BOSC(x) (((x) & 0x3) << 2) 8178c2ecf20Sopenharmony_ci#define _XTAL_CADJ(x) (((x) & 0xF) << 4) 8188c2ecf20Sopenharmony_ci#define XTAL_GATE_USB BIT(8) 8198c2ecf20Sopenharmony_ci#define _XTAL_USB_DRV(x) (((x) & 0x3) << 9) 8208c2ecf20Sopenharmony_ci#define XTAL_GATE_AFE BIT(11) 8218c2ecf20Sopenharmony_ci#define _XTAL_AFE_DRV(x) (((x) & 0x3) << 12) 8228c2ecf20Sopenharmony_ci#define XTAL_RF_GATE BIT(14) 8238c2ecf20Sopenharmony_ci#define _XTAL_RF_DRV(x) (((x) & 0x3) << 15) 8248c2ecf20Sopenharmony_ci#define XTAL_GATE_DIG BIT(17) 8258c2ecf20Sopenharmony_ci#define _XTAL_DIG_DRV(x) (((x) & 0x3) << 18) 8268c2ecf20Sopenharmony_ci#define XTAL_BT_GATE BIT(20) 8278c2ecf20Sopenharmony_ci#define _XTAL_BT_DRV(x) (((x) & 0x3) << 21) 8288c2ecf20Sopenharmony_ci#define _XTAL_GPIO(x) (((x) & 0x7) << 23) 8298c2ecf20Sopenharmony_ci 8308c2ecf20Sopenharmony_ci#define CKDLY_AFE BIT(26) 8318c2ecf20Sopenharmony_ci#define CKDLY_USB BIT(27) 8328c2ecf20Sopenharmony_ci#define CKDLY_DIG BIT(28) 8338c2ecf20Sopenharmony_ci#define CKDLY_BT BIT(29) 8348c2ecf20Sopenharmony_ci 8358c2ecf20Sopenharmony_ci#define APLL_EN BIT(0) 8368c2ecf20Sopenharmony_ci#define APLL_320_EN BIT(1) 8378c2ecf20Sopenharmony_ci#define APLL_FREF_SEL BIT(2) 8388c2ecf20Sopenharmony_ci#define APLL_EDGE_SEL BIT(3) 8398c2ecf20Sopenharmony_ci#define APLL_WDOGB BIT(4) 8408c2ecf20Sopenharmony_ci#define APLL_LPFEN BIT(5) 8418c2ecf20Sopenharmony_ci 8428c2ecf20Sopenharmony_ci#define APLL_REF_CLK_13MHZ 0x1 8438c2ecf20Sopenharmony_ci#define APLL_REF_CLK_19_2MHZ 0x2 8448c2ecf20Sopenharmony_ci#define APLL_REF_CLK_20MHZ 0x3 8458c2ecf20Sopenharmony_ci#define APLL_REF_CLK_25MHZ 0x4 8468c2ecf20Sopenharmony_ci#define APLL_REF_CLK_26MHZ 0x5 8478c2ecf20Sopenharmony_ci#define APLL_REF_CLK_38_4MHZ 0x6 8488c2ecf20Sopenharmony_ci#define APLL_REF_CLK_40MHZ 0x7 8498c2ecf20Sopenharmony_ci 8508c2ecf20Sopenharmony_ci#define APLL_320EN BIT(14) 8518c2ecf20Sopenharmony_ci#define APLL_80EN BIT(15) 8528c2ecf20Sopenharmony_ci#define APLL_1MEN BIT(24) 8538c2ecf20Sopenharmony_ci 8548c2ecf20Sopenharmony_ci#define ALD_EN BIT(18) 8558c2ecf20Sopenharmony_ci#define EF_PD BIT(19) 8568c2ecf20Sopenharmony_ci#define EF_FLAG BIT(31) 8578c2ecf20Sopenharmony_ci 8588c2ecf20Sopenharmony_ci#define EF_TRPT BIT(7) 8598c2ecf20Sopenharmony_ci#define LDOE25_EN BIT(31) 8608c2ecf20Sopenharmony_ci 8618c2ecf20Sopenharmony_ci#define RSM_EN BIT(0) 8628c2ecf20Sopenharmony_ci#define TIMER_EN BIT(4) 8638c2ecf20Sopenharmony_ci 8648c2ecf20Sopenharmony_ci#define TRSW0EN BIT(2) 8658c2ecf20Sopenharmony_ci#define TRSW1EN BIT(3) 8668c2ecf20Sopenharmony_ci#define EROM_EN BIT(4) 8678c2ecf20Sopenharmony_ci#define ENBT BIT(5) 8688c2ecf20Sopenharmony_ci#define ENUART BIT(8) 8698c2ecf20Sopenharmony_ci#define UART_910 BIT(9) 8708c2ecf20Sopenharmony_ci#define ENPMAC BIT(10) 8718c2ecf20Sopenharmony_ci#define SIC_SWRST BIT(11) 8728c2ecf20Sopenharmony_ci#define ENSIC BIT(12) 8738c2ecf20Sopenharmony_ci#define SIC_23 BIT(13) 8748c2ecf20Sopenharmony_ci#define ENHDP BIT(14) 8758c2ecf20Sopenharmony_ci#define SIC_LBK BIT(15) 8768c2ecf20Sopenharmony_ci 8778c2ecf20Sopenharmony_ci#define LED0PL BIT(4) 8788c2ecf20Sopenharmony_ci#define LED1PL BIT(12) 8798c2ecf20Sopenharmony_ci#define LED0DIS BIT(7) 8808c2ecf20Sopenharmony_ci 8818c2ecf20Sopenharmony_ci#define MCUFWDL_EN BIT(0) 8828c2ecf20Sopenharmony_ci#define MCUFWDL_RDY BIT(1) 8838c2ecf20Sopenharmony_ci#define FWDL_CHKSUM_RPT BIT(2) 8848c2ecf20Sopenharmony_ci#define MACINI_RDY BIT(3) 8858c2ecf20Sopenharmony_ci#define BBINI_RDY BIT(4) 8868c2ecf20Sopenharmony_ci#define RFINI_RDY BIT(5) 8878c2ecf20Sopenharmony_ci#define WINTINI_RDY BIT(6) 8888c2ecf20Sopenharmony_ci#define CPRST BIT(23) 8898c2ecf20Sopenharmony_ci 8908c2ecf20Sopenharmony_ci#define XCLK_VLD BIT(0) 8918c2ecf20Sopenharmony_ci#define ACLK_VLD BIT(1) 8928c2ecf20Sopenharmony_ci#define UCLK_VLD BIT(2) 8938c2ecf20Sopenharmony_ci#define PCLK_VLD BIT(3) 8948c2ecf20Sopenharmony_ci#define PCIRSTB BIT(4) 8958c2ecf20Sopenharmony_ci#define V15_VLD BIT(5) 8968c2ecf20Sopenharmony_ci#define TRP_B15V_EN BIT(7) 8978c2ecf20Sopenharmony_ci#define SIC_IDLE BIT(8) 8988c2ecf20Sopenharmony_ci#define BD_MAC2 BIT(9) 8998c2ecf20Sopenharmony_ci#define BD_MAC1 BIT(10) 9008c2ecf20Sopenharmony_ci#define IC_MACPHY_MODE BIT(11) 9018c2ecf20Sopenharmony_ci#define BT_FUNC BIT(16) 9028c2ecf20Sopenharmony_ci#define VENDOR_ID BIT(19) 9038c2ecf20Sopenharmony_ci#define PAD_HWPD_IDN BIT(22) 9048c2ecf20Sopenharmony_ci#define TRP_VAUX_EN BIT(23) 9058c2ecf20Sopenharmony_ci#define TRP_BT_EN BIT(24) 9068c2ecf20Sopenharmony_ci#define BD_PKG_SEL BIT(25) 9078c2ecf20Sopenharmony_ci#define BD_HCI_SEL BIT(26) 9088c2ecf20Sopenharmony_ci#define TYPE_ID BIT(27) 9098c2ecf20Sopenharmony_ci 9108c2ecf20Sopenharmony_ci#define CHIP_VER_RTL_MASK 0xF000 9118c2ecf20Sopenharmony_ci#define CHIP_VER_RTL_SHIFT 12 9128c2ecf20Sopenharmony_ci 9138c2ecf20Sopenharmony_ci#define REG_LBMODE (REG_CR + 3) 9148c2ecf20Sopenharmony_ci 9158c2ecf20Sopenharmony_ci#define HCI_TXDMA_EN BIT(0) 9168c2ecf20Sopenharmony_ci#define HCI_RXDMA_EN BIT(1) 9178c2ecf20Sopenharmony_ci#define TXDMA_EN BIT(2) 9188c2ecf20Sopenharmony_ci#define RXDMA_EN BIT(3) 9198c2ecf20Sopenharmony_ci#define PROTOCOL_EN BIT(4) 9208c2ecf20Sopenharmony_ci#define SCHEDULE_EN BIT(5) 9218c2ecf20Sopenharmony_ci#define MACTXEN BIT(6) 9228c2ecf20Sopenharmony_ci#define MACRXEN BIT(7) 9238c2ecf20Sopenharmony_ci#define ENSWBCN BIT(8) 9248c2ecf20Sopenharmony_ci#define ENSEC BIT(9) 9258c2ecf20Sopenharmony_ci 9268c2ecf20Sopenharmony_ci#define _NETTYPE(x) (((x) & 0x3) << 16) 9278c2ecf20Sopenharmony_ci#define MASK_NETTYPE 0x30000 9288c2ecf20Sopenharmony_ci#define NT_NO_LINK 0x0 9298c2ecf20Sopenharmony_ci#define NT_LINK_AD_HOC 0x1 9308c2ecf20Sopenharmony_ci#define NT_LINK_AP 0x2 9318c2ecf20Sopenharmony_ci#define NT_AS_AP 0x3 9328c2ecf20Sopenharmony_ci 9338c2ecf20Sopenharmony_ci#define _LBMODE(x) (((x) & 0xF) << 24) 9348c2ecf20Sopenharmony_ci#define MASK_LBMODE 0xF000000 9358c2ecf20Sopenharmony_ci#define LOOPBACK_NORMAL 0x0 9368c2ecf20Sopenharmony_ci#define LOOPBACK_IMMEDIATELY 0xB 9378c2ecf20Sopenharmony_ci#define LOOPBACK_MAC_DELAY 0x3 9388c2ecf20Sopenharmony_ci#define LOOPBACK_PHY 0x1 9398c2ecf20Sopenharmony_ci#define LOOPBACK_DMA 0x7 9408c2ecf20Sopenharmony_ci 9418c2ecf20Sopenharmony_ci#define GET_RX_PAGE_SIZE(value) ((value) & 0xF) 9428c2ecf20Sopenharmony_ci#define GET_TX_PAGE_SIZE(value) (((value) & 0xF0) >> 4) 9438c2ecf20Sopenharmony_ci#define _PSRX_MASK 0xF 9448c2ecf20Sopenharmony_ci#define _PSTX_MASK 0xF0 9458c2ecf20Sopenharmony_ci#define _PSRX(x) (x) 9468c2ecf20Sopenharmony_ci#define _PSTX(x) ((x) << 4) 9478c2ecf20Sopenharmony_ci 9488c2ecf20Sopenharmony_ci#define PBP_64 0x0 9498c2ecf20Sopenharmony_ci#define PBP_128 0x1 9508c2ecf20Sopenharmony_ci#define PBP_256 0x2 9518c2ecf20Sopenharmony_ci#define PBP_512 0x3 9528c2ecf20Sopenharmony_ci#define PBP_1024 0x4 9538c2ecf20Sopenharmony_ci 9548c2ecf20Sopenharmony_ci#define RXDMA_ARBBW_EN BIT(0) 9558c2ecf20Sopenharmony_ci#define RXSHFT_EN BIT(1) 9568c2ecf20Sopenharmony_ci#define RXDMA_AGG_EN BIT(2) 9578c2ecf20Sopenharmony_ci#define QS_VO_QUEUE BIT(8) 9588c2ecf20Sopenharmony_ci#define QS_VI_QUEUE BIT(9) 9598c2ecf20Sopenharmony_ci#define QS_BE_QUEUE BIT(10) 9608c2ecf20Sopenharmony_ci#define QS_BK_QUEUE BIT(11) 9618c2ecf20Sopenharmony_ci#define QS_MANAGER_QUEUE BIT(12) 9628c2ecf20Sopenharmony_ci#define QS_HIGH_QUEUE BIT(13) 9638c2ecf20Sopenharmony_ci 9648c2ecf20Sopenharmony_ci#define HQSEL_VOQ BIT(0) 9658c2ecf20Sopenharmony_ci#define HQSEL_VIQ BIT(1) 9668c2ecf20Sopenharmony_ci#define HQSEL_BEQ BIT(2) 9678c2ecf20Sopenharmony_ci#define HQSEL_BKQ BIT(3) 9688c2ecf20Sopenharmony_ci#define HQSEL_MGTQ BIT(4) 9698c2ecf20Sopenharmony_ci#define HQSEL_HIQ BIT(5) 9708c2ecf20Sopenharmony_ci 9718c2ecf20Sopenharmony_ci#define _TXDMA_HIQ_MAP(x) (((x)&0x3) << 14) 9728c2ecf20Sopenharmony_ci#define _TXDMA_MGQ_MAP(x) (((x)&0x3) << 12) 9738c2ecf20Sopenharmony_ci#define _TXDMA_BKQ_MAP(x) (((x)&0x3) << 10) 9748c2ecf20Sopenharmony_ci#define _TXDMA_BEQ_MAP(x) (((x)&0x3) << 8) 9758c2ecf20Sopenharmony_ci#define _TXDMA_VIQ_MAP(x) (((x)&0x3) << 6) 9768c2ecf20Sopenharmony_ci#define _TXDMA_VOQ_MAP(x) (((x)&0x3) << 4) 9778c2ecf20Sopenharmony_ci 9788c2ecf20Sopenharmony_ci#define QUEUE_LOW 1 9798c2ecf20Sopenharmony_ci#define QUEUE_NORMAL 2 9808c2ecf20Sopenharmony_ci#define QUEUE_HIGH 3 9818c2ecf20Sopenharmony_ci 9828c2ecf20Sopenharmony_ci#define _LLT_NO_ACTIVE 0x0 9838c2ecf20Sopenharmony_ci#define _LLT_WRITE_ACCESS 0x1 9848c2ecf20Sopenharmony_ci#define _LLT_READ_ACCESS 0x2 9858c2ecf20Sopenharmony_ci 9868c2ecf20Sopenharmony_ci#define _LLT_INIT_DATA(x) ((x) & 0xFF) 9878c2ecf20Sopenharmony_ci#define _LLT_INIT_ADDR(x) (((x) & 0xFF) << 8) 9888c2ecf20Sopenharmony_ci#define _LLT_OP(x) (((x) & 0x3) << 30) 9898c2ecf20Sopenharmony_ci#define _LLT_OP_VALUE(x) (((x) >> 30) & 0x3) 9908c2ecf20Sopenharmony_ci 9918c2ecf20Sopenharmony_ci#define BB_WRITE_READ_MASK (BIT(31) | BIT(30)) 9928c2ecf20Sopenharmony_ci#define BB_WRITE_EN BIT(30) 9938c2ecf20Sopenharmony_ci#define BB_READ_EN BIT(31) 9948c2ecf20Sopenharmony_ci 9958c2ecf20Sopenharmony_ci#define _HPQ(x) ((x) & 0xFF) 9968c2ecf20Sopenharmony_ci#define _LPQ(x) (((x) & 0xFF) << 8) 9978c2ecf20Sopenharmony_ci#define _PUBQ(x) (((x) & 0xFF) << 16) 9988c2ecf20Sopenharmony_ci#define _NPQ(x) ((x) & 0xFF) 9998c2ecf20Sopenharmony_ci 10008c2ecf20Sopenharmony_ci#define HPQ_PUBLIC_DIS BIT(24) 10018c2ecf20Sopenharmony_ci#define LPQ_PUBLIC_DIS BIT(25) 10028c2ecf20Sopenharmony_ci#define LD_RQPN BIT(31) 10038c2ecf20Sopenharmony_ci 10048c2ecf20Sopenharmony_ci#define BCN_VALID BIT(16) 10058c2ecf20Sopenharmony_ci#define BCN_HEAD(x) (((x) & 0xFF) << 8) 10068c2ecf20Sopenharmony_ci#define BCN_HEAD_MASK 0xFF00 10078c2ecf20Sopenharmony_ci 10088c2ecf20Sopenharmony_ci#define BLK_DESC_NUM_SHIFT 4 10098c2ecf20Sopenharmony_ci#define BLK_DESC_NUM_MASK 0xF 10108c2ecf20Sopenharmony_ci 10118c2ecf20Sopenharmony_ci#define DROP_DATA_EN BIT(9) 10128c2ecf20Sopenharmony_ci 10138c2ecf20Sopenharmony_ci#define EN_AMPDU_RTY_NEW BIT(7) 10148c2ecf20Sopenharmony_ci 10158c2ecf20Sopenharmony_ci#define _INIRTSMCS_SEL(x) ((x) & 0x3F) 10168c2ecf20Sopenharmony_ci 10178c2ecf20Sopenharmony_ci#define _SPEC_SIFS_CCK(x) ((x) & 0xFF) 10188c2ecf20Sopenharmony_ci#define _SPEC_SIFS_OFDM(x) (((x) & 0xFF) << 8) 10198c2ecf20Sopenharmony_ci 10208c2ecf20Sopenharmony_ci#define RATE_REG_BITMAP_ALL 0xFFFFF 10218c2ecf20Sopenharmony_ci 10228c2ecf20Sopenharmony_ci#define _RRSC_BITMAP(x) ((x) & 0xFFFFF) 10238c2ecf20Sopenharmony_ci 10248c2ecf20Sopenharmony_ci#define _RRSR_RSC(x) (((x) & 0x3) << 21) 10258c2ecf20Sopenharmony_ci#define RRSR_RSC_RESERVED 0x0 10268c2ecf20Sopenharmony_ci#define RRSR_RSC_UPPER_SUBCHANNEL 0x1 10278c2ecf20Sopenharmony_ci#define RRSR_RSC_LOWER_SUBCHANNEL 0x2 10288c2ecf20Sopenharmony_ci#define RRSR_RSC_DUPLICATE_MODE 0x3 10298c2ecf20Sopenharmony_ci 10308c2ecf20Sopenharmony_ci#define USE_SHORT_G1 BIT(20) 10318c2ecf20Sopenharmony_ci 10328c2ecf20Sopenharmony_ci#define _AGGLMT_MCS0(x) ((x) & 0xF) 10338c2ecf20Sopenharmony_ci#define _AGGLMT_MCS1(x) (((x) & 0xF) << 4) 10348c2ecf20Sopenharmony_ci#define _AGGLMT_MCS2(x) (((x) & 0xF) << 8) 10358c2ecf20Sopenharmony_ci#define _AGGLMT_MCS3(x) (((x) & 0xF) << 12) 10368c2ecf20Sopenharmony_ci#define _AGGLMT_MCS4(x) (((x) & 0xF) << 16) 10378c2ecf20Sopenharmony_ci#define _AGGLMT_MCS5(x) (((x) & 0xF) << 20) 10388c2ecf20Sopenharmony_ci#define _AGGLMT_MCS6(x) (((x) & 0xF) << 24) 10398c2ecf20Sopenharmony_ci#define _AGGLMT_MCS7(x) (((x) & 0xF) << 28) 10408c2ecf20Sopenharmony_ci 10418c2ecf20Sopenharmony_ci#define RETRY_LIMIT_SHORT_SHIFT 8 10428c2ecf20Sopenharmony_ci#define RETRY_LIMIT_LONG_SHIFT 0 10438c2ecf20Sopenharmony_ci 10448c2ecf20Sopenharmony_ci#define _DARF_RC1(x) ((x) & 0x1F) 10458c2ecf20Sopenharmony_ci#define _DARF_RC2(x) (((x) & 0x1F) << 8) 10468c2ecf20Sopenharmony_ci#define _DARF_RC3(x) (((x) & 0x1F) << 16) 10478c2ecf20Sopenharmony_ci#define _DARF_RC4(x) (((x) & 0x1F) << 24) 10488c2ecf20Sopenharmony_ci#define _DARF_RC5(x) ((x) & 0x1F) 10498c2ecf20Sopenharmony_ci#define _DARF_RC6(x) (((x) & 0x1F) << 8) 10508c2ecf20Sopenharmony_ci#define _DARF_RC7(x) (((x) & 0x1F) << 16) 10518c2ecf20Sopenharmony_ci#define _DARF_RC8(x) (((x) & 0x1F) << 24) 10528c2ecf20Sopenharmony_ci 10538c2ecf20Sopenharmony_ci#define _RARF_RC1(x) ((x) & 0x1F) 10548c2ecf20Sopenharmony_ci#define _RARF_RC2(x) (((x) & 0x1F) << 8) 10558c2ecf20Sopenharmony_ci#define _RARF_RC3(x) (((x) & 0x1F) << 16) 10568c2ecf20Sopenharmony_ci#define _RARF_RC4(x) (((x) & 0x1F) << 24) 10578c2ecf20Sopenharmony_ci#define _RARF_RC5(x) ((x) & 0x1F) 10588c2ecf20Sopenharmony_ci#define _RARF_RC6(x) (((x) & 0x1F) << 8) 10598c2ecf20Sopenharmony_ci#define _RARF_RC7(x) (((x) & 0x1F) << 16) 10608c2ecf20Sopenharmony_ci#define _RARF_RC8(x) (((x) & 0x1F) << 24) 10618c2ecf20Sopenharmony_ci 10628c2ecf20Sopenharmony_ci#define AC_PARAM_TXOP_LIMIT_OFFSET 16 10638c2ecf20Sopenharmony_ci#define AC_PARAM_ECW_MAX_OFFSET 12 10648c2ecf20Sopenharmony_ci#define AC_PARAM_ECW_MIN_OFFSET 8 10658c2ecf20Sopenharmony_ci#define AC_PARAM_AIFS_OFFSET 0 10668c2ecf20Sopenharmony_ci 10678c2ecf20Sopenharmony_ci#define _AIFS(x) (x) 10688c2ecf20Sopenharmony_ci#define _ECW_MAX_MIN(x) ((x) << 8) 10698c2ecf20Sopenharmony_ci#define _TXOP_LIMIT(x) ((x) << 16) 10708c2ecf20Sopenharmony_ci 10718c2ecf20Sopenharmony_ci#define _BCNIFS(x) ((x) & 0xFF) 10728c2ecf20Sopenharmony_ci#define _BCNECW(x) ((((x) & 0xF)) << 8) 10738c2ecf20Sopenharmony_ci 10748c2ecf20Sopenharmony_ci#define _LRL(x) ((x) & 0x3F) 10758c2ecf20Sopenharmony_ci#define _SRL(x) (((x) & 0x3F) << 8) 10768c2ecf20Sopenharmony_ci 10778c2ecf20Sopenharmony_ci#define _SIFS_CCK_CTX(x) ((x) & 0xFF) 10788c2ecf20Sopenharmony_ci#define _SIFS_CCK_TRX(x) (((x) & 0xFF) << 8) 10798c2ecf20Sopenharmony_ci 10808c2ecf20Sopenharmony_ci#define _SIFS_OFDM_CTX(x) ((x) & 0xFF) 10818c2ecf20Sopenharmony_ci#define _SIFS_OFDM_TRX(x) (((x) & 0xFF) << 8) 10828c2ecf20Sopenharmony_ci 10838c2ecf20Sopenharmony_ci#define _TBTT_PROHIBIT_HOLD(x) (((x) & 0xFF) << 8) 10848c2ecf20Sopenharmony_ci 10858c2ecf20Sopenharmony_ci#define DIS_EDCA_CNT_DWN BIT(11) 10868c2ecf20Sopenharmony_ci 10878c2ecf20Sopenharmony_ci#define EN_MBSSID BIT(1) 10888c2ecf20Sopenharmony_ci#define EN_TXBCN_RPT BIT(2) 10898c2ecf20Sopenharmony_ci#define EN_BCN_FUNCTION BIT(3) 10908c2ecf20Sopenharmony_ci 10918c2ecf20Sopenharmony_ci#define TSFTR_RST BIT(0) 10928c2ecf20Sopenharmony_ci#define TSFTR1_RST BIT(1) 10938c2ecf20Sopenharmony_ci 10948c2ecf20Sopenharmony_ci#define STOP_BCNQ BIT(6) 10958c2ecf20Sopenharmony_ci 10968c2ecf20Sopenharmony_ci#define DIS_TSF_UDT0_NORMAL_CHIP BIT(4) 10978c2ecf20Sopenharmony_ci#define DIS_TSF_UDT0_TEST_CHIP BIT(5) 10988c2ecf20Sopenharmony_ci 10998c2ecf20Sopenharmony_ci#define ACMHW_HWEN BIT(0) 11008c2ecf20Sopenharmony_ci#define ACMHW_BEQEN BIT(1) 11018c2ecf20Sopenharmony_ci#define ACMHW_VIQEN BIT(2) 11028c2ecf20Sopenharmony_ci#define ACMHW_VOQEN BIT(3) 11038c2ecf20Sopenharmony_ci#define ACMHW_BEQSTATUS BIT(4) 11048c2ecf20Sopenharmony_ci#define ACMHW_VIQSTATUS BIT(5) 11058c2ecf20Sopenharmony_ci#define ACMHW_VOQSTATUS BIT(6) 11068c2ecf20Sopenharmony_ci 11078c2ecf20Sopenharmony_ci#define APSDOFF BIT(6) 11088c2ecf20Sopenharmony_ci#define APSDOFF_STATUS BIT(7) 11098c2ecf20Sopenharmony_ci 11108c2ecf20Sopenharmony_ci#define BW_20MHZ BIT(2) 11118c2ecf20Sopenharmony_ci 11128c2ecf20Sopenharmony_ci#define RATE_BITMAP_ALL 0xFFFFF 11138c2ecf20Sopenharmony_ci 11148c2ecf20Sopenharmony_ci#define RATE_RRSR_CCK_ONLY_1M 0xFFFF1 11158c2ecf20Sopenharmony_ci 11168c2ecf20Sopenharmony_ci#define TSFRST BIT(0) 11178c2ecf20Sopenharmony_ci#define DIS_GCLK BIT(1) 11188c2ecf20Sopenharmony_ci#define PAD_SEL BIT(2) 11198c2ecf20Sopenharmony_ci#define PWR_ST BIT(6) 11208c2ecf20Sopenharmony_ci#define PWRBIT_OW_EN BIT(7) 11218c2ecf20Sopenharmony_ci#define ACRC BIT(8) 11228c2ecf20Sopenharmony_ci#define CFENDFORM BIT(9) 11238c2ecf20Sopenharmony_ci#define ICV BIT(10) 11248c2ecf20Sopenharmony_ci 11258c2ecf20Sopenharmony_ci#define AAP BIT(0) 11268c2ecf20Sopenharmony_ci#define APM BIT(1) 11278c2ecf20Sopenharmony_ci#define AM BIT(2) 11288c2ecf20Sopenharmony_ci#define AB BIT(3) 11298c2ecf20Sopenharmony_ci#define ADD3 BIT(4) 11308c2ecf20Sopenharmony_ci#define APWRMGT BIT(5) 11318c2ecf20Sopenharmony_ci#define CBSSID BIT(6) 11328c2ecf20Sopenharmony_ci#define CBSSID_DATA BIT(6) 11338c2ecf20Sopenharmony_ci#define CBSSID_BCN BIT(7) 11348c2ecf20Sopenharmony_ci#define ACRC32 BIT(8) 11358c2ecf20Sopenharmony_ci#define AICV BIT(9) 11368c2ecf20Sopenharmony_ci#define ADF BIT(11) 11378c2ecf20Sopenharmony_ci#define ACF BIT(12) 11388c2ecf20Sopenharmony_ci#define AMF BIT(13) 11398c2ecf20Sopenharmony_ci#define HTC_LOC_CTRL BIT(14) 11408c2ecf20Sopenharmony_ci#define UC_DATA_EN BIT(16) 11418c2ecf20Sopenharmony_ci#define BM_DATA_EN BIT(17) 11428c2ecf20Sopenharmony_ci#define MFBEN BIT(22) 11438c2ecf20Sopenharmony_ci#define LSIGEN BIT(23) 11448c2ecf20Sopenharmony_ci#define ENMBID BIT(24) 11458c2ecf20Sopenharmony_ci#define APP_BASSN BIT(27) 11468c2ecf20Sopenharmony_ci#define APP_PHYSTS BIT(28) 11478c2ecf20Sopenharmony_ci#define APP_ICV BIT(29) 11488c2ecf20Sopenharmony_ci#define APP_MIC BIT(30) 11498c2ecf20Sopenharmony_ci#define APP_FCS BIT(31) 11508c2ecf20Sopenharmony_ci 11518c2ecf20Sopenharmony_ci#define _MIN_SPACE(x) ((x) & 0x7) 11528c2ecf20Sopenharmony_ci#define _SHORT_GI_PADDING(x) (((x) & 0x1F) << 3) 11538c2ecf20Sopenharmony_ci 11548c2ecf20Sopenharmony_ci#define RXERR_TYPE_OFDM_PPDU 0 11558c2ecf20Sopenharmony_ci#define RXERR_TYPE_OFDM_FALSE_ALARM 1 11568c2ecf20Sopenharmony_ci#define RXERR_TYPE_OFDM_MPDU_OK 2 11578c2ecf20Sopenharmony_ci#define RXERR_TYPE_OFDM_MPDU_FAIL 3 11588c2ecf20Sopenharmony_ci#define RXERR_TYPE_CCK_PPDU 4 11598c2ecf20Sopenharmony_ci#define RXERR_TYPE_CCK_FALSE_ALARM 5 11608c2ecf20Sopenharmony_ci#define RXERR_TYPE_CCK_MPDU_OK 6 11618c2ecf20Sopenharmony_ci#define RXERR_TYPE_CCK_MPDU_FAIL 7 11628c2ecf20Sopenharmony_ci#define RXERR_TYPE_HT_PPDU 8 11638c2ecf20Sopenharmony_ci#define RXERR_TYPE_HT_FALSE_ALARM 9 11648c2ecf20Sopenharmony_ci#define RXERR_TYPE_HT_MPDU_TOTAL 10 11658c2ecf20Sopenharmony_ci#define RXERR_TYPE_HT_MPDU_OK 11 11668c2ecf20Sopenharmony_ci#define RXERR_TYPE_HT_MPDU_FAIL 12 11678c2ecf20Sopenharmony_ci#define RXERR_TYPE_RX_FULL_DROP 15 11688c2ecf20Sopenharmony_ci 11698c2ecf20Sopenharmony_ci#define RXERR_COUNTER_MASK 0xFFFFF 11708c2ecf20Sopenharmony_ci#define RXERR_RPT_RST BIT(27) 11718c2ecf20Sopenharmony_ci#define _RXERR_RPT_SEL(type) ((type) << 28) 11728c2ecf20Sopenharmony_ci 11738c2ecf20Sopenharmony_ci#define SCR_TXUSEDK BIT(0) 11748c2ecf20Sopenharmony_ci#define SCR_RXUSEDK BIT(1) 11758c2ecf20Sopenharmony_ci#define SCR_TXENCENABLE BIT(2) 11768c2ecf20Sopenharmony_ci#define SCR_RXDECENABLE BIT(3) 11778c2ecf20Sopenharmony_ci#define SCR_SKBYA2 BIT(4) 11788c2ecf20Sopenharmony_ci#define SCR_NOSKMC BIT(5) 11798c2ecf20Sopenharmony_ci#define SCR_TXBCUSEDK BIT(6) 11808c2ecf20Sopenharmony_ci#define SCR_RXBCUSEDK BIT(7) 11818c2ecf20Sopenharmony_ci 11828c2ecf20Sopenharmony_ci#define USB_IS_HIGH_SPEED 0 11838c2ecf20Sopenharmony_ci#define USB_IS_FULL_SPEED 1 11848c2ecf20Sopenharmony_ci#define USB_SPEED_MASK BIT(5) 11858c2ecf20Sopenharmony_ci 11868c2ecf20Sopenharmony_ci#define USB_NORMAL_SIE_EP_MASK 0xF 11878c2ecf20Sopenharmony_ci#define USB_NORMAL_SIE_EP_SHIFT 4 11888c2ecf20Sopenharmony_ci 11898c2ecf20Sopenharmony_ci#define USB_TEST_EP_MASK 0x30 11908c2ecf20Sopenharmony_ci#define USB_TEST_EP_SHIFT 4 11918c2ecf20Sopenharmony_ci 11928c2ecf20Sopenharmony_ci#define USB_AGG_EN BIT(3) 11938c2ecf20Sopenharmony_ci 11948c2ecf20Sopenharmony_ci#define MAC_ADDR_LEN 6 11958c2ecf20Sopenharmony_ci#define LAST_ENTRY_OF_TX_PKT_BUFFER 255 11968c2ecf20Sopenharmony_ci 11978c2ecf20Sopenharmony_ci#define POLLING_LLT_THRESHOLD 20 11988c2ecf20Sopenharmony_ci#define POLLING_READY_TIMEOUT_COUNT 1000 11998c2ecf20Sopenharmony_ci 12008c2ecf20Sopenharmony_ci#define MAX_MSS_DENSITY_2T 0x13 12018c2ecf20Sopenharmony_ci#define MAX_MSS_DENSITY_1T 0x0A 12028c2ecf20Sopenharmony_ci 12038c2ecf20Sopenharmony_ci#define EPROM_CMD_OPERATING_MODE_MASK ((1<<7)|(1<<6)) 12048c2ecf20Sopenharmony_ci#define EPROM_CMD_CONFIG 0x3 12058c2ecf20Sopenharmony_ci#define EPROM_CMD_LOAD 1 12068c2ecf20Sopenharmony_ci 12078c2ecf20Sopenharmony_ci#define HWSET_MAX_SIZE_92S HWSET_MAX_SIZE 12088c2ecf20Sopenharmony_ci 12098c2ecf20Sopenharmony_ci#define HAL_8192C_HW_GPIO_WPS_BIT BIT(2) 12108c2ecf20Sopenharmony_ci 12118c2ecf20Sopenharmony_ci#define RPMAC_RESET 0x100 12128c2ecf20Sopenharmony_ci#define RPMAC_TXSTART 0x104 12138c2ecf20Sopenharmony_ci#define RPMAC_TXLEGACYSIG 0x108 12148c2ecf20Sopenharmony_ci#define RPMAC_TXHTSIG1 0x10c 12158c2ecf20Sopenharmony_ci#define RPMAC_TXHTSIG2 0x110 12168c2ecf20Sopenharmony_ci#define RPMAC_PHYDEBUG 0x114 12178c2ecf20Sopenharmony_ci#define RPMAC_TXPACKETNUM 0x118 12188c2ecf20Sopenharmony_ci#define RPMAC_TXIDLE 0x11c 12198c2ecf20Sopenharmony_ci#define RPMAC_TXMACHEADER0 0x120 12208c2ecf20Sopenharmony_ci#define RPMAC_TXMACHEADER1 0x124 12218c2ecf20Sopenharmony_ci#define RPMAC_TXMACHEADER2 0x128 12228c2ecf20Sopenharmony_ci#define RPMAC_TXMACHEADER3 0x12c 12238c2ecf20Sopenharmony_ci#define RPMAC_TXMACHEADER4 0x130 12248c2ecf20Sopenharmony_ci#define RPMAC_TXMACHEADER5 0x134 12258c2ecf20Sopenharmony_ci#define RPMAC_TXDADATYPE 0x138 12268c2ecf20Sopenharmony_ci#define RPMAC_TXRANDOMSEED 0x13c 12278c2ecf20Sopenharmony_ci#define RPMAC_CCKPLCPPREAMBLE 0x140 12288c2ecf20Sopenharmony_ci#define RPMAC_CCKPLCPHEADER 0x144 12298c2ecf20Sopenharmony_ci#define RPMAC_CCKCRC16 0x148 12308c2ecf20Sopenharmony_ci#define RPMAC_OFDMRXCRC32OK 0x170 12318c2ecf20Sopenharmony_ci#define RPMAC_OFDMRXCRC32ER 0x174 12328c2ecf20Sopenharmony_ci#define RPMAC_OFDMRXPARITYER 0x178 12338c2ecf20Sopenharmony_ci#define RPMAC_OFDMRXCRC8ER 0x17c 12348c2ecf20Sopenharmony_ci#define RPMAC_CCKCRXRC16ER 0x180 12358c2ecf20Sopenharmony_ci#define RPMAC_CCKCRXRC32ER 0x184 12368c2ecf20Sopenharmony_ci#define RPMAC_CCKCRXRC32OK 0x188 12378c2ecf20Sopenharmony_ci#define RPMAC_TXSTATUS 0x18c 12388c2ecf20Sopenharmony_ci 12398c2ecf20Sopenharmony_ci#define RFPGA0_RFMOD 0x800 12408c2ecf20Sopenharmony_ci 12418c2ecf20Sopenharmony_ci#define RFPGA0_TXINFO 0x804 12428c2ecf20Sopenharmony_ci#define RFPGA0_PSDFUNCTION 0x808 12438c2ecf20Sopenharmony_ci 12448c2ecf20Sopenharmony_ci#define RFPGA0_TXGAINSTAGE 0x80c 12458c2ecf20Sopenharmony_ci 12468c2ecf20Sopenharmony_ci#define RFPGA0_RFTIMING1 0x810 12478c2ecf20Sopenharmony_ci#define RFPGA0_RFTIMING2 0x814 12488c2ecf20Sopenharmony_ci 12498c2ecf20Sopenharmony_ci#define RFPGA0_XA_HSSIPARAMETER1 0x820 12508c2ecf20Sopenharmony_ci#define RFPGA0_XA_HSSIPARAMETER2 0x824 12518c2ecf20Sopenharmony_ci#define RFPGA0_XB_HSSIPARAMETER1 0x828 12528c2ecf20Sopenharmony_ci#define RFPGA0_XB_HSSIPARAMETER2 0x82c 12538c2ecf20Sopenharmony_ci 12548c2ecf20Sopenharmony_ci#define RFPGA0_XA_LSSIPARAMETER 0x840 12558c2ecf20Sopenharmony_ci#define RFPGA0_XB_LSSIPARAMETER 0x844 12568c2ecf20Sopenharmony_ci 12578c2ecf20Sopenharmony_ci#define RFPGA0_RFWAKEUPPARAMETER 0x850 12588c2ecf20Sopenharmony_ci#define RFPGA0_RFSLEEPUPPARAMETER 0x854 12598c2ecf20Sopenharmony_ci 12608c2ecf20Sopenharmony_ci#define RFPGA0_XAB_SWITCHCONTROL 0x858 12618c2ecf20Sopenharmony_ci#define RFPGA0_XCD_SWITCHCONTROL 0x85c 12628c2ecf20Sopenharmony_ci 12638c2ecf20Sopenharmony_ci#define RFPGA0_XA_RFINTERFACEOE 0x860 12648c2ecf20Sopenharmony_ci#define RFPGA0_XB_RFINTERFACEOE 0x864 12658c2ecf20Sopenharmony_ci 12668c2ecf20Sopenharmony_ci#define RFPGA0_XAB_RFINTERFACESW 0x870 12678c2ecf20Sopenharmony_ci#define RFPGA0_XCD_RFINTERFACESW 0x874 12688c2ecf20Sopenharmony_ci 12698c2ecf20Sopenharmony_ci#define RFPGA0_XAB_RFPARAMETER 0x878 12708c2ecf20Sopenharmony_ci#define RFPGA0_XCD_RFPARAMETER 0x87c 12718c2ecf20Sopenharmony_ci 12728c2ecf20Sopenharmony_ci#define RFPGA0_ANALOGPARAMETER1 0x880 12738c2ecf20Sopenharmony_ci#define RFPGA0_ANALOGPARAMETER2 0x884 12748c2ecf20Sopenharmony_ci#define RFPGA0_ANALOGPARAMETER3 0x888 12758c2ecf20Sopenharmony_ci#define RFPGA0_ANALOGPARAMETER4 0x88c 12768c2ecf20Sopenharmony_ci 12778c2ecf20Sopenharmony_ci#define RFPGA0_XA_LSSIREADBACK 0x8a0 12788c2ecf20Sopenharmony_ci#define RFPGA0_XB_LSSIREADBACK 0x8a4 12798c2ecf20Sopenharmony_ci#define RFPGA0_XC_LSSIREADBACK 0x8a8 12808c2ecf20Sopenharmony_ci#define RFPGA0_XD_LSSIREADBACK 0x8ac 12818c2ecf20Sopenharmony_ci 12828c2ecf20Sopenharmony_ci#define RFPGA0_PSDREPORT 0x8b4 12838c2ecf20Sopenharmony_ci#define TRANSCEIVEA_HSPI_READBACK 0x8b8 12848c2ecf20Sopenharmony_ci#define TRANSCEIVEB_HSPI_READBACK 0x8bc 12858c2ecf20Sopenharmony_ci#define RFPGA0_XAB_RFINTERFACERB 0x8e0 12868c2ecf20Sopenharmony_ci#define RFPGA0_XCD_RFINTERFACERB 0x8e4 12878c2ecf20Sopenharmony_ci 12888c2ecf20Sopenharmony_ci#define RFPGA1_RFMOD 0x900 12898c2ecf20Sopenharmony_ci 12908c2ecf20Sopenharmony_ci#define RFPGA1_TXBLOCK 0x904 12918c2ecf20Sopenharmony_ci#define RFPGA1_DEBUGSELECT 0x908 12928c2ecf20Sopenharmony_ci#define RFPGA1_TXINFO 0x90c 12938c2ecf20Sopenharmony_ci 12948c2ecf20Sopenharmony_ci#define RCCK0_SYSTEM 0xa00 12958c2ecf20Sopenharmony_ci 12968c2ecf20Sopenharmony_ci#define RCCK0_AFESETTING 0xa04 12978c2ecf20Sopenharmony_ci#define RCCK0_CCA 0xa08 12988c2ecf20Sopenharmony_ci 12998c2ecf20Sopenharmony_ci#define RCCK0_RXAGC1 0xa0c 13008c2ecf20Sopenharmony_ci#define RCCK0_RXAGC2 0xa10 13018c2ecf20Sopenharmony_ci 13028c2ecf20Sopenharmony_ci#define RCCK0_RXHP 0xa14 13038c2ecf20Sopenharmony_ci 13048c2ecf20Sopenharmony_ci#define RCCK0_DSPPARAMETER1 0xa18 13058c2ecf20Sopenharmony_ci#define RCCK0_DSPPARAMETER2 0xa1c 13068c2ecf20Sopenharmony_ci 13078c2ecf20Sopenharmony_ci#define RCCK0_TXFILTER1 0xa20 13088c2ecf20Sopenharmony_ci#define RCCK0_TXFILTER2 0xa24 13098c2ecf20Sopenharmony_ci#define RCCK0_DEBUGPORT 0xa28 13108c2ecf20Sopenharmony_ci#define RCCK0_FALSEALARMREPORT 0xa2c 13118c2ecf20Sopenharmony_ci#define RCCK0_TRSSIREPORT 0xa50 13128c2ecf20Sopenharmony_ci#define RCCK0_RXREPORT 0xa54 13138c2ecf20Sopenharmony_ci#define RCCK0_FACOUNTERLOWER 0xa5c 13148c2ecf20Sopenharmony_ci#define RCCK0_FACOUNTERUPPER 0xa58 13158c2ecf20Sopenharmony_ci 13168c2ecf20Sopenharmony_ci#define ROFDM0_LSTF 0xc00 13178c2ecf20Sopenharmony_ci 13188c2ecf20Sopenharmony_ci#define ROFDM0_TRXPATHENABLE 0xc04 13198c2ecf20Sopenharmony_ci#define ROFDM0_TRMUXPAR 0xc08 13208c2ecf20Sopenharmony_ci#define ROFDM0_TRSWISOLATION 0xc0c 13218c2ecf20Sopenharmony_ci 13228c2ecf20Sopenharmony_ci#define ROFDM0_XARXAFE 0xc10 13238c2ecf20Sopenharmony_ci#define ROFDM0_XARXIQIMBALANCE 0xc14 13248c2ecf20Sopenharmony_ci#define ROFDM0_XBRXAFE 0xc18 13258c2ecf20Sopenharmony_ci#define ROFDM0_XBRXIQIMBALANCE 0xc1c 13268c2ecf20Sopenharmony_ci#define ROFDM0_XCRXAFE 0xc20 13278c2ecf20Sopenharmony_ci#define ROFDM0_XCRXIQIMBANLANCE 0xc24 13288c2ecf20Sopenharmony_ci#define ROFDM0_XDRXAFE 0xc28 13298c2ecf20Sopenharmony_ci#define ROFDM0_XDRXIQIMBALANCE 0xc2c 13308c2ecf20Sopenharmony_ci 13318c2ecf20Sopenharmony_ci#define ROFDM0_RXDETECTOR1 0xc30 13328c2ecf20Sopenharmony_ci#define ROFDM0_RXDETECTOR2 0xc34 13338c2ecf20Sopenharmony_ci#define ROFDM0_RXDETECTOR3 0xc38 13348c2ecf20Sopenharmony_ci#define ROFDM0_RXDETECTOR4 0xc3c 13358c2ecf20Sopenharmony_ci 13368c2ecf20Sopenharmony_ci#define ROFDM0_RXDSP 0xc40 13378c2ecf20Sopenharmony_ci#define ROFDM0_CFOANDDAGC 0xc44 13388c2ecf20Sopenharmony_ci#define ROFDM0_CCADROPTHRESHOLD 0xc48 13398c2ecf20Sopenharmony_ci#define ROFDM0_ECCATHRESHOLD 0xc4c 13408c2ecf20Sopenharmony_ci 13418c2ecf20Sopenharmony_ci#define ROFDM0_XAAGCCORE1 0xc50 13428c2ecf20Sopenharmony_ci#define ROFDM0_XAAGCCORE2 0xc54 13438c2ecf20Sopenharmony_ci#define ROFDM0_XBAGCCORE1 0xc58 13448c2ecf20Sopenharmony_ci#define ROFDM0_XBAGCCORE2 0xc5c 13458c2ecf20Sopenharmony_ci#define ROFDM0_XCAGCCORE1 0xc60 13468c2ecf20Sopenharmony_ci#define ROFDM0_XCAGCCORE2 0xc64 13478c2ecf20Sopenharmony_ci#define ROFDM0_XDAGCCORE1 0xc68 13488c2ecf20Sopenharmony_ci#define ROFDM0_XDAGCCORE2 0xc6c 13498c2ecf20Sopenharmony_ci 13508c2ecf20Sopenharmony_ci#define ROFDM0_AGCPARAMETER1 0xc70 13518c2ecf20Sopenharmony_ci#define ROFDM0_AGCPARAMETER2 0xc74 13528c2ecf20Sopenharmony_ci#define ROFDM0_AGCRSSITABLE 0xc78 13538c2ecf20Sopenharmony_ci#define ROFDM0_HTSTFAGC 0xc7c 13548c2ecf20Sopenharmony_ci 13558c2ecf20Sopenharmony_ci#define ROFDM0_XATXIQIMBALANCE 0xc80 13568c2ecf20Sopenharmony_ci#define ROFDM0_XATXAFE 0xc84 13578c2ecf20Sopenharmony_ci#define ROFDM0_XBTXIQIMBALANCE 0xc88 13588c2ecf20Sopenharmony_ci#define ROFDM0_XBTXAFE 0xc8c 13598c2ecf20Sopenharmony_ci#define ROFDM0_XCTXIQIMBALANCE 0xc90 13608c2ecf20Sopenharmony_ci#define ROFDM0_XCTXAFE 0xc94 13618c2ecf20Sopenharmony_ci#define ROFDM0_XDTXIQIMBALANCE 0xc98 13628c2ecf20Sopenharmony_ci#define ROFDM0_XDTXAFE 0xc9c 13638c2ecf20Sopenharmony_ci 13648c2ecf20Sopenharmony_ci#define ROFDM0_RXIQEXTANTA 0xca0 13658c2ecf20Sopenharmony_ci 13668c2ecf20Sopenharmony_ci#define ROFDM0_RXHPPARAMETER 0xce0 13678c2ecf20Sopenharmony_ci#define ROFDM0_TXPSEUDONOISEWGT 0xce4 13688c2ecf20Sopenharmony_ci#define ROFDM0_FRAMESYNC 0xcf0 13698c2ecf20Sopenharmony_ci#define ROFDM0_DFSREPORT 0xcf4 13708c2ecf20Sopenharmony_ci#define ROFDM0_TXCOEFF1 0xca4 13718c2ecf20Sopenharmony_ci#define ROFDM0_TXCOEFF2 0xca8 13728c2ecf20Sopenharmony_ci#define ROFDM0_TXCOEFF3 0xcac 13738c2ecf20Sopenharmony_ci#define ROFDM0_TXCOEFF4 0xcb0 13748c2ecf20Sopenharmony_ci#define ROFDM0_TXCOEFF5 0xcb4 13758c2ecf20Sopenharmony_ci#define ROFDM0_TXCOEFF6 0xcb8 13768c2ecf20Sopenharmony_ci 13778c2ecf20Sopenharmony_ci#define ROFDM1_LSTF 0xd00 13788c2ecf20Sopenharmony_ci#define ROFDM1_TRXPATHENABLE 0xd04 13798c2ecf20Sopenharmony_ci 13808c2ecf20Sopenharmony_ci#define ROFDM1_CF0 0xd08 13818c2ecf20Sopenharmony_ci#define ROFDM1_CSI1 0xd10 13828c2ecf20Sopenharmony_ci#define ROFDM1_SBD 0xd14 13838c2ecf20Sopenharmony_ci#define ROFDM1_CSI2 0xd18 13848c2ecf20Sopenharmony_ci#define ROFDM1_CFOTRACKING 0xd2c 13858c2ecf20Sopenharmony_ci#define ROFDM1_TRXMESAURE1 0xd34 13868c2ecf20Sopenharmony_ci#define ROFDM1_INTFDET 0xd3c 13878c2ecf20Sopenharmony_ci#define ROFDM1_PSEUDONOISESTATEAB 0xd50 13888c2ecf20Sopenharmony_ci#define ROFDM1_PSEUDONOISESTATECD 0xd54 13898c2ecf20Sopenharmony_ci#define ROFDM1_RXPSEUDONOISEWGT 0xd58 13908c2ecf20Sopenharmony_ci 13918c2ecf20Sopenharmony_ci#define ROFDM_PHYCOUNTER1 0xda0 13928c2ecf20Sopenharmony_ci#define ROFDM_PHYCOUNTER2 0xda4 13938c2ecf20Sopenharmony_ci#define ROFDM_PHYCOUNTER3 0xda8 13948c2ecf20Sopenharmony_ci 13958c2ecf20Sopenharmony_ci#define ROFDM_SHORTCFOAB 0xdac 13968c2ecf20Sopenharmony_ci#define ROFDM_SHORTCFOCD 0xdb0 13978c2ecf20Sopenharmony_ci#define ROFDM_LONGCFOAB 0xdb4 13988c2ecf20Sopenharmony_ci#define ROFDM_LONGCFOCD 0xdb8 13998c2ecf20Sopenharmony_ci#define ROFDM_TAILCF0AB 0xdbc 14008c2ecf20Sopenharmony_ci#define ROFDM_TAILCF0CD 0xdc0 14018c2ecf20Sopenharmony_ci#define ROFDM_PWMEASURE1 0xdc4 14028c2ecf20Sopenharmony_ci#define ROFDM_PWMEASURE2 0xdc8 14038c2ecf20Sopenharmony_ci#define ROFDM_BWREPORT 0xdcc 14048c2ecf20Sopenharmony_ci#define ROFDM_AGCREPORT 0xdd0 14058c2ecf20Sopenharmony_ci#define ROFDM_RXSNR 0xdd4 14068c2ecf20Sopenharmony_ci#define ROFDM_RXEVMCSI 0xdd8 14078c2ecf20Sopenharmony_ci#define ROFDM_SIGREPORT 0xddc 14088c2ecf20Sopenharmony_ci 14098c2ecf20Sopenharmony_ci#define RTXAGC_A_RATE18_06 0xe00 14108c2ecf20Sopenharmony_ci#define RTXAGC_A_RATE54_24 0xe04 14118c2ecf20Sopenharmony_ci#define RTXAGC_A_CCK1_MCS32 0xe08 14128c2ecf20Sopenharmony_ci#define RTXAGC_A_MCS03_MCS00 0xe10 14138c2ecf20Sopenharmony_ci#define RTXAGC_A_MCS07_MCS04 0xe14 14148c2ecf20Sopenharmony_ci#define RTXAGC_A_MCS11_MCS08 0xe18 14158c2ecf20Sopenharmony_ci#define RTXAGC_A_MCS15_MCS12 0xe1c 14168c2ecf20Sopenharmony_ci 14178c2ecf20Sopenharmony_ci#define RTXAGC_B_RATE18_06 0x830 14188c2ecf20Sopenharmony_ci#define RTXAGC_B_RATE54_24 0x834 14198c2ecf20Sopenharmony_ci#define RTXAGC_B_CCK1_55_MCS32 0x838 14208c2ecf20Sopenharmony_ci#define RTXAGC_B_MCS03_MCS00 0x83c 14218c2ecf20Sopenharmony_ci#define RTXAGC_B_MCS07_MCS04 0x848 14228c2ecf20Sopenharmony_ci#define RTXAGC_B_MCS11_MCS08 0x84c 14238c2ecf20Sopenharmony_ci#define RTXAGC_B_MCS15_MCS12 0x868 14248c2ecf20Sopenharmony_ci#define RTXAGC_B_CCK11_A_CCK2_11 0x86c 14258c2ecf20Sopenharmony_ci 14268c2ecf20Sopenharmony_ci#define RZEBRA1_HSSIENABLE 0x0 14278c2ecf20Sopenharmony_ci#define RZEBRA1_TRXENABLE1 0x1 14288c2ecf20Sopenharmony_ci#define RZEBRA1_TRXENABLE2 0x2 14298c2ecf20Sopenharmony_ci#define RZEBRA1_AGC 0x4 14308c2ecf20Sopenharmony_ci#define RZEBRA1_CHARGEPUMP 0x5 14318c2ecf20Sopenharmony_ci#define RZEBRA1_CHANNEL 0x7 14328c2ecf20Sopenharmony_ci 14338c2ecf20Sopenharmony_ci#define RZEBRA1_TXGAIN 0x8 14348c2ecf20Sopenharmony_ci#define RZEBRA1_TXLPF 0x9 14358c2ecf20Sopenharmony_ci#define RZEBRA1_RXLPF 0xb 14368c2ecf20Sopenharmony_ci#define RZEBRA1_RXHPFCORNER 0xc 14378c2ecf20Sopenharmony_ci 14388c2ecf20Sopenharmony_ci#define RGLOBALCTRL 0 14398c2ecf20Sopenharmony_ci#define RRTL8256_TXLPF 19 14408c2ecf20Sopenharmony_ci#define RRTL8256_RXLPF 11 14418c2ecf20Sopenharmony_ci#define RRTL8258_TXLPF 0x11 14428c2ecf20Sopenharmony_ci#define RRTL8258_RXLPF 0x13 14438c2ecf20Sopenharmony_ci#define RRTL8258_RSSILPF 0xa 14448c2ecf20Sopenharmony_ci 14458c2ecf20Sopenharmony_ci#define RF_AC 0x00 14468c2ecf20Sopenharmony_ci 14478c2ecf20Sopenharmony_ci#define RF_IQADJ_G1 0x01 14488c2ecf20Sopenharmony_ci#define RF_IQADJ_G2 0x02 14498c2ecf20Sopenharmony_ci#define RF_POW_TRSW 0x05 14508c2ecf20Sopenharmony_ci 14518c2ecf20Sopenharmony_ci#define RF_GAIN_RX 0x06 14528c2ecf20Sopenharmony_ci#define RF_GAIN_TX 0x07 14538c2ecf20Sopenharmony_ci 14548c2ecf20Sopenharmony_ci#define RF_TXM_IDAC 0x08 14558c2ecf20Sopenharmony_ci#define RF_BS_IQGEN 0x0F 14568c2ecf20Sopenharmony_ci 14578c2ecf20Sopenharmony_ci#define RF_MODE1 0x10 14588c2ecf20Sopenharmony_ci#define RF_MODE2 0x11 14598c2ecf20Sopenharmony_ci 14608c2ecf20Sopenharmony_ci#define RF_RX_AGC_HP 0x12 14618c2ecf20Sopenharmony_ci#define RF_TX_AGC 0x13 14628c2ecf20Sopenharmony_ci#define RF_BIAS 0x14 14638c2ecf20Sopenharmony_ci#define RF_IPA 0x15 14648c2ecf20Sopenharmony_ci#define RF_POW_ABILITY 0x17 14658c2ecf20Sopenharmony_ci#define RF_MODE_AG 0x18 14668c2ecf20Sopenharmony_ci#define RRFCHANNEL 0x18 14678c2ecf20Sopenharmony_ci#define RF_CHNLBW 0x18 14688c2ecf20Sopenharmony_ci#define RF_TOP 0x19 14698c2ecf20Sopenharmony_ci 14708c2ecf20Sopenharmony_ci#define RF_RX_G1 0x1A 14718c2ecf20Sopenharmony_ci#define RF_RX_G2 0x1B 14728c2ecf20Sopenharmony_ci 14738c2ecf20Sopenharmony_ci#define RF_RX_BB2 0x1C 14748c2ecf20Sopenharmony_ci#define RF_RX_BB1 0x1D 14758c2ecf20Sopenharmony_ci 14768c2ecf20Sopenharmony_ci#define RF_RCK1 0x1E 14778c2ecf20Sopenharmony_ci#define RF_RCK2 0x1F 14788c2ecf20Sopenharmony_ci 14798c2ecf20Sopenharmony_ci#define RF_TX_G1 0x20 14808c2ecf20Sopenharmony_ci#define RF_TX_G2 0x21 14818c2ecf20Sopenharmony_ci#define RF_TX_G3 0x22 14828c2ecf20Sopenharmony_ci 14838c2ecf20Sopenharmony_ci#define RF_TX_BB1 0x23 14848c2ecf20Sopenharmony_ci#define RF_T_METER 0x24 14858c2ecf20Sopenharmony_ci 14868c2ecf20Sopenharmony_ci#define RF_SYN_G1 0x25 14878c2ecf20Sopenharmony_ci#define RF_SYN_G2 0x26 14888c2ecf20Sopenharmony_ci#define RF_SYN_G3 0x27 14898c2ecf20Sopenharmony_ci#define RF_SYN_G4 0x28 14908c2ecf20Sopenharmony_ci#define RF_SYN_G5 0x29 14918c2ecf20Sopenharmony_ci#define RF_SYN_G6 0x2A 14928c2ecf20Sopenharmony_ci#define RF_SYN_G7 0x2B 14938c2ecf20Sopenharmony_ci#define RF_SYN_G8 0x2C 14948c2ecf20Sopenharmony_ci 14958c2ecf20Sopenharmony_ci#define RF_RCK_OS 0x30 14968c2ecf20Sopenharmony_ci#define RF_TXPA_G1 0x31 14978c2ecf20Sopenharmony_ci#define RF_TXPA_G2 0x32 14988c2ecf20Sopenharmony_ci#define RF_TXPA_G3 0x33 14998c2ecf20Sopenharmony_ci 15008c2ecf20Sopenharmony_ci#define BBBRESETB 0x100 15018c2ecf20Sopenharmony_ci#define BGLOBALRESETB 0x200 15028c2ecf20Sopenharmony_ci#define BOFDMTXSTART 0x4 15038c2ecf20Sopenharmony_ci#define BCCKTXSTART 0x8 15048c2ecf20Sopenharmony_ci#define BCRC32DEBUG 0x100 15058c2ecf20Sopenharmony_ci#define BPMACLOOPBACK 0x10 15068c2ecf20Sopenharmony_ci#define BTXLSIG 0xffffff 15078c2ecf20Sopenharmony_ci#define BOFDMTXRATE 0xf 15088c2ecf20Sopenharmony_ci#define BOFDMTXRESERVED 0x10 15098c2ecf20Sopenharmony_ci#define BOFDMTXLENGTH 0x1ffe0 15108c2ecf20Sopenharmony_ci#define BOFDMTXPARITY 0x20000 15118c2ecf20Sopenharmony_ci#define BTXHTSIG1 0xffffff 15128c2ecf20Sopenharmony_ci#define BTXHTMCSRATE 0x7f 15138c2ecf20Sopenharmony_ci#define BTXHTBW 0x80 15148c2ecf20Sopenharmony_ci#define BTXHTLENGTH 0xffff00 15158c2ecf20Sopenharmony_ci#define BTXHTSIG2 0xffffff 15168c2ecf20Sopenharmony_ci#define BTXHTSMOOTHING 0x1 15178c2ecf20Sopenharmony_ci#define BTXHTSOUNDING 0x2 15188c2ecf20Sopenharmony_ci#define BTXHTRESERVED 0x4 15198c2ecf20Sopenharmony_ci#define BTXHTAGGREATION 0x8 15208c2ecf20Sopenharmony_ci#define BTXHTSTBC 0x30 15218c2ecf20Sopenharmony_ci#define BTXHTADVANCECODING 0x40 15228c2ecf20Sopenharmony_ci#define BTXHTSHORTGI 0x80 15238c2ecf20Sopenharmony_ci#define BTXHTNUMBERHT_LTF 0x300 15248c2ecf20Sopenharmony_ci#define BTXHTCRC8 0x3fc00 15258c2ecf20Sopenharmony_ci#define BCOUNTERRESET 0x10000 15268c2ecf20Sopenharmony_ci#define BNUMOFOFDMTX 0xffff 15278c2ecf20Sopenharmony_ci#define BNUMOFCCKTX 0xffff0000 15288c2ecf20Sopenharmony_ci#define BTXIDLEINTERVAL 0xffff 15298c2ecf20Sopenharmony_ci#define BOFDMSERVICE 0xffff0000 15308c2ecf20Sopenharmony_ci#define BTXMACHEADER 0xffffffff 15318c2ecf20Sopenharmony_ci#define BTXDATAINIT 0xff 15328c2ecf20Sopenharmony_ci#define BTXHTMODE 0x100 15338c2ecf20Sopenharmony_ci#define BTXDATATYPE 0x30000 15348c2ecf20Sopenharmony_ci#define BTXRANDOMSEED 0xffffffff 15358c2ecf20Sopenharmony_ci#define BCCKTXPREAMBLE 0x1 15368c2ecf20Sopenharmony_ci#define BCCKTXSFD 0xffff0000 15378c2ecf20Sopenharmony_ci#define BCCKTXSIG 0xff 15388c2ecf20Sopenharmony_ci#define BCCKTXSERVICE 0xff00 15398c2ecf20Sopenharmony_ci#define BCCKLENGTHEXT 0x8000 15408c2ecf20Sopenharmony_ci#define BCCKTXLENGHT 0xffff0000 15418c2ecf20Sopenharmony_ci#define BCCKTXCRC16 0xffff 15428c2ecf20Sopenharmony_ci#define BCCKTXSTATUS 0x1 15438c2ecf20Sopenharmony_ci#define BOFDMTXSTATUS 0x2 15448c2ecf20Sopenharmony_ci#define IS_BB_REG_OFFSET_92S(_offset) \ 15458c2ecf20Sopenharmony_ci ((_offset >= 0x800) && (_offset <= 0xfff)) 15468c2ecf20Sopenharmony_ci 15478c2ecf20Sopenharmony_ci#define BRFMOD 0x1 15488c2ecf20Sopenharmony_ci#define BJAPANMODE 0x2 15498c2ecf20Sopenharmony_ci#define BCCKTXSC 0x30 15508c2ecf20Sopenharmony_ci#define BCCKEN 0x1000000 15518c2ecf20Sopenharmony_ci#define BOFDMEN 0x2000000 15528c2ecf20Sopenharmony_ci 15538c2ecf20Sopenharmony_ci#define BOFDMRXADCPHASE 0x10000 15548c2ecf20Sopenharmony_ci#define BOFDMTXDACPHASE 0x40000 15558c2ecf20Sopenharmony_ci#define BXATXAGC 0x3f 15568c2ecf20Sopenharmony_ci 15578c2ecf20Sopenharmony_ci#define BXBTXAGC 0xf00 15588c2ecf20Sopenharmony_ci#define BXCTXAGC 0xf000 15598c2ecf20Sopenharmony_ci#define BXDTXAGC 0xf0000 15608c2ecf20Sopenharmony_ci 15618c2ecf20Sopenharmony_ci#define BPASTART 0xf0000000 15628c2ecf20Sopenharmony_ci#define BTRSTART 0x00f00000 15638c2ecf20Sopenharmony_ci#define BRFSTART 0x0000f000 15648c2ecf20Sopenharmony_ci#define BBBSTART 0x000000f0 15658c2ecf20Sopenharmony_ci#define BBBCCKSTART 0x0000000f 15668c2ecf20Sopenharmony_ci#define BPAEND 0xf 15678c2ecf20Sopenharmony_ci#define BTREND 0x0f000000 15688c2ecf20Sopenharmony_ci#define BRFEND 0x000f0000 15698c2ecf20Sopenharmony_ci#define BCCAMASK 0x000000f0 15708c2ecf20Sopenharmony_ci#define BR2RCCAMASK 0x00000f00 15718c2ecf20Sopenharmony_ci#define BHSSI_R2TDELAY 0xf8000000 15728c2ecf20Sopenharmony_ci#define BHSSI_T2RDELAY 0xf80000 15738c2ecf20Sopenharmony_ci#define BCONTXHSSI 0x400 15748c2ecf20Sopenharmony_ci#define BIGFROMCCK 0x200 15758c2ecf20Sopenharmony_ci#define BAGCADDRESS 0x3f 15768c2ecf20Sopenharmony_ci#define BRXHPTX 0x7000 15778c2ecf20Sopenharmony_ci#define BRXHP2RX 0x38000 15788c2ecf20Sopenharmony_ci#define BRXHPCCKINI 0xc0000 15798c2ecf20Sopenharmony_ci#define BAGCTXCODE 0xc00000 15808c2ecf20Sopenharmony_ci#define BAGCRXCODE 0x300000 15818c2ecf20Sopenharmony_ci 15828c2ecf20Sopenharmony_ci#define B3WIREDATALENGTH 0x800 15838c2ecf20Sopenharmony_ci#define B3WIREADDREAALENGTH 0x400 15848c2ecf20Sopenharmony_ci 15858c2ecf20Sopenharmony_ci#define B3WIRERFPOWERDOWN 0x1 15868c2ecf20Sopenharmony_ci#define B5GPAPEPOLARITY 0x40000000 15878c2ecf20Sopenharmony_ci#define B2GPAPEPOLARITY 0x80000000 15888c2ecf20Sopenharmony_ci#define BRFSW_TXDEFAULTANT 0x3 15898c2ecf20Sopenharmony_ci#define BRFSW_TXOPTIONANT 0x30 15908c2ecf20Sopenharmony_ci#define BRFSW_RXDEFAULTANT 0x300 15918c2ecf20Sopenharmony_ci#define BRFSW_RXOPTIONANT 0x3000 15928c2ecf20Sopenharmony_ci#define BRFSI_3WIREDATA 0x1 15938c2ecf20Sopenharmony_ci#define BRFSI_3WIRECLOCK 0x2 15948c2ecf20Sopenharmony_ci#define BRFSI_3WIRELOAD 0x4 15958c2ecf20Sopenharmony_ci#define BRFSI_3WIRERW 0x8 15968c2ecf20Sopenharmony_ci#define BRFSI_3WIRE 0xf 15978c2ecf20Sopenharmony_ci 15988c2ecf20Sopenharmony_ci#define BRFSI_RFENV 0x10 15998c2ecf20Sopenharmony_ci 16008c2ecf20Sopenharmony_ci#define BRFSI_TRSW 0x20 16018c2ecf20Sopenharmony_ci#define BRFSI_TRSWB 0x40 16028c2ecf20Sopenharmony_ci#define BRFSI_ANTSW 0x100 16038c2ecf20Sopenharmony_ci#define BRFSI_ANTSWB 0x200 16048c2ecf20Sopenharmony_ci#define BRFSI_PAPE 0x400 16058c2ecf20Sopenharmony_ci#define BRFSI_PAPE5G 0x800 16068c2ecf20Sopenharmony_ci#define BBANDSELECT 0x1 16078c2ecf20Sopenharmony_ci#define BHTSIG2_GI 0x80 16088c2ecf20Sopenharmony_ci#define BHTSIG2_SMOOTHING 0x01 16098c2ecf20Sopenharmony_ci#define BHTSIG2_SOUNDING 0x02 16108c2ecf20Sopenharmony_ci#define BHTSIG2_AGGREATON 0x08 16118c2ecf20Sopenharmony_ci#define BHTSIG2_STBC 0x30 16128c2ecf20Sopenharmony_ci#define BHTSIG2_ADVCODING 0x40 16138c2ecf20Sopenharmony_ci#define BHTSIG2_NUMOFHTLTF 0x300 16148c2ecf20Sopenharmony_ci#define BHTSIG2_CRC8 0x3fc 16158c2ecf20Sopenharmony_ci#define BHTSIG1_MCS 0x7f 16168c2ecf20Sopenharmony_ci#define BHTSIG1_BANDWIDTH 0x80 16178c2ecf20Sopenharmony_ci#define BHTSIG1_HTLENGTH 0xffff 16188c2ecf20Sopenharmony_ci#define BLSIG_RATE 0xf 16198c2ecf20Sopenharmony_ci#define BLSIG_RESERVED 0x10 16208c2ecf20Sopenharmony_ci#define BLSIG_LENGTH 0x1fffe 16218c2ecf20Sopenharmony_ci#define BLSIG_PARITY 0x20 16228c2ecf20Sopenharmony_ci#define BCCKRXPHASE 0x4 16238c2ecf20Sopenharmony_ci 16248c2ecf20Sopenharmony_ci#define BLSSIREADADDRESS 0x7f800000 16258c2ecf20Sopenharmony_ci#define BLSSIREADEDGE 0x80000000 16268c2ecf20Sopenharmony_ci 16278c2ecf20Sopenharmony_ci#define BLSSIREADBACKDATA 0xfffff 16288c2ecf20Sopenharmony_ci 16298c2ecf20Sopenharmony_ci#define BLSSIREADOKFLAG 0x1000 16308c2ecf20Sopenharmony_ci#define BCCKSAMPLERATE 0x8 16318c2ecf20Sopenharmony_ci#define BREGULATOR0STANDBY 0x1 16328c2ecf20Sopenharmony_ci#define BREGULATORPLLSTANDBY 0x2 16338c2ecf20Sopenharmony_ci#define BREGULATOR1STANDBY 0x4 16348c2ecf20Sopenharmony_ci#define BPLLPOWERUP 0x8 16358c2ecf20Sopenharmony_ci#define BDPLLPOWERUP 0x10 16368c2ecf20Sopenharmony_ci#define BDA10POWERUP 0x20 16378c2ecf20Sopenharmony_ci#define BAD7POWERUP 0x200 16388c2ecf20Sopenharmony_ci#define BDA6POWERUP 0x2000 16398c2ecf20Sopenharmony_ci#define BXTALPOWERUP 0x4000 16408c2ecf20Sopenharmony_ci#define B40MDCLKPOWERUP 0x8000 16418c2ecf20Sopenharmony_ci#define BDA6DEBUGMODE 0x20000 16428c2ecf20Sopenharmony_ci#define BDA6SWING 0x380000 16438c2ecf20Sopenharmony_ci 16448c2ecf20Sopenharmony_ci#define BADCLKPHASE 0x4000000 16458c2ecf20Sopenharmony_ci#define B80MCLKDELAY 0x18000000 16468c2ecf20Sopenharmony_ci#define BAFEWATCHDOGENABLE 0x20000000 16478c2ecf20Sopenharmony_ci 16488c2ecf20Sopenharmony_ci#define BXTALCAP01 0xc0000000 16498c2ecf20Sopenharmony_ci#define BXTALCAP23 0x3 16508c2ecf20Sopenharmony_ci#define BXTALCAP92X 0x0f000000 16518c2ecf20Sopenharmony_ci#define BXTALCAP 0x0f000000 16528c2ecf20Sopenharmony_ci 16538c2ecf20Sopenharmony_ci#define BINTDIFCLKENABLE 0x400 16548c2ecf20Sopenharmony_ci#define BEXTSIGCLKENABLE 0x800 16558c2ecf20Sopenharmony_ci#define BBANDGAP_MBIAS_POWERUP 0x10000 16568c2ecf20Sopenharmony_ci#define BAD11SH_GAIN 0xc0000 16578c2ecf20Sopenharmony_ci#define BAD11NPUT_RANGE 0x700000 16588c2ecf20Sopenharmony_ci#define BAD110P_CURRENT 0x3800000 16598c2ecf20Sopenharmony_ci#define BLPATH_LOOPBACK 0x4000000 16608c2ecf20Sopenharmony_ci#define BQPATH_LOOPBACK 0x8000000 16618c2ecf20Sopenharmony_ci#define BAFE_LOOPBACK 0x10000000 16628c2ecf20Sopenharmony_ci#define BDA10_SWING 0x7e0 16638c2ecf20Sopenharmony_ci#define BDA10_REVERSE 0x800 16648c2ecf20Sopenharmony_ci#define BDA_CLK_SOURCE 0x1000 16658c2ecf20Sopenharmony_ci#define BDA7INPUT_RANGE 0x6000 16668c2ecf20Sopenharmony_ci#define BDA7_GAIN 0x38000 16678c2ecf20Sopenharmony_ci#define BDA7OUTPUT_CM_MODE 0x40000 16688c2ecf20Sopenharmony_ci#define BDA7INPUT_CM_MODE 0x380000 16698c2ecf20Sopenharmony_ci#define BDA7CURRENT 0xc00000 16708c2ecf20Sopenharmony_ci#define BREGULATOR_ADJUST 0x7000000 16718c2ecf20Sopenharmony_ci#define BAD11POWERUP_ATTX 0x1 16728c2ecf20Sopenharmony_ci#define BDA10PS_ATTX 0x10 16738c2ecf20Sopenharmony_ci#define BAD11POWERUP_ATRX 0x100 16748c2ecf20Sopenharmony_ci#define BDA10PS_ATRX 0x1000 16758c2ecf20Sopenharmony_ci#define BCCKRX_AGC_FORMAT 0x200 16768c2ecf20Sopenharmony_ci#define BPSDFFT_SAMPLE_POINT 0xc000 16778c2ecf20Sopenharmony_ci#define BPSD_AVERAGE_NUM 0x3000 16788c2ecf20Sopenharmony_ci#define BIQPATH_CONTROL 0xc00 16798c2ecf20Sopenharmony_ci#define BPSD_FREQ 0x3ff 16808c2ecf20Sopenharmony_ci#define BPSD_ANTENNA_PATH 0x30 16818c2ecf20Sopenharmony_ci#define BPSD_IQ_SWITCH 0x40 16828c2ecf20Sopenharmony_ci#define BPSD_RX_TRIGGER 0x400000 16838c2ecf20Sopenharmony_ci#define BPSD_TX_TRIGGER 0x80000000 16848c2ecf20Sopenharmony_ci#define BPSD_SINE_TONE_SCALE 0x7f000000 16858c2ecf20Sopenharmony_ci#define BPSD_REPORT 0xffff 16868c2ecf20Sopenharmony_ci 16878c2ecf20Sopenharmony_ci#define BOFDM_TXSC 0x30000000 16888c2ecf20Sopenharmony_ci#define BCCK_TXON 0x1 16898c2ecf20Sopenharmony_ci#define BOFDM_TXON 0x2 16908c2ecf20Sopenharmony_ci#define BDEBUG_PAGE 0xfff 16918c2ecf20Sopenharmony_ci#define BDEBUG_ITEM 0xff 16928c2ecf20Sopenharmony_ci#define BANTL 0x10 16938c2ecf20Sopenharmony_ci#define BANT_NONHT 0x100 16948c2ecf20Sopenharmony_ci#define BANT_HT1 0x1000 16958c2ecf20Sopenharmony_ci#define BANT_HT2 0x10000 16968c2ecf20Sopenharmony_ci#define BANT_HT1S1 0x100000 16978c2ecf20Sopenharmony_ci#define BANT_NONHTS1 0x1000000 16988c2ecf20Sopenharmony_ci 16998c2ecf20Sopenharmony_ci#define BCCK_BBMODE 0x3 17008c2ecf20Sopenharmony_ci#define BCCK_TXPOWERSAVING 0x80 17018c2ecf20Sopenharmony_ci#define BCCK_RXPOWERSAVING 0x40 17028c2ecf20Sopenharmony_ci 17038c2ecf20Sopenharmony_ci#define BCCK_SIDEBAND 0x10 17048c2ecf20Sopenharmony_ci 17058c2ecf20Sopenharmony_ci#define BCCK_SCRAMBLE 0x8 17068c2ecf20Sopenharmony_ci#define BCCK_ANTDIVERSITY 0x8000 17078c2ecf20Sopenharmony_ci#define BCCK_CARRIER_RECOVERY 0x4000 17088c2ecf20Sopenharmony_ci#define BCCK_TXRATE 0x3000 17098c2ecf20Sopenharmony_ci#define BCCK_DCCANCEL 0x0800 17108c2ecf20Sopenharmony_ci#define BCCK_ISICANCEL 0x0400 17118c2ecf20Sopenharmony_ci#define BCCK_MATCH_FILTER 0x0200 17128c2ecf20Sopenharmony_ci#define BCCK_EQUALIZER 0x0100 17138c2ecf20Sopenharmony_ci#define BCCK_PREAMBLE_DETECT 0x800000 17148c2ecf20Sopenharmony_ci#define BCCK_FAST_FALSECCA 0x400000 17158c2ecf20Sopenharmony_ci#define BCCK_CH_ESTSTART 0x300000 17168c2ecf20Sopenharmony_ci#define BCCK_CCA_COUNT 0x080000 17178c2ecf20Sopenharmony_ci#define BCCK_CS_LIM 0x070000 17188c2ecf20Sopenharmony_ci#define BCCK_BIST_MODE 0x80000000 17198c2ecf20Sopenharmony_ci#define BCCK_CCAMASK 0x40000000 17208c2ecf20Sopenharmony_ci#define BCCK_TX_DAC_PHASE 0x4 17218c2ecf20Sopenharmony_ci#define BCCK_RX_ADC_PHASE 0x20000000 17228c2ecf20Sopenharmony_ci#define BCCKR_CP_MODE 0x0100 17238c2ecf20Sopenharmony_ci#define BCCK_TXDC_OFFSET 0xf0 17248c2ecf20Sopenharmony_ci#define BCCK_RXDC_OFFSET 0xf 17258c2ecf20Sopenharmony_ci#define BCCK_CCA_MODE 0xc000 17268c2ecf20Sopenharmony_ci#define BCCK_FALSECS_LIM 0x3f00 17278c2ecf20Sopenharmony_ci#define BCCK_CS_RATIO 0xc00000 17288c2ecf20Sopenharmony_ci#define BCCK_CORGBIT_SEL 0x300000 17298c2ecf20Sopenharmony_ci#define BCCK_PD_LIM 0x0f0000 17308c2ecf20Sopenharmony_ci#define BCCK_NEWCCA 0x80000000 17318c2ecf20Sopenharmony_ci#define BCCK_RXHP_OF_IG 0x8000 17328c2ecf20Sopenharmony_ci#define BCCK_RXIG 0x7f00 17338c2ecf20Sopenharmony_ci#define BCCK_LNA_POLARITY 0x800000 17348c2ecf20Sopenharmony_ci#define BCCK_RX1ST_BAIN 0x7f0000 17358c2ecf20Sopenharmony_ci#define BCCK_RF_EXTEND 0x20000000 17368c2ecf20Sopenharmony_ci#define BCCK_RXAGC_SATLEVEL 0x1f000000 17378c2ecf20Sopenharmony_ci#define BCCK_RXAGC_SATCOUNT 0xe0 17388c2ecf20Sopenharmony_ci#define BCCKRXRFSETTLE 0x1f 17398c2ecf20Sopenharmony_ci#define BCCK_FIXED_RXAGC 0x8000 17408c2ecf20Sopenharmony_ci#define BCCK_ANTENNA_POLARITY 0x2000 17418c2ecf20Sopenharmony_ci#define BCCK_TXFILTER_TYPE 0x0c00 17428c2ecf20Sopenharmony_ci#define BCCK_RXAGC_REPORTTYPE 0x0300 17438c2ecf20Sopenharmony_ci#define BCCK_RXDAGC_EN 0x80000000 17448c2ecf20Sopenharmony_ci#define BCCK_RXDAGC_PERIOD 0x20000000 17458c2ecf20Sopenharmony_ci#define BCCK_RXDAGC_SATLEVEL 0x1f000000 17468c2ecf20Sopenharmony_ci#define BCCK_TIMING_RECOVERY 0x800000 17478c2ecf20Sopenharmony_ci#define BCCK_TXC0 0x3f0000 17488c2ecf20Sopenharmony_ci#define BCCK_TXC1 0x3f000000 17498c2ecf20Sopenharmony_ci#define BCCK_TXC2 0x3f 17508c2ecf20Sopenharmony_ci#define BCCK_TXC3 0x3f00 17518c2ecf20Sopenharmony_ci#define BCCK_TXC4 0x3f0000 17528c2ecf20Sopenharmony_ci#define BCCK_TXC5 0x3f000000 17538c2ecf20Sopenharmony_ci#define BCCK_TXC6 0x3f 17548c2ecf20Sopenharmony_ci#define BCCK_TXC7 0x3f00 17558c2ecf20Sopenharmony_ci#define BCCK_DEBUGPORT 0xff0000 17568c2ecf20Sopenharmony_ci#define BCCK_DAC_DEBUG 0x0f000000 17578c2ecf20Sopenharmony_ci#define BCCK_FALSEALARM_ENABLE 0x8000 17588c2ecf20Sopenharmony_ci#define BCCK_FALSEALARM_READ 0x4000 17598c2ecf20Sopenharmony_ci#define BCCK_TRSSI 0x7f 17608c2ecf20Sopenharmony_ci#define BCCK_RXAGC_REPORT 0xfe 17618c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_ANTSEL 0x80000000 17628c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_MFOFF 0x40000000 17638c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_SQLOSS 0x20000000 17648c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_PKTLOSS 0x10000000 17658c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_LOCKEDBIT 0x08000000 17668c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_RATEERROR 0x04000000 17678c2ecf20Sopenharmony_ci#define BCCK_RXREPORT_RXRATE 0x03000000 17688c2ecf20Sopenharmony_ci#define BCCK_RXFA_COUNTER_LOWER 0xff 17698c2ecf20Sopenharmony_ci#define BCCK_RXFA_COUNTER_UPPER 0xff000000 17708c2ecf20Sopenharmony_ci#define BCCK_RXHPAGC_START 0xe000 17718c2ecf20Sopenharmony_ci#define BCCK_RXHPAGC_FINAL 0x1c00 17728c2ecf20Sopenharmony_ci#define BCCK_RXFALSEALARM_ENABLE 0x8000 17738c2ecf20Sopenharmony_ci#define BCCK_FACOUNTER_FREEZE 0x4000 17748c2ecf20Sopenharmony_ci#define BCCK_TXPATH_SEL 0x10000000 17758c2ecf20Sopenharmony_ci#define BCCK_DEFAULT_RXPATH 0xc000000 17768c2ecf20Sopenharmony_ci#define BCCK_OPTION_RXPATH 0x3000000 17778c2ecf20Sopenharmony_ci 17788c2ecf20Sopenharmony_ci#define BNUM_OFSTF 0x3 17798c2ecf20Sopenharmony_ci#define BSHIFT_L 0xc0 17808c2ecf20Sopenharmony_ci#define BGI_TH 0xc 17818c2ecf20Sopenharmony_ci#define BRXPATH_A 0x1 17828c2ecf20Sopenharmony_ci#define BRXPATH_B 0x2 17838c2ecf20Sopenharmony_ci#define BRXPATH_C 0x4 17848c2ecf20Sopenharmony_ci#define BRXPATH_D 0x8 17858c2ecf20Sopenharmony_ci#define BTXPATH_A 0x1 17868c2ecf20Sopenharmony_ci#define BTXPATH_B 0x2 17878c2ecf20Sopenharmony_ci#define BTXPATH_C 0x4 17888c2ecf20Sopenharmony_ci#define BTXPATH_D 0x8 17898c2ecf20Sopenharmony_ci#define BTRSSI_FREQ 0x200 17908c2ecf20Sopenharmony_ci#define BADC_BACKOFF 0x3000 17918c2ecf20Sopenharmony_ci#define BDFIR_BACKOFF 0xc000 17928c2ecf20Sopenharmony_ci#define BTRSSI_LATCH_PHASE 0x10000 17938c2ecf20Sopenharmony_ci#define BRX_LDC_OFFSET 0xff 17948c2ecf20Sopenharmony_ci#define BRX_QDC_OFFSET 0xff00 17958c2ecf20Sopenharmony_ci#define BRX_DFIR_MODE 0x1800000 17968c2ecf20Sopenharmony_ci#define BRX_DCNF_TYPE 0xe000000 17978c2ecf20Sopenharmony_ci#define BRXIQIMB_A 0x3ff 17988c2ecf20Sopenharmony_ci#define BRXIQIMB_B 0xfc00 17998c2ecf20Sopenharmony_ci#define BRXIQIMB_C 0x3f0000 18008c2ecf20Sopenharmony_ci#define BRXIQIMB_D 0xffc00000 18018c2ecf20Sopenharmony_ci#define BDC_DC_NOTCH 0x60000 18028c2ecf20Sopenharmony_ci#define BRXNB_NOTCH 0x1f000000 18038c2ecf20Sopenharmony_ci#define BPD_TH 0xf 18048c2ecf20Sopenharmony_ci#define BPD_TH_OPT2 0xc000 18058c2ecf20Sopenharmony_ci#define BPWED_TH 0x700 18068c2ecf20Sopenharmony_ci#define BIFMF_WIN_L 0x800 18078c2ecf20Sopenharmony_ci#define BPD_OPTION 0x1000 18088c2ecf20Sopenharmony_ci#define BMF_WIN_L 0xe000 18098c2ecf20Sopenharmony_ci#define BBW_SEARCH_L 0x30000 18108c2ecf20Sopenharmony_ci#define BWIN_ENH_L 0xc0000 18118c2ecf20Sopenharmony_ci#define BBW_TH 0x700000 18128c2ecf20Sopenharmony_ci#define BED_TH2 0x3800000 18138c2ecf20Sopenharmony_ci#define BBW_OPTION 0x4000000 18148c2ecf20Sopenharmony_ci#define BRADIO_TH 0x18000000 18158c2ecf20Sopenharmony_ci#define BWINDOW_L 0xe0000000 18168c2ecf20Sopenharmony_ci#define BSBD_OPTION 0x1 18178c2ecf20Sopenharmony_ci#define BFRAME_TH 0x1c 18188c2ecf20Sopenharmony_ci#define BFS_OPTION 0x60 18198c2ecf20Sopenharmony_ci#define BDC_SLOPE_CHECK 0x80 18208c2ecf20Sopenharmony_ci#define BFGUARD_COUNTER_DC_L 0xe00 18218c2ecf20Sopenharmony_ci#define BFRAME_WEIGHT_SHORT 0x7000 18228c2ecf20Sopenharmony_ci#define BSUB_TUNE 0xe00000 18238c2ecf20Sopenharmony_ci#define BFRAME_DC_LENGTH 0xe000000 18248c2ecf20Sopenharmony_ci#define BSBD_START_OFFSET 0x30000000 18258c2ecf20Sopenharmony_ci#define BFRAME_TH_2 0x7 18268c2ecf20Sopenharmony_ci#define BFRAME_GI2_TH 0x38 18278c2ecf20Sopenharmony_ci#define BGI2_SYNC_EN 0x40 18288c2ecf20Sopenharmony_ci#define BSARCH_SHORT_EARLY 0x300 18298c2ecf20Sopenharmony_ci#define BSARCH_SHORT_LATE 0xc00 18308c2ecf20Sopenharmony_ci#define BSARCH_GI2_LATE 0x70000 18318c2ecf20Sopenharmony_ci#define BCFOANTSUM 0x1 18328c2ecf20Sopenharmony_ci#define BCFOACC 0x2 18338c2ecf20Sopenharmony_ci#define BCFOSTARTOFFSET 0xc 18348c2ecf20Sopenharmony_ci#define BCFOLOOPBACK 0x70 18358c2ecf20Sopenharmony_ci#define BCFOSUMWEIGHT 0x80 18368c2ecf20Sopenharmony_ci#define BDAGCENABLE 0x10000 18378c2ecf20Sopenharmony_ci#define BTXIQIMB_A 0x3ff 18388c2ecf20Sopenharmony_ci#define BTXIQIMB_b 0xfc00 18398c2ecf20Sopenharmony_ci#define BTXIQIMB_C 0x3f0000 18408c2ecf20Sopenharmony_ci#define BTXIQIMB_D 0xffc00000 18418c2ecf20Sopenharmony_ci#define BTXIDCOFFSET 0xff 18428c2ecf20Sopenharmony_ci#define BTXIQDCOFFSET 0xff00 18438c2ecf20Sopenharmony_ci#define BTXDFIRMODE 0x10000 18448c2ecf20Sopenharmony_ci#define BTXPESUDO_NOISEON 0x4000000 18458c2ecf20Sopenharmony_ci#define BTXPESUDO_NOISE_A 0xff 18468c2ecf20Sopenharmony_ci#define BTXPESUDO_NOISE_B 0xff00 18478c2ecf20Sopenharmony_ci#define BTXPESUDO_NOISE_C 0xff0000 18488c2ecf20Sopenharmony_ci#define BTXPESUDO_NOISE_D 0xff000000 18498c2ecf20Sopenharmony_ci#define BCCA_DROPOPTION 0x20000 18508c2ecf20Sopenharmony_ci#define BCCA_DROPTHRES 0xfff00000 18518c2ecf20Sopenharmony_ci#define BEDCCA_H 0xf 18528c2ecf20Sopenharmony_ci#define BEDCCA_L 0xf0 18538c2ecf20Sopenharmony_ci#define BLAMBDA_ED 0x300 18548c2ecf20Sopenharmony_ci#define BRX_INITIALGAIN 0x7f 18558c2ecf20Sopenharmony_ci#define BRX_ANTDIV_EN 0x80 18568c2ecf20Sopenharmony_ci#define BRX_AGC_ADDRESS_FOR_LNA 0x7f00 18578c2ecf20Sopenharmony_ci#define BRX_HIGHPOWER_FLOW 0x8000 18588c2ecf20Sopenharmony_ci#define BRX_AGC_FREEZE_THRES 0xc0000 18598c2ecf20Sopenharmony_ci#define BRX_FREEZESTEP_AGC1 0x300000 18608c2ecf20Sopenharmony_ci#define BRX_FREEZESTEP_AGC2 0xc00000 18618c2ecf20Sopenharmony_ci#define BRX_FREEZESTEP_AGC3 0x3000000 18628c2ecf20Sopenharmony_ci#define BRX_FREEZESTEP_AGC0 0xc000000 18638c2ecf20Sopenharmony_ci#define BRXRSSI_CMP_EN 0x10000000 18648c2ecf20Sopenharmony_ci#define BRXQUICK_AGCEN 0x20000000 18658c2ecf20Sopenharmony_ci#define BRXAGC_FREEZE_THRES_MODE 0x40000000 18668c2ecf20Sopenharmony_ci#define BRX_OVERFLOW_CHECKTYPE 0x80000000 18678c2ecf20Sopenharmony_ci#define BRX_AGCSHIFT 0x7f 18688c2ecf20Sopenharmony_ci#define BTRSW_TRI_ONLY 0x80 18698c2ecf20Sopenharmony_ci#define BPOWER_THRES 0x300 18708c2ecf20Sopenharmony_ci#define BRXAGC_EN 0x1 18718c2ecf20Sopenharmony_ci#define BRXAGC_TOGETHER_EN 0x2 18728c2ecf20Sopenharmony_ci#define BRXAGC_MIN 0x4 18738c2ecf20Sopenharmony_ci#define BRXHP_INI 0x7 18748c2ecf20Sopenharmony_ci#define BRXHP_TRLNA 0x70 18758c2ecf20Sopenharmony_ci#define BRXHP_RSSI 0x700 18768c2ecf20Sopenharmony_ci#define BRXHP_BBP1 0x7000 18778c2ecf20Sopenharmony_ci#define BRXHP_BBP2 0x70000 18788c2ecf20Sopenharmony_ci#define BRXHP_BBP3 0x700000 18798c2ecf20Sopenharmony_ci#define BRSSI_H 0x7f0000 18808c2ecf20Sopenharmony_ci#define BRSSI_GEN 0x7f000000 18818c2ecf20Sopenharmony_ci#define BRXSETTLE_TRSW 0x7 18828c2ecf20Sopenharmony_ci#define BRXSETTLE_LNA 0x38 18838c2ecf20Sopenharmony_ci#define BRXSETTLE_RSSI 0x1c0 18848c2ecf20Sopenharmony_ci#define BRXSETTLE_BBP 0xe00 18858c2ecf20Sopenharmony_ci#define BRXSETTLE_RXHP 0x7000 18868c2ecf20Sopenharmony_ci#define BRXSETTLE_ANTSW_RSSI 0x38000 18878c2ecf20Sopenharmony_ci#define BRXSETTLE_ANTSW 0xc0000 18888c2ecf20Sopenharmony_ci#define BRXPROCESS_TIME_DAGC 0x300000 18898c2ecf20Sopenharmony_ci#define BRXSETTLE_HSSI 0x400000 18908c2ecf20Sopenharmony_ci#define BRXPROCESS_TIME_BBPPW 0x800000 18918c2ecf20Sopenharmony_ci#define BRXANTENNA_POWER_SHIFT 0x3000000 18928c2ecf20Sopenharmony_ci#define BRSSI_TABLE_SELECT 0xc000000 18938c2ecf20Sopenharmony_ci#define BRXHP_FINAL 0x7000000 18948c2ecf20Sopenharmony_ci#define BRXHPSETTLE_BBP 0x7 18958c2ecf20Sopenharmony_ci#define BRXHTSETTLE_HSSI 0x8 18968c2ecf20Sopenharmony_ci#define BRXHTSETTLE_RXHP 0x70 18978c2ecf20Sopenharmony_ci#define BRXHTSETTLE_BBPPW 0x80 18988c2ecf20Sopenharmony_ci#define BRXHTSETTLE_IDLE 0x300 18998c2ecf20Sopenharmony_ci#define BRXHTSETTLE_RESERVED 0x1c00 19008c2ecf20Sopenharmony_ci#define BRXHT_RXHP_EN 0x8000 19018c2ecf20Sopenharmony_ci#define BRXAGC_FREEZE_THRES 0x30000 19028c2ecf20Sopenharmony_ci#define BRXAGC_TOGETHEREN 0x40000 19038c2ecf20Sopenharmony_ci#define BRXHTAGC_MIN 0x80000 19048c2ecf20Sopenharmony_ci#define BRXHTAGC_EN 0x100000 19058c2ecf20Sopenharmony_ci#define BRXHTDAGC_EN 0x200000 19068c2ecf20Sopenharmony_ci#define BRXHT_RXHP_BBP 0x1c00000 19078c2ecf20Sopenharmony_ci#define BRXHT_RXHP_FINAL 0xe0000000 19088c2ecf20Sopenharmony_ci#define BRXPW_RADIO_TH 0x3 19098c2ecf20Sopenharmony_ci#define BRXPW_RADIO_EN 0x4 19108c2ecf20Sopenharmony_ci#define BRXMF_HOLD 0x3800 19118c2ecf20Sopenharmony_ci#define BRXPD_DELAY_TH1 0x38 19128c2ecf20Sopenharmony_ci#define BRXPD_DELAY_TH2 0x1c0 19138c2ecf20Sopenharmony_ci#define BRXPD_DC_COUNT_MAX 0x600 19148c2ecf20Sopenharmony_ci#define BRXPD_DELAY_TH 0x8000 19158c2ecf20Sopenharmony_ci#define BRXPROCESS_DELAY 0xf0000 19168c2ecf20Sopenharmony_ci#define BRXSEARCHRANGE_GI2_EARLY 0x700000 19178c2ecf20Sopenharmony_ci#define BRXFRAME_FUARD_COUNTER_L 0x3800000 19188c2ecf20Sopenharmony_ci#define BRXSGI_GUARD_L 0xc000000 19198c2ecf20Sopenharmony_ci#define BRXSGI_SEARCH_L 0x30000000 19208c2ecf20Sopenharmony_ci#define BRXSGI_TH 0xc0000000 19218c2ecf20Sopenharmony_ci#define BDFSCNT0 0xff 19228c2ecf20Sopenharmony_ci#define BDFSCNT1 0xff00 19238c2ecf20Sopenharmony_ci#define BDFSFLAG 0xf0000 19248c2ecf20Sopenharmony_ci#define BMF_WEIGHT_SUM 0x300000 19258c2ecf20Sopenharmony_ci#define BMINIDX_TH 0x7f000000 19268c2ecf20Sopenharmony_ci#define BDAFORMAT 0x40000 19278c2ecf20Sopenharmony_ci#define BTXCH_EMU_ENABLE 0x01000000 19288c2ecf20Sopenharmony_ci#define BTRSW_ISOLATION_A 0x7f 19298c2ecf20Sopenharmony_ci#define BTRSW_ISOLATION_B 0x7f00 19308c2ecf20Sopenharmony_ci#define BTRSW_ISOLATION_C 0x7f0000 19318c2ecf20Sopenharmony_ci#define BTRSW_ISOLATION_D 0x7f000000 19328c2ecf20Sopenharmony_ci#define BEXT_LNA_GAIN 0x7c00 19338c2ecf20Sopenharmony_ci 19348c2ecf20Sopenharmony_ci#define BSTBC_EN 0x4 19358c2ecf20Sopenharmony_ci#define BANTENNA_MAPPING 0x10 19368c2ecf20Sopenharmony_ci#define BNSS 0x20 19378c2ecf20Sopenharmony_ci#define BCFO_ANTSUM_ID 0x200 19388c2ecf20Sopenharmony_ci#define BPHY_COUNTER_RESET 0x8000000 19398c2ecf20Sopenharmony_ci#define BCFO_REPORT_GET 0x4000000 19408c2ecf20Sopenharmony_ci#define BOFDM_CONTINUE_TX 0x10000000 19418c2ecf20Sopenharmony_ci#define BOFDM_SINGLE_CARRIER 0x20000000 19428c2ecf20Sopenharmony_ci#define BOFDM_SINGLE_TONE 0x40000000 19438c2ecf20Sopenharmony_ci#define BHT_DETECT 0x100 19448c2ecf20Sopenharmony_ci#define BCFOEN 0x10000 19458c2ecf20Sopenharmony_ci#define BCFOVALUE 0xfff00000 19468c2ecf20Sopenharmony_ci#define BSIGTONE_RE 0x3f 19478c2ecf20Sopenharmony_ci#define BSIGTONE_IM 0x7f00 19488c2ecf20Sopenharmony_ci#define BCOUNTER_CCA 0xffff 19498c2ecf20Sopenharmony_ci#define BCOUNTER_PARITYFAIL 0xffff0000 19508c2ecf20Sopenharmony_ci#define BCOUNTER_RATEILLEGAL 0xffff 19518c2ecf20Sopenharmony_ci#define BCOUNTER_CRC8FAIL 0xffff0000 19528c2ecf20Sopenharmony_ci#define BCOUNTER_MCSNOSUPPORT 0xffff 19538c2ecf20Sopenharmony_ci#define BCOUNTER_FASTSYNC 0xffff 19548c2ecf20Sopenharmony_ci#define BSHORTCFO 0xfff 19558c2ecf20Sopenharmony_ci#define BSHORTCFOT_LENGTH 12 19568c2ecf20Sopenharmony_ci#define BSHORTCFOF_LENGTH 11 19578c2ecf20Sopenharmony_ci#define BLONGCFO 0x7ff 19588c2ecf20Sopenharmony_ci#define BLONGCFOT_LENGTH 11 19598c2ecf20Sopenharmony_ci#define BLONGCFOF_LENGTH 11 19608c2ecf20Sopenharmony_ci#define BTAILCFO 0x1fff 19618c2ecf20Sopenharmony_ci#define BTAILCFOT_LENGTH 13 19628c2ecf20Sopenharmony_ci#define BTAILCFOF_LENGTH 12 19638c2ecf20Sopenharmony_ci#define BNOISE_EN_PWDB 0xffff 19648c2ecf20Sopenharmony_ci#define BCC_POWER_DB 0xffff0000 19658c2ecf20Sopenharmony_ci#define BMOISE_PWDB 0xffff 19668c2ecf20Sopenharmony_ci#define BPOWERMEAST_LENGTH 10 19678c2ecf20Sopenharmony_ci#define BPOWERMEASF_LENGTH 3 19688c2ecf20Sopenharmony_ci#define BRX_HT_BW 0x1 19698c2ecf20Sopenharmony_ci#define BRXSC 0x6 19708c2ecf20Sopenharmony_ci#define BRX_HT 0x8 19718c2ecf20Sopenharmony_ci#define BNB_INTF_DET_ON 0x1 19728c2ecf20Sopenharmony_ci#define BINTF_WIN_LEN_CFG 0x30 19738c2ecf20Sopenharmony_ci#define BNB_INTF_TH_CFG 0x1c0 19748c2ecf20Sopenharmony_ci#define BRFGAIN 0x3f 19758c2ecf20Sopenharmony_ci#define BTABLESEL 0x40 19768c2ecf20Sopenharmony_ci#define BTRSW 0x80 19778c2ecf20Sopenharmony_ci#define BRXSNR_A 0xff 19788c2ecf20Sopenharmony_ci#define BRXSNR_B 0xff00 19798c2ecf20Sopenharmony_ci#define BRXSNR_C 0xff0000 19808c2ecf20Sopenharmony_ci#define BRXSNR_D 0xff000000 19818c2ecf20Sopenharmony_ci#define BSNR_EVMT_LENGTH 8 19828c2ecf20Sopenharmony_ci#define BSNR_EVMF_LENGTH 1 19838c2ecf20Sopenharmony_ci#define BCSI1ST 0xff 19848c2ecf20Sopenharmony_ci#define BCSI2ND 0xff00 19858c2ecf20Sopenharmony_ci#define BRXEVM1ST 0xff0000 19868c2ecf20Sopenharmony_ci#define BRXEVM2ND 0xff000000 19878c2ecf20Sopenharmony_ci#define BSIGEVM 0xff 19888c2ecf20Sopenharmony_ci#define BPWDB 0xff00 19898c2ecf20Sopenharmony_ci#define BSGIEN 0x10000 19908c2ecf20Sopenharmony_ci 19918c2ecf20Sopenharmony_ci#define BSFACTOR_QMA1 0xf 19928c2ecf20Sopenharmony_ci#define BSFACTOR_QMA2 0xf0 19938c2ecf20Sopenharmony_ci#define BSFACTOR_QMA3 0xf00 19948c2ecf20Sopenharmony_ci#define BSFACTOR_QMA4 0xf000 19958c2ecf20Sopenharmony_ci#define BSFACTOR_QMA5 0xf0000 19968c2ecf20Sopenharmony_ci#define BSFACTOR_QMA6 0xf0000 19978c2ecf20Sopenharmony_ci#define BSFACTOR_QMA7 0xf00000 19988c2ecf20Sopenharmony_ci#define BSFACTOR_QMA8 0xf000000 19998c2ecf20Sopenharmony_ci#define BSFACTOR_QMA9 0xf0000000 20008c2ecf20Sopenharmony_ci#define BCSI_SCHEME 0x100000 20018c2ecf20Sopenharmony_ci 20028c2ecf20Sopenharmony_ci#define BNOISE_LVL_TOP_SET 0x3 20038c2ecf20Sopenharmony_ci#define BCHSMOOTH 0x4 20048c2ecf20Sopenharmony_ci#define BCHSMOOTH_CFG1 0x38 20058c2ecf20Sopenharmony_ci#define BCHSMOOTH_CFG2 0x1c0 20068c2ecf20Sopenharmony_ci#define BCHSMOOTH_CFG3 0xe00 20078c2ecf20Sopenharmony_ci#define BCHSMOOTH_CFG4 0x7000 20088c2ecf20Sopenharmony_ci#define BMRCMODE 0x800000 20098c2ecf20Sopenharmony_ci#define BTHEVMCFG 0x7000000 20108c2ecf20Sopenharmony_ci 20118c2ecf20Sopenharmony_ci#define BLOOP_FIT_TYPE 0x1 20128c2ecf20Sopenharmony_ci#define BUPD_CFO 0x40 20138c2ecf20Sopenharmony_ci#define BUPD_CFO_OFFDATA 0x80 20148c2ecf20Sopenharmony_ci#define BADV_UPD_CFO 0x100 20158c2ecf20Sopenharmony_ci#define BADV_TIME_CTRL 0x800 20168c2ecf20Sopenharmony_ci#define BUPD_CLKO 0x1000 20178c2ecf20Sopenharmony_ci#define BFC 0x6000 20188c2ecf20Sopenharmony_ci#define BTRACKING_MODE 0x8000 20198c2ecf20Sopenharmony_ci#define BPHCMP_ENABLE 0x10000 20208c2ecf20Sopenharmony_ci#define BUPD_CLKO_LTF 0x20000 20218c2ecf20Sopenharmony_ci#define BCOM_CH_CFO 0x40000 20228c2ecf20Sopenharmony_ci#define BCSI_ESTI_MODE 0x80000 20238c2ecf20Sopenharmony_ci#define BADV_UPD_EQZ 0x100000 20248c2ecf20Sopenharmony_ci#define BUCHCFG 0x7000000 20258c2ecf20Sopenharmony_ci#define BUPDEQZ 0x8000000 20268c2ecf20Sopenharmony_ci 20278c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISE_ON 0x20000000 20288c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISE_A 0xff 20298c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISE_B 0xff00 20308c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISE_C 0xff0000 20318c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISE_D 0xff000000 20328c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISESTATE_A 0xffff 20338c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISESTATE_B 0xffff0000 20348c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISESTATE_C 0xffff 20358c2ecf20Sopenharmony_ci#define BRX_PESUDO_NOISESTATE_D 0xffff0000 20368c2ecf20Sopenharmony_ci 20378c2ecf20Sopenharmony_ci#define BZEBRA1_HSSIENABLE 0x8 20388c2ecf20Sopenharmony_ci#define BZEBRA1_TRXCONTROL 0xc00 20398c2ecf20Sopenharmony_ci#define BZEBRA1_TRXGAINSETTING 0x07f 20408c2ecf20Sopenharmony_ci#define BZEBRA1_RXCOUNTER 0xc00 20418c2ecf20Sopenharmony_ci#define BZEBRA1_TXCHANGEPUMP 0x38 20428c2ecf20Sopenharmony_ci#define BZEBRA1_RXCHANGEPUMP 0x7 20438c2ecf20Sopenharmony_ci#define BZEBRA1_CHANNEL_NUM 0xf80 20448c2ecf20Sopenharmony_ci#define BZEBRA1_TXLPFBW 0x400 20458c2ecf20Sopenharmony_ci#define BZEBRA1_RXLPFBW 0x600 20468c2ecf20Sopenharmony_ci 20478c2ecf20Sopenharmony_ci#define BRTL8256REG_MODE_CTRL1 0x100 20488c2ecf20Sopenharmony_ci#define BRTL8256REG_MODE_CTRL0 0x40 20498c2ecf20Sopenharmony_ci#define BRTL8256REG_TXLPFBW 0x18 20508c2ecf20Sopenharmony_ci#define BRTL8256REG_RXLPFBW 0x600 20518c2ecf20Sopenharmony_ci 20528c2ecf20Sopenharmony_ci#define BRTL8258_TXLPFBW 0xc 20538c2ecf20Sopenharmony_ci#define BRTL8258_RXLPFBW 0xc00 20548c2ecf20Sopenharmony_ci#define BRTL8258_RSSILPFBW 0xc0 20558c2ecf20Sopenharmony_ci 20568c2ecf20Sopenharmony_ci#define BBYTE0 0x1 20578c2ecf20Sopenharmony_ci#define BBYTE1 0x2 20588c2ecf20Sopenharmony_ci#define BBYTE2 0x4 20598c2ecf20Sopenharmony_ci#define BBYTE3 0x8 20608c2ecf20Sopenharmony_ci#define BWORD0 0x3 20618c2ecf20Sopenharmony_ci#define BWORD1 0xc 20628c2ecf20Sopenharmony_ci#define BWORD 0xf 20638c2ecf20Sopenharmony_ci 20648c2ecf20Sopenharmony_ci#define MASKBYTE0 0xff 20658c2ecf20Sopenharmony_ci#define MASKBYTE1 0xff00 20668c2ecf20Sopenharmony_ci#define MASKBYTE2 0xff0000 20678c2ecf20Sopenharmony_ci#define MASKBYTE3 0xff000000 20688c2ecf20Sopenharmony_ci#define MASKHWORD 0xffff0000 20698c2ecf20Sopenharmony_ci#define MASKLWORD 0x0000ffff 20708c2ecf20Sopenharmony_ci#define MASKDWORD 0xffffffff 20718c2ecf20Sopenharmony_ci#define MASK12BITS 0xfff 20728c2ecf20Sopenharmony_ci#define MASKH4BITS 0xf0000000 20738c2ecf20Sopenharmony_ci#define MASKOFDM_D 0xffc00000 20748c2ecf20Sopenharmony_ci#define MASKCCK 0x3f3f3f3f 20758c2ecf20Sopenharmony_ci 20768c2ecf20Sopenharmony_ci#define MASK4BITS 0x0f 20778c2ecf20Sopenharmony_ci#define MASK20BITS 0xfffff 20788c2ecf20Sopenharmony_ci#define RFREG_OFFSET_MASK 0xfffff 20798c2ecf20Sopenharmony_ci 20808c2ecf20Sopenharmony_ci#define BENABLE 0x1 20818c2ecf20Sopenharmony_ci#define BDISABLE 0x0 20828c2ecf20Sopenharmony_ci 20838c2ecf20Sopenharmony_ci#define LEFT_ANTENNA 0x0 20848c2ecf20Sopenharmony_ci#define RIGHT_ANTENNA 0x1 20858c2ecf20Sopenharmony_ci 20868c2ecf20Sopenharmony_ci#define TCHECK_TXSTATUS 500 20878c2ecf20Sopenharmony_ci#define TUPDATE_RXCOUNTER 100 20888c2ecf20Sopenharmony_ci 20898c2ecf20Sopenharmony_ci/* 2 EFUSE_TEST (For RTL8723 partially) */ 20908c2ecf20Sopenharmony_ci#define EFUSE_SEL(x) (((x) & 0x3) << 8) 20918c2ecf20Sopenharmony_ci#define EFUSE_SEL_MASK 0x300 20928c2ecf20Sopenharmony_ci#define EFUSE_WIFI_SEL_0 0x0 20938c2ecf20Sopenharmony_ci/* Enable GPIO[9] as WiFi HW PDn source*/ 20948c2ecf20Sopenharmony_ci#define WL_HWPDN_EN BIT(0) 20958c2ecf20Sopenharmony_ci/* WiFi HW PDn polarity control*/ 20968c2ecf20Sopenharmony_ci#define WL_HWPDN_SL BIT(1) 20978c2ecf20Sopenharmony_ci 20988c2ecf20Sopenharmony_ci#endif 2099