reg.h 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009-2012 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. * The full GNU General Public License is included in this distribution in the
  19. * file called LICENSE.
  20. *
  21. * Contact Information:
  22. * wlanfae <wlanfae@realtek.com>
  23. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  24. * Hsinchu 300, Taiwan.
  25. *
  26. * Larry Finger <Larry.Finger@lwfinger.net>
  27. *
  28. *****************************************************************************/
  29. #ifndef __REALTEK_92S_REG_H__
  30. #define __REALTEK_92S_REG_H__
  31. /* 1. System Configuration Registers */
  32. #define REG_SYS_ISO_CTRL 0x0000
  33. #define REG_SYS_FUNC_EN 0x0002
  34. #define PMC_FSM 0x0004
  35. #define SYS_CLKR 0x0008
  36. #define EPROM_CMD 0x000A
  37. #define EE_VPD 0x000C
  38. #define AFE_MISC 0x0010
  39. #define SPS0_CTRL 0x0011
  40. #define SPS1_CTRL 0x0018
  41. #define RF_CTRL 0x001F
  42. #define LDOA15_CTRL 0x0020
  43. #define LDOV12D_CTRL 0x0021
  44. #define LDOHCI12_CTRL 0x0022
  45. #define LDO_USB_SDIO 0x0023
  46. #define LPLDO_CTRL 0x0024
  47. #define AFE_XTAL_CTRL 0x0026
  48. #define AFE_PLL_CTRL 0x0028
  49. #define REG_EFUSE_CTRL 0x0030
  50. #define REG_EFUSE_TEST 0x0034
  51. #define PWR_DATA 0x0038
  52. #define DBG_PORT 0x003A
  53. #define DPS_TIMER 0x003C
  54. #define RCLK_MON 0x003E
  55. /* 2. Command Control Registers */
  56. #define CMDR 0x0040
  57. #define TXPAUSE 0x0042
  58. #define LBKMD_SEL 0x0043
  59. #define TCR 0x0044
  60. #define RCR 0x0048
  61. #define MSR 0x004C
  62. #define SYSF_CFG 0x004D
  63. #define RX_PKY_LIMIT 0x004E
  64. #define MBIDCTRL 0x004F
  65. /* 3. MACID Setting Registers */
  66. #define MACIDR 0x0050
  67. #define MACIDR0 0x0050
  68. #define MACIDR4 0x0054
  69. #define BSSIDR 0x0058
  70. #define HWVID 0x005E
  71. #define MAR 0x0060
  72. #define MBIDCAMCONTENT 0x0068
  73. #define MBIDCAMCFG 0x0070
  74. #define BUILDTIME 0x0074
  75. #define BUILDUSER 0x0078
  76. #define IDR0 MACIDR0
  77. #define IDR4 MACIDR4
  78. /* 4. Timing Control Registers */
  79. #define TSFR 0x0080
  80. #define SLOT_TIME 0x0089
  81. #define USTIME 0x008A
  82. #define SIFS_CCK 0x008C
  83. #define SIFS_OFDM 0x008E
  84. #define PIFS_TIME 0x0090
  85. #define ACK_TIMEOUT 0x0091
  86. #define EIFSTR 0x0092
  87. #define BCN_INTERVAL 0x0094
  88. #define ATIMWND 0x0096
  89. #define BCN_DRV_EARLY_INT 0x0098
  90. #define BCN_DMATIME 0x009A
  91. #define BCN_ERR_THRESH 0x009C
  92. #define MLT 0x009D
  93. #define RSVD_MAC_TUNE_US 0x009E
  94. /* 5. FIFO Control Registers */
  95. #define RQPN 0x00A0
  96. #define RQPN1 0x00A0
  97. #define RQPN2 0x00A1
  98. #define RQPN3 0x00A2
  99. #define RQPN4 0x00A3
  100. #define RQPN5 0x00A4
  101. #define RQPN6 0x00A5
  102. #define RQPN7 0x00A6
  103. #define RQPN8 0x00A7
  104. #define RQPN9 0x00A8
  105. #define RQPN10 0x00A9
  106. #define LD_RQPN 0x00AB
  107. #define RXFF_BNDY 0x00AC
  108. #define RXRPT_BNDY 0x00B0
  109. #define TXPKTBUF_PGBNDY 0x00B4
  110. #define PBP 0x00B5
  111. #define RXDRVINFO_SZ 0x00B6
  112. #define TXFF_STATUS 0x00B7
  113. #define RXFF_STATUS 0x00B8
  114. #define TXFF_EMPTY_TH 0x00B9
  115. #define SDIO_RX_BLKSZ 0x00BC
  116. #define RXDMA 0x00BD
  117. #define RXPKT_NUM 0x00BE
  118. #define C2HCMD_UDT_SIZE 0x00C0
  119. #define C2HCMD_UDT_ADDR 0x00C2
  120. #define FIFOPAGE1 0x00C4
  121. #define FIFOPAGE2 0x00C8
  122. #define FIFOPAGE3 0x00CC
  123. #define FIFOPAGE4 0x00D0
  124. #define FIFOPAGE5 0x00D4
  125. #define FW_RSVD_PG_CRTL 0x00D8
  126. #define RXDMA_AGG_PG_TH 0x00D9
  127. #define TXDESC_MSK 0x00DC
  128. #define TXRPTFF_RDPTR 0x00E0
  129. #define TXRPTFF_WTPTR 0x00E4
  130. #define C2HFF_RDPTR 0x00E8
  131. #define C2HFF_WTPTR 0x00EC
  132. #define RXFF0_RDPTR 0x00F0
  133. #define RXFF0_WTPTR 0x00F4
  134. #define RXFF1_RDPTR 0x00F8
  135. #define RXFF1_WTPTR 0x00FC
  136. #define RXRPT0_RDPTR 0x0100
  137. #define RXRPT0_WTPTR 0x0104
  138. #define RXRPT1_RDPTR 0x0108
  139. #define RXRPT1_WTPTR 0x010C
  140. #define RX0_UDT_SIZE 0x0110
  141. #define RX1PKTNUM 0x0114
  142. #define RXFILTERMAP 0x0116
  143. #define RXFILTERMAP_GP1 0x0118
  144. #define RXFILTERMAP_GP2 0x011A
  145. #define RXFILTERMAP_GP3 0x011C
  146. #define BCNQ_CTRL 0x0120
  147. #define MGTQ_CTRL 0x0124
  148. #define HIQ_CTRL 0x0128
  149. #define VOTID7_CTRL 0x012c
  150. #define VOTID6_CTRL 0x0130
  151. #define VITID5_CTRL 0x0134
  152. #define VITID4_CTRL 0x0138
  153. #define BETID3_CTRL 0x013c
  154. #define BETID0_CTRL 0x0140
  155. #define BKTID2_CTRL 0x0144
  156. #define BKTID1_CTRL 0x0148
  157. #define CMDQ_CTRL 0x014c
  158. #define TXPKT_NUM_CTRL 0x0150
  159. #define TXQ_PGADD 0x0152
  160. #define TXFF_PG_NUM 0x0154
  161. #define TRXDMA_STATUS 0x0156
  162. /* 6. Adaptive Control Registers */
  163. #define INIMCS_SEL 0x0160
  164. #define TX_RATE_REG INIMCS_SEL
  165. #define INIRTSMCS_SEL 0x0180
  166. #define RRSR 0x0181
  167. #define ARFR0 0x0184
  168. #define ARFR1 0x0188
  169. #define ARFR2 0x018C
  170. #define ARFR3 0x0190
  171. #define ARFR4 0x0194
  172. #define ARFR5 0x0198
  173. #define ARFR6 0x019C
  174. #define ARFR7 0x01A0
  175. #define AGGLEN_LMT_H 0x01A7
  176. #define AGGLEN_LMT_L 0x01A8
  177. #define DARFRC 0x01B0
  178. #define RARFRC 0x01B8
  179. #define MCS_TXAGC 0x01C0
  180. #define CCK_TXAGC 0x01C8
  181. /* 7. EDCA Setting Registers */
  182. #define EDCAPARA_VO 0x01D0
  183. #define EDCAPARA_VI 0x01D4
  184. #define EDCAPARA_BE 0x01D8
  185. #define EDCAPARA_BK 0x01DC
  186. #define BCNTCFG 0x01E0
  187. #define CWRR 0x01E2
  188. #define ACMAVG 0x01E4
  189. #define AcmHwCtrl 0x01E7
  190. #define VO_ADMTM 0x01E8
  191. #define VI_ADMTM 0x01EC
  192. #define BE_ADMTM 0x01F0
  193. #define RETRY_LIMIT 0x01F4
  194. #define SG_RATE 0x01F6
  195. /* 8. WMAC, BA and CCX related Register. */
  196. #define NAV_CTRL 0x0200
  197. #define BW_OPMODE 0x0203
  198. #define BACAMCMD 0x0204
  199. #define BACAMCONTENT 0x0208
  200. /* the 0x2xx register WMAC definition */
  201. #define LBDLY 0x0210
  202. #define FWDLY 0x0211
  203. #define HWPC_RX_CTRL 0x0218
  204. #define MQIR 0x0220
  205. #define MAIR 0x0222
  206. #define MSIR 0x0224
  207. #define CLM_RESULT 0x0227
  208. #define NHM_RPI_CNT 0x0228
  209. #define RXERR_RPT 0x0230
  210. #define NAV_PROT_LEN 0x0234
  211. #define CFEND_TH 0x0236
  212. #define AMPDU_MIN_SPACE 0x0237
  213. #define TXOP_STALL_CTRL 0x0238
  214. /* 9. Security Control Registers */
  215. #define REG_RWCAM 0x0240
  216. #define REG_WCAMI 0x0244
  217. #define REG_RCAMO 0x0248
  218. #define REG_CAMDBG 0x024C
  219. #define REG_SECR 0x0250
  220. /* 10. Power Save Control Registers */
  221. #define WOW_CTRL 0x0260
  222. #define PSSTATUS 0x0261
  223. #define PSSWITCH 0x0262
  224. #define MIMOPS_WAIT_PERIOD 0x0263
  225. #define LPNAV_CTRL 0x0264
  226. #define WFM0 0x0270
  227. #define WFM1 0x0280
  228. #define WFM2 0x0290
  229. #define WFM3 0x02A0
  230. #define WFM4 0x02B0
  231. #define WFM5 0x02C0
  232. #define WFCRC 0x02D0
  233. #define FW_RPT_REG 0x02c4
  234. /* 11. General Purpose Registers */
  235. #define PSTIME 0x02E0
  236. #define TIMER0 0x02E4
  237. #define TIMER1 0x02E8
  238. #define GPIO_IN_SE 0x02EC
  239. #define GPIO_IO_SEL 0x02EE
  240. #define MAC_PINMUX_CFG 0x02F1
  241. #define LEDCFG 0x02F2
  242. #define PHY_REG 0x02F3
  243. #define PHY_REG_DATA 0x02F4
  244. #define REG_EFUSE_CLK 0x02F8
  245. /* 12. Host Interrupt Status Registers */
  246. #define INTA_MASK 0x0300
  247. #define ISR 0x0308
  248. /* 13. Test Mode and Debug Control Registers */
  249. #define DBG_PORT_SWITCH 0x003A
  250. #define BIST 0x0310
  251. #define DBS 0x0314
  252. #define CPUINST 0x0318
  253. #define CPUCAUSE 0x031C
  254. #define LBUS_ERR_ADDR 0x0320
  255. #define LBUS_ERR_CMD 0x0324
  256. #define LBUS_ERR_DATA_L 0x0328
  257. #define LBUS_ERR_DATA_H 0x032C
  258. #define LX_EXCEPTION_ADDR 0x0330
  259. #define WDG_CTRL 0x0334
  260. #define INTMTU 0x0338
  261. #define INTM 0x033A
  262. #define FDLOCKTURN0 0x033C
  263. #define FDLOCKTURN1 0x033D
  264. #define TRXPKTBUF_DBG_DATA 0x0340
  265. #define TRXPKTBUF_DBG_CTRL 0x0348
  266. #define DPLL 0x034A
  267. #define CBUS_ERR_ADDR 0x0350
  268. #define CBUS_ERR_CMD 0x0354
  269. #define CBUS_ERR_DATA_L 0x0358
  270. #define CBUS_ERR_DATA_H 0x035C
  271. #define USB_SIE_INTF_ADDR 0x0360
  272. #define USB_SIE_INTF_WD 0x0361
  273. #define USB_SIE_INTF_RD 0x0362
  274. #define USB_SIE_INTF_CTRL 0x0363
  275. #define LBUS_MON_ADDR 0x0364
  276. #define LBUS_ADDR_MASK 0x0368
  277. /* Boundary is 0x37F */
  278. /* 14. PCIE config register */
  279. #define TP_POLL 0x0500
  280. #define PM_CTRL 0x0502
  281. #define PCIF 0x0503
  282. #define THPDA 0x0514
  283. #define TMDA 0x0518
  284. #define TCDA 0x051C
  285. #define HDA 0x0520
  286. #define TVODA 0x0524
  287. #define TVIDA 0x0528
  288. #define TBEDA 0x052C
  289. #define TBKDA 0x0530
  290. #define TBDA 0x0534
  291. #define RCDA 0x0538
  292. #define RDQDA 0x053C
  293. #define DBI_WDATA 0x0540
  294. #define DBI_RDATA 0x0544
  295. #define DBI_CTRL 0x0548
  296. #define MDIO_DATA 0x0550
  297. #define MDIO_CTRL 0x0554
  298. #define PCI_RPWM 0x0561
  299. #define PCI_CPWM 0x0563
  300. /* Config register (Offset 0x800-) */
  301. #define PHY_CCA 0x803
  302. /* Min Spacing related settings. */
  303. #define MAX_MSS_DENSITY_2T 0x13
  304. #define MAX_MSS_DENSITY_1T 0x0A
  305. /* Rx DMA Control related settings */
  306. #define RXDMA_AGG_EN BIT(7)
  307. #define RPWM PCI_RPWM
  308. /* Regsiter Bit and Content definition */
  309. #define ISO_MD2PP BIT(0)
  310. #define ISO_PA2PCIE BIT(3)
  311. #define ISO_PLL2MD BIT(4)
  312. #define ISO_PWC_DV2RP BIT(11)
  313. #define ISO_PWC_RV2RP BIT(12)
  314. #define FEN_MREGEN BIT(15)
  315. #define FEN_DCORE BIT(11)
  316. #define FEN_CPUEN BIT(10)
  317. #define PAD_HWPD_IDN BIT(22)
  318. #define SYS_CLKSEL_80M BIT(0)
  319. #define SYS_PS_CLKSEL BIT(1)
  320. #define SYS_CPU_CLKSEL BIT(2)
  321. #define SYS_MAC_CLK_EN BIT(11)
  322. #define SYS_SWHW_SEL BIT(14)
  323. #define SYS_FWHW_SEL BIT(15)
  324. #define CmdEEPROM_En BIT(5)
  325. #define CmdEERPOMSEL BIT(4)
  326. #define Cmd9346CR_9356SEL BIT(4)
  327. #define AFE_MBEN BIT(1)
  328. #define AFE_BGEN BIT(0)
  329. #define SPS1_SWEN BIT(1)
  330. #define SPS1_LDEN BIT(0)
  331. #define RF_EN BIT(0)
  332. #define RF_RSTB BIT(1)
  333. #define RF_SDMRSTB BIT(2)
  334. #define LDA15_EN BIT(0)
  335. #define LDV12_EN BIT(0)
  336. #define LDV12_SDBY BIT(1)
  337. #define XTAL_GATE_AFE BIT(10)
  338. #define APLL_EN BIT(0)
  339. #define AFR_CardBEn BIT(0)
  340. #define AFR_CLKRUN_SEL BIT(1)
  341. #define AFR_FuncRegEn BIT(2)
  342. #define APSDOFF_STATUS BIT(15)
  343. #define APSDOFF BIT(14)
  344. #define BBRSTN BIT(13)
  345. #define BB_GLB_RSTN BIT(12)
  346. #define SCHEDULE_EN BIT(10)
  347. #define MACRXEN BIT(9)
  348. #define MACTXEN BIT(8)
  349. #define DDMA_EN BIT(7)
  350. #define FW2HW_EN BIT(6)
  351. #define RXDMA_EN BIT(5)
  352. #define TXDMA_EN BIT(4)
  353. #define HCI_RXDMA_EN BIT(3)
  354. #define HCI_TXDMA_EN BIT(2)
  355. #define StopHCCA BIT(6)
  356. #define StopHigh BIT(5)
  357. #define StopMgt BIT(4)
  358. #define StopVO BIT(3)
  359. #define StopVI BIT(2)
  360. #define StopBE BIT(1)
  361. #define StopBK BIT(0)
  362. #define LBK_NORMAL 0x00
  363. #define LBK_MAC_LB (BIT(0) | BIT(1) | BIT(3))
  364. #define LBK_MAC_DLB (BIT(0) | BIT(1))
  365. #define LBK_DMA_LB (BIT(0) | BIT(1) | BIT(2))
  366. #define TCP_OFDL_EN BIT(25)
  367. #define HWPC_TX_EN BIT(24)
  368. #define TXDMAPRE2FULL BIT(23)
  369. #define DISCW BIT(20)
  370. #define TCRICV BIT(19)
  371. #define CfendForm BIT(17)
  372. #define TCRCRC BIT(16)
  373. #define FAKE_IMEM_EN BIT(15)
  374. #define TSFRST BIT(9)
  375. #define TSFEN BIT(8)
  376. #define FWALLRDY (BIT(0) | BIT(1) | BIT(2) | \
  377. BIT(3) | BIT(4) | BIT(5) | \
  378. BIT(6) | BIT(7))
  379. #define FWRDY BIT(7)
  380. #define BASECHG BIT(6)
  381. #define IMEM BIT(5)
  382. #define DMEM_CODE_DONE BIT(4)
  383. #define EXT_IMEM_CHK_RPT BIT(3)
  384. #define EXT_IMEM_CODE_DONE BIT(2)
  385. #define IMEM_CHK_RPT BIT(1)
  386. #define IMEM_CODE_DONE BIT(0)
  387. #define EMEM_CODE_DONE BIT(2)
  388. #define EMEM_CHK_RPT BIT(3)
  389. #define IMEM_RDY BIT(5)
  390. #define LOAD_FW_READY (IMEM_CODE_DONE | \
  391. IMEM_CHK_RPT | \
  392. EMEM_CODE_DONE | \
  393. EMEM_CHK_RPT | \
  394. DMEM_CODE_DONE | \
  395. IMEM_RDY | \
  396. BASECHG | \
  397. FWRDY)
  398. #define TCR_TSFEN BIT(8)
  399. #define TCR_TSFRST BIT(9)
  400. #define TCR_FAKE_IMEM_EN BIT(15)
  401. #define TCR_CRC BIT(16)
  402. #define TCR_ICV BIT(19)
  403. #define TCR_DISCW BIT(20)
  404. #define TCR_HWPC_TX_EN BIT(24)
  405. #define TCR_TCP_OFDL_EN BIT(25)
  406. #define TXDMA_INIT_VALUE (IMEM_CHK_RPT | \
  407. EXT_IMEM_CHK_RPT)
  408. #define RCR_APPFCS BIT(31)
  409. #define RCR_DIS_ENC_2BYTE BIT(30)
  410. #define RCR_DIS_AES_2BYTE BIT(29)
  411. #define RCR_HTC_LOC_CTRL BIT(28)
  412. #define RCR_ENMBID BIT(27)
  413. #define RCR_RX_TCPOFDL_EN BIT(26)
  414. #define RCR_APP_PHYST_RXFF BIT(25)
  415. #define RCR_APP_PHYST_STAFF BIT(24)
  416. #define RCR_CBSSID BIT(23)
  417. #define RCR_APWRMGT BIT(22)
  418. #define RCR_ADD3 BIT(21)
  419. #define RCR_AMF BIT(20)
  420. #define RCR_ACF BIT(19)
  421. #define RCR_ADF BIT(18)
  422. #define RCR_APP_MIC BIT(17)
  423. #define RCR_APP_ICV BIT(16)
  424. #define RCR_RXFTH BIT(13)
  425. #define RCR_AICV BIT(12)
  426. #define RCR_RXDESC_LK_EN BIT(11)
  427. #define RCR_APP_BA_SSN BIT(6)
  428. #define RCR_ACRC32 BIT(5)
  429. #define RCR_RXSHFT_EN BIT(4)
  430. #define RCR_AB BIT(3)
  431. #define RCR_AM BIT(2)
  432. #define RCR_APM BIT(1)
  433. #define RCR_AAP BIT(0)
  434. #define RCR_MXDMA_OFFSET 8
  435. #define RCR_FIFO_OFFSET 13
  436. #define MSR_LINK_MASK ((1 << 0) | (1 << 1))
  437. #define MSR_LINK_MANAGED 2
  438. #define MSR_LINK_NONE 0
  439. #define MSR_LINK_SHIFT 0
  440. #define MSR_LINK_ADHOC 1
  441. #define MSR_LINK_MASTER 3
  442. #define MSR_NOLINK 0x00
  443. #define MSR_ADHOC 0x01
  444. #define MSR_INFRA 0x02
  445. #define MSR_AP 0x03
  446. #define ENUART BIT(7)
  447. #define ENJTAG BIT(3)
  448. #define BTMODE (BIT(2) | BIT(1))
  449. #define ENBT BIT(0)
  450. #define ENMBID BIT(7)
  451. #define BCNUM (BIT(6) | BIT(5) | BIT(4))
  452. #define USTIME_EDCA 0xFF00
  453. #define USTIME_TSF 0x00FF
  454. #define SIFS_TRX 0xFF00
  455. #define SIFS_CTX 0x00FF
  456. #define ENSWBCN BIT(15)
  457. #define DRVERLY_TU 0x0FF0
  458. #define DRVERLY_US 0x000F
  459. #define BCN_TCFG_CW_SHIFT 8
  460. #define BCN_TCFG_IFS 0
  461. #define RRSR_RSC_OFFSET 21
  462. #define RRSR_SHORT_OFFSET 23
  463. #define RRSR_RSC_BW_40M 0x600000
  464. #define RRSR_RSC_UPSUBCHNL 0x400000
  465. #define RRSR_RSC_LOWSUBCHNL 0x200000
  466. #define RRSR_SHORT 0x800000
  467. #define RRSR_1M BIT(0)
  468. #define RRSR_2M BIT(1)
  469. #define RRSR_5_5M BIT(2)
  470. #define RRSR_11M BIT(3)
  471. #define RRSR_6M BIT(4)
  472. #define RRSR_9M BIT(5)
  473. #define RRSR_12M BIT(6)
  474. #define RRSR_18M BIT(7)
  475. #define RRSR_24M BIT(8)
  476. #define RRSR_36M BIT(9)
  477. #define RRSR_48M BIT(10)
  478. #define RRSR_54M BIT(11)
  479. #define RRSR_MCS0 BIT(12)
  480. #define RRSR_MCS1 BIT(13)
  481. #define RRSR_MCS2 BIT(14)
  482. #define RRSR_MCS3 BIT(15)
  483. #define RRSR_MCS4 BIT(16)
  484. #define RRSR_MCS5 BIT(17)
  485. #define RRSR_MCS6 BIT(18)
  486. #define RRSR_MCS7 BIT(19)
  487. #define BRSR_AckShortPmb BIT(23)
  488. #define RATR_1M 0x00000001
  489. #define RATR_2M 0x00000002
  490. #define RATR_55M 0x00000004
  491. #define RATR_11M 0x00000008
  492. #define RATR_6M 0x00000010
  493. #define RATR_9M 0x00000020
  494. #define RATR_12M 0x00000040
  495. #define RATR_18M 0x00000080
  496. #define RATR_24M 0x00000100
  497. #define RATR_36M 0x00000200
  498. #define RATR_48M 0x00000400
  499. #define RATR_54M 0x00000800
  500. #define RATR_MCS0 0x00001000
  501. #define RATR_MCS1 0x00002000
  502. #define RATR_MCS2 0x00004000
  503. #define RATR_MCS3 0x00008000
  504. #define RATR_MCS4 0x00010000
  505. #define RATR_MCS5 0x00020000
  506. #define RATR_MCS6 0x00040000
  507. #define RATR_MCS7 0x00080000
  508. #define RATR_MCS8 0x00100000
  509. #define RATR_MCS9 0x00200000
  510. #define RATR_MCS10 0x00400000
  511. #define RATR_MCS11 0x00800000
  512. #define RATR_MCS12 0x01000000
  513. #define RATR_MCS13 0x02000000
  514. #define RATR_MCS14 0x04000000
  515. #define RATR_MCS15 0x08000000
  516. #define RATE_ALL_CCK (RATR_1M | RATR_2M | \
  517. RATR_55M | RATR_11M)
  518. #define RATE_ALL_OFDM_AG (RATR_6M | RATR_9M | \
  519. RATR_12M | RATR_18M | \
  520. RATR_24M | RATR_36M | \
  521. RATR_48M | RATR_54M)
  522. #define RATE_ALL_OFDM_1SS (RATR_MCS0 | RATR_MCS1 | \
  523. RATR_MCS2 | RATR_MCS3 | \
  524. RATR_MCS4 | RATR_MCS5 | \
  525. RATR_MCS6 | RATR_MCS7)
  526. #define RATE_ALL_OFDM_2SS (RATR_MCS8 | RATR_MCS9 | \
  527. RATR_MCS10 | RATR_MCS11 | \
  528. RATR_MCS12 | RATR_MCS13 | \
  529. RATR_MCS14 | RATR_MCS15)
  530. #define AC_PARAM_TXOP_LIMIT_OFFSET 16
  531. #define AC_PARAM_ECW_MAX_OFFSET 12
  532. #define AC_PARAM_ECW_MIN_OFFSET 8
  533. #define AC_PARAM_AIFS_OFFSET 0
  534. #define AcmHw_HwEn BIT(0)
  535. #define AcmHw_BeqEn BIT(1)
  536. #define AcmHw_ViqEn BIT(2)
  537. #define AcmHw_VoqEn BIT(3)
  538. #define AcmHw_BeqStatus BIT(4)
  539. #define AcmHw_ViqStatus BIT(5)
  540. #define AcmHw_VoqStatus BIT(6)
  541. #define RETRY_LIMIT_SHORT_SHIFT 8
  542. #define RETRY_LIMIT_LONG_SHIFT 0
  543. #define NAV_UPPER_EN BIT(16)
  544. #define NAV_UPPER 0xFF00
  545. #define NAV_RTSRST 0xFF
  546. #define BW_OPMODE_20MHZ BIT(2)
  547. #define BW_OPMODE_5G BIT(1)
  548. #define BW_OPMODE_11J BIT(0)
  549. #define RXERR_RPT_RST BIT(27)
  550. #define RXERR_OFDM_PPDU 0
  551. #define RXERR_OFDM_FALSE_ALARM 1
  552. #define RXERR_OFDM_MPDU_OK 2
  553. #define RXERR_OFDM_MPDU_FAIL 3
  554. #define RXERR_CCK_PPDU 4
  555. #define RXERR_CCK_FALSE_ALARM 5
  556. #define RXERR_CCK_MPDU_OK 6
  557. #define RXERR_CCK_MPDU_FAIL 7
  558. #define RXERR_HT_PPDU 8
  559. #define RXERR_HT_FALSE_ALARM 9
  560. #define RXERR_HT_MPDU_TOTAL 10
  561. #define RXERR_HT_MPDU_OK 11
  562. #define RXERR_HT_MPDU_FAIL 12
  563. #define RXERR_RX_FULL_DROP 15
  564. #define SCR_TXUSEDK BIT(0)
  565. #define SCR_RXUSEDK BIT(1)
  566. #define SCR_TXENCENABLE BIT(2)
  567. #define SCR_RXENCENABLE BIT(3)
  568. #define SCR_SKBYA2 BIT(4)
  569. #define SCR_NOSKMC BIT(5)
  570. #define CAM_VALID BIT(15)
  571. #define CAM_NOTVALID 0x0000
  572. #define CAM_USEDK BIT(5)
  573. #define CAM_NONE 0x0
  574. #define CAM_WEP40 0x01
  575. #define CAM_TKIP 0x02
  576. #define CAM_AES 0x04
  577. #define CAM_WEP104 0x05
  578. #define TOTAL_CAM_ENTRY 32
  579. #define HALF_CAM_ENTRY 16
  580. #define CAM_WRITE BIT(16)
  581. #define CAM_READ 0x00000000
  582. #define CAM_POLLINIG BIT(31)
  583. #define WOW_PMEN BIT(0)
  584. #define WOW_WOMEN BIT(1)
  585. #define WOW_MAGIC BIT(2)
  586. #define WOW_UWF BIT(3)
  587. #define GPIOMUX_EN BIT(3)
  588. #define GPIOSEL_GPIO 0
  589. #define GPIOSEL_PHYDBG 1
  590. #define GPIOSEL_BT 2
  591. #define GPIOSEL_WLANDBG 3
  592. #define GPIOSEL_GPIO_MASK (~(BIT(0)|BIT(1)))
  593. #define HST_RDBUSY BIT(0)
  594. #define CPU_WTBUSY BIT(1)
  595. #define IMR8190_DISABLED 0x0
  596. #define IMR_CPUERR BIT(5)
  597. #define IMR_ATIMEND BIT(4)
  598. #define IMR_TBDOK BIT(3)
  599. #define IMR_TBDER BIT(2)
  600. #define IMR_BCNDMAINT8 BIT(1)
  601. #define IMR_BCNDMAINT7 BIT(0)
  602. #define IMR_BCNDMAINT6 BIT(31)
  603. #define IMR_BCNDMAINT5 BIT(30)
  604. #define IMR_BCNDMAINT4 BIT(29)
  605. #define IMR_BCNDMAINT3 BIT(28)
  606. #define IMR_BCNDMAINT2 BIT(27)
  607. #define IMR_BCNDMAINT1 BIT(26)
  608. #define IMR_BCNDOK8 BIT(25)
  609. #define IMR_BCNDOK7 BIT(24)
  610. #define IMR_BCNDOK6 BIT(23)
  611. #define IMR_BCNDOK5 BIT(22)
  612. #define IMR_BCNDOK4 BIT(21)
  613. #define IMR_BCNDOK3 BIT(20)
  614. #define IMR_BCNDOK2 BIT(19)
  615. #define IMR_BCNDOK1 BIT(18)
  616. #define IMR_TIMEOUT2 BIT(17)
  617. #define IMR_TIMEOUT1 BIT(16)
  618. #define IMR_TXFOVW BIT(15)
  619. #define IMR_PSTIMEOUT BIT(14)
  620. #define IMR_BCNINT BIT(13)
  621. #define IMR_RXFOVW BIT(12)
  622. #define IMR_RDU BIT(11)
  623. #define IMR_RXCMDOK BIT(10)
  624. #define IMR_BDOK BIT(9)
  625. #define IMR_HIGHDOK BIT(8)
  626. #define IMR_COMDOK BIT(7)
  627. #define IMR_MGNTDOK BIT(6)
  628. #define IMR_HCCADOK BIT(5)
  629. #define IMR_BKDOK BIT(4)
  630. #define IMR_BEDOK BIT(3)
  631. #define IMR_VIDOK BIT(2)
  632. #define IMR_VODOK BIT(1)
  633. #define IMR_ROK BIT(0)
  634. #define TPPOLL_BKQ BIT(0)
  635. #define TPPOLL_BEQ BIT(1)
  636. #define TPPOLL_VIQ BIT(2)
  637. #define TPPOLL_VOQ BIT(3)
  638. #define TPPOLL_BQ BIT(4)
  639. #define TPPOLL_CQ BIT(5)
  640. #define TPPOLL_MQ BIT(6)
  641. #define TPPOLL_HQ BIT(7)
  642. #define TPPOLL_HCCAQ BIT(8)
  643. #define TPPOLL_STOPBK BIT(9)
  644. #define TPPOLL_STOPBE BIT(10)
  645. #define TPPOLL_STOPVI BIT(11)
  646. #define TPPOLL_STOPVO BIT(12)
  647. #define TPPOLL_STOPMGT BIT(13)
  648. #define TPPOLL_STOPHIGH BIT(14)
  649. #define TPPOLL_STOPHCCA BIT(15)
  650. #define TPPOLL_SHIFT 8
  651. #define CCX_CMD_CLM_ENABLE BIT(0)
  652. #define CCX_CMD_NHM_ENABLE BIT(1)
  653. #define CCX_CMD_FUNCTION_ENABLE BIT(8)
  654. #define CCX_CMD_IGNORE_CCA BIT(9)
  655. #define CCX_CMD_IGNORE_TXON BIT(10)
  656. #define CCX_CLM_RESULT_READY BIT(16)
  657. #define CCX_NHM_RESULT_READY BIT(16)
  658. #define CCX_CMD_RESET 0x0
  659. #define HWSET_MAX_SIZE_92S 128
  660. #define EFUSE_MAX_SECTION 16
  661. #define EFUSE_REAL_CONTENT_LEN 512
  662. #define EFUSE_OOB_PROTECT_BYTES 15
  663. #define RTL8190_EEPROM_ID 0x8129
  664. #define EEPROM_HPON 0x02
  665. #define EEPROM_CLK 0x06
  666. #define EEPROM_TESTR 0x08
  667. #define EEPROM_VID 0x0A
  668. #define EEPROM_DID 0x0C
  669. #define EEPROM_SVID 0x0E
  670. #define EEPROM_SMID 0x10
  671. #define EEPROM_MAC_ADDR 0x12
  672. #define EEPROM_NODE_ADDRESS_BYTE_0 0x12
  673. #define EEPROM_PWDIFF 0x54
  674. #define EEPROM_TXPOWERBASE 0x50
  675. #define EEPROM_TX_PWR_INDEX_RANGE 28
  676. #define EEPROM_TX_PWR_HT20_DIFF 0x62
  677. #define DEFAULT_HT20_TXPWR_DIFF 2
  678. #define EEPROM_TX_PWR_OFDM_DIFF 0x65
  679. #define EEPROM_TXPWRGROUP 0x67
  680. #define EEPROM_REGULATORY 0x6D
  681. #define TX_PWR_SAFETY_CHK 0x6D
  682. #define EEPROM_TXPWINDEX_CCK_24G 0x5D
  683. #define EEPROM_TXPWINDEX_OFDM_24G 0x6B
  684. #define EEPROM_HT2T_CH1_A 0x6c
  685. #define EEPROM_HT2T_CH7_A 0x6d
  686. #define EEPROM_HT2T_CH13_A 0x6e
  687. #define EEPROM_HT2T_CH1_B 0x6f
  688. #define EEPROM_HT2T_CH7_B 0x70
  689. #define EEPROM_HT2T_CH13_B 0x71
  690. #define EEPROM_TSSI_A 0x74
  691. #define EEPROM_TSSI_B 0x75
  692. #define EEPROM_RFIND_POWERDIFF 0x76
  693. #define EEPROM_DEFAULT_LEGACYHTTXPOWERDIFF 0x3
  694. #define EEPROM_THERMALMETER 0x77
  695. #define EEPROM_BLUETOOTH_COEXIST 0x78
  696. #define EEPROM_BLUETOOTH_TYPE 0x4f
  697. #define EEPROM_OPTIONAL 0x78
  698. #define EEPROM_WOWLAN 0x78
  699. #define EEPROM_CRYSTALCAP 0x79
  700. #define EEPROM_CHANNELPLAN 0x7B
  701. #define EEPROM_VERSION 0x7C
  702. #define EEPROM_CUSTOMID 0x7A
  703. #define EEPROM_BOARDTYPE 0x7E
  704. #define EEPROM_CHANNEL_PLAN_FCC 0x0
  705. #define EEPROM_CHANNEL_PLAN_IC 0x1
  706. #define EEPROM_CHANNEL_PLAN_ETSI 0x2
  707. #define EEPROM_CHANNEL_PLAN_SPAIN 0x3
  708. #define EEPROM_CHANNEL_PLAN_FRANCE 0x4
  709. #define EEPROM_CHANNEL_PLAN_MKK 0x5
  710. #define EEPROM_CHANNEL_PLAN_MKK1 0x6
  711. #define EEPROM_CHANNEL_PLAN_ISRAEL 0x7
  712. #define EEPROM_CHANNEL_PLAN_TELEC 0x8
  713. #define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9
  714. #define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
  715. #define EEPROM_CHANNEL_PLAN_NCC 0xB
  716. #define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
  717. #define FW_DIG_DISABLE 0xfd00cc00
  718. #define FW_DIG_ENABLE 0xfd000000
  719. #define FW_DIG_HALT 0xfd000001
  720. #define FW_DIG_RESUME 0xfd000002
  721. #define FW_HIGH_PWR_DISABLE 0xfd000008
  722. #define FW_HIGH_PWR_ENABLE 0xfd000009
  723. #define FW_ADD_A2_ENTRY 0xfd000016
  724. #define FW_TXPWR_TRACK_ENABLE 0xfd000017
  725. #define FW_TXPWR_TRACK_DISABLE 0xfd000018
  726. #define FW_TXPWR_TRACK_THERMAL 0xfd000019
  727. #define FW_TXANT_SWITCH_ENABLE 0xfd000023
  728. #define FW_TXANT_SWITCH_DISABLE 0xfd000024
  729. #define FW_RA_INIT 0xfd000026
  730. #define FW_CTRL_DM_BY_DRIVER 0Xfd00002a
  731. #define FW_RA_IOT_BG_COMB 0xfd000030
  732. #define FW_RA_IOT_N_COMB 0xfd000031
  733. #define FW_RA_REFRESH 0xfd0000a0
  734. #define FW_RA_UPDATE_MASK 0xfd0000a2
  735. #define FW_RA_DISABLE 0xfd0000a4
  736. #define FW_RA_ACTIVE 0xfd0000a6
  737. #define FW_RA_DISABLE_RSSI_MASK 0xfd0000ac
  738. #define FW_RA_ENABLE_RSSI_MASK 0xfd0000ad
  739. #define FW_RA_RESET 0xfd0000af
  740. #define FW_DM_DISABLE 0xfd00aa00
  741. #define FW_IQK_ENABLE 0xf0000020
  742. #define FW_IQK_SUCCESS 0x0000dddd
  743. #define FW_IQK_FAIL 0x0000ffff
  744. #define FW_OP_FAILURE 0xffffffff
  745. #define FW_TX_FEEDBACK_NONE 0xfb000000
  746. #define FW_TX_FEEDBACK_DTM_ENABLE (FW_TX_FEEDBACK_NONE | 0x1)
  747. #define FW_TX_FEEDBACK_CCX_ENABL (FW_TX_FEEDBACK_NONE | 0x2)
  748. #define FW_BB_RESET_ENABLE 0xff00000d
  749. #define FW_BB_RESET_DISABLE 0xff00000e
  750. #define FW_CCA_CHK_ENABLE 0xff000011
  751. #define FW_CCK_RESET_CNT 0xff000013
  752. #define FW_LPS_ENTER 0xfe000010
  753. #define FW_LPS_LEAVE 0xfe000011
  754. #define FW_INDIRECT_READ 0xf2000000
  755. #define FW_INDIRECT_WRITE 0xf2000001
  756. #define FW_CHAN_SET 0xf3000001
  757. #define RFPC 0x5F
  758. #define RCR_9356SEL BIT(6)
  759. #define TCR_LRL_OFFSET 0
  760. #define TCR_SRL_OFFSET 8
  761. #define TCR_MXDMA_OFFSET 21
  762. #define TCR_SAT BIT(24)
  763. #define RCR_MXDMA_OFFSET 8
  764. #define RCR_FIFO_OFFSET 13
  765. #define RCR_OnlyErlPkt BIT(31)
  766. #define CWR 0xDC
  767. #define RETRYCTR 0xDE
  768. #define CPU_GEN_SYSTEM_RESET 0x00000001
  769. #define CCX_COMMAND_REG 0x890
  770. #define CLM_PERIOD_REG 0x894
  771. #define NHM_PERIOD_REG 0x896
  772. #define NHM_THRESHOLD0 0x898
  773. #define NHM_THRESHOLD1 0x899
  774. #define NHM_THRESHOLD2 0x89A
  775. #define NHM_THRESHOLD3 0x89B
  776. #define NHM_THRESHOLD4 0x89C
  777. #define NHM_THRESHOLD5 0x89D
  778. #define NHM_THRESHOLD6 0x89E
  779. #define CLM_RESULT_REG 0x8D0
  780. #define NHM_RESULT_REG 0x8D4
  781. #define NHM_RPI_COUNTER0 0x8D8
  782. #define NHM_RPI_COUNTER1 0x8D9
  783. #define NHM_RPI_COUNTER2 0x8DA
  784. #define NHM_RPI_COUNTER3 0x8DB
  785. #define NHM_RPI_COUNTER4 0x8DC
  786. #define NHM_RPI_COUNTER5 0x8DD
  787. #define NHM_RPI_COUNTER6 0x8DE
  788. #define NHM_RPI_COUNTER7 0x8DF
  789. #define HAL_8192S_HW_GPIO_OFF_BIT BIT(3)
  790. #define HAL_8192S_HW_GPIO_OFF_MASK 0xF7
  791. #define HAL_8192S_HW_GPIO_WPS_BIT BIT(4)
  792. #define RPMAC_RESET 0x100
  793. #define RPMAC_TXSTART 0x104
  794. #define RPMAC_TXLEGACYSIG 0x108
  795. #define RPMAC_TXHTSIG1 0x10c
  796. #define RPMAC_TXHTSIG2 0x110
  797. #define RPMAC_PHYDEBUG 0x114
  798. #define RPMAC_TXPACKETNNM 0x118
  799. #define RPMAC_TXIDLE 0x11c
  800. #define RPMAC_TXMACHEADER0 0x120
  801. #define RPMAC_TXMACHEADER1 0x124
  802. #define RPMAC_TXMACHEADER2 0x128
  803. #define RPMAC_TXMACHEADER3 0x12c
  804. #define RPMAC_TXMACHEADER4 0x130
  805. #define RPMAC_TXMACHEADER5 0x134
  806. #define RPMAC_TXDATATYPE 0x138
  807. #define RPMAC_TXRANDOMSEED 0x13c
  808. #define RPMAC_CCKPLCPPREAMBLE 0x140
  809. #define RPMAC_CCKPLCPHEADER 0x144
  810. #define RPMAC_CCKCRC16 0x148
  811. #define RPMAC_OFDMRXCRC32OK 0x170
  812. #define RPMAC_OFDMRXCRC32ER 0x174
  813. #define RPMAC_OFDMRXPARITYER 0x178
  814. #define RPMAC_OFDMRXCRC8ER 0x17c
  815. #define RPMAC_CCKCRXRC16ER 0x180
  816. #define RPMAC_CCKCRXRC32ER 0x184
  817. #define RPMAC_CCKCRXRC32OK 0x188
  818. #define RPMAC_TXSTATUS 0x18c
  819. #define RF_BB_CMD_ADDR 0x02c0
  820. #define RF_BB_CMD_DATA 0x02c4
  821. #define RFPGA0_RFMOD 0x800
  822. #define RFPGA0_TXINFO 0x804
  823. #define RFPGA0_PSDFUNCTION 0x808
  824. #define RFPGA0_TXGAINSTAGE 0x80c
  825. #define RFPGA0_RFTIMING1 0x810
  826. #define RFPGA0_RFTIMING2 0x814
  827. #define RFPGA0_XA_HSSIPARAMETER1 0x820
  828. #define RFPGA0_XA_HSSIPARAMETER2 0x824
  829. #define RFPGA0_XB_HSSIPARAMETER1 0x828
  830. #define RFPGA0_XB_HSSIPARAMETER2 0x82c
  831. #define RFPGA0_XC_HSSIPARAMETER1 0x830
  832. #define RFPGA0_XC_HSSIPARAMETER2 0x834
  833. #define RFPGA0_XD_HSSIPARAMETER1 0x838
  834. #define RFPGA0_XD_HSSIPARAMETER2 0x83c
  835. #define RFPGA0_XA_LSSIPARAMETER 0x840
  836. #define RFPGA0_XB_LSSIPARAMETER 0x844
  837. #define RFPGA0_XC_LSSIPARAMETER 0x848
  838. #define RFPGA0_XD_LSSIPARAMETER 0x84c
  839. #define RFPGA0_RFWAKEUP_PARAMETER 0x850
  840. #define RFPGA0_RFSLEEPUP_PARAMETER 0x854
  841. #define RFPGA0_XAB_SWITCHCONTROL 0x858
  842. #define RFPGA0_XCD_SWITCHCONTROL 0x85c
  843. #define RFPGA0_XA_RFINTERFACEOE 0x860
  844. #define RFPGA0_XB_RFINTERFACEOE 0x864
  845. #define RFPGA0_XC_RFINTERFACEOE 0x868
  846. #define RFPGA0_XD_RFINTERFACEOE 0x86c
  847. #define RFPGA0_XAB_RFINTERFACESW 0x870
  848. #define RFPGA0_XCD_RFINTERFACESW 0x874
  849. #define RFPGA0_XAB_RFPARAMETER 0x878
  850. #define RFPGA0_XCD_RFPARAMETER 0x87c
  851. #define RFPGA0_ANALOGPARAMETER1 0x880
  852. #define RFPGA0_ANALOGPARAMETER2 0x884
  853. #define RFPGA0_ANALOGPARAMETER3 0x888
  854. #define RFPGA0_ANALOGPARAMETER4 0x88c
  855. #define RFPGA0_XA_LSSIREADBACK 0x8a0
  856. #define RFPGA0_XB_LSSIREADBACK 0x8a4
  857. #define RFPGA0_XC_LSSIREADBACK 0x8a8
  858. #define RFPGA0_XD_LSSIREADBACK 0x8ac
  859. #define RFPGA0_PSDREPORT 0x8b4
  860. #define TRANSCEIVERA_HSPI_READBACK 0x8b8
  861. #define TRANSCEIVERB_HSPI_READBACK 0x8bc
  862. #define RFPGA0_XAB_RFINTERFACERB 0x8e0
  863. #define RFPGA0_XCD_RFINTERFACERB 0x8e4
  864. #define RFPGA1_RFMOD 0x900
  865. #define RFPGA1_TXBLOCK 0x904
  866. #define RFPGA1_DEBUGSELECT 0x908
  867. #define RFPGA1_TXINFO 0x90c
  868. #define RCCK0_SYSTEM 0xa00
  869. #define RCCK0_AFESETTING 0xa04
  870. #define RCCK0_CCA 0xa08
  871. #define RCCK0_RXAGC1 0xa0c
  872. #define RCCK0_RXAGC2 0xa10
  873. #define RCCK0_RXHP 0xa14
  874. #define RCCK0_DSPPARAMETER1 0xa18
  875. #define RCCK0_DSPPARAMETER2 0xa1c
  876. #define RCCK0_TXFILTER1 0xa20
  877. #define RCCK0_TXFILTER2 0xa24
  878. #define RCCK0_DEBUGPORT 0xa28
  879. #define RCCK0_FALSEALARMREPORT 0xa2c
  880. #define RCCK0_TRSSIREPORT 0xa50
  881. #define RCCK0_RXREPORT 0xa54
  882. #define RCCK0_FACOUNTERLOWER 0xa5c
  883. #define RCCK0_FACOUNTERUPPER 0xa58
  884. #define ROFDM0_LSTF 0xc00
  885. #define ROFDM0_TRXPATHENABLE 0xc04
  886. #define ROFDM0_TRMUXPAR 0xc08
  887. #define ROFDM0_TRSWISOLATION 0xc0c
  888. #define ROFDM0_XARXAFE 0xc10
  889. #define ROFDM0_XARXIQIMBALANCE 0xc14
  890. #define ROFDM0_XBRXAFE 0xc18
  891. #define ROFDM0_XBRXIQIMBALANCE 0xc1c
  892. #define ROFDM0_XCRXAFE 0xc20
  893. #define ROFDM0_XCRXIQIMBALANCE 0xc24
  894. #define ROFDM0_XDRXAFE 0xc28
  895. #define ROFDM0_XDRXIQIMBALANCE 0xc2c
  896. #define ROFDM0_RXDETECTOR1 0xc30
  897. #define ROFDM0_RXDETECTOR2 0xc34
  898. #define ROFDM0_RXDETECTOR3 0xc38
  899. #define ROFDM0_RXDETECTOR4 0xc3c
  900. #define ROFDM0_RXDSP 0xc40
  901. #define ROFDM0_CFO_AND_DAGC 0xc44
  902. #define ROFDM0_CCADROP_THRESHOLD 0xc48
  903. #define ROFDM0_ECCA_THRESHOLD 0xc4c
  904. #define ROFDM0_XAAGCCORE1 0xc50
  905. #define ROFDM0_XAAGCCORE2 0xc54
  906. #define ROFDM0_XBAGCCORE1 0xc58
  907. #define ROFDM0_XBAGCCORE2 0xc5c
  908. #define ROFDM0_XCAGCCORE1 0xc60
  909. #define ROFDM0_XCAGCCORE2 0xc64
  910. #define ROFDM0_XDAGCCORE1 0xc68
  911. #define ROFDM0_XDAGCCORE2 0xc6c
  912. #define ROFDM0_AGCPARAMETER1 0xc70
  913. #define ROFDM0_AGCPARAMETER2 0xc74
  914. #define ROFDM0_AGCRSSITABLE 0xc78
  915. #define ROFDM0_HTSTFAGC 0xc7c
  916. #define ROFDM0_XATXIQIMBALANCE 0xc80
  917. #define ROFDM0_XATXAFE 0xc84
  918. #define ROFDM0_XBTXIQIMBALANCE 0xc88
  919. #define ROFDM0_XBTXAFE 0xc8c
  920. #define ROFDM0_XCTXIQIMBALANCE 0xc90
  921. #define ROFDM0_XCTXAFE 0xc94
  922. #define ROFDM0_XDTXIQIMBALANCE 0xc98
  923. #define ROFDM0_XDTXAFE 0xc9c
  924. #define ROFDM0_RXHP_PARAMETER 0xce0
  925. #define ROFDM0_TXPSEUDO_NOISE_WGT 0xce4
  926. #define ROFDM0_FRAME_SYNC 0xcf0
  927. #define ROFDM0_DFSREPORT 0xcf4
  928. #define ROFDM0_TXCOEFF1 0xca4
  929. #define ROFDM0_TXCOEFF2 0xca8
  930. #define ROFDM0_TXCOEFF3 0xcac
  931. #define ROFDM0_TXCOEFF4 0xcb0
  932. #define ROFDM0_TXCOEFF5 0xcb4
  933. #define ROFDM0_TXCOEFF6 0xcb8
  934. #define ROFDM1_LSTF 0xd00
  935. #define ROFDM1_TRXPATHENABLE 0xd04
  936. #define ROFDM1_CFO 0xd08
  937. #define ROFDM1_CSI1 0xd10
  938. #define ROFDM1_SBD 0xd14
  939. #define ROFDM1_CSI2 0xd18
  940. #define ROFDM1_CFOTRACKING 0xd2c
  941. #define ROFDM1_TRXMESAURE1 0xd34
  942. #define ROFDM1_INTF_DET 0xd3c
  943. #define ROFDM1_PSEUDO_NOISESTATEAB 0xd50
  944. #define ROFDM1_PSEUDO_NOISESTATECD 0xd54
  945. #define ROFDM1_RX_PSEUDO_NOISE_WGT 0xd58
  946. #define ROFDM_PHYCOUNTER1 0xda0
  947. #define ROFDM_PHYCOUNTER2 0xda4
  948. #define ROFDM_PHYCOUNTER3 0xda8
  949. #define ROFDM_SHORT_CFOAB 0xdac
  950. #define ROFDM_SHORT_CFOCD 0xdb0
  951. #define ROFDM_LONG_CFOAB 0xdb4
  952. #define ROFDM_LONG_CFOCD 0xdb8
  953. #define ROFDM_TAIL_CFOAB 0xdbc
  954. #define ROFDM_TAIL_CFOCD 0xdc0
  955. #define ROFDM_PW_MEASURE1 0xdc4
  956. #define ROFDM_PW_MEASURE2 0xdc8
  957. #define ROFDM_BW_REPORT 0xdcc
  958. #define ROFDM_AGC_REPORT 0xdd0
  959. #define ROFDM_RXSNR 0xdd4
  960. #define ROFDM_RXEVMCSI 0xdd8
  961. #define ROFDM_SIG_REPORT 0xddc
  962. #define RTXAGC_RATE18_06 0xe00
  963. #define RTXAGC_RATE54_24 0xe04
  964. #define RTXAGC_CCK_MCS32 0xe08
  965. #define RTXAGC_MCS03_MCS00 0xe10
  966. #define RTXAGC_MCS07_MCS04 0xe14
  967. #define RTXAGC_MCS11_MCS08 0xe18
  968. #define RTXAGC_MCS15_MCS12 0xe1c
  969. #define RF_AC 0x00
  970. #define RF_IQADJ_G1 0x01
  971. #define RF_IQADJ_G2 0x02
  972. #define RF_POW_TRSW 0x05
  973. #define RF_GAIN_RX 0x06
  974. #define RF_GAIN_TX 0x07
  975. #define RF_TXM_IDAC 0x08
  976. #define RF_BS_IQGEN 0x0F
  977. #define RF_MODE1 0x10
  978. #define RF_MODE2 0x11
  979. #define RF_RX_AGC_HP 0x12
  980. #define RF_TX_AGC 0x13
  981. #define RF_BIAS 0x14
  982. #define RF_IPA 0x15
  983. #define RF_POW_ABILITY 0x17
  984. #define RF_MODE_AG 0x18
  985. #define RF_CHANNEL 0x18
  986. #define RF_CHNLBW 0x18
  987. #define RF_TOP 0x19
  988. #define RF_RX_G1 0x1A
  989. #define RF_RX_G2 0x1B
  990. #define RF_RX_BB2 0x1C
  991. #define RF_RX_BB1 0x1D
  992. #define RF_RCK1 0x1E
  993. #define RF_RCK2 0x1F
  994. #define RF_TX_G1 0x20
  995. #define RF_TX_G2 0x21
  996. #define RF_TX_G3 0x22
  997. #define RF_TX_BB1 0x23
  998. #define RF_T_METER 0x24
  999. #define RF_SYN_G1 0x25
  1000. #define RF_SYN_G2 0x26
  1001. #define RF_SYN_G3 0x27
  1002. #define RF_SYN_G4 0x28
  1003. #define RF_SYN_G5 0x29
  1004. #define RF_SYN_G6 0x2A
  1005. #define RF_SYN_G7 0x2B
  1006. #define RF_SYN_G8 0x2C
  1007. #define RF_RCK_OS 0x30
  1008. #define RF_TXPA_G1 0x31
  1009. #define RF_TXPA_G2 0x32
  1010. #define RF_TXPA_G3 0x33
  1011. #define BRFMOD 0x1
  1012. #define BCCKEN 0x1000000
  1013. #define BOFDMEN 0x2000000
  1014. #define BXBTXAGC 0xf00
  1015. #define BXCTXAGC 0xf000
  1016. #define BXDTXAGC 0xf0000
  1017. #define B3WIRE_DATALENGTH 0x800
  1018. #define B3WIRE_ADDRESSLENGTH 0x400
  1019. #define BRFSI_RFENV 0x10
  1020. #define BLSSI_READADDRESS 0x7f800000
  1021. #define BLSSI_READEDGE 0x80000000
  1022. #define BLSSI_READBACK_DATA 0xfffff
  1023. #define BADCLKPHASE 0x4000000
  1024. #define BCCK_SIDEBAND 0x10
  1025. #define BTX_AGCRATECCK 0x7f00
  1026. #endif