Hal8814PhyReg.h 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 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. *****************************************************************************/
  15. #ifndef __INC_HAL8814PHYREG_H__
  16. #define __INC_HAL8814PHYREG_H__
  17. /*--------------------------Define Parameters-------------------------------*/
  18. /*
  19. * BB-PHY register PMAC 0x100 PHY 0x800 - 0xEFF
  20. * 1. PMAC duplicate register due to connection: RF_Mode, TRxRN, NumOf L-STF
  21. * 2. 0x800/0x900/0xA00/0xC00/0xD00/0xE00
  22. * 3. RF register 0x00-2E
  23. * 4. Bit Mask for BB/RF register
  24. * 5. Other defintion for BB/RF R/W
  25. * */
  26. /* BB Register Definition */
  27. #define rCCAonSec_Jaguar 0x838
  28. #define rPwed_TH_Jaguar 0x830
  29. #define rL1_Weight_Jaguar 0x840
  30. #define r_L1_SBD_start_time 0x844
  31. /* BW and sideband setting */
  32. #define rBWIndication_Jaguar 0x834
  33. #define rL1PeakTH_Jaguar 0x848
  34. #define rRFMOD_Jaguar 0x8ac /* RF mode */
  35. #define rADC_Buf_Clk_Jaguar 0x8c4
  36. #define rADC_Buf_40_Clk_Jaguar2 0x8c8
  37. #define rRFECTRL_Jaguar 0x900
  38. #define bRFMOD_Jaguar 0xc3
  39. #define rCCK_System_Jaguar 0xa00 /* for cck sideband */
  40. #define bCCK_System_Jaguar 0x10
  41. /* Block & Path enable */
  42. #define rOFDMCCKEN_Jaguar 0x808 /* OFDM/CCK block enable */
  43. #define bOFDMEN_Jaguar 0x20000000
  44. #define bCCKEN_Jaguar 0x10000000
  45. #define rRxPath_Jaguar 0x808 /* Rx antenna */
  46. #define bRxPath_Jaguar 0xff
  47. #define rTxPath_Jaguar 0x80c /* Tx antenna */
  48. #define bTxPath_Jaguar 0x0fffffff
  49. #define rCCK_RX_Jaguar 0xa04 /* for cck rx path selection */
  50. #define bCCK_RX_Jaguar 0x0c000000
  51. #define rVhtlen_Use_Lsig_Jaguar 0x8c3 /* Use LSIG for VHT length */
  52. #define rRxPath_Jaguar2 0xa04 /* Rx antenna */
  53. #define rTxAnt_1Nsts_Jaguar2 0x93c /* Tx antenna for 1Nsts */
  54. #define rTxAnt_23Nsts_Jaguar2 0x940 /* Tx antenna for 2Nsts and 3Nsts */
  55. /* RF read/write-related */
  56. #define rHSSIRead_Jaguar 0x8b0 /* RF read addr */
  57. #define bHSSIRead_addr_Jaguar 0xff
  58. #define bHSSIRead_trigger_Jaguar 0x100
  59. #define rA_PIRead_Jaguar 0xd04 /* RF readback with PI */
  60. #define rB_PIRead_Jaguar 0xd44 /* RF readback with PI */
  61. #define rA_SIRead_Jaguar 0xd08 /* RF readback with SI */
  62. #define rB_SIRead_Jaguar 0xd48 /* RF readback with SI */
  63. #define rRead_data_Jaguar 0xfffff
  64. #define rA_LSSIWrite_Jaguar 0xc90 /* RF write addr */
  65. #define rB_LSSIWrite_Jaguar 0xe90 /* RF write addr */
  66. #define bLSSIWrite_data_Jaguar 0x000fffff
  67. #define bLSSIWrite_addr_Jaguar 0x0ff00000
  68. #define rC_PIRead_Jaguar2 0xd84 /* RF readback with PI */
  69. #define rD_PIRead_Jaguar2 0xdC4 /* RF readback with PI */
  70. #define rC_SIRead_Jaguar2 0xd88 /* RF readback with SI */
  71. #define rD_SIRead_Jaguar2 0xdC8 /* RF readback with SI */
  72. #define rC_LSSIWrite_Jaguar2 0x1890 /* RF write addr */
  73. #define rD_LSSIWrite_Jaguar2 0x1A90 /* RF write addr */
  74. /* YN: mask the following register definition temporarily */
  75. #define rFPGA0_XA_RFInterfaceOE 0x860 /* RF Channel switch */
  76. #define rFPGA0_XB_RFInterfaceOE 0x864
  77. #define rFPGA0_XAB_RFInterfaceSW 0x870 /* RF Interface Software Control */
  78. #define rFPGA0_XCD_RFInterfaceSW 0x874
  79. /* #define rFPGA0_XAB_RFParameter 0x878 */ /* RF Parameter
  80. * #define rFPGA0_XCD_RFParameter 0x87c */
  81. /* #define rFPGA0_AnalogParameter1 0x880 */ /* Crystal cap setting RF-R/W protection for parameter4??
  82. * #define rFPGA0_AnalogParameter2 0x884
  83. * #define rFPGA0_AnalogParameter3 0x888
  84. * #define rFPGA0_AdDaClockEn 0x888 */ /* enable ad/da clock1 for dual-phy
  85. * #define rFPGA0_AnalogParameter4 0x88c */
  86. /* CCK TX scaling */
  87. #define rCCK_TxFilter1_Jaguar 0xa20
  88. #define bCCK_TxFilter1_C0_Jaguar 0x00ff0000
  89. #define bCCK_TxFilter1_C1_Jaguar 0xff000000
  90. #define rCCK_TxFilter2_Jaguar 0xa24
  91. #define bCCK_TxFilter2_C2_Jaguar 0x000000ff
  92. #define bCCK_TxFilter2_C3_Jaguar 0x0000ff00
  93. #define bCCK_TxFilter2_C4_Jaguar 0x00ff0000
  94. #define bCCK_TxFilter2_C5_Jaguar 0xff000000
  95. #define rCCK_TxFilter3_Jaguar 0xa28
  96. #define bCCK_TxFilter3_C6_Jaguar 0x000000ff
  97. #define bCCK_TxFilter3_C7_Jaguar 0x0000ff00
  98. /* NBI & CSI Mask setting */
  99. #define rCSI_Mask_Setting1_Jaguar 0x874
  100. #define rCSI_Fix_Mask0_Jaguar 0x880
  101. #define rCSI_Fix_Mask1_Jaguar 0x884
  102. #define rCSI_Fix_Mask2_Jaguar 0x888
  103. #define rCSI_Fix_Mask3_Jaguar 0x88c
  104. #define rCSI_Fix_Mask4_Jaguar 0x890
  105. #define rCSI_Fix_Mask5_Jaguar 0x894
  106. #define rCSI_Fix_Mask6_Jaguar 0x898
  107. #define rCSI_Fix_Mask7_Jaguar 0x89c
  108. #define rNBI_Setting_Jaguar 0x87c
  109. /* YN: mask the following register definition temporarily
  110. * #define rPdp_AntA 0xb00
  111. * #define rPdp_AntA_4 0xb04
  112. * #define rConfig_Pmpd_AntA 0xb28
  113. * #define rConfig_AntA 0xb68
  114. * #define rConfig_AntB 0xb6c
  115. * #define rPdp_AntB 0xb70
  116. * #define rPdp_AntB_4 0xb74
  117. * #define rConfig_Pmpd_AntB 0xb98
  118. * #define rAPK 0xbd8 */
  119. /* RXIQC */
  120. #define rA_RxIQC_AB_Jaguar 0xc10 /* RxIQ imblance matrix coeff. A & B */
  121. #define rA_RxIQC_CD_Jaguar 0xc14 /* RxIQ imblance matrix coeff. C & D */
  122. #define rA_TxScale_Jaguar 0xc1c /* Pah_A TX scaling factor */
  123. #define rB_TxScale_Jaguar 0xe1c /* Path_B TX scaling factor */
  124. #define rB_RxIQC_AB_Jaguar 0xe10 /* RxIQ imblance matrix coeff. A & B */
  125. #define rB_RxIQC_CD_Jaguar 0xe14 /* RxIQ imblance matrix coeff. C & D */
  126. #define b_RxIQC_AC_Jaguar 0x02ff /* bit mask for IQC matrix element A & C */
  127. #define b_RxIQC_BD_Jaguar 0x02ff0000 /* bit mask for IQC matrix element A & C */
  128. #define rC_TxScale_Jaguar2 0x181c /* Pah_C TX scaling factor */
  129. #define rD_TxScale_Jaguar2 0x1A1c /* Path_D TX scaling factor */
  130. #define rRF_TxGainOffset 0x55
  131. /* DIG-related */
  132. #define rA_IGI_Jaguar 0xc50 /* Initial Gain for path-A */
  133. #define rB_IGI_Jaguar 0xe50 /* Initial Gain for path-B */
  134. #define rC_IGI_Jaguar2 0x1850 /* Initial Gain for path-C */
  135. #define rD_IGI_Jaguar2 0x1A50 /* Initial Gain for path-D */
  136. #define rOFDM_FalseAlarm1_Jaguar 0xf48 /* counter for break */
  137. #define rOFDM_FalseAlarm2_Jaguar 0xf4c /* counter for spoofing */
  138. #define rCCK_FalseAlarm_Jaguar 0xa5c /* counter for cck false alarm */
  139. #define b_FalseAlarm_Jaguar 0xffff
  140. #define rCCK_CCA_Jaguar 0xa08 /* cca threshold */
  141. #define bCCK_CCA_Jaguar 0x00ff0000
  142. /* Tx Power Ttraining-related */
  143. #define rA_TxPwrTraing_Jaguar 0xc54
  144. #define rB_TxPwrTraing_Jaguar 0xe54
  145. /* Report-related */
  146. #define rOFDM_ShortCFOAB_Jaguar 0xf60
  147. #define rOFDM_LongCFOAB_Jaguar 0xf64
  148. #define rOFDM_EndCFOAB_Jaguar 0xf70
  149. #define rOFDM_AGCReport_Jaguar 0xf84
  150. #define rOFDM_RxSNR_Jaguar 0xf88
  151. #define rOFDM_RxEVMCSI_Jaguar 0xf8c
  152. #define rOFDM_SIGReport_Jaguar 0xf90
  153. /* Misc functions */
  154. #define rEDCCA_Jaguar 0x8a4 /* EDCCA */
  155. #define bEDCCA_Jaguar 0xffff
  156. #define rAGC_table_Jaguar 0x82c /* AGC tabel select */
  157. #define bAGC_table_Jaguar 0x3
  158. #define b_sel5g_Jaguar 0x1000 /* sel5g */
  159. #define b_LNA_sw_Jaguar 0x8000 /* HW/WS control for LNA */
  160. #define rFc_area_Jaguar 0x860 /* fc_area */
  161. #define bFc_area_Jaguar 0x1ffe000
  162. #define rSingleTone_ContTx_Jaguar 0x914
  163. #define rAGC_table_Jaguar2 0x958 /* AGC tabel select */
  164. #define rDMA_trigger_Jaguar2 0x95C /* ADC sample mode */
  165. /* RFE */
  166. #define rA_RFE_Pinmux_Jaguar 0xcb0 /* Path_A RFE cotrol pinmux */
  167. #define rB_RFE_Pinmux_Jaguar 0xeb0 /* Path_B RFE control pinmux */
  168. #define rA_RFE_Inv_Jaguar 0xcb4 /* Path_A RFE cotrol */
  169. #define rB_RFE_Inv_Jaguar 0xeb4 /* Path_B RFE control */
  170. #define rA_RFE_Jaguar 0xcb8 /* Path_A RFE cotrol */
  171. #define rB_RFE_Jaguar 0xeb8 /* Path_B RFE control */
  172. #define rA_RFE_Inverse_Jaguar 0xCBC /* Path_A RFE control inverse */
  173. #define rB_RFE_Inverse_Jaguar 0xEBC /* Path_B RFE control inverse */
  174. #define r_ANTSEL_SW_Jaguar 0x900 /* ANTSEL SW Control */
  175. #define bMask_RFEInv_Jaguar 0x3ff00000
  176. #define bMask_AntselPathFollow_Jaguar 0x00030000
  177. #define rC_RFE_Pinmux_Jaguar 0x18B4 /* Path_C RFE cotrol pinmux */
  178. #define rD_RFE_Pinmux_Jaguar 0x1AB4 /* Path_D RFE cotrol pinmux */
  179. #define rA_RFE_Sel_Jaguar2 0x1990
  180. /* TX AGC */
  181. #define rTxAGC_A_CCK11_CCK1_JAguar 0xc20
  182. #define rTxAGC_A_Ofdm18_Ofdm6_JAguar 0xc24
  183. #define rTxAGC_A_Ofdm54_Ofdm24_JAguar 0xc28
  184. #define rTxAGC_A_MCS3_MCS0_JAguar 0xc2c
  185. #define rTxAGC_A_MCS7_MCS4_JAguar 0xc30
  186. #define rTxAGC_A_MCS11_MCS8_JAguar 0xc34
  187. #define rTxAGC_A_MCS15_MCS12_JAguar 0xc38
  188. #define rTxAGC_A_Nss1Index3_Nss1Index0_JAguar 0xc3c
  189. #define rTxAGC_A_Nss1Index7_Nss1Index4_JAguar 0xc40
  190. #define rTxAGC_A_Nss2Index1_Nss1Index8_JAguar 0xc44
  191. #define rTxAGC_A_Nss2Index5_Nss2Index2_JAguar 0xc48
  192. #define rTxAGC_A_Nss2Index9_Nss2Index6_JAguar 0xc4c
  193. #define rTxAGC_B_CCK11_CCK1_JAguar 0xe20
  194. #define rTxAGC_B_Ofdm18_Ofdm6_JAguar 0xe24
  195. #define rTxAGC_B_Ofdm54_Ofdm24_JAguar 0xe28
  196. #define rTxAGC_B_MCS3_MCS0_JAguar 0xe2c
  197. #define rTxAGC_B_MCS7_MCS4_JAguar 0xe30
  198. #define rTxAGC_B_MCS11_MCS8_JAguar 0xe34
  199. #define rTxAGC_B_MCS15_MCS12_JAguar 0xe38
  200. #define rTxAGC_B_Nss1Index3_Nss1Index0_JAguar 0xe3c
  201. #define rTxAGC_B_Nss1Index7_Nss1Index4_JAguar 0xe40
  202. #define rTxAGC_B_Nss2Index1_Nss1Index8_JAguar 0xe44
  203. #define rTxAGC_B_Nss2Index5_Nss2Index2_JAguar 0xe48
  204. #define rTxAGC_B_Nss2Index9_Nss2Index6_JAguar 0xe4c
  205. #define bTxAGC_byte0_Jaguar 0xff
  206. #define bTxAGC_byte1_Jaguar 0xff00
  207. #define bTxAGC_byte2_Jaguar 0xff0000
  208. #define bTxAGC_byte3_Jaguar 0xff000000
  209. /* TX AGC */
  210. #define rTxAGC_A_CCK11_CCK1_Jaguar2 0xc20
  211. #define rTxAGC_A_Ofdm18_Ofdm6_Jaguar2 0xc24
  212. #define rTxAGC_A_Ofdm54_Ofdm24_Jaguar2 0xc28
  213. #define rTxAGC_A_MCS3_MCS0_Jaguar2 0xc2c
  214. #define rTxAGC_A_MCS7_MCS4_Jaguar2 0xc30
  215. #define rTxAGC_A_MCS11_MCS8_Jaguar2 0xc34
  216. #define rTxAGC_A_MCS15_MCS12_Jaguar2 0xc38
  217. #define rTxAGC_A_MCS19_MCS16_Jaguar2 0xcd8
  218. #define rTxAGC_A_MCS23_MCS20_Jaguar2 0xcdc
  219. #define rTxAGC_A_Nss1Index3_Nss1Index0_Jaguar2 0xc3c
  220. #define rTxAGC_A_Nss1Index7_Nss1Index4_Jaguar2 0xc40
  221. #define rTxAGC_A_Nss2Index1_Nss1Index8_Jaguar2 0xc44
  222. #define rTxAGC_A_Nss2Index5_Nss2Index2_Jaguar2 0xc48
  223. #define rTxAGC_A_Nss2Index9_Nss2Index6_Jaguar2 0xc4c
  224. #define rTxAGC_A_Nss3Index3_Nss3Index0_Jaguar2 0xce0
  225. #define rTxAGC_A_Nss3Index7_Nss3Index4_Jaguar2 0xce4
  226. #define rTxAGC_A_Nss3Index9_Nss3Index8_Jaguar2 0xce8
  227. #define rTxAGC_B_CCK11_CCK1_Jaguar2 0xe20
  228. #define rTxAGC_B_Ofdm18_Ofdm6_Jaguar2 0xe24
  229. #define rTxAGC_B_Ofdm54_Ofdm24_Jaguar2 0xe28
  230. #define rTxAGC_B_MCS3_MCS0_Jaguar2 0xe2c
  231. #define rTxAGC_B_MCS7_MCS4_Jaguar2 0xe30
  232. #define rTxAGC_B_MCS11_MCS8_Jaguar2 0xe34
  233. #define rTxAGC_B_MCS15_MCS12_Jaguar2 0xe38
  234. #define rTxAGC_B_MCS19_MCS16_Jaguar2 0xed8
  235. #define rTxAGC_B_MCS23_MCS20_Jaguar2 0xedc
  236. #define rTxAGC_B_Nss1Index3_Nss1Index0_Jaguar2 0xe3c
  237. #define rTxAGC_B_Nss1Index7_Nss1Index4_Jaguar2 0xe40
  238. #define rTxAGC_B_Nss2Index1_Nss1Index8_Jaguar2 0xe44
  239. #define rTxAGC_B_Nss2Index5_Nss2Index2_Jaguar2 0xe48
  240. #define rTxAGC_B_Nss2Index9_Nss2Index6_Jaguar2 0xe4c
  241. #define rTxAGC_B_Nss3Index3_Nss3Index0_Jaguar2 0xee0
  242. #define rTxAGC_B_Nss3Index7_Nss3Index4_Jaguar2 0xee4
  243. #define rTxAGC_B_Nss3Index9_Nss3Index8_Jaguar2 0xee8
  244. #define rTxAGC_C_CCK11_CCK1_Jaguar2 0x1820
  245. #define rTxAGC_C_Ofdm18_Ofdm6_Jaguar2 0x1824
  246. #define rTxAGC_C_Ofdm54_Ofdm24_Jaguar2 0x1828
  247. #define rTxAGC_C_MCS3_MCS0_Jaguar2 0x182c
  248. #define rTxAGC_C_MCS7_MCS4_Jaguar2 0x1830
  249. #define rTxAGC_C_MCS11_MCS8_Jaguar2 0x1834
  250. #define rTxAGC_C_MCS15_MCS12_Jaguar2 0x1838
  251. #define rTxAGC_C_MCS19_MCS16_Jaguar2 0x18d8
  252. #define rTxAGC_C_MCS23_MCS20_Jaguar2 0x18dc
  253. #define rTxAGC_C_Nss1Index3_Nss1Index0_Jaguar2 0x183c
  254. #define rTxAGC_C_Nss1Index7_Nss1Index4_Jaguar2 0x1840
  255. #define rTxAGC_C_Nss2Index1_Nss1Index8_Jaguar2 0x1844
  256. #define rTxAGC_C_Nss2Index5_Nss2Index2_Jaguar2 0x1848
  257. #define rTxAGC_C_Nss2Index9_Nss2Index6_Jaguar2 0x184c
  258. #define rTxAGC_C_Nss3Index3_Nss3Index0_Jaguar2 0x18e0
  259. #define rTxAGC_C_Nss3Index7_Nss3Index4_Jaguar2 0x18e4
  260. #define rTxAGC_C_Nss3Index9_Nss3Index8_Jaguar2 0x18e8
  261. #define rTxAGC_D_CCK11_CCK1_Jaguar2 0x1a20
  262. #define rTxAGC_D_Ofdm18_Ofdm6_Jaguar2 0x1a24
  263. #define rTxAGC_D_Ofdm54_Ofdm24_Jaguar2 0x1a28
  264. #define rTxAGC_D_MCS3_MCS0_Jaguar2 0x1a2c
  265. #define rTxAGC_D_MCS7_MCS4_Jaguar2 0x1a30
  266. #define rTxAGC_D_MCS11_MCS8_Jaguar2 0x1a34
  267. #define rTxAGC_D_MCS15_MCS12_Jaguar2 0x1a38
  268. #define rTxAGC_D_MCS19_MCS16_Jaguar2 0x1ad8
  269. #define rTxAGC_D_MCS23_MCS20_Jaguar2 0x1adc
  270. #define rTxAGC_D_Nss1Index3_Nss1Index0_Jaguar2 0x1a3c
  271. #define rTxAGC_D_Nss1Index7_Nss1Index4_Jaguar2 0x1a40
  272. #define rTxAGC_D_Nss2Index1_Nss1Index8_Jaguar2 0x1a44
  273. #define rTxAGC_D_Nss2Index5_Nss2Index2_Jaguar2 0x1a48
  274. #define rTxAGC_D_Nss2Index9_Nss2Index6_Jaguar2 0x1a4c
  275. #define rTxAGC_D_Nss3Index3_Nss3Index0_Jaguar2 0x1ae0
  276. #define rTxAGC_D_Nss3Index7_Nss3Index4_Jaguar2 0x1ae4
  277. #define rTxAGC_D_Nss3Index9_Nss3Index8_Jaguar2 0x1ae8
  278. /* IQK YN: temporaily mask this part
  279. * #define rFPGA0_IQK 0xe28
  280. * #define rTx_IQK_Tone_A 0xe30
  281. * #define rRx_IQK_Tone_A 0xe34
  282. * #define rTx_IQK_PI_A 0xe38
  283. * #define rRx_IQK_PI_A 0xe3c */
  284. /* #define rTx_IQK 0xe40 */
  285. /* #define rRx_IQK 0xe44 */
  286. /* #define rIQK_AGC_Pts 0xe48 */
  287. /* #define rIQK_AGC_Rsp 0xe4c */
  288. /* #define rTx_IQK_Tone_B 0xe50 */
  289. /* #define rRx_IQK_Tone_B 0xe54 */
  290. /* #define rTx_IQK_PI_B 0xe58 */
  291. /* #define rRx_IQK_PI_B 0xe5c */
  292. /* #define rIQK_AGC_Cont 0xe60 */
  293. /* AFE-related */
  294. #define rA_AFEPwr1_Jaguar 0xc60 /* dynamic AFE power control */
  295. #define rA_AFEPwr2_Jaguar 0xc64 /* dynamic AFE power control */
  296. #define rA_Rx_WaitCCA_Tx_CCKRFON_Jaguar 0xc68
  297. #define rA_Tx_CCKBBON_OFDMRFON_Jaguar 0xc6c
  298. #define rA_Tx_OFDMBBON_Tx2Rx_Jaguar 0xc70
  299. #define rA_Tx2Tx_RXCCK_Jaguar 0xc74
  300. #define rA_Rx_OFDM_WaitRIFS_Jaguar 0xc78
  301. #define rA_Rx2Rx_BT_Jaguar 0xc7c
  302. #define rA_sleep_nav_Jaguar 0xc80
  303. #define rA_pmpd_Jaguar 0xc84
  304. #define rB_AFEPwr1_Jaguar 0xe60 /* dynamic AFE power control */
  305. #define rB_AFEPwr2_Jaguar 0xe64 /* dynamic AFE power control */
  306. #define rB_Rx_WaitCCA_Tx_CCKRFON_Jaguar 0xe68
  307. #define rB_Tx_CCKBBON_OFDMRFON_Jaguar 0xe6c
  308. #define rB_Tx_OFDMBBON_Tx2Rx_Jaguar 0xe70
  309. #define rB_Tx2Tx_RXCCK_Jaguar 0xe74
  310. #define rB_Rx_OFDM_WaitRIFS_Jaguar 0xe78
  311. #define rB_Rx2Rx_BT_Jaguar 0xe7c
  312. #define rB_sleep_nav_Jaguar 0xe80
  313. #define rB_pmpd_Jaguar 0xe84
  314. /* YN: mask these registers temporaily
  315. * #define rTx_Power_Before_IQK_A 0xe94
  316. * #define rTx_Power_After_IQK_A 0xe9c */
  317. /* #define rRx_Power_Before_IQK_A 0xea0 */
  318. /* #define rRx_Power_Before_IQK_A_2 0xea4 */
  319. /* #define rRx_Power_After_IQK_A 0xea8 */
  320. /* #define rRx_Power_After_IQK_A_2 0xeac */
  321. /* #define rTx_Power_Before_IQK_B 0xeb4 */
  322. /* #define rTx_Power_After_IQK_B 0xebc */
  323. /* #define rRx_Power_Before_IQK_B 0xec0 */
  324. /* #define rRx_Power_Before_IQK_B_2 0xec4 */
  325. /* #define rRx_Power_After_IQK_B 0xec8 */
  326. /* #define rRx_Power_After_IQK_B_2 0xecc */
  327. /* RSSI Dump */
  328. #define rA_RSSIDump_Jaguar 0xBF0
  329. #define rB_RSSIDump_Jaguar 0xBF1
  330. #define rS1_RXevmDump_Jaguar 0xBF4
  331. #define rS2_RXevmDump_Jaguar 0xBF5
  332. #define rA_RXsnrDump_Jaguar 0xBF6
  333. #define rB_RXsnrDump_Jaguar 0xBF7
  334. #define rA_CfoShortDump_Jaguar 0xBF8
  335. #define rB_CfoShortDump_Jaguar 0xBFA
  336. #define rA_CfoLongDump_Jaguar 0xBEC
  337. #define rB_CfoLongDump_Jaguar 0xBEE
  338. /* RF Register
  339. * */
  340. #define RF_AC_Jaguar 0x00 /* */
  341. #define RF_RF_Top_Jaguar 0x07 /* */
  342. #define RF_TXLOK_Jaguar 0x08 /* */
  343. #define RF_TXAPK_Jaguar 0x0B
  344. #define RF_CHNLBW_Jaguar 0x18 /* RF channel and BW switch */
  345. #define RF_RCK1_Jaguar 0x1c /* */
  346. #define RF_RCK2_Jaguar 0x1d
  347. #define RF_RCK3_Jaguar 0x1e
  348. #define RF_ModeTableAddr 0x30
  349. #define RF_ModeTableData0 0x31
  350. #define RF_ModeTableData1 0x32
  351. #define RF_TxLCTank_Jaguar 0x54
  352. #define RF_APK_Jaguar 0x63
  353. #define RF_LCK 0xB4
  354. #define RF_WeLut_Jaguar 0xEF
  355. #define bRF_CHNLBW_MOD_AG_Jaguar 0x70300
  356. #define bRF_CHNLBW_BW 0xc00
  357. /*
  358. * RL6052 Register definition
  359. * */
  360. #define RF_AC 0x00 /* */
  361. #define RF_IPA_A 0x0C /* */
  362. #define RF_TXBIAS_A 0x0D
  363. #define RF_BS_PA_APSET_G9_G11 0x0E
  364. #define RF_MODE1 0x10 /* */
  365. #define RF_MODE2 0x11 /* */
  366. #define RF_CHNLBW 0x18 /* RF channel and BW switch */
  367. #define RF_RCK_OS 0x30 /* RF TX PA control */
  368. #define RF_TXPA_G1 0x31 /* RF TX PA control */
  369. #define RF_TXPA_G2 0x32 /* RF TX PA control */
  370. #define RF_TXPA_G3 0x33 /* RF TX PA control */
  371. #define RF_0x52 0x52
  372. #define RF_WE_LUT 0xEF
  373. /*
  374. * Bit Mask
  375. *
  376. * 1. Page1(0x100) */
  377. #define bBBResetB 0x100 /* Useless now? */
  378. #define bGlobalResetB 0x200
  379. #define bOFDMTxStart 0x4
  380. #define bCCKTxStart 0x8
  381. #define bCRC32Debug 0x100
  382. #define bPMACLoopback 0x10
  383. #define bTxLSIG 0xffffff
  384. #define bOFDMTxRate 0xf
  385. #define bOFDMTxReserved 0x10
  386. #define bOFDMTxLength 0x1ffe0
  387. #define bOFDMTxParity 0x20000
  388. #define bTxHTSIG1 0xffffff
  389. #define bTxHTMCSRate 0x7f
  390. #define bTxHTBW 0x80
  391. #define bTxHTLength 0xffff00
  392. #define bTxHTSIG2 0xffffff
  393. #define bTxHTSmoothing 0x1
  394. #define bTxHTSounding 0x2
  395. #define bTxHTReserved 0x4
  396. #define bTxHTAggreation 0x8
  397. #define bTxHTSTBC 0x30
  398. #define bTxHTAdvanceCoding 0x40
  399. #define bTxHTShortGI 0x80
  400. #define bTxHTNumberHT_LTF 0x300
  401. #define bTxHTCRC8 0x3fc00
  402. #define bCounterReset 0x10000
  403. #define bNumOfOFDMTx 0xffff
  404. #define bNumOfCCKTx 0xffff0000
  405. #define bTxIdleInterval 0xffff
  406. #define bOFDMService 0xffff0000
  407. #define bTxMACHeader 0xffffffff
  408. #define bTxDataInit 0xff
  409. #define bTxHTMode 0x100
  410. #define bTxDataType 0x30000
  411. #define bTxRandomSeed 0xffffffff
  412. #define bCCKTxPreamble 0x1
  413. #define bCCKTxSFD 0xffff0000
  414. #define bCCKTxSIG 0xff
  415. #define bCCKTxService 0xff00
  416. #define bCCKLengthExt 0x8000
  417. #define bCCKTxLength 0xffff0000
  418. #define bCCKTxCRC16 0xffff
  419. #define bCCKTxStatus 0x1
  420. #define bOFDMTxStatus 0x2
  421. /*
  422. * 1. PMAC duplicate register due to connection: RF_Mode, TRxRN, NumOf L-STF
  423. * 1. Page1(0x100)
  424. * */
  425. #define rPMAC_Reset 0x100
  426. #define rPMAC_TxStart 0x104
  427. #define rPMAC_TxLegacySIG 0x108
  428. #define rPMAC_TxHTSIG1 0x10c
  429. #define rPMAC_TxHTSIG2 0x110
  430. #define rPMAC_PHYDebug 0x114
  431. #define rPMAC_TxPacketNum 0x118
  432. #define rPMAC_TxIdle 0x11c
  433. #define rPMAC_TxMACHeader0 0x120
  434. #define rPMAC_TxMACHeader1 0x124
  435. #define rPMAC_TxMACHeader2 0x128
  436. #define rPMAC_TxMACHeader3 0x12c
  437. #define rPMAC_TxMACHeader4 0x130
  438. #define rPMAC_TxMACHeader5 0x134
  439. #define rPMAC_TxDataType 0x138
  440. #define rPMAC_TxRandomSeed 0x13c
  441. #define rPMAC_CCKPLCPPreamble 0x140
  442. #define rPMAC_CCKPLCPHeader 0x144
  443. #define rPMAC_CCKCRC16 0x148
  444. #define rPMAC_OFDMRxCRC32OK 0x170
  445. #define rPMAC_OFDMRxCRC32Er 0x174
  446. #define rPMAC_OFDMRxParityEr 0x178
  447. #define rPMAC_OFDMRxCRC8Er 0x17c
  448. #define rPMAC_CCKCRxRC16Er 0x180
  449. #define rPMAC_CCKCRxRC32Er 0x184
  450. #define rPMAC_CCKCRxRC32OK 0x188
  451. #define rPMAC_TxStatus 0x18c
  452. /*
  453. * 3. Page8(0x800)
  454. * */
  455. #define rFPGA0_RFMOD 0x800 /* RF mode & CCK TxSC */ /* RF BW Setting?? */
  456. #define rFPGA0_TxInfo 0x804 /* Status report?? */
  457. #define rFPGA0_PSDFunction 0x808
  458. #define rFPGA0_TxGainStage 0x80c /* Set TX PWR init gain? */
  459. #define rFPGA0_XA_HSSIParameter1 0x820 /* RF 3 wire register */
  460. #define rFPGA0_XA_HSSIParameter2 0x824
  461. #define rFPGA0_XB_HSSIParameter1 0x828
  462. #define rFPGA0_XB_HSSIParameter2 0x82c
  463. #define rFPGA0_XA_LSSIParameter 0x840
  464. #define rFPGA0_XB_LSSIParameter 0x844
  465. #define rFPGA0_XAB_SwitchControl 0x858 /* RF Channel switch */
  466. #define rFPGA0_XCD_SwitchControl 0x85c
  467. #define rFPGA0_XAB_RFParameter 0x878 /* RF Parameter */
  468. #define rFPGA0_XCD_RFParameter 0x87c
  469. #define rFPGA0_AnalogParameter1 0x880 /* Crystal cap setting RF-R/W protection for parameter4?? */
  470. #define rFPGA0_AnalogParameter2 0x884
  471. #define rFPGA0_AnalogParameter3 0x888
  472. #define rFPGA0_AdDaClockEn 0x888 /* enable ad/da clock1 for dual-phy */
  473. #define rFPGA0_AnalogParameter4 0x88c
  474. #define rFPGA0_XA_LSSIReadBack 0x8a0 /* Tranceiver LSSI Readback */
  475. #define rFPGA0_XB_LSSIReadBack 0x8a4
  476. #define rFPGA0_XC_LSSIReadBack 0x8a8
  477. #define rFPGA0_XD_LSSIReadBack 0x8ac
  478. #define rFPGA0_XCD_RFPara 0x8b4
  479. #define rFPGA0_PSDReport 0x8b4 /* Useless now */
  480. #define TransceiverA_HSPI_Readback 0x8b8 /* Transceiver A HSPI Readback */
  481. #define TransceiverB_HSPI_Readback 0x8bc /* Transceiver B HSPI Readback */
  482. #define rFPGA0_XAB_RFInterfaceRB 0x8e0 /* Useless now */ /* RF Interface Readback Value */
  483. #define rFPGA0_XCD_RFInterfaceRB 0x8e4 /* Useless now */
  484. /*
  485. * 4. Page9(0x900)
  486. * */
  487. #define rFPGA1_RFMOD 0x900 /* RF mode & OFDM TxSC */ /* RF BW Setting?? */
  488. #define REG_BB_TX_PATH_SEL_1_8814A 0x93c
  489. #define REG_BB_TX_PATH_SEL_2_8814A 0x940
  490. #define rFPGA1_TxBlock 0x904 /* Useless now */
  491. #define rFPGA1_DebugSelect 0x908 /* Useless now */
  492. #define rFPGA1_TxInfo 0x90c /* Useless now */ /* Status report?? */
  493. /*Page 19 for TxBF*/
  494. #define REG_BB_TXBF_ANT_SET_BF1_8814A 0x19ac
  495. #define REG_BB_TXBF_ANT_SET_BF0_8814A 0x19b4
  496. /*
  497. * PageA(0xA00)
  498. * */
  499. #define rCCK0_System 0xa00
  500. #define rCCK0_AFESetting 0xa04 /* Disable init gain now */ /* Select RX path by RSSI */
  501. #define rCCK0_DSPParameter2 0xa1c /* SQ threshold */
  502. #define rCCK0_TxFilter1 0xa20
  503. #define rCCK0_TxFilter2 0xa24
  504. #define rCCK0_DebugPort 0xa28 /* debug port and Tx filter3 */
  505. #define rCCK0_FalseAlarmReport 0xa2c /* 0xa2d useless now 0xa30-a4f channel report */
  506. /*
  507. * PageB(0xB00)
  508. * */
  509. #define rPdp_AntA 0xb00
  510. #define rPdp_AntA_4 0xb04
  511. #define rConfig_Pmpd_AntA 0xb28
  512. #define rConfig_AntA 0xb68
  513. #define rConfig_AntB 0xb6c
  514. #define rPdp_AntB 0xb70
  515. #define rPdp_AntB_4 0xb74
  516. #define rConfig_Pmpd_AntB 0xb98
  517. #define rAPK 0xbd8
  518. /*
  519. * 6. PageC(0xC00)
  520. * */
  521. #define rOFDM0_LSTF 0xc00
  522. #define rOFDM0_TRxPathEnable 0xc04
  523. #define rOFDM0_TRMuxPar 0xc08
  524. #define rOFDM0_TRSWIsolation 0xc0c
  525. #define rOFDM0_XARxAFE 0xc10 /* RxIQ DC offset, Rx digital filter, DC notch filter */
  526. #define rOFDM0_XARxIQImbalance 0xc14 /* RxIQ imblance matrix */
  527. #define rOFDM0_XBRxAFE 0xc18
  528. #define rOFDM0_XBRxIQImbalance 0xc1c
  529. #define rOFDM0_XCRxAFE 0xc20
  530. #define rOFDM0_XCRxIQImbalance 0xc24
  531. #define rOFDM0_XDRxAFE 0xc28
  532. #define rOFDM0_XDRxIQImbalance 0xc2c
  533. #define rOFDM0_RxDetector1 0xc30 /* PD, BW & SBD */ /* DM tune init gain */
  534. #define rOFDM0_RxDetector2 0xc34 /* SBD & Fame Sync. */
  535. #define rOFDM0_RxDetector3 0xc38 /* Frame Sync. */
  536. #define rOFDM0_RxDetector4 0xc3c /* PD, SBD, Frame Sync & Short-GI */
  537. #define rOFDM0_RxDSP 0xc40 /* Rx Sync Path */
  538. #define rOFDM0_CFOandDAGC 0xc44 /* CFO & DAGC */
  539. #define rOFDM0_CCADropThreshold 0xc48 /* CCA Drop threshold */
  540. #define rOFDM0_ECCAThreshold 0xc4c /* energy CCA */
  541. #define rOFDM0_XAAGCCore1 0xc50 /* DIG */
  542. #define rOFDM0_XAAGCCore2 0xc54
  543. #define rOFDM0_XBAGCCore1 0xc58
  544. #define rOFDM0_XBAGCCore2 0xc5c
  545. #define rOFDM0_XCAGCCore1 0xc60
  546. #define rOFDM0_XCAGCCore2 0xc64
  547. #define rOFDM0_XDAGCCore1 0xc68
  548. #define rOFDM0_XDAGCCore2 0xc6c
  549. #define rOFDM0_AGCParameter1 0xc70
  550. #define rOFDM0_AGCParameter2 0xc74
  551. #define rOFDM0_AGCRSSITable 0xc78
  552. #define rOFDM0_HTSTFAGC 0xc7c
  553. #define rOFDM0_XATxIQImbalance 0xc80 /* TX PWR TRACK and DIG */
  554. #define rOFDM0_XATxAFE 0xc84
  555. #define rOFDM0_XBTxIQImbalance 0xc88
  556. #define rOFDM0_XBTxAFE 0xc8c
  557. #define rOFDM0_XCTxIQImbalance 0xc90
  558. #define rOFDM0_XCTxAFE 0xc94
  559. #define rOFDM0_XDTxIQImbalance 0xc98
  560. #define rOFDM0_XDTxAFE 0xc9c
  561. #define rOFDM0_RxIQExtAnta 0xca0
  562. #define rOFDM0_TxCoeff1 0xca4
  563. #define rOFDM0_TxCoeff2 0xca8
  564. #define rOFDM0_TxCoeff3 0xcac
  565. #define rOFDM0_TxCoeff4 0xcb0
  566. #define rOFDM0_TxCoeff5 0xcb4
  567. #define rOFDM0_TxCoeff6 0xcb8
  568. #define rOFDM0_RxHPParameter 0xce0
  569. #define rOFDM0_TxPseudoNoiseWgt 0xce4
  570. #define rOFDM0_FrameSync 0xcf0
  571. #define rOFDM0_DFSReport 0xcf4
  572. /*
  573. * 7. PageD(0xD00)
  574. * */
  575. #define rOFDM1_LSTF 0xd00
  576. #define rOFDM1_TRxPathEnable 0xd04
  577. /*
  578. * 8. PageE(0xE00)
  579. * */
  580. #define rTxAGC_A_Rate18_06 0xe00
  581. #define rTxAGC_A_Rate54_24 0xe04
  582. #define rTxAGC_A_CCK1_Mcs32 0xe08
  583. #define rTxAGC_A_Mcs03_Mcs00 0xe10
  584. #define rTxAGC_A_Mcs07_Mcs04 0xe14
  585. #define rTxAGC_A_Mcs11_Mcs08 0xe18
  586. #define rTxAGC_A_Mcs15_Mcs12 0xe1c
  587. #define rTxAGC_B_Rate18_06 0x830
  588. #define rTxAGC_B_Rate54_24 0x834
  589. #define rTxAGC_B_CCK1_55_Mcs32 0x838
  590. #define rTxAGC_B_Mcs03_Mcs00 0x83c
  591. #define rTxAGC_B_Mcs07_Mcs04 0x848
  592. #define rTxAGC_B_Mcs11_Mcs08 0x84c
  593. #define rTxAGC_B_Mcs15_Mcs12 0x868
  594. #define rTxAGC_B_CCK11_A_CCK2_11 0x86c
  595. #define rFPGA0_IQK 0xe28
  596. #define rTx_IQK_Tone_A 0xe30
  597. #define rRx_IQK_Tone_A 0xe34
  598. #define rTx_IQK_PI_A 0xe38
  599. #define rRx_IQK_PI_A 0xe3c
  600. #define rTx_IQK 0xe40
  601. #define rRx_IQK 0xe44
  602. #define rIQK_AGC_Pts 0xe48
  603. #define rIQK_AGC_Rsp 0xe4c
  604. #define rTx_IQK_Tone_B 0xe50
  605. #define rRx_IQK_Tone_B 0xe54
  606. #define rTx_IQK_PI_B 0xe58
  607. #define rRx_IQK_PI_B 0xe5c
  608. #define rIQK_AGC_Cont 0xe60
  609. #define rBlue_Tooth 0xe6c
  610. #define rRx_Wait_CCA 0xe70
  611. #define rTx_CCK_RFON 0xe74
  612. #define rTx_CCK_BBON 0xe78
  613. #define rTx_OFDM_RFON 0xe7c
  614. #define rTx_OFDM_BBON 0xe80
  615. #define rTx_To_Rx 0xe84
  616. #define rTx_To_Tx 0xe88
  617. #define rRx_CCK 0xe8c
  618. #define rTx_Power_Before_IQK_A 0xe94
  619. #define rTx_Power_After_IQK_A 0xe9c
  620. #define rRx_Power_Before_IQK_A 0xea0
  621. #define rRx_Power_Before_IQK_A_2 0xea4
  622. #define rRx_Power_After_IQK_A 0xea8
  623. #define rRx_Power_After_IQK_A_2 0xeac
  624. #define rTx_Power_Before_IQK_B 0xeb4
  625. #define rTx_Power_After_IQK_B 0xebc
  626. #define rRx_Power_Before_IQK_B 0xec0
  627. #define rRx_Power_Before_IQK_B_2 0xec4
  628. #define rRx_Power_After_IQK_B 0xec8
  629. #define rRx_Power_After_IQK_B_2 0xecc
  630. #define rRx_OFDM 0xed0
  631. #define rRx_Wait_RIFS 0xed4
  632. #define rRx_TO_Rx 0xed8
  633. #define rStandby 0xedc
  634. #define rSleep 0xee0
  635. #define rPMPD_ANAEN 0xeec
  636. /* 2. Page8(0x800) */
  637. #define bRFMOD 0x1 /* Reg 0x800 rFPGA0_RFMOD */
  638. #define bJapanMode 0x2
  639. #define bCCKTxSC 0x30
  640. #define bCCKEn 0x1000000
  641. #define bOFDMEn 0x2000000
  642. #define bXBTxAGC 0xf00 /* Reg 80c rFPGA0_TxGainStage */
  643. #define bXCTxAGC 0xf000
  644. #define bXDTxAGC 0xf0000
  645. /* 4. PageA(0xA00) */
  646. #define bCCKBBMode 0x3 /* Useless */
  647. #define bCCKTxPowerSaving 0x80
  648. #define bCCKRxPowerSaving 0x40
  649. #define bCCKSideBand 0x10 /* Reg 0xa00 rCCK0_System 20/40 switch */
  650. #define bCCKScramble 0x8 /* Useless */
  651. #define bCCKAntDiversity 0x8000
  652. #define bCCKCarrierRecovery 0x4000
  653. #define bCCKTxRate 0x3000
  654. #define bCCKDCCancel 0x0800
  655. #define bCCKISICancel 0x0400
  656. #define bCCKMatchFilter 0x0200
  657. #define bCCKEqualizer 0x0100
  658. #define bCCKPreambleDetect 0x800000
  659. #define bCCKFastFalseCCA 0x400000
  660. #define bCCKChEstStart 0x300000
  661. #define bCCKCCACount 0x080000
  662. #define bCCKcs_lim 0x070000
  663. #define bCCKBistMode 0x80000000
  664. #define bCCKCCAMask 0x40000000
  665. #define bCCKTxDACPhase 0x4
  666. #define bCCKRxADCPhase 0x20000000 /* r_rx_clk */
  667. #define bCCKr_cp_mode0 0x0100
  668. #define bCCKTxDCOffset 0xf0
  669. #define bCCKRxDCOffset 0xf
  670. #define bCCKCCAMode 0xc000
  671. #define bCCKFalseCS_lim 0x3f00
  672. #define bCCKCS_ratio 0xc00000
  673. #define bCCKCorgBit_sel 0x300000
  674. #define bCCKPD_lim 0x0f0000
  675. #define bCCKNewCCA 0x80000000
  676. #define bCCKRxHPofIG 0x8000
  677. #define bCCKRxIG 0x7f00
  678. #define bCCKLNAPolarity 0x800000
  679. #define bCCKRx1stGain 0x7f0000
  680. #define bCCKRFExtend 0x20000000 /* CCK Rx Iinital gain polarity */
  681. #define bCCKRxAGCSatLevel 0x1f000000
  682. #define bCCKRxAGCSatCount 0xe0
  683. #define bCCKRxRFSettle 0x1f /* AGCsamp_dly */
  684. #define bCCKFixedRxAGC 0x8000
  685. /* #define bCCKRxAGCFormat 0x4000 */ /* remove to HSSI register 0x824 */
  686. #define bCCKAntennaPolarity 0x2000
  687. #define bCCKTxFilterType 0x0c00
  688. #define bCCKRxAGCReportType 0x0300
  689. #define bCCKRxDAGCEn 0x80000000
  690. #define bCCKRxDAGCPeriod 0x20000000
  691. #define bCCKRxDAGCSatLevel 0x1f000000
  692. #define bCCKTimingRecovery 0x800000
  693. #define bCCKTxC0 0x3f0000
  694. #define bCCKTxC1 0x3f000000
  695. #define bCCKTxC2 0x3f
  696. #define bCCKTxC3 0x3f00
  697. #define bCCKTxC4 0x3f0000
  698. #define bCCKTxC5 0x3f000000
  699. #define bCCKTxC6 0x3f
  700. #define bCCKTxC7 0x3f00
  701. #define bCCKDebugPort 0xff0000
  702. #define bCCKDACDebug 0x0f000000
  703. #define bCCKFalseAlarmEnable 0x8000
  704. #define bCCKFalseAlarmRead 0x4000
  705. #define bCCKTRSSI 0x7f
  706. #define bCCKRxAGCReport 0xfe
  707. #define bCCKRxReport_AntSel 0x80000000
  708. #define bCCKRxReport_MFOff 0x40000000
  709. #define bCCKRxRxReport_SQLoss 0x20000000
  710. #define bCCKRxReport_Pktloss 0x10000000
  711. #define bCCKRxReport_Lockedbit 0x08000000
  712. #define bCCKRxReport_RateError 0x04000000
  713. #define bCCKRxReport_RxRate 0x03000000
  714. #define bCCKRxFACounterLower 0xff
  715. #define bCCKRxFACounterUpper 0xff000000
  716. #define bCCKRxHPAGCStart 0xe000
  717. #define bCCKRxHPAGCFinal 0x1c00
  718. #define bCCKRxFalseAlarmEnable 0x8000
  719. #define bCCKFACounterFreeze 0x4000
  720. #define bCCKTxPathSel 0x10000000
  721. #define bCCKDefaultRxPath 0xc000000
  722. #define bCCKOptionRxPath 0x3000000
  723. #define RF_T_METER_88E 0x42
  724. /* 6. PageE(0xE00) */
  725. #define bSTBCEn 0x4 /* Useless */
  726. #define bAntennaMapping 0x10
  727. #define bNss 0x20
  728. #define bCFOAntSumD 0x200
  729. #define bPHYCounterReset 0x8000000
  730. #define bCFOReportGet 0x4000000
  731. #define bOFDMContinueTx 0x10000000
  732. #define bOFDMSingleCarrier 0x20000000
  733. #define bOFDMSingleTone 0x40000000
  734. /*
  735. * Other Definition
  736. * */
  737. #define bEnable 0x1 /* Useless */
  738. #define bDisable 0x0
  739. /* byte endable for srwrite */
  740. #define bByte0 0x1 /* Useless */
  741. #define bByte1 0x2
  742. #define bByte2 0x4
  743. #define bByte3 0x8
  744. #define bWord0 0x3
  745. #define bWord1 0xc
  746. #define bDWord 0xf
  747. /* for PutRegsetting & GetRegSetting BitMask */
  748. #define bMaskByte0 0xff /* Reg 0xc50 rOFDM0_XAAGCCore~0xC6f */
  749. #define bMaskByte1 0xff00
  750. #define bMaskByte2 0xff0000
  751. #define bMaskByte3 0xff000000
  752. #define bMaskHWord 0xffff0000
  753. #define bMaskLWord 0x0000ffff
  754. #define bMaskDWord 0xffffffff
  755. #define bMaskH3Bytes 0xffffff00
  756. #define bMask12Bits 0xfff
  757. #define bMaskH4Bits 0xf0000000
  758. #define bMaskOFDM_D 0xffc00000
  759. #define bMaskCCK 0x3f3f3f3f
  760. #define bMask7bits 0x7f
  761. #define bMaskByte2HighNibble 0x00f00000
  762. #define bMaskByte3LowNibble 0x0f000000
  763. #define bMaskL3Bytes 0x00ffffff
  764. /*--------------------------Define Parameters-------------------------------*/
  765. #endif