rtl871x_mp_phy_regdef.h 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025
  1. /*****************************************************************************
  2. * Copyright(c) 2008, RealTEK Technology Inc. All Right Reserved.
  3. *
  4. * Module: __INC_HAL8192SPHYREG_H
  5. *
  6. *
  7. * Note: 1. Define PMAC/BB register map
  8. * 2. Define RF register map
  9. * 3. PMAC/BB register bit mask.
  10. * 4. RF reg bit mask.
  11. * 5. Other BB/RF relative definition.
  12. *
  13. *
  14. * Export: Constants, macro, functions(API), global variables(None).
  15. *
  16. * Abbrev:
  17. *
  18. * History:
  19. * Data Who Remark
  20. * 08/07/2007 MHC 1. Porting from 9x series PHYCFG.h.
  21. * 2. Reorganize code architecture.
  22. * 09/25/2008 MH 1. Add RL6052 register definition
  23. *
  24. *****************************************************************************/
  25. #ifndef __RTL871X_MP_PHY_REGDEF_H
  26. #define __RTL871X_MP_PHY_REGDEF_H
  27. /*--------------------------Define Parameters-------------------------------*/
  28. /*============================================================
  29. * 8192S Regsiter offset definition
  30. *============================================================
  31. *
  32. *
  33. * BB-PHY register PMAC 0x100 PHY 0x800 - 0xEFF
  34. * 1. PMAC duplicate register due to connection: RF_Mode, TRxRN, NumOf L-STF
  35. * 2. 0x800/0x900/0xA00/0xC00/0xD00/0xE00
  36. * 3. RF register 0x00-2E
  37. * 4. Bit Mask for BB/RF register
  38. * 5. Other definition for BB/RF R/W
  39. *
  40. * 1. PMAC duplicate register due to connection: RF_Mode, TRxRN, NumOf L-STF
  41. * 1. Page1(0x100)
  42. */
  43. #define rPMAC_Reset 0x100
  44. #define rPMAC_TxStart 0x104
  45. #define rPMAC_TxLegacySIG 0x108
  46. #define rPMAC_TxHTSIG1 0x10c
  47. #define rPMAC_TxHTSIG2 0x110
  48. #define rPMAC_PHYDebug 0x114
  49. #define rPMAC_TxPacketNum 0x118
  50. #define rPMAC_TxIdle 0x11c
  51. #define rPMAC_TxMACHeader0 0x120
  52. #define rPMAC_TxMACHeader1 0x124
  53. #define rPMAC_TxMACHeader2 0x128
  54. #define rPMAC_TxMACHeader3 0x12c
  55. #define rPMAC_TxMACHeader4 0x130
  56. #define rPMAC_TxMACHeader5 0x134
  57. #define rPMAC_TxDataType 0x138
  58. #define rPMAC_TxRandomSeed 0x13c
  59. #define rPMAC_CCKPLCPPreamble 0x140
  60. #define rPMAC_CCKPLCPHeader 0x144
  61. #define rPMAC_CCKCRC16 0x148
  62. #define rPMAC_OFDMRxCRC32OK 0x170
  63. #define rPMAC_OFDMRxCRC32Er 0x174
  64. #define rPMAC_OFDMRxParityEr 0x178
  65. #define rPMAC_OFDMRxCRC8Er 0x17c
  66. #define rPMAC_CCKCRxRC16Er 0x180
  67. #define rPMAC_CCKCRxRC32Er 0x184
  68. #define rPMAC_CCKCRxRC32OK 0x188
  69. #define rPMAC_TxStatus 0x18c
  70. /*
  71. * 2. Page2(0x200)
  72. *
  73. * The following two definition are only used for USB interface.
  74. *#define RF_BB_CMD_ADDR 0x02c0 // RF/BB read/write command address.
  75. *#define RF_BB_CMD_DATA 0x02c4 // RF/BB read/write command data.
  76. *
  77. *
  78. * 3. Page8(0x800)
  79. */
  80. #define rFPGA0_RFMOD 0x800 /*RF mode & CCK TxSC RF
  81. * BW Setting?? */
  82. #define rFPGA0_TxInfo 0x804 /* Status report?? */
  83. #define rFPGA0_PSDFunction 0x808
  84. #define rFPGA0_TxGainStage 0x80c /* Set TX PWR init gain? */
  85. #define rFPGA0_RFTiming1 0x810 /* Useless now */
  86. #define rFPGA0_RFTiming2 0x814
  87. #define rFPGA0_XA_HSSIParameter1 0x820 /* RF 3 wire register */
  88. #define rFPGA0_XA_HSSIParameter2 0x824
  89. #define rFPGA0_XB_HSSIParameter1 0x828
  90. #define rFPGA0_XB_HSSIParameter2 0x82c
  91. #define rFPGA0_XC_HSSIParameter1 0x830
  92. #define rFPGA0_XC_HSSIParameter2 0x834
  93. #define rFPGA0_XD_HSSIParameter1 0x838
  94. #define rFPGA0_XD_HSSIParameter2 0x83c
  95. #define rFPGA0_XA_LSSIParameter 0x840
  96. #define rFPGA0_XB_LSSIParameter 0x844
  97. #define rFPGA0_XC_LSSIParameter 0x848
  98. #define rFPGA0_XD_LSSIParameter 0x84c
  99. #define rFPGA0_RFWakeUpParameter 0x850 /* Useless now */
  100. #define rFPGA0_RFSleepUpParameter 0x854
  101. #define rFPGA0_XAB_SwitchControl 0x858 /* RF Channel switch */
  102. #define rFPGA0_XCD_SwitchControl 0x85c
  103. #define rFPGA0_XA_RFInterfaceOE 0x860 /* RF Channel switch */
  104. #define rFPGA0_XB_RFInterfaceOE 0x864
  105. #define rFPGA0_XC_RFInterfaceOE 0x868
  106. #define rFPGA0_XD_RFInterfaceOE 0x86c
  107. #define rFPGA0_XAB_RFInterfaceSW 0x870 /* RF Interface Software Ctrl */
  108. #define rFPGA0_XCD_RFInterfaceSW 0x874
  109. #define rFPGA0_XAB_RFParameter 0x878 /* RF Parameter */
  110. #define rFPGA0_XCD_RFParameter 0x87c
  111. #define rFPGA0_AnalogParameter1 0x880 /* Crystal cap setting
  112. * RF-R/W protection
  113. * for parameter4?? */
  114. #define rFPGA0_AnalogParameter2 0x884
  115. #define rFPGA0_AnalogParameter3 0x888 /* Useless now */
  116. #define rFPGA0_AnalogParameter4 0x88c
  117. #define rFPGA0_XA_LSSIReadBack 0x8a0 /* Tranceiver LSSI Readback */
  118. #define rFPGA0_XB_LSSIReadBack 0x8a4
  119. #define rFPGA0_XC_LSSIReadBack 0x8a8
  120. #define rFPGA0_XD_LSSIReadBack 0x8ac
  121. #define rFPGA0_PSDReport 0x8b4 /* Useless now */
  122. #define rFPGA0_XAB_RFInterfaceRB 0x8e0 /* Useless now */
  123. #define rFPGA0_XCD_RFInterfaceRB 0x8e4 /* Useless now */
  124. /*
  125. * 4. Page9(0x900)
  126. */
  127. #define rFPGA1_RFMOD 0x900 /* RF mode & OFDM TxSC */
  128. #define rFPGA1_TxBlock 0x904 /* Useless now */
  129. #define rFPGA1_DebugSelect 0x908 /* Useless now */
  130. #define rFPGA1_TxInfo 0x90c /* Useless now */
  131. /*
  132. * 5. PageA(0xA00)
  133. *
  134. * Set Control channel to upper or lower.
  135. * These settings are required only for 40MHz */
  136. #define rCCK0_System 0xa00
  137. #define rCCK0_AFESetting 0xa04 /* Disable init gain now */
  138. #define rCCK0_CCA 0xa08 /* Disable init gain now */
  139. #define rCCK0_RxAGC1 0xa0c
  140. /* AGC default value, saturation level
  141. * Antenna Diversity, RX AGC, LNA Threshold, RX LNA Threshold useless now.
  142. * Not the same as 90 series */
  143. #define rCCK0_RxAGC2 0xa10 /* AGC & DAGC */
  144. #define rCCK0_RxHP 0xa14
  145. #define rCCK0_DSPParameter1 0xa18 /* Timing recovery & Channel
  146. * estimation threshold */
  147. #define rCCK0_DSPParameter2 0xa1c /* SQ threshold */
  148. #define rCCK0_TxFilter1 0xa20
  149. #define rCCK0_TxFilter2 0xa24
  150. #define rCCK0_DebugPort 0xa28 /* debug port and Tx filter3 */
  151. #define rCCK0_FalseAlarmReport 0xa2c /* 0xa2d useless now 0xa30-a4f
  152. * channel report */
  153. #define rCCK0_TRSSIReport 0xa50
  154. #define rCCK0_RxReport 0xa54 /* 0xa57 */
  155. #define rCCK0_FACounterLower 0xa5c /* 0xa5b */
  156. #define rCCK0_FACounterUpper 0xa58 /* 0xa5c */
  157. /*
  158. * 6. PageC(0xC00)
  159. */
  160. #define rOFDM0_LSTF 0xc00
  161. #define rOFDM0_TRxPathEnable 0xc04
  162. #define rOFDM0_TRMuxPar 0xc08
  163. #define rOFDM0_TRSWIsolation 0xc0c
  164. /*RxIQ DC offset, Rx digital filter, DC notch filter */
  165. #define rOFDM0_XARxAFE 0xc10
  166. #define rOFDM0_XARxIQImbalance 0xc14 /* RxIQ imbalance matrix */
  167. #define rOFDM0_XBRxAFE 0xc18
  168. #define rOFDM0_XBRxIQImbalance 0xc1c
  169. #define rOFDM0_XCRxAFE 0xc20
  170. #define rOFDM0_XCRxIQImbalance 0xc24
  171. #define rOFDM0_XDRxAFE 0xc28
  172. #define rOFDM0_XDRxIQImbalance 0xc2c
  173. #define rOFDM0_RxDetector1 0xc30 /* PD,BW & SBD DM tune
  174. * init gain */
  175. #define rOFDM0_RxDetector2 0xc34 /* SBD & Fame Sync. */
  176. #define rOFDM0_RxDetector3 0xc38 /* Frame Sync. */
  177. #define rOFDM0_RxDetector4 0xc3c /* PD, SBD, Frame Sync &
  178. * Short-GI */
  179. #define rOFDM0_RxDSP 0xc40 /* Rx Sync Path */
  180. #define rOFDM0_CFOandDAGC 0xc44 /* CFO & DAGC */
  181. #define rOFDM0_CCADropThreshold 0xc48 /* CCA Drop threshold */
  182. #define rOFDM0_ECCAThreshold 0xc4c /* energy CCA */
  183. #define rOFDM0_XAAGCCore1 0xc50 /* DIG */
  184. #define rOFDM0_XAAGCCore2 0xc54
  185. #define rOFDM0_XBAGCCore1 0xc58
  186. #define rOFDM0_XBAGCCore2 0xc5c
  187. #define rOFDM0_XCAGCCore1 0xc60
  188. #define rOFDM0_XCAGCCore2 0xc64
  189. #define rOFDM0_XDAGCCore1 0xc68
  190. #define rOFDM0_XDAGCCore2 0xc6c
  191. #define rOFDM0_AGCParameter1 0xc70
  192. #define rOFDM0_AGCParameter2 0xc74
  193. #define rOFDM0_AGCRSSITable 0xc78
  194. #define rOFDM0_HTSTFAGC 0xc7c
  195. #define rOFDM0_XATxIQImbalance 0xc80 /* TX PWR TRACK and DIG */
  196. #define rOFDM0_XATxAFE 0xc84
  197. #define rOFDM0_XBTxIQImbalance 0xc88
  198. #define rOFDM0_XBTxAFE 0xc8c
  199. #define rOFDM0_XCTxIQImbalance 0xc90
  200. #define rOFDM0_XCTxAFE 0xc94
  201. #define rOFDM0_XDTxIQImbalance 0xc98
  202. #define rOFDM0_XDTxAFE 0xc9c
  203. #define rOFDM0_RxHPParameter 0xce0
  204. #define rOFDM0_TxPseudoNoiseWgt 0xce4
  205. #define rOFDM0_FrameSync 0xcf0
  206. #define rOFDM0_DFSReport 0xcf4
  207. #define rOFDM0_TxCoeff1 0xca4
  208. #define rOFDM0_TxCoeff2 0xca8
  209. #define rOFDM0_TxCoeff3 0xcac
  210. #define rOFDM0_TxCoeff4 0xcb0
  211. #define rOFDM0_TxCoeff5 0xcb4
  212. #define rOFDM0_TxCoeff6 0xcb8
  213. /*
  214. * 7. PageD(0xD00)
  215. */
  216. #define rOFDM1_LSTF 0xd00
  217. #define rOFDM1_TRxPathEnable 0xd04
  218. #define rOFDM1_CFO 0xd08 /* No setting now */
  219. #define rOFDM1_CSI1 0xd10
  220. #define rOFDM1_SBD 0xd14
  221. #define rOFDM1_CSI2 0xd18
  222. #define rOFDM1_CFOTracking 0xd2c
  223. #define rOFDM1_TRxMesaure1 0xd34
  224. #define rOFDM1_IntfDet 0xd3c
  225. #define rOFDM1_PseudoNoiseStateAB 0xd50
  226. #define rOFDM1_PseudoNoiseStateCD 0xd54
  227. #define rOFDM1_RxPseudoNoiseWgt 0xd58
  228. #define rOFDM_PHYCounter1 0xda0 /* cca, parity fail */
  229. #define rOFDM_PHYCounter2 0xda4 /* rate illegal, crc8 fail */
  230. #define rOFDM_PHYCounter3 0xda8 /* MCS not support */
  231. #define rOFDM_ShortCFOAB 0xdac /* No setting now */
  232. #define rOFDM_ShortCFOCD 0xdb0
  233. #define rOFDM_LongCFOAB 0xdb4
  234. #define rOFDM_LongCFOCD 0xdb8
  235. #define rOFDM_TailCFOAB 0xdbc
  236. #define rOFDM_TailCFOCD 0xdc0
  237. #define rOFDM_PWMeasure1 0xdc4
  238. #define rOFDM_PWMeasure2 0xdc8
  239. #define rOFDM_BWReport 0xdcc
  240. #define rOFDM_AGCReport 0xdd0
  241. #define rOFDM_RxSNR 0xdd4
  242. #define rOFDM_RxEVMCSI 0xdd8
  243. #define rOFDM_SIGReport 0xddc
  244. /*
  245. * 8. PageE(0xE00)
  246. */
  247. #define rTxAGC_Rate18_06 0xe00
  248. #define rTxAGC_Rate54_24 0xe04
  249. #define rTxAGC_CCK_Mcs32 0xe08
  250. #define rTxAGC_Mcs03_Mcs00 0xe10
  251. #define rTxAGC_Mcs07_Mcs04 0xe14
  252. #define rTxAGC_Mcs11_Mcs08 0xe18
  253. #define rTxAGC_Mcs15_Mcs12 0xe1c
  254. /* Analog- control in RX_WAIT_CCA : REG: EE0
  255. * [Analog- Power & Control Register] */
  256. #define rRx_Wait_CCCA 0xe70
  257. #define rAnapar_Ctrl_BB 0xee0
  258. /*
  259. * 7. RF Register 0x00-0x2E (RF 8256)
  260. * RF-0222D 0x00-3F
  261. *
  262. * Zebra1
  263. */
  264. #define rZebra1_HSSIEnable 0x0 /* Useless now */
  265. #define rZebra1_TRxEnable1 0x1
  266. #define rZebra1_TRxEnable2 0x2
  267. #define rZebra1_AGC 0x4
  268. #define rZebra1_ChargePump 0x5
  269. #define rZebra1_Channel 0x7 /* RF channel switch */
  270. #define rZebra1_TxGain 0x8 /* Useless now */
  271. #define rZebra1_TxLPF 0x9
  272. #define rZebra1_RxLPF 0xb
  273. #define rZebra1_RxHPFCorner 0xc
  274. /* Zebra4 */
  275. #define rGlobalCtrl 0 /* Useless now */
  276. #define rRTL8256_TxLPF 19
  277. #define rRTL8256_RxLPF 11
  278. /* RTL8258 */
  279. #define rRTL8258_TxLPF 0x11 /* Useless now */
  280. #define rRTL8258_RxLPF 0x13
  281. #define rRTL8258_RSSILPF 0xa
  282. /* RL6052 Register definition */
  283. #define RF_AC 0x00
  284. #define RF_IQADJ_G1 0x01
  285. #define RF_IQADJ_G2 0x02
  286. #define RF_POW_TRSW 0x05
  287. #define RF_GAIN_RX 0x06
  288. #define RF_GAIN_TX 0x07
  289. #define RF_TXM_IDAC 0x08
  290. #define RF_BS_IQGEN 0x0F
  291. #define RF_MODE1 0x10
  292. #define RF_MODE2 0x11
  293. #define RF_RX_AGC_HP 0x12
  294. #define RF_TX_AGC 0x13
  295. #define RF_BIAS 0x14
  296. #define RF_IPA 0x15
  297. #define RF_POW_ABILITY 0x17
  298. #define RF_MODE_AG 0x18
  299. #define rRfChannel 0x18 /* RF channel and BW switch */
  300. #define RF_CHNLBW 0x18 /* RF channel and BW switch */
  301. #define RF_TOP 0x19
  302. #define RF_RX_G1 0x1A
  303. #define RF_RX_G2 0x1B
  304. #define RF_RX_BB2 0x1C
  305. #define RF_RX_BB1 0x1D
  306. #define RF_RCK1 0x1E
  307. #define RF_RCK2 0x1F
  308. #define RF_TX_G1 0x20
  309. #define RF_TX_G2 0x21
  310. #define RF_TX_G3 0x22
  311. #define RF_TX_BB1 0x23
  312. #define RF_T_METER 0x24
  313. #define RF_SYN_G1 0x25 /* RF TX Power control */
  314. #define RF_SYN_G2 0x26 /* RF TX Power control */
  315. #define RF_SYN_G3 0x27 /* RF TX Power control */
  316. #define RF_SYN_G4 0x28 /* RF TX Power control */
  317. #define RF_SYN_G5 0x29 /* RF TX Power control */
  318. #define RF_SYN_G6 0x2A /* RF TX Power control */
  319. #define RF_SYN_G7 0x2B /* RF TX Power control */
  320. #define RF_SYN_G8 0x2C /* RF TX Power control */
  321. #define RF_RCK_OS 0x30 /* RF TX PA control */
  322. #define RF_TXPA_G1 0x31 /* RF TX PA control */
  323. #define RF_TXPA_G2 0x32 /* RF TX PA control */
  324. #define RF_TXPA_G3 0x33 /* RF TX PA control */
  325. /*
  326. * Bit Mask
  327. *
  328. * 1. Page1(0x100) */
  329. #define bBBResetB 0x100 /* Useless now? */
  330. #define bGlobalResetB 0x200
  331. #define bOFDMTxStart 0x4
  332. #define bCCKTxStart 0x8
  333. #define bCRC32Debug 0x100
  334. #define bPMACLoopback 0x10
  335. #define bTxLSIG 0xffffff
  336. #define bOFDMTxRate 0xf
  337. #define bOFDMTxReserved 0x10
  338. #define bOFDMTxLength 0x1ffe0
  339. #define bOFDMTxParity 0x20000
  340. #define bTxHTSIG1 0xffffff
  341. #define bTxHTMCSRate 0x7f
  342. #define bTxHTBW 0x80
  343. #define bTxHTLength 0xffff00
  344. #define bTxHTSIG2 0xffffff
  345. #define bTxHTSmoothing 0x1
  346. #define bTxHTSounding 0x2
  347. #define bTxHTReserved 0x4
  348. #define bTxHTAggreation 0x8
  349. #define bTxHTSTBC 0x30
  350. #define bTxHTAdvanceCoding 0x40
  351. #define bTxHTShortGI 0x80
  352. #define bTxHTNumberHT_LTF 0x300
  353. #define bTxHTCRC8 0x3fc00
  354. #define bCounterReset 0x10000
  355. #define bNumOfOFDMTx 0xffff
  356. #define bNumOfCCKTx 0xffff0000
  357. #define bTxIdleInterval 0xffff
  358. #define bOFDMService 0xffff0000
  359. #define bTxMACHeader 0xffffffff
  360. #define bTxDataInit 0xff
  361. #define bTxHTMode 0x100
  362. #define bTxDataType 0x30000
  363. #define bTxRandomSeed 0xffffffff
  364. #define bCCKTxPreamble 0x1
  365. #define bCCKTxSFD 0xffff0000
  366. #define bCCKTxSIG 0xff
  367. #define bCCKTxService 0xff00
  368. #define bCCKLengthExt 0x8000
  369. #define bCCKTxLength 0xffff0000
  370. #define bCCKTxCRC16 0xffff
  371. #define bCCKTxStatus 0x1
  372. #define bOFDMTxStatus 0x2
  373. #define IS_BB_REG_OFFSET_92S(_Offset) ((_Offset >= 0x800) && \
  374. (_Offset <= 0xfff))
  375. /* 2. Page8(0x800) */
  376. #define bRFMOD 0x1 /* Reg 0x800 rFPGA0_RFMOD */
  377. #define bJapanMode 0x2
  378. #define bCCKTxSC 0x30
  379. #define bCCKEn 0x1000000
  380. #define bOFDMEn 0x2000000
  381. #define bOFDMRxADCPhase 0x10000 /* Useless now */
  382. #define bOFDMTxDACPhase 0x40000
  383. #define bXATxAGC 0x3f
  384. #define bXBTxAGC 0xf00 /* Reg 80c rFPGA0_TxGainStage */
  385. #define bXCTxAGC 0xf000
  386. #define bXDTxAGC 0xf0000
  387. #define bPAStart 0xf0000000 /* Useless now */
  388. #define bTRStart 0x00f00000
  389. #define bRFStart 0x0000f000
  390. #define bBBStart 0x000000f0
  391. #define bBBCCKStart 0x0000000f
  392. #define bPAEnd 0xf /* Reg0x814 */
  393. #define bTREnd 0x0f000000
  394. #define bRFEnd 0x000f0000
  395. #define bCCAMask 0x000000f0 /* T2R */
  396. #define bR2RCCAMask 0x00000f00
  397. #define bHSSI_R2TDelay 0xf8000000
  398. #define bHSSI_T2RDelay 0xf80000
  399. #define bContTxHSSI 0x400 /* change gain at continue Tx */
  400. #define bIGFromCCK 0x200
  401. #define bAGCAddress 0x3f
  402. #define bRxHPTx 0x7000
  403. #define bRxHPT2R 0x38000
  404. #define bRxHPCCKIni 0xc0000
  405. #define bAGCTxCode 0xc00000
  406. #define bAGCRxCode 0x300000
  407. #define b3WireDataLength 0x800 /* Reg 0x820~84f rFPGA0_XA_HSSIParm1 */
  408. #define b3WireAddressLength 0x400
  409. #define b3WireRFPowerDown 0x1 /* Useless now */
  410. #define b5GPAPEPolarity 0x40000000
  411. #define b2GPAPEPolarity 0x80000000
  412. #define bRFSW_TxDefaultAnt 0x3
  413. #define bRFSW_TxOptionAnt 0x30
  414. #define bRFSW_RxDefaultAnt 0x300
  415. #define bRFSW_RxOptionAnt 0x3000
  416. #define bRFSI_3WireData 0x1
  417. #define bRFSI_3WireClock 0x2
  418. #define bRFSI_3WireLoad 0x4
  419. #define bRFSI_3WireRW 0x8
  420. #define bRFSI_3Wire 0xf
  421. #define bRFSI_RFENV 0x10 /* Reg 0x870 rFPGA0_XAB_RFInterfaceSW */
  422. #define bRFSI_TRSW 0x20 /* Useless now */
  423. #define bRFSI_TRSWB 0x40
  424. #define bRFSI_ANTSW 0x100
  425. #define bRFSI_ANTSWB 0x200
  426. #define bRFSI_PAPE 0x400
  427. #define bRFSI_PAPE5G 0x800
  428. #define bBandSelect 0x1
  429. #define bHTSIG2_GI 0x80
  430. #define bHTSIG2_Smoothing 0x01
  431. #define bHTSIG2_Sounding 0x02
  432. #define bHTSIG2_Aggreaton 0x08
  433. #define bHTSIG2_STBC 0x30
  434. #define bHTSIG2_AdvCoding 0x40
  435. #define bHTSIG2_NumOfHTLTF 0x300
  436. #define bHTSIG2_CRC8 0x3fc
  437. #define bHTSIG1_MCS 0x7f
  438. #define bHTSIG1_BandWidth 0x80
  439. #define bHTSIG1_HTLength 0xffff
  440. #define bLSIG_Rate 0xf
  441. #define bLSIG_Reserved 0x10
  442. #define bLSIG_Length 0x1fffe
  443. #define bLSIG_Parity 0x20
  444. #define bCCKRxPhase 0x4
  445. #define bLSSIReadAddress 0x7f800000 /* T65 RF */
  446. #define bLSSIReadEdge 0x80000000 /* LSSI "Read" edge signal */
  447. #define bLSSIReadBackData 0xfffff /* T65 RF */
  448. #define bLSSIReadOKFlag 0x1000 /* Useless now */
  449. #define bCCKSampleRate 0x8 /*0: 44MHz, 1:88MHz*/
  450. #define bRegulator0Standby 0x1
  451. #define bRegulatorPLLStandby 0x2
  452. #define bRegulator1Standby 0x4
  453. #define bPLLPowerUp 0x8
  454. #define bDPLLPowerUp 0x10
  455. #define bDA10PowerUp 0x20
  456. #define bAD7PowerUp 0x200
  457. #define bDA6PowerUp 0x2000
  458. #define bXtalPowerUp 0x4000
  459. #define b40MDClkPowerUP 0x8000
  460. #define bDA6DebugMode 0x20000
  461. #define bDA6Swing 0x380000
  462. /* Reg 0x880 rFPGA0_AnalogParameter1 20/40 CCK support switch 40/80 BB MHZ */
  463. #define bADClkPhase 0x4000000
  464. #define b80MClkDelay 0x18000000 /* Useless */
  465. #define bAFEWatchDogEnable 0x20000000
  466. /* Reg 0x884 rFPGA0_AnalogParameter2 Crystal cap */
  467. #define bXtalCap01 0xc0000000
  468. #define bXtalCap23 0x3
  469. #define bXtalCap92x 0x0f000000
  470. #define bXtalCap 0x0f000000
  471. #define bIntDifClkEnable 0x400 /* Useless */
  472. #define bExtSigClkEnable 0x800
  473. #define bBandgapMbiasPowerUp 0x10000
  474. #define bAD11SHGain 0xc0000
  475. #define bAD11InputRange 0x700000
  476. #define bAD11OPCurrent 0x3800000
  477. #define bIPathLoopback 0x4000000
  478. #define bQPathLoopback 0x8000000
  479. #define bAFELoopback 0x10000000
  480. #define bDA10Swing 0x7e0
  481. #define bDA10Reverse 0x800
  482. #define bDAClkSource 0x1000
  483. #define bAD7InputRange 0x6000
  484. #define bAD7Gain 0x38000
  485. #define bAD7OutputCMMode 0x40000
  486. #define bAD7InputCMMode 0x380000
  487. #define bAD7Current 0xc00000
  488. #define bRegulatorAdjust 0x7000000
  489. #define bAD11PowerUpAtTx 0x1
  490. #define bDA10PSAtTx 0x10
  491. #define bAD11PowerUpAtRx 0x100
  492. #define bDA10PSAtRx 0x1000
  493. #define bCCKRxAGCFormat 0x200
  494. #define bPSDFFTSamplepPoint 0xc000
  495. #define bPSDAverageNum 0x3000
  496. #define bIQPathControl 0xc00
  497. #define bPSDFreq 0x3ff
  498. #define bPSDAntennaPath 0x30
  499. #define bPSDIQSwitch 0x40
  500. #define bPSDRxTrigger 0x400000
  501. #define bPSDTxTrigger 0x80000000
  502. #define bPSDSineToneScale 0x7f000000
  503. #define bPSDReport 0xffff
  504. /* 3. Page9(0x900) */
  505. #define bOFDMTxSC 0x30000000 /* Useless */
  506. #define bCCKTxOn 0x1
  507. #define bOFDMTxOn 0x2
  508. #define bDebugPage 0xfff /* reset debug page and HWord, LWord */
  509. #define bDebugItem 0xff /* reset debug page and LWord */
  510. #define bAntL 0x10
  511. #define bAntNonHT 0x100
  512. #define bAntHT1 0x1000
  513. #define bAntHT2 0x10000
  514. #define bAntHT1S1 0x100000
  515. #define bAntNonHTS1 0x1000000
  516. /* 4. PageA(0xA00) */
  517. #define bCCKBBMode 0x3 /* Useless */
  518. #define bCCKTxPowerSaving 0x80
  519. #define bCCKRxPowerSaving 0x40
  520. #define bCCKSideBand 0x10 /* Reg 0xa00 rCCK0_System 20/40 switch*/
  521. #define bCCKScramble 0x8 /* Useless */
  522. #define bCCKAntDiversity 0x8000
  523. #define bCCKCarrierRecovery 0x4000
  524. #define bCCKTxRate 0x3000
  525. #define bCCKDCCancel 0x0800
  526. #define bCCKISICancel 0x0400
  527. #define bCCKMatchFilter 0x0200
  528. #define bCCKEqualizer 0x0100
  529. #define bCCKPreambleDetect 0x800000
  530. #define bCCKFastFalseCCA 0x400000
  531. #define bCCKChEstStart 0x300000
  532. #define bCCKCCACount 0x080000
  533. #define bCCKcs_lim 0x070000
  534. #define bCCKBistMode 0x80000000
  535. #define bCCKCCAMask 0x40000000
  536. #define bCCKTxDACPhase 0x4
  537. #define bCCKRxADCPhase 0x20000000 /* r_rx_clk */
  538. #define bCCKr_cp_mode0 0x0100
  539. #define bCCKTxDCOffset 0xf0
  540. #define bCCKRxDCOffset 0xf
  541. #define bCCKCCAMode 0xc000
  542. #define bCCKFalseCS_lim 0x3f00
  543. #define bCCKCS_ratio 0xc00000
  544. #define bCCKCorgBit_sel 0x300000
  545. #define bCCKPD_lim 0x0f0000
  546. #define bCCKNewCCA 0x80000000
  547. #define bCCKRxHPofIG 0x8000
  548. #define bCCKRxIG 0x7f00
  549. #define bCCKLNAPolarity 0x800000
  550. #define bCCKRx1stGain 0x7f0000
  551. #define bCCKRFExtend 0x20000000 /* CCK Rx initial gain polarity */
  552. #define bCCKRxAGCSatLevel 0x1f000000
  553. #define bCCKRxAGCSatCount 0xe0
  554. #define bCCKRxRFSettle 0x1f /* AGCsamp_dly */
  555. #define bCCKFixedRxAGC 0x8000
  556. #define bCCKAntennaPolarity 0x2000
  557. #define bCCKTxFilterType 0x0c00
  558. #define bCCKRxAGCReportType 0x0300
  559. #define bCCKRxDAGCEn 0x80000000
  560. #define bCCKRxDAGCPeriod 0x20000000
  561. #define bCCKRxDAGCSatLevel 0x1f000000
  562. #define bCCKTimingRecovery 0x800000
  563. #define bCCKTxC0 0x3f0000
  564. #define bCCKTxC1 0x3f000000
  565. #define bCCKTxC2 0x3f
  566. #define bCCKTxC3 0x3f00
  567. #define bCCKTxC4 0x3f0000
  568. #define bCCKTxC5 0x3f000000
  569. #define bCCKTxC6 0x3f
  570. #define bCCKTxC7 0x3f00
  571. #define bCCKDebugPort 0xff0000
  572. #define bCCKDACDebug 0x0f000000
  573. #define bCCKFalseAlarmEnable 0x8000
  574. #define bCCKFalseAlarmRead 0x4000
  575. #define bCCKTRSSI 0x7f
  576. #define bCCKRxAGCReport 0xfe
  577. #define bCCKRxReport_AntSel 0x80000000
  578. #define bCCKRxReport_MFOff 0x40000000
  579. #define bCCKRxRxReport_SQLoss 0x20000000
  580. #define bCCKRxReport_Pktloss 0x10000000
  581. #define bCCKRxReport_Lockedbit 0x08000000
  582. #define bCCKRxReport_RateError 0x04000000
  583. #define bCCKRxReport_RxRate 0x03000000
  584. #define bCCKRxFACounterLower 0xff
  585. #define bCCKRxFACounterUpper 0xff000000
  586. #define bCCKRxHPAGCStart 0xe000
  587. #define bCCKRxHPAGCFinal 0x1c00
  588. #define bCCKRxFalseAlarmEnable 0x8000
  589. #define bCCKFACounterFreeze 0x4000
  590. #define bCCKTxPathSel 0x10000000
  591. #define bCCKDefaultRxPath 0xc000000
  592. #define bCCKOptionRxPath 0x3000000
  593. /* 5. PageC(0xC00) */
  594. #define bNumOfSTF 0x3 /* Useless */
  595. #define bShift_L 0xc0
  596. #define bGI_TH 0xc
  597. #define bRxPathA 0x1
  598. #define bRxPathB 0x2
  599. #define bRxPathC 0x4
  600. #define bRxPathD 0x8
  601. #define bTxPathA 0x1
  602. #define bTxPathB 0x2
  603. #define bTxPathC 0x4
  604. #define bTxPathD 0x8
  605. #define bTRSSIFreq 0x200
  606. #define bADCBackoff 0x3000
  607. #define bDFIRBackoff 0xc000
  608. #define bTRSSILatchPhase 0x10000
  609. #define bRxIDCOffset 0xff
  610. #define bRxQDCOffset 0xff00
  611. #define bRxDFIRMode 0x1800000
  612. #define bRxDCNFType 0xe000000
  613. #define bRXIQImb_A 0x3ff
  614. #define bRXIQImb_B 0xfc00
  615. #define bRXIQImb_C 0x3f0000
  616. #define bRXIQImb_D 0xffc00000
  617. #define bDC_dc_Notch 0x60000
  618. #define bRxNBINotch 0x1f000000
  619. #define bPD_TH 0xf
  620. #define bPD_TH_Opt2 0xc000
  621. #define bPWED_TH 0x700
  622. #define bIfMF_Win_L 0x800
  623. #define bPD_Option 0x1000
  624. #define bMF_Win_L 0xe000
  625. #define bBW_Search_L 0x30000
  626. #define bwin_enh_L 0xc0000
  627. #define bBW_TH 0x700000
  628. #define bED_TH2 0x3800000
  629. #define bBW_option 0x4000000
  630. #define bRatio_TH 0x18000000
  631. #define bWindow_L 0xe0000000
  632. #define bSBD_Option 0x1
  633. #define bFrame_TH 0x1c
  634. #define bFS_Option 0x60
  635. #define bDC_Slope_check 0x80
  636. #define bFGuard_Counter_DC_L 0xe00
  637. #define bFrame_Weight_Short 0x7000
  638. #define bSub_Tune 0xe00000
  639. #define bFrame_DC_Length 0xe000000
  640. #define bSBD_start_offset 0x30000000
  641. #define bFrame_TH_2 0x7
  642. #define bFrame_GI2_TH 0x38
  643. #define bGI2_Sync_en 0x40
  644. #define bSarch_Short_Early 0x300
  645. #define bSarch_Short_Late 0xc00
  646. #define bSarch_GI2_Late 0x70000
  647. #define bCFOAntSum 0x1
  648. #define bCFOAcc 0x2
  649. #define bCFOStartOffset 0xc
  650. #define bCFOLookBack 0x70
  651. #define bCFOSumWeight 0x80
  652. #define bDAGCEnable 0x10000
  653. #define bTXIQImb_A 0x3ff
  654. #define bTXIQImb_B 0xfc00
  655. #define bTXIQImb_C 0x3f0000
  656. #define bTXIQImb_D 0xffc00000
  657. #define bTxIDCOffset 0xff
  658. #define bTxQDCOffset 0xff00
  659. #define bTxDFIRMode 0x10000
  660. #define bTxPesudoNoiseOn 0x4000000
  661. #define bTxPesudoNoise_A 0xff
  662. #define bTxPesudoNoise_B 0xff00
  663. #define bTxPesudoNoise_C 0xff0000
  664. #define bTxPesudoNoise_D 0xff000000
  665. #define bCCADropOption 0x20000
  666. #define bCCADropThres 0xfff00000
  667. #define bEDCCA_H 0xf
  668. #define bEDCCA_L 0xf0
  669. #define bLambda_ED 0x300
  670. #define bRxInitialGain 0x7f
  671. #define bRxAntDivEn 0x80
  672. #define bRxAGCAddressForLNA 0x7f00
  673. #define bRxHighPowerFlow 0x8000
  674. #define bRxAGCFreezeThres 0xc0000
  675. #define bRxFreezeStep_AGC1 0x300000
  676. #define bRxFreezeStep_AGC2 0xc00000
  677. #define bRxFreezeStep_AGC3 0x3000000
  678. #define bRxFreezeStep_AGC0 0xc000000
  679. #define bRxRssi_Cmp_En 0x10000000
  680. #define bRxQuickAGCEn 0x20000000
  681. #define bRxAGCFreezeThresMode 0x40000000
  682. #define bRxOverFlowCheckType 0x80000000
  683. #define bRxAGCShift 0x7f
  684. #define bTRSW_Tri_Only 0x80
  685. #define bPowerThres 0x300
  686. #define bRxAGCEn 0x1
  687. #define bRxAGCTogetherEn 0x2
  688. #define bRxAGCMin 0x4
  689. #define bRxHP_Ini 0x7
  690. #define bRxHP_TRLNA 0x70
  691. #define bRxHP_RSSI 0x700
  692. #define bRxHP_BBP1 0x7000
  693. #define bRxHP_BBP2 0x70000
  694. #define bRxHP_BBP3 0x700000
  695. #define bRSSI_H 0x7f0000 /* the threshold for high power */
  696. #define bRSSI_Gen 0x7f000000 /* the threshold for ant divers */
  697. #define bRxSettle_TRSW 0x7
  698. #define bRxSettle_LNA 0x38
  699. #define bRxSettle_RSSI 0x1c0
  700. #define bRxSettle_BBP 0xe00
  701. #define bRxSettle_RxHP 0x7000
  702. #define bRxSettle_AntSW_RSSI 0x38000
  703. #define bRxSettle_AntSW 0xc0000
  704. #define bRxProcessTime_DAGC 0x300000
  705. #define bRxSettle_HSSI 0x400000
  706. #define bRxProcessTime_BBPPW 0x800000
  707. #define bRxAntennaPowerShift 0x3000000
  708. #define bRSSITableSelect 0xc000000
  709. #define bRxHP_Final 0x7000000
  710. #define bRxHTSettle_BBP 0x7
  711. #define bRxHTSettle_HSSI 0x8
  712. #define bRxHTSettle_RxHP 0x70
  713. #define bRxHTSettle_BBPPW 0x80
  714. #define bRxHTSettle_Idle 0x300
  715. #define bRxHTSettle_Reserved 0x1c00
  716. #define bRxHTRxHPEn 0x8000
  717. #define bRxHTAGCFreezeThres 0x30000
  718. #define bRxHTAGCTogetherEn 0x40000
  719. #define bRxHTAGCMin 0x80000
  720. #define bRxHTAGCEn 0x100000
  721. #define bRxHTDAGCEn 0x200000
  722. #define bRxHTRxHP_BBP 0x1c00000
  723. #define bRxHTRxHP_Final 0xe0000000
  724. #define bRxPWRatioTH 0x3
  725. #define bRxPWRatioEn 0x4
  726. #define bRxMFHold 0x3800
  727. #define bRxPD_Delay_TH1 0x38
  728. #define bRxPD_Delay_TH2 0x1c0
  729. #define bRxPD_DC_COUNT_MAX 0x600
  730. #define bRxPD_Delay_TH 0x8000
  731. #define bRxProcess_Delay 0xf0000
  732. #define bRxSearchrange_GI2_Early 0x700000
  733. #define bRxFrame_Guard_Counter_L 0x3800000
  734. #define bRxSGI_Guard_L 0xc000000
  735. #define bRxSGI_Search_L 0x30000000
  736. #define bRxSGI_TH 0xc0000000
  737. #define bDFSCnt0 0xff
  738. #define bDFSCnt1 0xff00
  739. #define bDFSFlag 0xf0000
  740. #define bMFWeightSum 0x300000
  741. #define bMinIdxTH 0x7f000000
  742. #define bDAFormat 0x40000
  743. #define bTxChEmuEnable 0x01000000
  744. #define bTRSWIsolation_A 0x7f
  745. #define bTRSWIsolation_B 0x7f00
  746. #define bTRSWIsolation_C 0x7f0000
  747. #define bTRSWIsolation_D 0x7f000000
  748. #define bExtLNAGain 0x7c00
  749. /* 6. PageE(0xE00) */
  750. #define bSTBCEn 0x4 /* Useless */
  751. #define bAntennaMapping 0x10
  752. #define bNss 0x20
  753. #define bCFOAntSumD 0x200
  754. #define bPHYCounterReset 0x8000000
  755. #define bCFOReportGet 0x4000000
  756. #define bOFDMContinueTx 0x10000000
  757. #define bOFDMSingleCarrier 0x20000000
  758. #define bOFDMSingleTone 0x40000000
  759. #define bHTDetect 0x100
  760. #define bCFOEn 0x10000
  761. #define bCFOValue 0xfff00000
  762. #define bSigTone_Re 0x3f
  763. #define bSigTone_Im 0x7f00
  764. #define bCounter_CCA 0xffff
  765. #define bCounter_ParityFail 0xffff0000
  766. #define bCounter_RateIllegal 0xffff
  767. #define bCounter_CRC8Fail 0xffff0000
  768. #define bCounter_MCSNoSupport 0xffff
  769. #define bCounter_FastSync 0xffff
  770. #define bShortCFO 0xfff
  771. #define bShortCFOTLength 12 /* total */
  772. #define bShortCFOFLength 11 /* fraction */
  773. #define bLongCFO 0x7ff
  774. #define bLongCFOTLength 11
  775. #define bLongCFOFLength 11
  776. #define bTailCFO 0x1fff
  777. #define bTailCFOTLength 13
  778. #define bTailCFOFLength 12
  779. #define bmax_en_pwdB 0xffff
  780. #define bCC_power_dB 0xffff0000
  781. #define bnoise_pwdB 0xffff
  782. #define bPowerMeasTLength 10
  783. #define bPowerMeasFLength 3
  784. #define bRx_HT_BW 0x1
  785. #define bRxSC 0x6
  786. #define bRx_HT 0x8
  787. #define bNB_intf_det_on 0x1
  788. #define bIntf_win_len_cfg 0x30
  789. #define bNB_Intf_TH_cfg 0x1c0
  790. #define bRFGain 0x3f
  791. #define bTableSel 0x40
  792. #define bTRSW 0x80
  793. #define bRxSNR_A 0xff
  794. #define bRxSNR_B 0xff00
  795. #define bRxSNR_C 0xff0000
  796. #define bRxSNR_D 0xff000000
  797. #define bSNREVMTLength 8
  798. #define bSNREVMFLength 1
  799. #define bCSI1st 0xff
  800. #define bCSI2nd 0xff00
  801. #define bRxEVM1st 0xff0000
  802. #define bRxEVM2nd 0xff000000
  803. #define bSIGEVM 0xff
  804. #define bPWDB 0xff00
  805. #define bSGIEN 0x10000
  806. #define bSFactorQAM1 0xf /* Useless */
  807. #define bSFactorQAM2 0xf0
  808. #define bSFactorQAM3 0xf00
  809. #define bSFactorQAM4 0xf000
  810. #define bSFactorQAM5 0xf0000
  811. #define bSFactorQAM6 0xf0000
  812. #define bSFactorQAM7 0xf00000
  813. #define bSFactorQAM8 0xf000000
  814. #define bSFactorQAM9 0xf0000000
  815. #define bCSIScheme 0x100000
  816. #define bNoiseLvlTopSet 0x3 /* Useless */
  817. #define bChSmooth 0x4
  818. #define bChSmoothCfg1 0x38
  819. #define bChSmoothCfg2 0x1c0
  820. #define bChSmoothCfg3 0xe00
  821. #define bChSmoothCfg4 0x7000
  822. #define bMRCMode 0x800000
  823. #define bTHEVMCfg 0x7000000
  824. #define bLoopFitType 0x1 /* Useless */
  825. #define bUpdCFO 0x40
  826. #define bUpdCFOOffData 0x80
  827. #define bAdvUpdCFO 0x100
  828. #define bAdvTimeCtrl 0x800
  829. #define bUpdClko 0x1000
  830. #define bFC 0x6000
  831. #define bTrackingMode 0x8000
  832. #define bPhCmpEnable 0x10000
  833. #define bUpdClkoLTF 0x20000
  834. #define bComChCFO 0x40000
  835. #define bCSIEstiMode 0x80000
  836. #define bAdvUpdEqz 0x100000
  837. #define bUChCfg 0x7000000
  838. #define bUpdEqz 0x8000000
  839. #define bTxAGCRate18_06 0x7f7f7f7f /* Useless */
  840. #define bTxAGCRate54_24 0x7f7f7f7f
  841. #define bTxAGCRateMCS32 0x7f
  842. #define bTxAGCRateCCK 0x7f00
  843. #define bTxAGCRateMCS3_MCS0 0x7f7f7f7f
  844. #define bTxAGCRateMCS7_MCS4 0x7f7f7f7f
  845. #define bTxAGCRateMCS11_MCS8 0x7f7f7f7f
  846. #define bTxAGCRateMCS15_MCS12 0x7f7f7f7f
  847. /* Rx Pseduo noise */
  848. #define bRxPesudoNoiseOn 0x20000000 /* Useless */
  849. #define bRxPesudoNoise_A 0xff
  850. #define bRxPesudoNoise_B 0xff00
  851. #define bRxPesudoNoise_C 0xff0000
  852. #define bRxPesudoNoise_D 0xff000000
  853. #define bPesudoNoiseState_A 0xffff
  854. #define bPesudoNoiseState_B 0xffff0000
  855. #define bPesudoNoiseState_C 0xffff
  856. #define bPesudoNoiseState_D 0xffff0000
  857. /* 7. RF Register
  858. * Zebra1 */
  859. #define bZebra1_HSSIEnable 0x8 /* Useless */
  860. #define bZebra1_TRxControl 0xc00
  861. #define bZebra1_TRxGainSetting 0x07f
  862. #define bZebra1_RxCorner 0xc00
  863. #define bZebra1_TxChargePump 0x38
  864. #define bZebra1_RxChargePump 0x7
  865. #define bZebra1_ChannelNum 0xf80
  866. #define bZebra1_TxLPFBW 0x400
  867. #define bZebra1_RxLPFBW 0x600
  868. /*Zebra4 */
  869. #define bRTL8256RegModeCtrl1 0x100 /* Useless */
  870. #define bRTL8256RegModeCtrl0 0x40
  871. #define bRTL8256_TxLPFBW 0x18
  872. #define bRTL8256_RxLPFBW 0x600
  873. /* RTL8258 */
  874. #define bRTL8258_TxLPFBW 0xc /* Useless */
  875. #define bRTL8258_RxLPFBW 0xc00
  876. #define bRTL8258_RSSILPFBW 0xc0
  877. /*
  878. * Other Definition
  879. */
  880. /* byte endable for sb_write */
  881. #define bByte0 0x1 /* Useless */
  882. #define bByte1 0x2
  883. #define bByte2 0x4
  884. #define bByte3 0x8
  885. #define bWord0 0x3
  886. #define bWord1 0xc
  887. #define bDWord 0xf
  888. /* for PutRegsetting & GetRegSetting BitMask */
  889. #define bMaskByte0 0xff /* Reg 0xc50 rOFDM0_XAAGCCore~0xC6f */
  890. #define bMaskByte1 0xff00
  891. #define bMaskByte2 0xff0000
  892. #define bMaskByte3 0xff000000
  893. #define bMaskHWord 0xffff0000
  894. #define bMaskLWord 0x0000ffff
  895. #define bMaskDWord 0xffffffff
  896. /* for PutRFRegsetting & GetRFRegSetting BitMask */
  897. #define bRFRegOffsetMask 0xfffff
  898. #define bEnable 0x1 /* Useless */
  899. #define bDisable 0x0
  900. #define LeftAntenna 0x0 /* Useless */
  901. #define RightAntenna 0x1
  902. #define tCheckTxStatus 500 /* 500ms Useless */
  903. #define tUpdateRxCounter 100 /* 100ms */
  904. #define rateCCK 0 /* Useless */
  905. #define rateOFDM 1
  906. #define rateHT 2
  907. /* define Register-End */
  908. #define bPMAC_End 0x1ff /* Useless */
  909. #define bFPGAPHY0_End 0x8ff
  910. #define bFPGAPHY1_End 0x9ff
  911. #define bCCKPHY0_End 0xaff
  912. #define bOFDMPHY0_End 0xcff
  913. #define bOFDMPHY1_End 0xdff
  914. #define bPMACControl 0x0 /* Useless */
  915. #define bWMACControl 0x1
  916. #define bWNICControl 0x2
  917. #define ANTENNA_A 0x1 /* Useless */
  918. #define ANTENNA_B 0x2
  919. #define ANTENNA_AB 0x3 /* ANTENNA_A |ANTENNA_B */
  920. #define ANTENNA_C 0x4
  921. #define ANTENNA_D 0x8
  922. /* accept all physical address */
  923. #define RCR_AAP BIT(0)
  924. #define RCR_APM BIT(1) /* accept physical match */
  925. #define RCR_AM BIT(2) /* accept multicast */
  926. #define RCR_AB BIT(3) /* accept broadcast */
  927. #define RCR_ACRC32 BIT(5) /* accept error packet */
  928. #define RCR_9356SEL BIT(6)
  929. #define RCR_AICV BIT(12) /* Accept ICV error packet */
  930. #define RCR_RXFTH0 (BIT(13)|BIT(14)|BIT(15)) /* Rx FIFO threshold */
  931. #define RCR_ADF BIT(18) /* Accept Data(frame type) frame */
  932. #define RCR_ACF BIT(19) /* Accept control frame */
  933. #define RCR_AMF BIT(20) /* Accept management frame */
  934. #define RCR_ADD3 BIT(21)
  935. #define RCR_APWRMGT BIT(22) /* Accept power management packet */
  936. #define RCR_CBSSID BIT(23) /* Accept BSSID match packet */
  937. #define RCR_ENMARP BIT(28) /* enable mac auto reset phy */
  938. #define RCR_EnCS1 BIT(29) /* enable carrier sense method 1 */
  939. #define RCR_EnCS2 BIT(30) /* enable carrier sense method 2 */
  940. /* Rx Early mode is performed for packet size greater than 1536 */
  941. #define RCR_OnlyErlPkt BIT(31)
  942. /*--------------------------Define Parameters-------------------------------*/
  943. #endif /*__INC_HAL8192SPHYREG_H */