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