nxt6000_priv.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Public Include File for DRV6000 users
  4. * (ie. NxtWave Communications - NXT6000 demodulator driver)
  5. *
  6. * Copyright (C) 2001 NxtWave Communications, Inc.
  7. *
  8. */
  9. /* Nxt6000 Register Addresses and Bit Masks */
  10. /* Maximum Register Number */
  11. #define MAXNXT6000REG (0x9A)
  12. /* 0x1B A_VIT_BER_0 aka 0x3A */
  13. #define A_VIT_BER_0 (0x1B)
  14. /* 0x1D A_VIT_BER_TIMER_0 aka 0x38 */
  15. #define A_VIT_BER_TIMER_0 (0x1D)
  16. /* 0x21 RS_COR_STAT */
  17. #define RS_COR_STAT (0x21)
  18. #define RSCORESTATUS (0x03)
  19. /* 0x22 RS_COR_INTEN */
  20. #define RS_COR_INTEN (0x22)
  21. /* 0x23 RS_COR_INSTAT */
  22. #define RS_COR_INSTAT (0x23)
  23. #define INSTAT_ERROR (0x04)
  24. #define LOCK_LOSS_BITS (0x03)
  25. /* 0x24 RS_COR_SYNC_PARAM */
  26. #define RS_COR_SYNC_PARAM (0x24)
  27. #define SYNC_PARAM (0x03)
  28. /* 0x25 BER_CTRL */
  29. #define BER_CTRL (0x25)
  30. #define BER_ENABLE (0x02)
  31. #define BER_RESET (0x01)
  32. /* 0x26 BER_PAY */
  33. #define BER_PAY (0x26)
  34. /* 0x27 BER_PKT_L */
  35. #define BER_PKT_L (0x27)
  36. #define BER_PKTOVERFLOW (0x80)
  37. /* 0x30 VIT_COR_CTL */
  38. #define VIT_COR_CTL (0x30)
  39. #define BER_CONTROL (0x02)
  40. #define VIT_COR_MASK (0x82)
  41. #define VIT_COR_RESYNC (0x80)
  42. /* 0x32 VIT_SYNC_STATUS */
  43. #define VIT_SYNC_STATUS (0x32)
  44. #define VITINSYNC (0x80)
  45. /* 0x33 VIT_COR_INTEN */
  46. #define VIT_COR_INTEN (0x33)
  47. #define GLOBAL_ENABLE (0x80)
  48. /* 0x34 VIT_COR_INTSTAT */
  49. #define VIT_COR_INTSTAT (0x34)
  50. #define BER_DONE (0x08)
  51. #define BER_OVERFLOW (0x10)
  52. /* 0x38 VIT_BERTIME_2 */
  53. #define VIT_BERTIME_2 (0x38)
  54. /* 0x39 VIT_BERTIME_1 */
  55. #define VIT_BERTIME_1 (0x39)
  56. /* 0x3A VIT_BERTIME_0 */
  57. #define VIT_BERTIME_0 (0x3a)
  58. /* 0x38 OFDM_BERTimer *//* Use the alias registers */
  59. #define A_VIT_BER_TIMER_0 (0x1D)
  60. /* 0x3A VIT_BER_TIMER_0 *//* Use the alias registers */
  61. #define A_VIT_BER_0 (0x1B)
  62. /* 0x3B VIT_BER_1 */
  63. #define VIT_BER_1 (0x3b)
  64. /* 0x3C VIT_BER_0 */
  65. #define VIT_BER_0 (0x3c)
  66. /* 0x40 OFDM_COR_CTL */
  67. #define OFDM_COR_CTL (0x40)
  68. #define COREACT (0x20)
  69. #define HOLDSM (0x10)
  70. #define WAIT_AGC (0x02)
  71. #define WAIT_SYR (0x03)
  72. /* 0x41 OFDM_COR_STAT */
  73. #define OFDM_COR_STAT (0x41)
  74. #define COR_STATUS (0x0F)
  75. #define MONITOR_TPS (0x06)
  76. #define TPSLOCKED (0x40)
  77. #define AGCLOCKED (0x10)
  78. /* 0x42 OFDM_COR_INTEN */
  79. #define OFDM_COR_INTEN (0x42)
  80. #define TPSRCVBAD (0x04)
  81. #define TPSRCVCHANGED (0x02)
  82. #define TPSRCVUPDATE (0x01)
  83. /* 0x43 OFDM_COR_INSTAT */
  84. #define OFDM_COR_INSTAT (0x43)
  85. /* 0x44 OFDM_COR_MODEGUARD */
  86. #define OFDM_COR_MODEGUARD (0x44)
  87. #define FORCEMODE (0x08)
  88. #define FORCEMODE8K (0x04)
  89. /* 0x45 OFDM_AGC_CTL */
  90. #define OFDM_AGC_CTL (0x45)
  91. #define INITIAL_AGC_BW (0x08)
  92. #define AGCNEG (0x02)
  93. #define AGCLAST (0x10)
  94. /* 0x48 OFDM_AGC_TARGET */
  95. #define OFDM_AGC_TARGET (0x48)
  96. #define OFDM_AGC_TARGET_DEFAULT (0x28)
  97. #define OFDM_AGC_TARGET_IMPULSE (0x38)
  98. /* 0x49 OFDM_AGC_GAIN_1 */
  99. #define OFDM_AGC_GAIN_1 (0x49)
  100. /* 0x4B OFDM_ITB_CTL */
  101. #define OFDM_ITB_CTL (0x4B)
  102. #define ITBINV (0x01)
  103. /* 0x49 AGC_GAIN_1 */
  104. #define AGC_GAIN_1 (0x49)
  105. /* 0x4A AGC_GAIN_2 */
  106. #define AGC_GAIN_2 (0x4A)
  107. /* 0x4C OFDM_ITB_FREQ_1 */
  108. #define OFDM_ITB_FREQ_1 (0x4C)
  109. /* 0x4D OFDM_ITB_FREQ_2 */
  110. #define OFDM_ITB_FREQ_2 (0x4D)
  111. /* 0x4E OFDM_CAS_CTL */
  112. #define OFDM_CAS_CTL (0x4E)
  113. #define ACSDIS (0x40)
  114. #define CCSEN (0x80)
  115. /* 0x4F CAS_FREQ */
  116. #define CAS_FREQ (0x4F)
  117. /* 0x51 OFDM_SYR_CTL */
  118. #define OFDM_SYR_CTL (0x51)
  119. #define SIXTH_ENABLE (0x80)
  120. #define SYR_TRACKING_DISABLE (0x01)
  121. /* 0x52 OFDM_SYR_STAT */
  122. #define OFDM_SYR_STAT (0x52)
  123. #define GI14_2K_SYR_LOCK (0x13)
  124. #define GI14_8K_SYR_LOCK (0x17)
  125. #define GI14_SYR_LOCK (0x10)
  126. /* 0x55 OFDM_SYR_OFFSET_1 */
  127. #define OFDM_SYR_OFFSET_1 (0x55)
  128. /* 0x56 OFDM_SYR_OFFSET_2 */
  129. #define OFDM_SYR_OFFSET_2 (0x56)
  130. /* 0x58 OFDM_SCR_CTL */
  131. #define OFDM_SCR_CTL (0x58)
  132. #define SYR_ADJ_DECAY_MASK (0x70)
  133. #define SYR_ADJ_DECAY (0x30)
  134. /* 0x59 OFDM_PPM_CTL_1 */
  135. #define OFDM_PPM_CTL_1 (0x59)
  136. #define PPMMAX_MASK (0x30)
  137. #define PPM256 (0x30)
  138. /* 0x5B OFDM_TRL_NOMINALRATE_1 */
  139. #define OFDM_TRL_NOMINALRATE_1 (0x5B)
  140. /* 0x5C OFDM_TRL_NOMINALRATE_2 */
  141. #define OFDM_TRL_NOMINALRATE_2 (0x5C)
  142. /* 0x5D OFDM_TRL_TIME_1 */
  143. #define OFDM_TRL_TIME_1 (0x5D)
  144. /* 0x60 OFDM_CRL_FREQ_1 */
  145. #define OFDM_CRL_FREQ_1 (0x60)
  146. /* 0x63 OFDM_CHC_CTL_1 */
  147. #define OFDM_CHC_CTL_1 (0x63)
  148. #define MANMEAN1 (0xF0);
  149. #define CHCFIR (0x01)
  150. /* 0x64 OFDM_CHC_SNR */
  151. #define OFDM_CHC_SNR (0x64)
  152. /* 0x65 OFDM_BDI_CTL */
  153. #define OFDM_BDI_CTL (0x65)
  154. #define LP_SELECT (0x02)
  155. /* 0x67 OFDM_TPS_RCVD_1 */
  156. #define OFDM_TPS_RCVD_1 (0x67)
  157. #define TPSFRAME (0x03)
  158. /* 0x68 OFDM_TPS_RCVD_2 */
  159. #define OFDM_TPS_RCVD_2 (0x68)
  160. /* 0x69 OFDM_TPS_RCVD_3 */
  161. #define OFDM_TPS_RCVD_3 (0x69)
  162. /* 0x6A OFDM_TPS_RCVD_4 */
  163. #define OFDM_TPS_RCVD_4 (0x6A)
  164. /* 0x6B OFDM_TPS_RESERVED_1 */
  165. #define OFDM_TPS_RESERVED_1 (0x6B)
  166. /* 0x6C OFDM_TPS_RESERVED_2 */
  167. #define OFDM_TPS_RESERVED_2 (0x6C)
  168. /* 0x73 OFDM_MSC_REV */
  169. #define OFDM_MSC_REV (0x73)
  170. /* 0x76 OFDM_SNR_CARRIER_2 */
  171. #define OFDM_SNR_CARRIER_2 (0x76)
  172. #define MEAN_MASK (0x80)
  173. #define MEANBIT (0x80)
  174. /* 0x80 ANALOG_CONTROL_0 */
  175. #define ANALOG_CONTROL_0 (0x80)
  176. #define POWER_DOWN_ADC (0x40)
  177. /* 0x81 ENABLE_TUNER_IIC */
  178. #define ENABLE_TUNER_IIC (0x81)
  179. #define ENABLE_TUNER_BIT (0x01)
  180. /* 0x82 EN_DMD_RACQ */
  181. #define EN_DMD_RACQ (0x82)
  182. #define EN_DMD_RACQ_REG_VAL (0x81)
  183. #define EN_DMD_RACQ_REG_VAL_14 (0x01)
  184. /* 0x84 SNR_COMMAND */
  185. #define SNR_COMMAND (0x84)
  186. #define SNRStat (0x80)
  187. /* 0x85 SNRCARRIERNUMBER_LSB */
  188. #define SNRCARRIERNUMBER_LSB (0x85)
  189. /* 0x87 SNRMINTHRESHOLD_LSB */
  190. #define SNRMINTHRESHOLD_LSB (0x87)
  191. /* 0x89 SNR_PER_CARRIER_LSB */
  192. #define SNR_PER_CARRIER_LSB (0x89)
  193. /* 0x8B SNRBELOWTHRESHOLD_LSB */
  194. #define SNRBELOWTHRESHOLD_LSB (0x8B)
  195. /* 0x91 RF_AGC_VAL_1 */
  196. #define RF_AGC_VAL_1 (0x91)
  197. /* 0x92 RF_AGC_STATUS */
  198. #define RF_AGC_STATUS (0x92)
  199. /* 0x98 DIAG_CONFIG */
  200. #define DIAG_CONFIG (0x98)
  201. #define DIAG_MASK (0x70)
  202. #define TB_SET (0x10)
  203. #define TRAN_SELECT (0x07)
  204. #define SERIAL_SELECT (0x01)
  205. /* 0x99 SUB_DIAG_MODE_SEL */
  206. #define SUB_DIAG_MODE_SEL (0x99)
  207. #define CLKINVERSION (0x01)
  208. /* 0x9A TS_FORMAT */
  209. #define TS_FORMAT (0x9A)
  210. #define ERROR_SENSE (0x08)
  211. #define VALID_SENSE (0x04)
  212. #define SYNC_SENSE (0x02)
  213. #define GATED_CLOCK (0x01)
  214. #define NXT6000ASICDEVICE (0x0b)