0001
0002
0003
0004 #ifndef __REALTEK_92S_REG_H__
0005 #define __REALTEK_92S_REG_H__
0006
0007
0008 #define REG_SYS_ISO_CTRL 0x0000
0009 #define REG_SYS_FUNC_EN 0x0002
0010 #define PMC_FSM 0x0004
0011 #define SYS_CLKR 0x0008
0012 #define EPROM_CMD 0x000A
0013 #define EE_VPD 0x000C
0014 #define AFE_MISC 0x0010
0015 #define SPS0_CTRL 0x0011
0016 #define SPS1_CTRL 0x0018
0017 #define RF_CTRL 0x001F
0018 #define LDOA15_CTRL 0x0020
0019 #define LDOV12D_CTRL 0x0021
0020 #define LDOHCI12_CTRL 0x0022
0021 #define LDO_USB_SDIO 0x0023
0022 #define LPLDO_CTRL 0x0024
0023 #define AFE_XTAL_CTRL 0x0026
0024 #define AFE_PLL_CTRL 0x0028
0025 #define REG_EFUSE_CTRL 0x0030
0026 #define REG_EFUSE_TEST 0x0034
0027 #define PWR_DATA 0x0038
0028 #define DBG_PORT 0x003A
0029 #define DPS_TIMER 0x003C
0030 #define RCLK_MON 0x003E
0031
0032
0033 #define CMDR 0x0040
0034 #define TXPAUSE 0x0042
0035 #define LBKMD_SEL 0x0043
0036 #define TCR 0x0044
0037 #define RCR 0x0048
0038 #define MSR 0x004C
0039 #define SYSF_CFG 0x004D
0040 #define RX_PKY_LIMIT 0x004E
0041 #define MBIDCTRL 0x004F
0042
0043
0044 #define MACIDR 0x0050
0045 #define MACIDR0 0x0050
0046 #define MACIDR4 0x0054
0047 #define BSSIDR 0x0058
0048 #define HWVID 0x005E
0049 #define MAR 0x0060
0050 #define MBIDCAMCONTENT 0x0068
0051 #define MBIDCAMCFG 0x0070
0052 #define BUILDTIME 0x0074
0053 #define BUILDUSER 0x0078
0054
0055 #define IDR0 MACIDR0
0056 #define IDR4 MACIDR4
0057
0058
0059 #define TSFR 0x0080
0060 #define SLOT_TIME 0x0089
0061 #define USTIME 0x008A
0062 #define SIFS_CCK 0x008C
0063 #define SIFS_OFDM 0x008E
0064 #define PIFS_TIME 0x0090
0065 #define ACK_TIMEOUT 0x0091
0066 #define EIFSTR 0x0092
0067 #define BCN_INTERVAL 0x0094
0068 #define ATIMWND 0x0096
0069 #define BCN_DRV_EARLY_INT 0x0098
0070 #define BCN_DMATIME 0x009A
0071 #define BCN_ERR_THRESH 0x009C
0072 #define MLT 0x009D
0073 #define RSVD_MAC_TUNE_US 0x009E
0074
0075
0076 #define RQPN 0x00A0
0077 #define RQPN1 0x00A0
0078 #define RQPN2 0x00A1
0079 #define RQPN3 0x00A2
0080 #define RQPN4 0x00A3
0081 #define RQPN5 0x00A4
0082 #define RQPN6 0x00A5
0083 #define RQPN7 0x00A6
0084 #define RQPN8 0x00A7
0085 #define RQPN9 0x00A8
0086 #define RQPN10 0x00A9
0087 #define LD_RQPN 0x00AB
0088 #define RXFF_BNDY 0x00AC
0089 #define RXRPT_BNDY 0x00B0
0090 #define TXPKTBUF_PGBNDY 0x00B4
0091 #define PBP 0x00B5
0092 #define RXDRVINFO_SZ 0x00B6
0093 #define TXFF_STATUS 0x00B7
0094 #define RXFF_STATUS 0x00B8
0095 #define TXFF_EMPTY_TH 0x00B9
0096 #define SDIO_RX_BLKSZ 0x00BC
0097 #define RXDMA 0x00BD
0098 #define RXPKT_NUM 0x00BE
0099 #define C2HCMD_UDT_SIZE 0x00C0
0100 #define C2HCMD_UDT_ADDR 0x00C2
0101 #define FIFOPAGE1 0x00C4
0102 #define FIFOPAGE2 0x00C8
0103 #define FIFOPAGE3 0x00CC
0104 #define FIFOPAGE4 0x00D0
0105 #define FIFOPAGE5 0x00D4
0106 #define FW_RSVD_PG_CRTL 0x00D8
0107 #define RXDMA_AGG_PG_TH 0x00D9
0108 #define TXDESC_MSK 0x00DC
0109 #define TXRPTFF_RDPTR 0x00E0
0110 #define TXRPTFF_WTPTR 0x00E4
0111 #define C2HFF_RDPTR 0x00E8
0112 #define C2HFF_WTPTR 0x00EC
0113 #define RXFF0_RDPTR 0x00F0
0114 #define RXFF0_WTPTR 0x00F4
0115 #define RXFF1_RDPTR 0x00F8
0116 #define RXFF1_WTPTR 0x00FC
0117 #define RXRPT0_RDPTR 0x0100
0118 #define RXRPT0_WTPTR 0x0104
0119 #define RXRPT1_RDPTR 0x0108
0120 #define RXRPT1_WTPTR 0x010C
0121 #define RX0_UDT_SIZE 0x0110
0122 #define RX1PKTNUM 0x0114
0123 #define RXFILTERMAP 0x0116
0124 #define RXFILTERMAP_GP1 0x0118
0125 #define RXFILTERMAP_GP2 0x011A
0126 #define RXFILTERMAP_GP3 0x011C
0127 #define BCNQ_CTRL 0x0120
0128 #define MGTQ_CTRL 0x0124
0129 #define HIQ_CTRL 0x0128
0130 #define VOTID7_CTRL 0x012c
0131 #define VOTID6_CTRL 0x0130
0132 #define VITID5_CTRL 0x0134
0133 #define VITID4_CTRL 0x0138
0134 #define BETID3_CTRL 0x013c
0135 #define BETID0_CTRL 0x0140
0136 #define BKTID2_CTRL 0x0144
0137 #define BKTID1_CTRL 0x0148
0138 #define CMDQ_CTRL 0x014c
0139 #define TXPKT_NUM_CTRL 0x0150
0140 #define TXQ_PGADD 0x0152
0141 #define TXFF_PG_NUM 0x0154
0142 #define TRXDMA_STATUS 0x0156
0143
0144
0145 #define INIMCS_SEL 0x0160
0146 #define TX_RATE_REG INIMCS_SEL
0147 #define INIRTSMCS_SEL 0x0180
0148 #define RRSR 0x0181
0149 #define ARFR0 0x0184
0150 #define ARFR1 0x0188
0151 #define ARFR2 0x018C
0152 #define ARFR3 0x0190
0153 #define ARFR4 0x0194
0154 #define ARFR5 0x0198
0155 #define ARFR6 0x019C
0156 #define ARFR7 0x01A0
0157 #define AGGLEN_LMT_H 0x01A7
0158 #define AGGLEN_LMT_L 0x01A8
0159 #define DARFRC 0x01B0
0160 #define RARFRC 0x01B8
0161 #define MCS_TXAGC 0x01C0
0162 #define CCK_TXAGC 0x01C8
0163
0164
0165 #define EDCAPARA_VO 0x01D0
0166 #define EDCAPARA_VI 0x01D4
0167 #define EDCAPARA_BE 0x01D8
0168 #define EDCAPARA_BK 0x01DC
0169 #define BCNTCFG 0x01E0
0170 #define CWRR 0x01E2
0171 #define ACMAVG 0x01E4
0172 #define ACMHWCTRL 0x01E7
0173 #define VO_ADMTM 0x01E8
0174 #define VI_ADMTM 0x01EC
0175 #define BE_ADMTM 0x01F0
0176 #define RETRY_LIMIT 0x01F4
0177 #define SG_RATE 0x01F6
0178
0179
0180 #define NAV_CTRL 0x0200
0181 #define BW_OPMODE 0x0203
0182 #define BACAMCMD 0x0204
0183 #define BACAMCONTENT 0x0208
0184
0185
0186 #define LBDLY 0x0210
0187 #define FWDLY 0x0211
0188 #define HWPC_RX_CTRL 0x0218
0189 #define MQIR 0x0220
0190 #define MAIR 0x0222
0191 #define MSIR 0x0224
0192 #define CLM_RESULT 0x0227
0193 #define NHM_RPI_CNT 0x0228
0194 #define RXERR_RPT 0x0230
0195 #define NAV_PROT_LEN 0x0234
0196 #define CFEND_TH 0x0236
0197 #define AMPDU_MIN_SPACE 0x0237
0198 #define TXOP_STALL_CTRL 0x0238
0199
0200
0201 #define REG_RWCAM 0x0240
0202 #define REG_WCAMI 0x0244
0203 #define REG_RCAMO 0x0248
0204 #define REG_CAMDBG 0x024C
0205 #define REG_SECR 0x0250
0206
0207
0208 #define WOW_CTRL 0x0260
0209 #define PSSTATUS 0x0261
0210 #define PSSWITCH 0x0262
0211 #define MIMOPS_WAIT_PERIOD 0x0263
0212 #define LPNAV_CTRL 0x0264
0213 #define WFM0 0x0270
0214 #define WFM1 0x0280
0215 #define WFM2 0x0290
0216 #define WFM3 0x02A0
0217 #define WFM4 0x02B0
0218 #define WFM5 0x02C0
0219 #define WFCRC 0x02D0
0220 #define FW_RPT_REG 0x02c4
0221
0222
0223 #define PSTIME 0x02E0
0224 #define TIMER0 0x02E4
0225 #define TIMER1 0x02E8
0226 #define GPIO_IN_SE 0x02EC
0227 #define GPIO_IO_SEL 0x02EE
0228 #define MAC_PINMUX_CFG 0x02F1
0229 #define LEDCFG 0x02F2
0230 #define PHY_REG 0x02F3
0231 #define PHY_REG_DATA 0x02F4
0232 #define REG_EFUSE_CLK 0x02F8
0233
0234
0235 #define INTA_MASK 0x0300
0236 #define ISR 0x0308
0237
0238
0239 #define DBG_PORT_SWITCH 0x003A
0240 #define BIST 0x0310
0241 #define DBS 0x0314
0242 #define CPUINST 0x0318
0243 #define CPUCAUSE 0x031C
0244 #define LBUS_ERR_ADDR 0x0320
0245 #define LBUS_ERR_CMD 0x0324
0246 #define LBUS_ERR_DATA_L 0x0328
0247 #define LBUS_ERR_DATA_H 0x032C
0248 #define LX_EXCEPTION_ADDR 0x0330
0249 #define WDG_CTRL 0x0334
0250 #define INTMTU 0x0338
0251 #define INTM 0x033A
0252 #define FDLOCKTURN0 0x033C
0253 #define FDLOCKTURN1 0x033D
0254 #define TRXPKTBUF_DBG_DATA 0x0340
0255 #define TRXPKTBUF_DBG_CTRL 0x0348
0256 #define DPLL 0x034A
0257 #define CBUS_ERR_ADDR 0x0350
0258 #define CBUS_ERR_CMD 0x0354
0259 #define CBUS_ERR_DATA_L 0x0358
0260 #define CBUS_ERR_DATA_H 0x035C
0261 #define USB_SIE_INTF_ADDR 0x0360
0262 #define USB_SIE_INTF_WD 0x0361
0263 #define USB_SIE_INTF_RD 0x0362
0264 #define USB_SIE_INTF_CTRL 0x0363
0265 #define LBUS_MON_ADDR 0x0364
0266 #define LBUS_ADDR_MASK 0x0368
0267
0268
0269
0270
0271 #define TP_POLL 0x0500
0272 #define PM_CTRL 0x0502
0273 #define PCIF 0x0503
0274
0275 #define THPDA 0x0514
0276 #define TMDA 0x0518
0277 #define TCDA 0x051C
0278 #define HDA 0x0520
0279 #define TVODA 0x0524
0280 #define TVIDA 0x0528
0281 #define TBEDA 0x052C
0282 #define TBKDA 0x0530
0283 #define TBDA 0x0534
0284 #define RCDA 0x0538
0285 #define RDQDA 0x053C
0286 #define DBI_WDATA 0x0540
0287 #define DBI_RDATA 0x0544
0288 #define DBI_CTRL 0x0548
0289 #define MDIO_DATA 0x0550
0290 #define MDIO_CTRL 0x0554
0291 #define PCI_RPWM 0x0561
0292 #define PCI_CPWM 0x0563
0293
0294
0295 #define PHY_CCA 0x803
0296
0297
0298 #define MAX_MSS_DENSITY_2T 0x13
0299 #define MAX_MSS_DENSITY_1T 0x0A
0300
0301
0302 #define RXDMA_AGG_EN BIT(7)
0303
0304 #define RPWM PCI_RPWM
0305
0306
0307
0308 #define ISO_MD2PP BIT(0)
0309 #define ISO_PA2PCIE BIT(3)
0310 #define ISO_PLL2MD BIT(4)
0311 #define ISO_PWC_DV2RP BIT(11)
0312 #define ISO_PWC_RV2RP BIT(12)
0313
0314
0315 #define FEN_MREGEN BIT(15)
0316 #define FEN_DCORE BIT(11)
0317 #define FEN_CPUEN BIT(10)
0318
0319 #define PAD_HWPD_IDN BIT(22)
0320
0321 #define SYS_CLKSEL_80M BIT(0)
0322 #define SYS_PS_CLKSEL BIT(1)
0323 #define SYS_CPU_CLKSEL BIT(2)
0324 #define SYS_MAC_CLK_EN BIT(11)
0325 #define SYS_SWHW_SEL BIT(14)
0326 #define SYS_FWHW_SEL BIT(15)
0327
0328 #define CMDEEPROM_EN BIT(5)
0329 #define CMDEERPOMSEL BIT(4)
0330 #define CMD9346CR_9356SEL BIT(4)
0331
0332 #define AFE_MBEN BIT(1)
0333 #define AFE_BGEN BIT(0)
0334
0335 #define SPS1_SWEN BIT(1)
0336 #define SPS1_LDEN BIT(0)
0337
0338 #define RF_EN BIT(0)
0339 #define RF_RSTB BIT(1)
0340 #define RF_SDMRSTB BIT(2)
0341
0342 #define LDA15_EN BIT(0)
0343
0344 #define LDV12_EN BIT(0)
0345 #define LDV12_SDBY BIT(1)
0346
0347 #define XTAL_GATE_AFE BIT(10)
0348
0349 #define APLL_EN BIT(0)
0350
0351 #define AFR_CARDBEN BIT(0)
0352 #define AFR_CLKRUN_SEL BIT(1)
0353 #define AFR_FUNCREGEN BIT(2)
0354
0355 #define APSDOFF_STATUS BIT(15)
0356 #define APSDOFF BIT(14)
0357 #define BBRSTN BIT(13)
0358 #define BB_GLB_RSTN BIT(12)
0359 #define SCHEDULE_EN BIT(10)
0360 #define MACRXEN BIT(9)
0361 #define MACTXEN BIT(8)
0362 #define DDMA_EN BIT(7)
0363 #define FW2HW_EN BIT(6)
0364 #define RXDMA_EN BIT(5)
0365 #define TXDMA_EN BIT(4)
0366 #define HCI_RXDMA_EN BIT(3)
0367 #define HCI_TXDMA_EN BIT(2)
0368
0369 #define STOPHCCA BIT(6)
0370 #define STOPHIGH BIT(5)
0371 #define STOPMGT BIT(4)
0372 #define STOPVO BIT(3)
0373 #define STOPVI BIT(2)
0374 #define STOPBE BIT(1)
0375 #define STOPBK BIT(0)
0376
0377 #define LBK_NORMAL 0x00
0378 #define LBK_MAC_LB (BIT(0) | BIT(1) | BIT(3))
0379 #define LBK_MAC_DLB (BIT(0) | BIT(1))
0380 #define LBK_DMA_LB (BIT(0) | BIT(1) | BIT(2))
0381
0382 #define TCP_OFDL_EN BIT(25)
0383 #define HWPC_TX_EN BIT(24)
0384 #define TXDMAPRE2FULL BIT(23)
0385 #define DISCW BIT(20)
0386 #define TCRICV BIT(19)
0387 #define cfendform BIT(17)
0388 #define TCRCRC BIT(16)
0389 #define FAKE_IMEM_EN BIT(15)
0390 #define TSFRST BIT(9)
0391 #define TSFEN BIT(8)
0392 #define FWALLRDY (BIT(0) | BIT(1) | BIT(2) | \
0393 BIT(3) | BIT(4) | BIT(5) | \
0394 BIT(6) | BIT(7))
0395 #define FWRDY BIT(7)
0396 #define BASECHG BIT(6)
0397 #define IMEM BIT(5)
0398 #define DMEM_CODE_DONE BIT(4)
0399 #define EXT_IMEM_CHK_RPT BIT(3)
0400 #define EXT_IMEM_CODE_DONE BIT(2)
0401 #define IMEM_CHK_RPT BIT(1)
0402 #define IMEM_CODE_DONE BIT(0)
0403 #define EMEM_CODE_DONE BIT(2)
0404 #define EMEM_CHK_RPT BIT(3)
0405 #define IMEM_RDY BIT(5)
0406 #define LOAD_FW_READY (IMEM_CODE_DONE | \
0407 IMEM_CHK_RPT | \
0408 EMEM_CODE_DONE | \
0409 EMEM_CHK_RPT | \
0410 DMEM_CODE_DONE | \
0411 IMEM_RDY | \
0412 BASECHG | \
0413 FWRDY)
0414 #define TCR_TSFEN BIT(8)
0415 #define TCR_TSFRST BIT(9)
0416 #define TCR_FAKE_IMEM_EN BIT(15)
0417 #define TCR_CRC BIT(16)
0418 #define TCR_ICV BIT(19)
0419 #define TCR_DISCW BIT(20)
0420 #define TCR_HWPC_TX_EN BIT(24)
0421 #define TCR_TCP_OFDL_EN BIT(25)
0422 #define TXDMA_INIT_VALUE (IMEM_CHK_RPT | \
0423 EXT_IMEM_CHK_RPT)
0424
0425 #define RCR_APPFCS BIT(31)
0426 #define RCR_DIS_ENC_2BYTE BIT(30)
0427 #define RCR_DIS_AES_2BYTE BIT(29)
0428 #define RCR_HTC_LOC_CTRL BIT(28)
0429 #define RCR_ENMBID BIT(27)
0430 #define RCR_RX_TCPOFDL_EN BIT(26)
0431 #define RCR_APP_PHYST_RXFF BIT(25)
0432 #define RCR_APP_PHYST_STAFF BIT(24)
0433 #define RCR_CBSSID BIT(23)
0434 #define RCR_APWRMGT BIT(22)
0435 #define RCR_ADD3 BIT(21)
0436 #define RCR_AMF BIT(20)
0437 #define RCR_ACF BIT(19)
0438 #define RCR_ADF BIT(18)
0439 #define RCR_APP_MIC BIT(17)
0440 #define RCR_APP_ICV BIT(16)
0441 #define RCR_RXFTH BIT(13)
0442 #define RCR_AICV BIT(12)
0443 #define RCR_RXDESC_LK_EN BIT(11)
0444 #define RCR_APP_BA_SSN BIT(6)
0445 #define RCR_ACRC32 BIT(5)
0446 #define RCR_RXSHFT_EN BIT(4)
0447 #define RCR_AB BIT(3)
0448 #define RCR_AM BIT(2)
0449 #define RCR_APM BIT(1)
0450 #define RCR_AAP BIT(0)
0451 #define RCR_MXDMA_OFFSET 8
0452 #define RCR_FIFO_OFFSET 13
0453
0454
0455 #define MSR_LINK_MASK ((1 << 0) | (1 << 1))
0456 #define MSR_LINK_MANAGED 2
0457 #define MSR_LINK_NONE 0
0458 #define MSR_LINK_SHIFT 0
0459 #define MSR_LINK_ADHOC 1
0460 #define MSR_LINK_MASTER 3
0461 #define MSR_NOLINK 0x00
0462 #define MSR_ADHOC 0x01
0463 #define MSR_INFRA 0x02
0464 #define MSR_AP 0x03
0465
0466 #define ENUART BIT(7)
0467 #define ENJTAG BIT(3)
0468 #define BTMODE (BIT(2) | BIT(1))
0469 #define ENBT BIT(0)
0470
0471 #define ENMBID BIT(7)
0472 #define BCNUM (BIT(6) | BIT(5) | BIT(4))
0473
0474 #define USTIME_EDCA 0xFF00
0475 #define USTIME_TSF 0x00FF
0476
0477 #define SIFS_TRX 0xFF00
0478 #define SIFS_CTX 0x00FF
0479
0480 #define ENSWBCN BIT(15)
0481 #define DRVERLY_TU 0x0FF0
0482 #define DRVERLY_US 0x000F
0483 #define BCN_TCFG_CW_SHIFT 8
0484 #define BCN_TCFG_IFS 0
0485
0486 #define RRSR_RSC_OFFSET 21
0487 #define RRSR_SHORT_OFFSET 23
0488 #define RRSR_RSC_BW_40M 0x600000
0489 #define RRSR_RSC_UPSUBCHNL 0x400000
0490 #define RRSR_RSC_LOWSUBCHNL 0x200000
0491 #define RRSR_SHORT 0x800000
0492 #define RRSR_1M BIT(0)
0493 #define RRSR_2M BIT(1)
0494 #define RRSR_5_5M BIT(2)
0495 #define RRSR_11M BIT(3)
0496 #define RRSR_6M BIT(4)
0497 #define RRSR_9M BIT(5)
0498 #define RRSR_12M BIT(6)
0499 #define RRSR_18M BIT(7)
0500 #define RRSR_24M BIT(8)
0501 #define RRSR_36M BIT(9)
0502 #define RRSR_48M BIT(10)
0503 #define RRSR_54M BIT(11)
0504 #define RRSR_MCS0 BIT(12)
0505 #define RRSR_MCS1 BIT(13)
0506 #define RRSR_MCS2 BIT(14)
0507 #define RRSR_MCS3 BIT(15)
0508 #define RRSR_MCS4 BIT(16)
0509 #define RRSR_MCS5 BIT(17)
0510 #define RRSR_MCS6 BIT(18)
0511 #define RRSR_MCS7 BIT(19)
0512 #define BRSR_ACKSHORTPMB BIT(23)
0513
0514 #define RATR_1M 0x00000001
0515 #define RATR_2M 0x00000002
0516 #define RATR_55M 0x00000004
0517 #define RATR_11M 0x00000008
0518 #define RATR_6M 0x00000010
0519 #define RATR_9M 0x00000020
0520 #define RATR_12M 0x00000040
0521 #define RATR_18M 0x00000080
0522 #define RATR_24M 0x00000100
0523 #define RATR_36M 0x00000200
0524 #define RATR_48M 0x00000400
0525 #define RATR_54M 0x00000800
0526 #define RATR_MCS0 0x00001000
0527 #define RATR_MCS1 0x00002000
0528 #define RATR_MCS2 0x00004000
0529 #define RATR_MCS3 0x00008000
0530 #define RATR_MCS4 0x00010000
0531 #define RATR_MCS5 0x00020000
0532 #define RATR_MCS6 0x00040000
0533 #define RATR_MCS7 0x00080000
0534 #define RATR_MCS8 0x00100000
0535 #define RATR_MCS9 0x00200000
0536 #define RATR_MCS10 0x00400000
0537 #define RATR_MCS11 0x00800000
0538 #define RATR_MCS12 0x01000000
0539 #define RATR_MCS13 0x02000000
0540 #define RATR_MCS14 0x04000000
0541 #define RATR_MCS15 0x08000000
0542
0543 #define RATE_ALL_CCK (RATR_1M | RATR_2M | \
0544 RATR_55M | RATR_11M)
0545 #define RATE_ALL_OFDM_AG (RATR_6M | RATR_9M | \
0546 RATR_12M | RATR_18M | \
0547 RATR_24M | RATR_36M | \
0548 RATR_48M | RATR_54M)
0549 #define RATE_ALL_OFDM_1SS (RATR_MCS0 | RATR_MCS1 | \
0550 RATR_MCS2 | RATR_MCS3 | \
0551 RATR_MCS4 | RATR_MCS5 | \
0552 RATR_MCS6 | RATR_MCS7)
0553 #define RATE_ALL_OFDM_2SS (RATR_MCS8 | RATR_MCS9 | \
0554 RATR_MCS10 | RATR_MCS11 | \
0555 RATR_MCS12 | RATR_MCS13 | \
0556 RATR_MCS14 | RATR_MCS15)
0557
0558 #define AC_PARAM_TXOP_LIMIT_OFFSET 16
0559 #define AC_PARAM_ECW_MAX_OFFSET 12
0560 #define AC_PARAM_ECW_MIN_OFFSET 8
0561 #define AC_PARAM_AIFS_OFFSET 0
0562
0563 #define ACMHW_HWEN BIT(0)
0564 #define ACMHW_BEQEN BIT(1)
0565 #define ACMHW_VIQEN BIT(2)
0566 #define ACMHW_VOQEN BIT(3)
0567 #define ACMHW_BEQSTATUS BIT(4)
0568 #define ACMHW_VIQSTATUS BIT(5)
0569 #define ACMHW_VOQSTATUS BIT(6)
0570
0571 #define RETRY_LIMIT_SHORT_SHIFT 8
0572 #define RETRY_LIMIT_LONG_SHIFT 0
0573
0574 #define NAV_UPPER_EN BIT(16)
0575 #define NAV_UPPER 0xFF00
0576 #define NAV_RTSRST 0xFF
0577
0578 #define BW_OPMODE_20MHZ BIT(2)
0579 #define BW_OPMODE_5G BIT(1)
0580 #define BW_OPMODE_11J BIT(0)
0581
0582 #define RXERR_RPT_RST BIT(27)
0583 #define RXERR_OFDM_PPDU 0
0584 #define RXERR_OFDM_FALSE_ALARM 1
0585 #define RXERR_OFDM_MPDU_OK 2
0586 #define RXERR_OFDM_MPDU_FAIL 3
0587 #define RXERR_CCK_PPDU 4
0588 #define RXERR_CCK_FALSE_ALARM 5
0589 #define RXERR_CCK_MPDU_OK 6
0590 #define RXERR_CCK_MPDU_FAIL 7
0591 #define RXERR_HT_PPDU 8
0592 #define RXERR_HT_FALSE_ALARM 9
0593 #define RXERR_HT_MPDU_TOTAL 10
0594 #define RXERR_HT_MPDU_OK 11
0595 #define RXERR_HT_MPDU_FAIL 12
0596 #define RXERR_RX_FULL_DROP 15
0597
0598 #define SCR_TXUSEDK BIT(0)
0599 #define SCR_RXUSEDK BIT(1)
0600 #define SCR_TXENCENABLE BIT(2)
0601 #define SCR_RXENCENABLE BIT(3)
0602 #define SCR_SKBYA2 BIT(4)
0603 #define SCR_NOSKMC BIT(5)
0604
0605 #define CAM_VALID BIT(15)
0606 #define CAM_NOTVALID 0x0000
0607 #define CAM_USEDK BIT(5)
0608
0609 #define CAM_NONE 0x0
0610 #define CAM_WEP40 0x01
0611 #define CAM_TKIP 0x02
0612 #define CAM_AES 0x04
0613 #define CAM_WEP104 0x05
0614
0615 #define TOTAL_CAM_ENTRY 32
0616 #define HALF_CAM_ENTRY 16
0617
0618 #define CAM_WRITE BIT(16)
0619 #define CAM_READ 0x00000000
0620 #define CAM_POLLINIG BIT(31)
0621
0622 #define WOW_PMEN BIT(0)
0623 #define WOW_WOMEN BIT(1)
0624 #define WOW_MAGIC BIT(2)
0625 #define WOW_UWF BIT(3)
0626
0627 #define GPIOMUX_EN BIT(3)
0628 #define GPIOSEL_GPIO 0
0629 #define GPIOSEL_PHYDBG 1
0630 #define GPIOSEL_BT 2
0631 #define GPIOSEL_WLANDBG 3
0632 #define GPIOSEL_GPIO_MASK (~(BIT(0)|BIT(1)))
0633
0634 #define HST_RDBUSY BIT(0)
0635 #define CPU_WTBUSY BIT(1)
0636
0637 #define IMR8190_DISABLED 0x0
0638 #define IMR_CPUERR BIT(5)
0639 #define IMR_ATIMEND BIT(4)
0640 #define IMR_TBDOK BIT(3)
0641 #define IMR_TBDER BIT(2)
0642 #define IMR_BCNDMAINT8 BIT(1)
0643 #define IMR_BCNDMAINT7 BIT(0)
0644 #define IMR_BCNDMAINT6 BIT(31)
0645 #define IMR_BCNDMAINT5 BIT(30)
0646 #define IMR_BCNDMAINT4 BIT(29)
0647 #define IMR_BCNDMAINT3 BIT(28)
0648 #define IMR_BCNDMAINT2 BIT(27)
0649 #define IMR_BCNDMAINT1 BIT(26)
0650 #define IMR_BCNDOK8 BIT(25)
0651 #define IMR_BCNDOK7 BIT(24)
0652 #define IMR_BCNDOK6 BIT(23)
0653 #define IMR_BCNDOK5 BIT(22)
0654 #define IMR_BCNDOK4 BIT(21)
0655 #define IMR_BCNDOK3 BIT(20)
0656 #define IMR_BCNDOK2 BIT(19)
0657 #define IMR_BCNDOK1 BIT(18)
0658 #define IMR_TIMEOUT2 BIT(17)
0659 #define IMR_TIMEOUT1 BIT(16)
0660 #define IMR_TXFOVW BIT(15)
0661 #define IMR_PSTIMEOUT BIT(14)
0662 #define IMR_BCNINT BIT(13)
0663 #define IMR_RXFOVW BIT(12)
0664 #define IMR_RDU BIT(11)
0665 #define IMR_RXCMDOK BIT(10)
0666 #define IMR_BDOK BIT(9)
0667 #define IMR_HIGHDOK BIT(8)
0668 #define IMR_COMDOK BIT(7)
0669 #define IMR_MGNTDOK BIT(6)
0670 #define IMR_HCCADOK BIT(5)
0671 #define IMR_BKDOK BIT(4)
0672 #define IMR_BEDOK BIT(3)
0673 #define IMR_VIDOK BIT(2)
0674 #define IMR_VODOK BIT(1)
0675 #define IMR_ROK BIT(0)
0676
0677 #define TPPOLL_BKQ BIT(0)
0678 #define TPPOLL_BEQ BIT(1)
0679 #define TPPOLL_VIQ BIT(2)
0680 #define TPPOLL_VOQ BIT(3)
0681 #define TPPOLL_BQ BIT(4)
0682 #define TPPOLL_CQ BIT(5)
0683 #define TPPOLL_MQ BIT(6)
0684 #define TPPOLL_HQ BIT(7)
0685 #define TPPOLL_HCCAQ BIT(8)
0686 #define TPPOLL_STOPBK BIT(9)
0687 #define TPPOLL_STOPBE BIT(10)
0688 #define TPPOLL_STOPVI BIT(11)
0689 #define TPPOLL_STOPVO BIT(12)
0690 #define TPPOLL_STOPMGT BIT(13)
0691 #define TPPOLL_STOPHIGH BIT(14)
0692 #define TPPOLL_STOPHCCA BIT(15)
0693 #define TPPOLL_SHIFT 8
0694
0695 #define CCX_CMD_CLM_ENABLE BIT(0)
0696 #define CCX_CMD_NHM_ENABLE BIT(1)
0697 #define CCX_CMD_FUNCTION_ENABLE BIT(8)
0698 #define CCX_CMD_IGNORE_CCA BIT(9)
0699 #define CCX_CMD_IGNORE_TXON BIT(10)
0700 #define CCX_CLM_RESULT_READY BIT(16)
0701 #define CCX_NHM_RESULT_READY BIT(16)
0702 #define CCX_CMD_RESET 0x0
0703
0704
0705 #define HWSET_MAX_SIZE_92S 128
0706 #define EFUSE_MAX_SECTION 16
0707 #define EFUSE_REAL_CONTENT_LEN 512
0708 #define EFUSE_OOB_PROTECT_BYTES 15
0709
0710 #define RTL8190_EEPROM_ID 0x8129
0711 #define EEPROM_HPON 0x02
0712 #define EEPROM_CLK 0x06
0713 #define EEPROM_TESTR 0x08
0714
0715 #define EEPROM_VID 0x0A
0716 #define EEPROM_DID 0x0C
0717 #define EEPROM_SVID 0x0E
0718 #define EEPROM_SMID 0x10
0719
0720 #define EEPROM_MAC_ADDR 0x12
0721 #define EEPROM_NODE_ADDRESS_BYTE_0 0x12
0722
0723 #define EEPROM_PWDIFF 0x54
0724
0725 #define EEPROM_TXPOWERBASE 0x50
0726 #define EEPROM_TX_PWR_INDEX_RANGE 28
0727
0728 #define EEPROM_TX_PWR_HT20_DIFF 0x62
0729 #define DEFAULT_HT20_TXPWR_DIFF 2
0730 #define EEPROM_TX_PWR_OFDM_DIFF 0x65
0731
0732 #define EEPROM_TXPWRGROUP 0x67
0733 #define EEPROM_REGULATORY 0x6D
0734
0735 #define TX_PWR_SAFETY_CHK 0x6D
0736 #define EEPROM_TXPWINDEX_CCK_24G 0x5D
0737 #define EEPROM_TXPWINDEX_OFDM_24G 0x6B
0738 #define EEPROM_HT2T_CH1_A 0x6c
0739 #define EEPROM_HT2T_CH7_A 0x6d
0740 #define EEPROM_HT2T_CH13_A 0x6e
0741 #define EEPROM_HT2T_CH1_B 0x6f
0742 #define EEPROM_HT2T_CH7_B 0x70
0743 #define EEPROM_HT2T_CH13_B 0x71
0744
0745 #define EEPROM_TSSI_A 0x74
0746 #define EEPROM_TSSI_B 0x75
0747
0748 #define EEPROM_RFIND_POWERDIFF 0x76
0749 #define EEPROM_DEFAULT_LEGACYHTTXPOWERDIFF 0x3
0750
0751 #define EEPROM_THERMALMETER 0x77
0752 #define EEPROM_BLUETOOTH_COEXIST 0x78
0753 #define EEPROM_BLUETOOTH_TYPE 0x4f
0754
0755 #define EEPROM_OPTIONAL 0x78
0756 #define EEPROM_WOWLAN 0x78
0757
0758 #define EEPROM_CRYSTALCAP 0x79
0759 #define EEPROM_CHANNELPLAN 0x7B
0760 #define EEPROM_VERSION 0x7C
0761 #define EEPROM_CUSTOMID 0x7A
0762 #define EEPROM_BOARDTYPE 0x7E
0763
0764 #define EEPROM_CHANNEL_PLAN_FCC 0x0
0765 #define EEPROM_CHANNEL_PLAN_IC 0x1
0766 #define EEPROM_CHANNEL_PLAN_ETSI 0x2
0767 #define EEPROM_CHANNEL_PLAN_SPAIN 0x3
0768 #define EEPROM_CHANNEL_PLAN_FRANCE 0x4
0769 #define EEPROM_CHANNEL_PLAN_MKK 0x5
0770 #define EEPROM_CHANNEL_PLAN_MKK1 0x6
0771 #define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
0772 #define EEPROM_CHANNEL_PLAN_TELEC 0x8
0773 #define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9
0774 #define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
0775 #define EEPROM_CHANNEL_PLAN_NCC 0xB
0776 #define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
0777
0778 #define FW_DIG_DISABLE 0xfd00cc00
0779 #define FW_DIG_ENABLE 0xfd000000
0780 #define FW_DIG_HALT 0xfd000001
0781 #define FW_DIG_RESUME 0xfd000002
0782 #define FW_HIGH_PWR_DISABLE 0xfd000008
0783 #define FW_HIGH_PWR_ENABLE 0xfd000009
0784 #define FW_ADD_A2_ENTRY 0xfd000016
0785 #define FW_TXPWR_TRACK_ENABLE 0xfd000017
0786 #define FW_TXPWR_TRACK_DISABLE 0xfd000018
0787 #define FW_TXPWR_TRACK_THERMAL 0xfd000019
0788 #define FW_TXANT_SWITCH_ENABLE 0xfd000023
0789 #define FW_TXANT_SWITCH_DISABLE 0xfd000024
0790 #define FW_RA_INIT 0xfd000026
0791 #define FW_CTRL_DM_BY_DRIVER 0Xfd00002a
0792 #define FW_RA_IOT_BG_COMB 0xfd000030
0793 #define FW_RA_IOT_N_COMB 0xfd000031
0794 #define FW_RA_REFRESH 0xfd0000a0
0795 #define FW_RA_UPDATE_MASK 0xfd0000a2
0796 #define FW_RA_DISABLE 0xfd0000a4
0797 #define FW_RA_ACTIVE 0xfd0000a6
0798 #define FW_RA_DISABLE_RSSI_MASK 0xfd0000ac
0799 #define FW_RA_ENABLE_RSSI_MASK 0xfd0000ad
0800 #define FW_RA_RESET 0xfd0000af
0801 #define FW_DM_DISABLE 0xfd00aa00
0802 #define FW_IQK_ENABLE 0xf0000020
0803 #define FW_IQK_SUCCESS 0x0000dddd
0804 #define FW_IQK_FAIL 0x0000ffff
0805 #define FW_OP_FAILURE 0xffffffff
0806 #define FW_TX_FEEDBACK_NONE 0xfb000000
0807 #define FW_TX_FEEDBACK_DTM_ENABLE (FW_TX_FEEDBACK_NONE | 0x1)
0808 #define FW_TX_FEEDBACK_CCX_ENABL (FW_TX_FEEDBACK_NONE | 0x2)
0809 #define FW_BB_RESET_ENABLE 0xff00000d
0810 #define FW_BB_RESET_DISABLE 0xff00000e
0811 #define FW_CCA_CHK_ENABLE 0xff000011
0812 #define FW_CCK_RESET_CNT 0xff000013
0813 #define FW_LPS_ENTER 0xfe000010
0814 #define FW_LPS_LEAVE 0xfe000011
0815 #define FW_INDIRECT_READ 0xf2000000
0816 #define FW_INDIRECT_WRITE 0xf2000001
0817 #define FW_CHAN_SET 0xf3000001
0818
0819 #define RFPC 0x5F
0820 #define RCR_9356SEL BIT(6)
0821 #define TCR_LRL_OFFSET 0
0822 #define TCR_SRL_OFFSET 8
0823 #define TCR_MXDMA_OFFSET 21
0824 #define TCR_SAT BIT(24)
0825 #define RCR_MXDMA_OFFSET 8
0826 #define RCR_FIFO_OFFSET 13
0827 #define RCR_ONLYERLPKT BIT(31)
0828 #define CWR 0xDC
0829 #define RETRYCTR 0xDE
0830
0831 #define CPU_GEN_SYSTEM_RESET 0x00000001
0832
0833 #define CCX_COMMAND_REG 0x890
0834 #define CLM_PERIOD_REG 0x894
0835 #define NHM_PERIOD_REG 0x896
0836
0837 #define NHM_THRESHOLD0 0x898
0838 #define NHM_THRESHOLD1 0x899
0839 #define NHM_THRESHOLD2 0x89A
0840 #define NHM_THRESHOLD3 0x89B
0841 #define NHM_THRESHOLD4 0x89C
0842 #define NHM_THRESHOLD5 0x89D
0843 #define NHM_THRESHOLD6 0x89E
0844 #define CLM_RESULT_REG 0x8D0
0845 #define NHM_RESULT_REG 0x8D4
0846 #define NHM_RPI_COUNTER0 0x8D8
0847 #define NHM_RPI_COUNTER1 0x8D9
0848 #define NHM_RPI_COUNTER2 0x8DA
0849 #define NHM_RPI_COUNTER3 0x8DB
0850 #define NHM_RPI_COUNTER4 0x8DC
0851 #define NHM_RPI_COUNTER5 0x8DD
0852 #define NHM_RPI_COUNTER6 0x8DE
0853 #define NHM_RPI_COUNTER7 0x8DF
0854
0855 #define HAL_8192S_HW_GPIO_OFF_BIT BIT(3)
0856 #define HAL_8192S_HW_GPIO_OFF_MASK 0xF7
0857 #define HAL_8192S_HW_GPIO_WPS_BIT BIT(4)
0858
0859 #define RPMAC_RESET 0x100
0860 #define RPMAC_TXSTART 0x104
0861 #define RPMAC_TXLEGACYSIG 0x108
0862 #define RPMAC_TXHTSIG1 0x10c
0863 #define RPMAC_TXHTSIG2 0x110
0864 #define RPMAC_PHYDEBUG 0x114
0865 #define RPMAC_TXPACKETNNM 0x118
0866 #define RPMAC_TXIDLE 0x11c
0867 #define RPMAC_TXMACHEADER0 0x120
0868 #define RPMAC_TXMACHEADER1 0x124
0869 #define RPMAC_TXMACHEADER2 0x128
0870 #define RPMAC_TXMACHEADER3 0x12c
0871 #define RPMAC_TXMACHEADER4 0x130
0872 #define RPMAC_TXMACHEADER5 0x134
0873 #define RPMAC_TXDATATYPE 0x138
0874 #define RPMAC_TXRANDOMSEED 0x13c
0875 #define RPMAC_CCKPLCPPREAMBLE 0x140
0876 #define RPMAC_CCKPLCPHEADER 0x144
0877 #define RPMAC_CCKCRC16 0x148
0878 #define RPMAC_OFDMRXCRC32OK 0x170
0879 #define RPMAC_OFDMRXCRC32ER 0x174
0880 #define RPMAC_OFDMRXPARITYER 0x178
0881 #define RPMAC_OFDMRXCRC8ER 0x17c
0882 #define RPMAC_CCKCRXRC16ER 0x180
0883 #define RPMAC_CCKCRXRC32ER 0x184
0884 #define RPMAC_CCKCRXRC32OK 0x188
0885 #define RPMAC_TXSTATUS 0x18c
0886
0887 #define RF_BB_CMD_ADDR 0x02c0
0888 #define RF_BB_CMD_DATA 0x02c4
0889
0890 #define RFPGA0_RFMOD 0x800
0891
0892 #define RFPGA0_TXINFO 0x804
0893 #define RFPGA0_PSDFUNCTION 0x808
0894
0895 #define RFPGA0_TXGAINSTAGE 0x80c
0896
0897 #define RFPGA0_RFTIMING1 0x810
0898 #define RFPGA0_RFTIMING2 0x814
0899 #define RFPGA0_XA_HSSIPARAMETER1 0x820
0900 #define RFPGA0_XA_HSSIPARAMETER2 0x824
0901 #define RFPGA0_XB_HSSIPARAMETER1 0x828
0902 #define RFPGA0_XB_HSSIPARAMETER2 0x82c
0903 #define RFPGA0_XC_HSSIPARAMETER1 0x830
0904 #define RFPGA0_XC_HSSIPARAMETER2 0x834
0905 #define RFPGA0_XD_HSSIPARAMETER1 0x838
0906 #define RFPGA0_XD_HSSIPARAMETER2 0x83c
0907 #define RFPGA0_XA_LSSIPARAMETER 0x840
0908 #define RFPGA0_XB_LSSIPARAMETER 0x844
0909 #define RFPGA0_XC_LSSIPARAMETER 0x848
0910 #define RFPGA0_XD_LSSIPARAMETER 0x84c
0911
0912 #define RFPGA0_RFWAKEUP_PARAMETER 0x850
0913 #define RFPGA0_RFSLEEPUP_PARAMETER 0x854
0914
0915 #define RFPGA0_XAB_SWITCHCONTROL 0x858
0916 #define RFPGA0_XCD_SWITCHCONTROL 0x85c
0917
0918 #define RFPGA0_XA_RFINTERFACEOE 0x860
0919 #define RFPGA0_XB_RFINTERFACEOE 0x864
0920 #define RFPGA0_XC_RFINTERFACEOE 0x868
0921 #define RFPGA0_XD_RFINTERFACEOE 0x86c
0922
0923 #define RFPGA0_XAB_RFINTERFACESW 0x870
0924 #define RFPGA0_XCD_RFINTERFACESW 0x874
0925
0926 #define RFPGA0_XAB_RFPARAMETER 0x878
0927 #define RFPGA0_XCD_RFPARAMETER 0x87c
0928
0929 #define RFPGA0_ANALOGPARAMETER1 0x880
0930 #define RFPGA0_ANALOGPARAMETER2 0x884
0931 #define RFPGA0_ANALOGPARAMETER3 0x888
0932 #define RFPGA0_ANALOGPARAMETER4 0x88c
0933
0934 #define RFPGA0_XA_LSSIREADBACK 0x8a0
0935 #define RFPGA0_XB_LSSIREADBACK 0x8a4
0936 #define RFPGA0_XC_LSSIREADBACK 0x8a8
0937 #define RFPGA0_XD_LSSIREADBACK 0x8ac
0938
0939 #define RFPGA0_PSDREPORT 0x8b4
0940 #define TRANSCEIVERA_HSPI_READBACK 0x8b8
0941 #define TRANSCEIVERB_HSPI_READBACK 0x8bc
0942 #define RFPGA0_XAB_RFINTERFACERB 0x8e0
0943 #define RFPGA0_XCD_RFINTERFACERB 0x8e4
0944 #define RFPGA1_RFMOD 0x900
0945
0946 #define RFPGA1_TXBLOCK 0x904
0947 #define RFPGA1_DEBUGSELECT 0x908
0948 #define RFPGA1_TXINFO 0x90c
0949
0950 #define RCCK0_SYSTEM 0xa00
0951
0952 #define RCCK0_AFESETTING 0xa04
0953 #define RCCK0_CCA 0xa08
0954
0955 #define RCCK0_RXAGC1 0xa0c
0956 #define RCCK0_RXAGC2 0xa10
0957
0958 #define RCCK0_RXHP 0xa14
0959
0960 #define RCCK0_DSPPARAMETER1 0xa18
0961 #define RCCK0_DSPPARAMETER2 0xa1c
0962
0963 #define RCCK0_TXFILTER1 0xa20
0964 #define RCCK0_TXFILTER2 0xa24
0965 #define RCCK0_DEBUGPORT 0xa28
0966 #define RCCK0_FALSEALARMREPORT 0xa2c
0967 #define RCCK0_TRSSIREPORT 0xa50
0968 #define RCCK0_RXREPORT 0xa54
0969 #define RCCK0_FACOUNTERLOWER 0xa5c
0970 #define RCCK0_FACOUNTERUPPER 0xa58
0971
0972 #define ROFDM0_LSTF 0xc00
0973
0974 #define ROFDM0_TRXPATHENABLE 0xc04
0975 #define ROFDM0_TRMUXPAR 0xc08
0976 #define ROFDM0_TRSWISOLATION 0xc0c
0977
0978 #define ROFDM0_XARXAFE 0xc10
0979 #define ROFDM0_XARXIQIMBALANCE 0xc14
0980 #define ROFDM0_XBRXAFE 0xc18
0981 #define ROFDM0_XBRXIQIMBALANCE 0xc1c
0982 #define ROFDM0_XCRXAFE 0xc20
0983 #define ROFDM0_XCRXIQIMBALANCE 0xc24
0984 #define ROFDM0_XDRXAFE 0xc28
0985 #define ROFDM0_XDRXIQIMBALANCE 0xc2c
0986
0987 #define ROFDM0_RXDETECTOR1 0xc30
0988 #define ROFDM0_RXDETECTOR2 0xc34
0989 #define ROFDM0_RXDETECTOR3 0xc38
0990 #define ROFDM0_RXDETECTOR4 0xc3c
0991
0992 #define ROFDM0_RXDSP 0xc40
0993 #define ROFDM0_CFO_AND_DAGC 0xc44
0994 #define ROFDM0_CCADROP_THRESHOLD 0xc48
0995 #define ROFDM0_ECCA_THRESHOLD 0xc4c
0996
0997 #define ROFDM0_XAAGCCORE1 0xc50
0998 #define ROFDM0_XAAGCCORE2 0xc54
0999 #define ROFDM0_XBAGCCORE1 0xc58
1000 #define ROFDM0_XBAGCCORE2 0xc5c
1001 #define ROFDM0_XCAGCCORE1 0xc60
1002 #define ROFDM0_XCAGCCORE2 0xc64
1003 #define ROFDM0_XDAGCCORE1 0xc68
1004 #define ROFDM0_XDAGCCORE2 0xc6c
1005
1006 #define ROFDM0_AGCPARAMETER1 0xc70
1007 #define ROFDM0_AGCPARAMETER2 0xc74
1008 #define ROFDM0_AGCRSSITABLE 0xc78
1009 #define ROFDM0_HTSTFAGC 0xc7c
1010
1011 #define ROFDM0_XATXIQIMBALANCE 0xc80
1012 #define ROFDM0_XATXAFE 0xc84
1013 #define ROFDM0_XBTXIQIMBALANCE 0xc88
1014 #define ROFDM0_XBTXAFE 0xc8c
1015 #define ROFDM0_XCTXIQIMBALANCE 0xc90
1016 #define ROFDM0_XCTXAFE 0xc94
1017 #define ROFDM0_XDTXIQIMBALANCE 0xc98
1018 #define ROFDM0_XDTXAFE 0xc9c
1019
1020 #define ROFDM0_RXHP_PARAMETER 0xce0
1021 #define ROFDM0_TXPSEUDO_NOISE_WGT 0xce4
1022 #define ROFDM0_FRAME_SYNC 0xcf0
1023 #define ROFDM0_DFSREPORT 0xcf4
1024 #define ROFDM0_TXCOEFF1 0xca4
1025 #define ROFDM0_TXCOEFF2 0xca8
1026 #define ROFDM0_TXCOEFF3 0xcac
1027 #define ROFDM0_TXCOEFF4 0xcb0
1028 #define ROFDM0_TXCOEFF5 0xcb4
1029 #define ROFDM0_TXCOEFF6 0xcb8
1030
1031
1032 #define ROFDM1_LSTF 0xd00
1033 #define ROFDM1_TRXPATHENABLE 0xd04
1034
1035 #define ROFDM1_CFO 0xd08
1036 #define ROFDM1_CSI1 0xd10
1037 #define ROFDM1_SBD 0xd14
1038 #define ROFDM1_CSI2 0xd18
1039 #define ROFDM1_CFOTRACKING 0xd2c
1040 #define ROFDM1_TRXMESAURE1 0xd34
1041 #define ROFDM1_INTF_DET 0xd3c
1042 #define ROFDM1_PSEUDO_NOISESTATEAB 0xd50
1043 #define ROFDM1_PSEUDO_NOISESTATECD 0xd54
1044 #define ROFDM1_RX_PSEUDO_NOISE_WGT 0xd58
1045
1046 #define ROFDM_PHYCOUNTER1 0xda0
1047 #define ROFDM_PHYCOUNTER2 0xda4
1048 #define ROFDM_PHYCOUNTER3 0xda8
1049
1050 #define ROFDM_SHORT_CFOAB 0xdac
1051 #define ROFDM_SHORT_CFOCD 0xdb0
1052 #define ROFDM_LONG_CFOAB 0xdb4
1053 #define ROFDM_LONG_CFOCD 0xdb8
1054 #define ROFDM_TAIL_CFOAB 0xdbc
1055 #define ROFDM_TAIL_CFOCD 0xdc0
1056 #define ROFDM_PW_MEASURE1 0xdc4
1057 #define ROFDM_PW_MEASURE2 0xdc8
1058 #define ROFDM_BW_REPORT 0xdcc
1059 #define ROFDM_AGC_REPORT 0xdd0
1060 #define ROFDM_RXSNR 0xdd4
1061 #define ROFDM_RXEVMCSI 0xdd8
1062 #define ROFDM_SIG_REPORT 0xddc
1063
1064
1065 #define RTXAGC_RATE18_06 0xe00
1066 #define RTXAGC_RATE54_24 0xe04
1067 #define RTXAGC_CCK_MCS32 0xe08
1068 #define RTXAGC_MCS03_MCS00 0xe10
1069 #define RTXAGC_MCS07_MCS04 0xe14
1070 #define RTXAGC_MCS11_MCS08 0xe18
1071 #define RTXAGC_MCS15_MCS12 0xe1c
1072
1073
1074 #define RF_AC 0x00
1075 #define RF_IQADJ_G1 0x01
1076 #define RF_IQADJ_G2 0x02
1077 #define RF_POW_TRSW 0x05
1078 #define RF_GAIN_RX 0x06
1079 #define RF_GAIN_TX 0x07
1080 #define RF_TXM_IDAC 0x08
1081 #define RF_BS_IQGEN 0x0F
1082
1083 #define RF_MODE1 0x10
1084 #define RF_MODE2 0x11
1085 #define RF_RX_AGC_HP 0x12
1086 #define RF_TX_AGC 0x13
1087 #define RF_BIAS 0x14
1088 #define RF_IPA 0x15
1089 #define RF_POW_ABILITY 0x17
1090 #define RF_MODE_AG 0x18
1091 #define RF_CHANNEL 0x18
1092 #define RF_CHNLBW 0x18
1093 #define RF_TOP 0x19
1094 #define RF_RX_G1 0x1A
1095 #define RF_RX_G2 0x1B
1096 #define RF_RX_BB2 0x1C
1097 #define RF_RX_BB1 0x1D
1098 #define RF_RCK1 0x1E
1099 #define RF_RCK2 0x1F
1100
1101 #define RF_TX_G1 0x20
1102 #define RF_TX_G2 0x21
1103 #define RF_TX_G3 0x22
1104 #define RF_TX_BB1 0x23
1105 #define RF_T_METER 0x24
1106 #define RF_SYN_G1 0x25
1107 #define RF_SYN_G2 0x26
1108 #define RF_SYN_G3 0x27
1109 #define RF_SYN_G4 0x28
1110 #define RF_SYN_G5 0x29
1111 #define RF_SYN_G6 0x2A
1112 #define RF_SYN_G7 0x2B
1113 #define RF_SYN_G8 0x2C
1114
1115 #define RF_RCK_OS 0x30
1116 #define RF_TXPA_G1 0x31
1117 #define RF_TXPA_G2 0x32
1118 #define RF_TXPA_G3 0x33
1119
1120 #define BRFMOD 0x1
1121 #define BCCKEN 0x1000000
1122 #define BOFDMEN 0x2000000
1123
1124 #define BXBTXAGC 0xf00
1125 #define BXCTXAGC 0xf000
1126 #define BXDTXAGC 0xf0000
1127
1128 #define B3WIRE_DATALENGTH 0x800
1129 #define B3WIRE_ADDRESSLENGTH 0x400
1130
1131 #define BRFSI_RFENV 0x10
1132
1133 #define BLSSI_READADDRESS 0x7f800000
1134 #define BLSSI_READEDGE 0x80000000
1135 #define BLSSI_READBACK_DATA 0xfffff
1136
1137 #define BADCLKPHASE 0x4000000
1138
1139 #define BCCK_SIDEBAND 0x10
1140
1141 #define BTX_AGCRATECCK 0x7f00
1142
1143 #endif