Hal8814PhyReg.h 30 KB

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