stb0899_reg.h 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028
  1. /*
  2. STB0899 Multistandard Frontend driver
  3. Copyright (C) Manu Abraham (abraham.manu@gmail.com)
  4. Copyright (C) ST Microelectronics
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. #ifndef __STB0899_REG_H
  18. #define __STB0899_REG_H
  19. /* S1 */
  20. #define STB0899_DEV_ID 0xf000
  21. #define STB0899_CHIP_ID (0x0f << 4)
  22. #define STB0899_OFFST_CHIP_ID 4
  23. #define STB0899_WIDTH_CHIP_ID 4
  24. #define STB0899_CHIP_REL (0x0f << 0)
  25. #define STB0899_OFFST_CHIP_REL 0
  26. #define STB0899_WIDTH_CHIP_REL 4
  27. #define STB0899_DEMOD 0xf40e
  28. #define STB0899_MODECOEFF (0x01 << 0)
  29. #define STB0899_OFFST_MODECOEFF 0
  30. #define STB0899_WIDTH_MODECOEFF 1
  31. #define STB0899_RCOMPC 0xf410
  32. #define STB0899_AGC1CN 0xf412
  33. #define STB0899_AGC1REF 0xf413
  34. #define STB0899_RTC 0xf417
  35. #define STB0899_TMGCFG 0xf418
  36. #define STB0899_AGC2REF 0xf419
  37. #define STB0899_TLSR 0xf41a
  38. #define STB0899_CFD 0xf41b
  39. #define STB0899_CFD_ON (0x01 << 7)
  40. #define STB0899_OFFST_CFD_ON 7
  41. #define STB0899_WIDTH_CFD_ON 1
  42. #define STB0899_ACLC 0xf41c
  43. #define STB0899_BCLC 0xf41d
  44. #define STB0899_OFFST_ALGO 6
  45. #define STB0899_WIDTH_ALGO_QPSK2 2
  46. #define STB0899_ALGO_QPSK2 (2 << 6)
  47. #define STB0899_ALGO_QPSK1 (1 << 6)
  48. #define STB0899_ALGO_BPSK (0 << 6)
  49. #define STB0899_OFFST_BETA 0
  50. #define STB0899_WIDTH_BETA 6
  51. #define STB0899_EQON 0xf41e
  52. #define STB0899_LDT 0xf41f
  53. #define STB0899_LDT2 0xf420
  54. #define STB0899_EQUALREF 0xf425
  55. #define STB0899_TMGRAMP 0xf426
  56. #define STB0899_TMGTHD 0xf427
  57. #define STB0899_IDCCOMP 0xf428
  58. #define STB0899_QDCCOMP 0xf429
  59. #define STB0899_POWERI 0xf42a
  60. #define STB0899_POWERQ 0xf42b
  61. #define STB0899_RCOMP 0xf42c
  62. #define STB0899_AGCIQIN 0xf42e
  63. #define STB0899_AGCIQVALUE (0xff << 0)
  64. #define STB0899_OFFST_AGCIQVALUE 0
  65. #define STB0899_WIDTH_AGCIQVALUE 8
  66. #define STB0899_AGC2I1 0xf436
  67. #define STB0899_AGC2I2 0xf437
  68. #define STB0899_TLIR 0xf438
  69. #define STB0899_TLIR_TMG_LOCK_IND (0xff << 0)
  70. #define STB0899_OFFST_TLIR_TMG_LOCK_IND 0
  71. #define STB0899_WIDTH_TLIR_TMG_LOCK_IND 8
  72. #define STB0899_RTF 0xf439
  73. #define STB0899_RTF_TIMING_LOOP_FREQ (0xff << 0)
  74. #define STB0899_OFFST_RTF_TIMING_LOOP_FREQ 0
  75. #define STB0899_WIDTH_RTF_TIMING_LOOP_FREQ 8
  76. #define STB0899_DSTATUS 0xf43a
  77. #define STB0899_CARRIER_FOUND (0x01 << 7)
  78. #define STB0899_OFFST_CARRIER_FOUND 7
  79. #define STB0899_WIDTH_CARRIER_FOUND 1
  80. #define STB0899_TMG_LOCK (0x01 << 6)
  81. #define STB0899_OFFST_TMG_LOCK 6
  82. #define STB0899_WIDTH_TMG_LOCK 1
  83. #define STB0899_DEMOD_LOCK (0x01 << 5)
  84. #define STB0899_OFFST_DEMOD_LOCK 5
  85. #define STB0899_WIDTH_DEMOD_LOCK 1
  86. #define STB0899_TMG_AUTO (0x01 << 4)
  87. #define STB0899_OFFST_TMG_AUTO 4
  88. #define STB0899_WIDTH_TMG_AUTO 1
  89. #define STB0899_END_MAIN (0x01 << 3)
  90. #define STB0899_OFFST_END_MAIN 3
  91. #define STB0899_WIDTH_END_MAIN 1
  92. #define STB0899_LDI 0xf43b
  93. #define STB0899_OFFST_LDI 0
  94. #define STB0899_WIDTH_LDI 8
  95. #define STB0899_CFRM 0xf43e
  96. #define STB0899_OFFST_CFRM 0
  97. #define STB0899_WIDTH_CFRM 8
  98. #define STB0899_CFRL 0xf43f
  99. #define STB0899_OFFST_CFRL 0
  100. #define STB0899_WIDTH_CFRL 8
  101. #define STB0899_NIRM 0xf440
  102. #define STB0899_OFFST_NIRM 0
  103. #define STB0899_WIDTH_NIRM 8
  104. #define STB0899_NIRL 0xf441
  105. #define STB0899_OFFST_NIRL 0
  106. #define STB0899_WIDTH_NIRL 8
  107. #define STB0899_ISYMB 0xf444
  108. #define STB0899_QSYMB 0xf445
  109. #define STB0899_SFRH 0xf446
  110. #define STB0899_OFFST_SFRH 0
  111. #define STB0899_WIDTH_SFRH 8
  112. #define STB0899_SFRM 0xf447
  113. #define STB0899_OFFST_SFRM 0
  114. #define STB0899_WIDTH_SFRM 8
  115. #define STB0899_SFRL 0xf448
  116. #define STB0899_OFFST_SFRL 4
  117. #define STB0899_WIDTH_SFRL 4
  118. #define STB0899_SFRUPH 0xf44c
  119. #define STB0899_SFRUPM 0xf44d
  120. #define STB0899_SFRUPL 0xf44e
  121. #define STB0899_EQUAI1 0xf4e0
  122. #define STB0899_EQUAQ1 0xf4e1
  123. #define STB0899_EQUAI2 0xf4e2
  124. #define STB0899_EQUAQ2 0xf4e3
  125. #define STB0899_EQUAI3 0xf4e4
  126. #define STB0899_EQUAQ3 0xf4e5
  127. #define STB0899_EQUAI4 0xf4e6
  128. #define STB0899_EQUAQ4 0xf4e7
  129. #define STB0899_EQUAI5 0xf4e8
  130. #define STB0899_EQUAQ5 0xf4e9
  131. #define STB0899_DSTATUS2 0xf50c
  132. #define STB0899_DS2_TMG_AUTOSRCH (0x01 << 7)
  133. #define STB8999_OFFST_DS2_TMG_AUTOSRCH 7
  134. #define STB0899_WIDTH_DS2_TMG_AUTOSRCH 1
  135. #define STB0899_DS2_END_MAINLOOP (0x01 << 6)
  136. #define STB0899_OFFST_DS2_END_MAINLOOP 6
  137. #define STB0899_WIDTH_DS2_END_MAINLOOP 1
  138. #define STB0899_DS2_CFSYNC (0x01 << 5)
  139. #define STB0899_OFFST_DS2_CFSYNC 5
  140. #define STB0899_WIDTH_DS2_CFSYNC 1
  141. #define STB0899_DS2_TMGLOCK (0x01 << 4)
  142. #define STB0899_OFFST_DS2_TMGLOCK 4
  143. #define STB0899_WIDTH_DS2_TMGLOCK 1
  144. #define STB0899_DS2_DEMODWAIT (0x01 << 3)
  145. #define STB0899_OFFST_DS2_DEMODWAIT 3
  146. #define STB0899_WIDTH_DS2_DEMODWAIT 1
  147. #define STB0899_DS2_FECON (0x01 << 1)
  148. #define STB0899_OFFST_DS2_FECON 1
  149. #define STB0899_WIDTH_DS2_FECON 1
  150. /* S1 FEC */
  151. #define STB0899_VSTATUS 0xf50d
  152. #define STB0899_VSTATUS_VITERBI_ON (0x01 << 7)
  153. #define STB0899_OFFST_VSTATUS_VITERBI_ON 7
  154. #define STB0899_WIDTH_VSTATUS_VITERBI_ON 1
  155. #define STB0899_VSTATUS_END_LOOPVIT (0x01 << 6)
  156. #define STB0899_OFFST_VSTATUS_END_LOOPVIT 6
  157. #define STB0899_WIDTH_VSTATUS_END_LOOPVIT 1
  158. #define STB0899_VSTATUS_PRFVIT (0x01 << 4)
  159. #define STB0899_OFFST_VSTATUS_PRFVIT 4
  160. #define STB0899_WIDTH_VSTATUS_PRFVIT 1
  161. #define STB0899_VSTATUS_LOCKEDVIT (0x01 << 3)
  162. #define STB0899_OFFST_VSTATUS_LOCKEDVIT 3
  163. #define STB0899_WIDTH_VSTATUS_LOCKEDVIT 1
  164. #define STB0899_VERROR 0xf50f
  165. #define STB0899_IQSWAP 0xf523
  166. #define STB0899_SYM (0x01 << 3)
  167. #define STB0899_OFFST_SYM 3
  168. #define STB0899_WIDTH_SYM 1
  169. #define STB0899_FECAUTO1 0xf530
  170. #define STB0899_DSSSRCH (0x01 << 3)
  171. #define STB0899_OFFST_DSSSRCH 3
  172. #define STB0899_WIDTH_DSSSRCH 1
  173. #define STB0899_SYMSRCH (0x01 << 2)
  174. #define STB0899_OFFST_SYMSRCH 2
  175. #define STB0899_WIDTH_SYMSRCH 1
  176. #define STB0899_QPSKSRCH (0x01 << 1)
  177. #define STB0899_OFFST_QPSKSRCH 1
  178. #define STB0899_WIDTH_QPSKSRCH 1
  179. #define STB0899_BPSKSRCH (0x01 << 0)
  180. #define STB0899_OFFST_BPSKSRCH 0
  181. #define STB0899_WIDTH_BPSKSRCH 1
  182. #define STB0899_FECM 0xf533
  183. #define STB0899_FECM_NOT_DVB (0x01 << 7)
  184. #define STB0899_OFFST_FECM_NOT_DVB 7
  185. #define STB0899_WIDTH_FECM_NOT_DVB 1
  186. #define STB0899_FECM_RSVD1 (0x07 << 4)
  187. #define STB0899_OFFST_FECM_RSVD1 4
  188. #define STB0899_WIDTH_FECM_RSVD1 3
  189. #define STB0899_FECM_VITERBI_ON (0x01 << 3)
  190. #define STB0899_OFFST_FECM_VITERBI_ON 3
  191. #define STB0899_WIDTH_FECM_VITERBI_ON 1
  192. #define STB0899_FECM_RSVD0 (0x01 << 2)
  193. #define STB0899_OFFST_FECM_RSVD0 2
  194. #define STB0899_WIDTH_FECM_RSVD0 1
  195. #define STB0899_FECM_SYNCDIS (0x01 << 1)
  196. #define STB0899_OFFST_FECM_SYNCDIS 1
  197. #define STB0899_WIDTH_FECM_SYNCDIS 1
  198. #define STB0899_FECM_SYMI (0x01 << 0)
  199. #define STB0899_OFFST_FECM_SYMI 0
  200. #define STB0899_WIDTH_FECM_SYMI 1
  201. #define STB0899_VTH12 0xf534
  202. #define STB0899_VTH23 0xf535
  203. #define STB0899_VTH34 0xf536
  204. #define STB0899_VTH56 0xf537
  205. #define STB0899_VTH67 0xf538
  206. #define STB0899_VTH78 0xf539
  207. #define STB0899_PRVIT 0xf53c
  208. #define STB0899_PR_7_8 (0x01 << 5)
  209. #define STB0899_OFFST_PR_7_8 5
  210. #define STB0899_WIDTH_PR_7_8 1
  211. #define STB0899_PR_6_7 (0x01 << 4)
  212. #define STB0899_OFFST_PR_6_7 4
  213. #define STB0899_WIDTH_PR_6_7 1
  214. #define STB0899_PR_5_6 (0x01 << 3)
  215. #define STB0899_OFFST_PR_5_6 3
  216. #define STB0899_WIDTH_PR_5_6 1
  217. #define STB0899_PR_3_4 (0x01 << 2)
  218. #define STB0899_OFFST_PR_3_4 2
  219. #define STB0899_WIDTH_PR_3_4 1
  220. #define STB0899_PR_2_3 (0x01 << 1)
  221. #define STB0899_OFFST_PR_2_3 1
  222. #define STB0899_WIDTH_PR_2_3 1
  223. #define STB0899_PR_1_2 (0x01 << 0)
  224. #define STB0899_OFFST_PR_1_2 0
  225. #define STB0899_WIDTH_PR_1_2 1
  226. #define STB0899_VITSYNC 0xf53d
  227. #define STB0899_AM (0x01 << 7)
  228. #define STB0899_OFFST_AM 7
  229. #define STB0899_WIDTH_AM 1
  230. #define STB0899_FREEZE (0x01 << 6)
  231. #define STB0899_OFFST_FREEZE 6
  232. #define STB0899_WIDTH_FREEZE 1
  233. #define STB0899_SN_65536 (0x03 << 4)
  234. #define STB0899_OFFST_SN_65536 4
  235. #define STB0899_WIDTH_SN_65536 2
  236. #define STB0899_SN_16384 (0x01 << 5)
  237. #define STB0899_OFFST_SN_16384 5
  238. #define STB0899_WIDTH_SN_16384 1
  239. #define STB0899_SN_4096 (0x01 << 4)
  240. #define STB0899_OFFST_SN_4096 4
  241. #define STB0899_WIDTH_SN_4096 1
  242. #define STB0899_SN_1024 (0x00 << 4)
  243. #define STB0899_OFFST_SN_1024 4
  244. #define STB0899_WIDTH_SN_1024 0
  245. #define STB0899_TO_128 (0x03 << 2)
  246. #define STB0899_OFFST_TO_128 2
  247. #define STB0899_WIDTH_TO_128 2
  248. #define STB0899_TO_64 (0x01 << 3)
  249. #define STB0899_OFFST_TO_64 3
  250. #define STB0899_WIDTH_TO_64 1
  251. #define STB0899_TO_32 (0x01 << 2)
  252. #define STB0899_OFFST_TO_32 2
  253. #define STB0899_WIDTH_TO_32 1
  254. #define STB0899_TO_16 (0x00 << 2)
  255. #define STB0899_OFFST_TO_16 2
  256. #define STB0899_WIDTH_TO_16 0
  257. #define STB0899_HYST_128 (0x03 << 1)
  258. #define STB0899_OFFST_HYST_128 1
  259. #define STB0899_WIDTH_HYST_128 2
  260. #define STB0899_HYST_64 (0x01 << 1)
  261. #define STB0899_OFFST_HYST_64 1
  262. #define STB0899_WIDTH_HYST_64 1
  263. #define STB0899_HYST_32 (0x01 << 0)
  264. #define STB0899_OFFST_HYST_32 0
  265. #define STB0899_WIDTH_HYST_32 1
  266. #define STB0899_HYST_16 (0x00 << 0)
  267. #define STB0899_OFFST_HYST_16 0
  268. #define STB0899_WIDTH_HYST_16 0
  269. #define STB0899_RSULC 0xf548
  270. #define STB0899_ULDIL_ON (0x01 << 7)
  271. #define STB0899_OFFST_ULDIL_ON 7
  272. #define STB0899_WIDTH_ULDIL_ON 1
  273. #define STB0899_ULAUTO_ON (0x01 << 6)
  274. #define STB0899_OFFST_ULAUTO_ON 6
  275. #define STB0899_WIDTH_ULAUTO_ON 1
  276. #define STB0899_ULRS_ON (0x01 << 5)
  277. #define STB0899_OFFST_ULRS_ON 5
  278. #define STB0899_WIDTH_ULRS_ON 1
  279. #define STB0899_ULDESCRAM_ON (0x01 << 4)
  280. #define STB0899_OFFST_ULDESCRAM_ON 4
  281. #define STB0899_WIDTH_ULDESCRAM_ON 1
  282. #define STB0899_UL_DISABLE (0x01 << 2)
  283. #define STB0899_OFFST_UL_DISABLE 2
  284. #define STB0899_WIDTH_UL_DISABLE 1
  285. #define STB0899_NOFTHRESHOLD (0x01 << 0)
  286. #define STB0899_OFFST_NOFTHRESHOLD 0
  287. #define STB0899_WIDTH_NOFTHRESHOLD 1
  288. #define STB0899_RSLLC 0xf54a
  289. #define STB0899_DEMAPVIT 0xf583
  290. #define STB0899_DEMAPVIT_RSVD (0x01 << 7)
  291. #define STB0899_OFFST_DEMAPVIT_RSVD 7
  292. #define STB0899_WIDTH_DEMAPVIT_RSVD 1
  293. #define STB0899_DEMAPVIT_KDIVIDER (0x7f << 0)
  294. #define STB0899_OFFST_DEMAPVIT_KDIVIDER 0
  295. #define STB0899_WIDTH_DEMAPVIT_KDIVIDER 7
  296. #define STB0899_PLPARM 0xf58c
  297. #define STB0899_VITMAPPING (0x07 << 5)
  298. #define STB0899_OFFST_VITMAPPING 5
  299. #define STB0899_WIDTH_VITMAPPING 3
  300. #define STB0899_VITMAPPING_BPSK (0x01 << 5)
  301. #define STB0899_OFFST_VITMAPPING_BPSK 5
  302. #define STB0899_WIDTH_VITMAPPING_BPSK 1
  303. #define STB0899_VITMAPPING_QPSK (0x00 << 5)
  304. #define STB0899_OFFST_VITMAPPING_QPSK 5
  305. #define STB0899_WIDTH_VITMAPPING_QPSK 0
  306. #define STB0899_VITCURPUN (0x1f << 0)
  307. #define STB0899_OFFST_VITCURPUN 0
  308. #define STB0899_WIDTH_VITCURPUN 5
  309. #define STB0899_VITCURPUN_1_2 (0x0d << 0)
  310. #define STB0899_VITCURPUN_2_3 (0x12 << 0)
  311. #define STB0899_VITCURPUN_3_4 (0x15 << 0)
  312. #define STB0899_VITCURPUN_5_6 (0x18 << 0)
  313. #define STB0899_VITCURPUN_6_7 (0x19 << 0)
  314. #define STB0899_VITCURPUN_7_8 (0x1a << 0)
  315. /* S2 DEMOD */
  316. #define STB0899_OFF0_DMD_STATUS 0xf300
  317. #define STB0899_BASE_DMD_STATUS 0x00000000
  318. #define STB0899_IF_AGC_LOCK (0x01 << 8)
  319. #define STB0899_OFFST_IF_AGC_LOCK 0
  320. #define STB0899_WIDTH_IF_AGC_LOCK 1
  321. #define STB0899_OFF0_CRL_FREQ 0xf304
  322. #define STB0899_BASE_CRL_FREQ 0x00000000
  323. #define STB0899_CARR_FREQ (0x3fffffff << 0)
  324. #define STB0899_OFFST_CARR_FREQ 0
  325. #define STB0899_WIDTH_CARR_FREQ 30
  326. #define STB0899_OFF0_BTR_FREQ 0xf308
  327. #define STB0899_BASE_BTR_FREQ 0x00000000
  328. #define STB0899_BTR_FREQ (0xfffffff << 0)
  329. #define STB0899_OFFST_BTR_FREQ 0
  330. #define STB0899_WIDTH_BTR_FREQ 28
  331. #define STB0899_OFF0_IF_AGC_GAIN 0xf30c
  332. #define STB0899_BASE_IF_AGC_GAIN 0x00000000
  333. #define STB0899_IF_AGC_GAIN (0x3fff < 0)
  334. #define STB0899_OFFST_IF_AGC_GAIN 0
  335. #define STB0899_WIDTH_IF_AGC_GAIN 14
  336. #define STB0899_OFF0_BB_AGC_GAIN 0xf310
  337. #define STB0899_BASE_BB_AGC_GAIN 0x00000000
  338. #define STB0899_BB_AGC_GAIN (0x3fff < 0)
  339. #define STB0899_OFFST_BB_AGC_GAIN 0
  340. #define STB0899_WIDTH_BB_AGC_GAIN 14
  341. #define STB0899_OFF0_DC_OFFSET 0xf314
  342. #define STB0899_BASE_DC_OFFSET 0x00000000
  343. #define STB0899_I (0xff < 8)
  344. #define STB0899_OFFST_I 8
  345. #define STB0899_WIDTH_I 8
  346. #define STB0899_Q (0xff < 0)
  347. #define STB0899_OFFST_Q 8
  348. #define STB0899_WIDTH_Q 8
  349. #define STB0899_OFF0_DMD_CNTRL 0xf31c
  350. #define STB0899_BASE_DMD_CNTRL 0x00000000
  351. #define STB0899_ADC0_PINS1IN (0x01 << 6)
  352. #define STB0899_OFFST_ADC0_PINS1IN 6
  353. #define STB0899_WIDTH_ADC0_PINS1IN 1
  354. #define STB0899_IN2COMP1_OFFBIN0 (0x01 << 3)
  355. #define STB0899_OFFST_IN2COMP1_OFFBIN0 3
  356. #define STB0899_WIDTH_IN2COMP1_OFFBIN0 1
  357. #define STB0899_DC_COMP (0x01 << 2)
  358. #define STB0899_OFFST_DC_COMP 2
  359. #define STB0899_WIDTH_DC_COMP 1
  360. #define STB0899_MODMODE (0x03 << 0)
  361. #define STB0899_OFFST_MODMODE 0
  362. #define STB0899_WIDTH_MODMODE 2
  363. #define STB0899_OFF0_IF_AGC_CNTRL 0xf320
  364. #define STB0899_BASE_IF_AGC_CNTRL 0x00000000
  365. #define STB0899_IF_GAIN_INIT (0x3fff << 13)
  366. #define STB0899_OFFST_IF_GAIN_INIT 13
  367. #define STB0899_WIDTH_IF_GAIN_INIT 14
  368. #define STB0899_IF_GAIN_SENSE (0x01 << 12)
  369. #define STB0899_OFFST_IF_GAIN_SENSE 12
  370. #define STB0899_WIDTH_IF_GAIN_SENSE 1
  371. #define STB0899_IF_LOOP_GAIN (0x0f << 8)
  372. #define STB0899_OFFST_IF_LOOP_GAIN 8
  373. #define STB0899_WIDTH_IF_LOOP_GAIN 4
  374. #define STB0899_IF_LD_GAIN_INIT (0x01 << 7)
  375. #define STB0899_OFFST_IF_LD_GAIN_INIT 7
  376. #define STB0899_WIDTH_IF_LD_GAIN_INIT 1
  377. #define STB0899_IF_AGC_REF (0x7f << 0)
  378. #define STB0899_OFFST_IF_AGC_REF 0
  379. #define STB0899_WIDTH_IF_AGC_REF 7
  380. #define STB0899_OFF0_BB_AGC_CNTRL 0xf324
  381. #define STB0899_BASE_BB_AGC_CNTRL 0x00000000
  382. #define STB0899_BB_GAIN_INIT (0x3fff << 12)
  383. #define STB0899_OFFST_BB_GAIN_INIT 12
  384. #define STB0899_WIDTH_BB_GAIN_INIT 14
  385. #define STB0899_BB_LOOP_GAIN (0x0f << 8)
  386. #define STB0899_OFFST_BB_LOOP_GAIN 8
  387. #define STB0899_WIDTH_BB_LOOP_GAIN 4
  388. #define STB0899_BB_LD_GAIN_INIT (0x01 << 7)
  389. #define STB0899_OFFST_BB_LD_GAIN_INIT 7
  390. #define STB0899_WIDTH_BB_LD_GAIN_INIT 1
  391. #define STB0899_BB_AGC_REF (0x7f << 0)
  392. #define STB0899_OFFST_BB_AGC_REF 0
  393. #define STB0899_WIDTH_BB_AGC_REF 7
  394. #define STB0899_OFF0_CRL_CNTRL 0xf328
  395. #define STB0899_BASE_CRL_CNTRL 0x00000000
  396. #define STB0899_CRL_LOCK_CLEAR (0x01 << 5)
  397. #define STB0899_OFFST_CRL_LOCK_CLEAR 5
  398. #define STB0899_WIDTH_CRL_LOCK_CLEAR 1
  399. #define STB0899_CRL_SWPR_CLEAR (0x01 << 4)
  400. #define STB0899_OFFST_CRL_SWPR_CLEAR 4
  401. #define STB0899_WIDTH_CRL_SWPR_CLEAR 1
  402. #define STB0899_CRL_SWP_ENA (0x01 << 3)
  403. #define STB0899_OFFST_CRL_SWP_ENA 3
  404. #define STB0899_WIDTH_CRL_SWP_ENA 1
  405. #define STB0899_CRL_DET_SEL (0x01 << 2)
  406. #define STB0899_OFFST_CRL_DET_SEL 2
  407. #define STB0899_WIDTH_CRL_DET_SEL 1
  408. #define STB0899_CRL_SENSE (0x01 << 1)
  409. #define STB0899_OFFST_CRL_SENSE 1
  410. #define STB0899_WIDTH_CRL_SENSE 1
  411. #define STB0899_CRL_PHSERR_CLEAR (0x01 << 0)
  412. #define STB0899_OFFST_CRL_PHSERR_CLEAR 0
  413. #define STB0899_WIDTH_CRL_PHSERR_CLEAR 1
  414. #define STB0899_OFF0_CRL_PHS_INIT 0xf32c
  415. #define STB0899_BASE_CRL_PHS_INIT 0x00000000
  416. #define STB0899_CRL_PHS_INIT_31 (0x1 << 30)
  417. #define STB0899_OFFST_CRL_PHS_INIT_31 30
  418. #define STB0899_WIDTH_CRL_PHS_INIT_31 1
  419. #define STB0899_CRL_LD_INIT_PHASE (0x1 << 24)
  420. #define STB0899_OFFST_CRL_LD_INIT_PHASE 24
  421. #define STB0899_WIDTH_CRL_LD_INIT_PHASE 1
  422. #define STB0899_CRL_INIT_PHASE (0xffffff << 0)
  423. #define STB0899_OFFST_CRL_INIT_PHASE 0
  424. #define STB0899_WIDTH_CRL_INIT_PHASE 24
  425. #define STB0899_OFF0_CRL_FREQ_INIT 0xf330
  426. #define STB0899_BASE_CRL_FREQ_INIT 0x00000000
  427. #define STB0899_CRL_FREQ_INIT_31 (0x1 << 30)
  428. #define STB0899_OFFST_CRL_FREQ_INIT_31 30
  429. #define STB0899_WIDTH_CRL_FREQ_INIT_31 1
  430. #define STB0899_CRL_LD_FREQ_INIT (0x1 << 24)
  431. #define STB0899_OFFST_CRL_LD_FREQ_INIT 24
  432. #define STB0899_WIDTH_CRL_LD_FREQ_INIT 1
  433. #define STB0899_CRL_FREQ_INIT (0xffffff << 0)
  434. #define STB0899_OFFST_CRL_FREQ_INIT 0
  435. #define STB0899_WIDTH_CRL_FREQ_INIT 24
  436. #define STB0899_OFF0_CRL_LOOP_GAIN 0xf334
  437. #define STB0899_BASE_CRL_LOOP_GAIN 0x00000000
  438. #define STB0899_KCRL2_RSHFT (0xf << 16)
  439. #define STB0899_OFFST_KCRL2_RSHFT 16
  440. #define STB0899_WIDTH_KCRL2_RSHFT 4
  441. #define STB0899_KCRL1 (0xf << 12)
  442. #define STB0899_OFFST_KCRL1 12
  443. #define STB0899_WIDTH_KCRL1 4
  444. #define STB0899_KCRL1_RSHFT (0xf << 8)
  445. #define STB0899_OFFST_KCRL1_RSHFT 8
  446. #define STB0899_WIDTH_KCRL1_RSHFT 4
  447. #define STB0899_KCRL0 (0xf << 4)
  448. #define STB0899_OFFST_KCRL0 4
  449. #define STB0899_WIDTH_KCRL0 4
  450. #define STB0899_KCRL0_RSHFT (0xf << 0)
  451. #define STB0899_OFFST_KCRL0_RSHFT 0
  452. #define STB0899_WIDTH_KCRL0_RSHFT 4
  453. #define STB0899_OFF0_CRL_NOM_FREQ 0xf338
  454. #define STB0899_BASE_CRL_NOM_FREQ 0x00000000
  455. #define STB0899_CRL_NOM_FREQ (0x3fffffff << 0)
  456. #define STB0899_OFFST_CRL_NOM_FREQ 0
  457. #define STB0899_WIDTH_CRL_NOM_FREQ 30
  458. #define STB0899_OFF0_CRL_SWP_RATE 0xf33c
  459. #define STB0899_BASE_CRL_SWP_RATE 0x00000000
  460. #define STB0899_CRL_SWP_RATE (0x3fffffff << 0)
  461. #define STB0899_OFFST_CRL_SWP_RATE 0
  462. #define STB0899_WIDTH_CRL_SWP_RATE 30
  463. #define STB0899_OFF0_CRL_MAX_SWP 0xf340
  464. #define STB0899_BASE_CRL_MAX_SWP 0x00000000
  465. #define STB0899_CRL_MAX_SWP (0x3fffffff << 0)
  466. #define STB0899_OFFST_CRL_MAX_SWP 0
  467. #define STB0899_WIDTH_CRL_MAX_SWP 30
  468. #define STB0899_OFF0_CRL_LK_CNTRL 0xf344
  469. #define STB0899_BASE_CRL_LK_CNTRL 0x00000000
  470. #define STB0899_OFF0_DECIM_CNTRL 0xf348
  471. #define STB0899_BASE_DECIM_CNTRL 0x00000000
  472. #define STB0899_BAND_LIMIT_B (0x01 << 5)
  473. #define STB0899_OFFST_BAND_LIMIT_B 5
  474. #define STB0899_WIDTH_BAND_LIMIT_B 1
  475. #define STB0899_WIN_SEL (0x03 << 3)
  476. #define STB0899_OFFST_WIN_SEL 3
  477. #define STB0899_WIDTH_WIN_SEL 2
  478. #define STB0899_DECIM_RATE (0x07 << 0)
  479. #define STB0899_OFFST_DECIM_RATE 0
  480. #define STB0899_WIDTH_DECIM_RATE 3
  481. #define STB0899_OFF0_BTR_CNTRL 0xf34c
  482. #define STB0899_BASE_BTR_CNTRL 0x00000000
  483. #define STB0899_BTR_FREQ_CORR (0x7ff << 4)
  484. #define STB0899_OFFST_BTR_FREQ_CORR 4
  485. #define STB0899_WIDTH_BTR_FREQ_CORR 11
  486. #define STB0899_BTR_CLR_LOCK (0x01 << 3)
  487. #define STB0899_OFFST_BTR_CLR_LOCK 3
  488. #define STB0899_WIDTH_BTR_CLR_LOCK 1
  489. #define STB0899_BTR_SENSE (0x01 << 2)
  490. #define STB0899_OFFST_BTR_SENSE 2
  491. #define STB0899_WIDTH_BTR_SENSE 1
  492. #define STB0899_BTR_ERR_ENA (0x01 << 1)
  493. #define STB0899_OFFST_BTR_ERR_ENA 1
  494. #define STB0899_WIDTH_BTR_ERR_ENA 1
  495. #define STB0899_INTRP_PHS_SENSE (0x01 << 0)
  496. #define STB0899_OFFST_INTRP_PHS_SENSE 0
  497. #define STB0899_WIDTH_INTRP_PHS_SENSE 1
  498. #define STB0899_OFF0_BTR_LOOP_GAIN 0xf350
  499. #define STB0899_BASE_BTR_LOOP_GAIN 0x00000000
  500. #define STB0899_KBTR2_RSHFT (0x0f << 16)
  501. #define STB0899_OFFST_KBTR2_RSHFT 16
  502. #define STB0899_WIDTH_KBTR2_RSHFT 4
  503. #define STB0899_KBTR1 (0x0f << 12)
  504. #define STB0899_OFFST_KBTR1 12
  505. #define STB0899_WIDTH_KBTR1 4
  506. #define STB0899_KBTR1_RSHFT (0x0f << 8)
  507. #define STB0899_OFFST_KBTR1_RSHFT 8
  508. #define STB0899_WIDTH_KBTR1_RSHFT 4
  509. #define STB0899_KBTR0 (0x0f << 4)
  510. #define STB0899_OFFST_KBTR0 4
  511. #define STB0899_WIDTH_KBTR0 4
  512. #define STB0899_KBTR0_RSHFT (0x0f << 0)
  513. #define STB0899_OFFST_KBTR0_RSHFT 0
  514. #define STB0899_WIDTH_KBTR0_RSHFT 4
  515. #define STB0899_OFF0_BTR_PHS_INIT 0xf354
  516. #define STB0899_BASE_BTR_PHS_INIT 0x00000000
  517. #define STB0899_BTR_LD_PHASE_INIT (0x01 << 28)
  518. #define STB0899_OFFST_BTR_LD_PHASE_INIT 28
  519. #define STB0899_WIDTH_BTR_LD_PHASE_INIT 1
  520. #define STB0899_BTR_INIT_PHASE (0xfffffff << 0)
  521. #define STB0899_OFFST_BTR_INIT_PHASE 0
  522. #define STB0899_WIDTH_BTR_INIT_PHASE 28
  523. #define STB0899_OFF0_BTR_FREQ_INIT 0xf358
  524. #define STB0899_BASE_BTR_FREQ_INIT 0x00000000
  525. #define STB0899_BTR_LD_FREQ_INIT (1 << 28)
  526. #define STB0899_OFFST_BTR_LD_FREQ_INIT 28
  527. #define STB0899_WIDTH_BTR_LD_FREQ_INIT 1
  528. #define STB0899_BTR_FREQ_INIT (0xfffffff << 0)
  529. #define STB0899_OFFST_BTR_FREQ_INIT 0
  530. #define STB0899_WIDTH_BTR_FREQ_INIT 28
  531. #define STB0899_OFF0_BTR_NOM_FREQ 0xf35c
  532. #define STB0899_BASE_BTR_NOM_FREQ 0x00000000
  533. #define STB0899_BTR_NOM_FREQ (0xfffffff << 0)
  534. #define STB0899_OFFST_BTR_NOM_FREQ 0
  535. #define STB0899_WIDTH_BTR_NOM_FREQ 28
  536. #define STB0899_OFF0_BTR_LK_CNTRL 0xf360
  537. #define STB0899_BASE_BTR_LK_CNTRL 0x00000000
  538. #define STB0899_BTR_MIN_ENERGY (0x0f << 24)
  539. #define STB0899_OFFST_BTR_MIN_ENERGY 24
  540. #define STB0899_WIDTH_BTR_MIN_ENERGY 4
  541. #define STB0899_BTR_LOCK_TH_LO (0xff << 16)
  542. #define STB0899_OFFST_BTR_LOCK_TH_LO 16
  543. #define STB0899_WIDTH_BTR_LOCK_TH_LO 8
  544. #define STB0899_BTR_LOCK_TH_HI (0xff << 8)
  545. #define STB0899_OFFST_BTR_LOCK_TH_HI 8
  546. #define STB0899_WIDTH_BTR_LOCK_TH_HI 8
  547. #define STB0899_BTR_LOCK_GAIN (0x03 << 6)
  548. #define STB0899_OFFST_BTR_LOCK_GAIN 6
  549. #define STB0899_WIDTH_BTR_LOCK_GAIN 2
  550. #define STB0899_BTR_LOCK_LEAK (0x3f << 0)
  551. #define STB0899_OFFST_BTR_LOCK_LEAK 0
  552. #define STB0899_WIDTH_BTR_LOCK_LEAK 6
  553. #define STB0899_OFF0_DECN_CNTRL 0xf364
  554. #define STB0899_BASE_DECN_CNTRL 0x00000000
  555. #define STB0899_OFF0_TP_CNTRL 0xf368
  556. #define STB0899_BASE_TP_CNTRL 0x00000000
  557. #define STB0899_OFF0_TP_BUF_STATUS 0xf36c
  558. #define STB0899_BASE_TP_BUF_STATUS 0x00000000
  559. #define STB0899_TP_BUFFER_FULL (1 << 0)
  560. #define STB0899_OFF0_DC_ESTIM 0xf37c
  561. #define STB0899_BASE_DC_ESTIM 0x0000
  562. #define STB0899_I_DC_ESTIMATE (0xff << 8)
  563. #define STB0899_OFFST_I_DC_ESTIMATE 8
  564. #define STB0899_WIDTH_I_DC_ESTIMATE 8
  565. #define STB0899_Q_DC_ESTIMATE (0xff << 0)
  566. #define STB0899_OFFST_Q_DC_ESTIMATE 0
  567. #define STB0899_WIDTH_Q_DC_ESTIMATE 8
  568. #define STB0899_OFF0_FLL_CNTRL 0xf310
  569. #define STB0899_BASE_FLL_CNTRL 0x00000020
  570. #define STB0899_CRL_FLL_ACC (0x01 << 4)
  571. #define STB0899_OFFST_CRL_FLL_ACC 4
  572. #define STB0899_WIDTH_CRL_FLL_ACC 1
  573. #define STB0899_FLL_AVG_PERIOD (0x0f << 0)
  574. #define STB0899_OFFST_FLL_AVG_PERIOD 0
  575. #define STB0899_WIDTH_FLL_AVG_PERIOD 4
  576. #define STB0899_OFF0_FLL_FREQ_WD 0xf314
  577. #define STB0899_BASE_FLL_FREQ_WD 0x00000020
  578. #define STB0899_FLL_FREQ_WD (0xffffffff << 0)
  579. #define STB0899_OFFST_FLL_FREQ_WD 0
  580. #define STB0899_WIDTH_FLL_FREQ_WD 32
  581. #define STB0899_OFF0_ANTI_ALIAS_SEL 0xf358
  582. #define STB0899_BASE_ANTI_ALIAS_SEL 0x00000020
  583. #define STB0899_ANTI_ALIAS_SELB (0x03 << 0)
  584. #define STB0899_OFFST_ANTI_ALIAS_SELB 0
  585. #define STB0899_WIDTH_ANTI_ALIAS_SELB 2
  586. #define STB0899_OFF0_RRC_ALPHA 0xf35c
  587. #define STB0899_BASE_RRC_ALPHA 0x00000020
  588. #define STB0899_RRC_ALPHA (0x03 << 0)
  589. #define STB0899_OFFST_RRC_ALPHA 0
  590. #define STB0899_WIDTH_RRC_ALPHA 2
  591. #define STB0899_OFF0_DC_ADAPT_LSHFT 0xf360
  592. #define STB0899_BASE_DC_ADAPT_LSHFT 0x00000020
  593. #define STB0899_DC_ADAPT_LSHFT (0x077 << 0)
  594. #define STB0899_OFFST_DC_ADAPT_LSHFT 0
  595. #define STB0899_WIDTH_DC_ADAPT_LSHFT 3
  596. #define STB0899_OFF0_IMB_OFFSET 0xf364
  597. #define STB0899_BASE_IMB_OFFSET 0x00000020
  598. #define STB0899_PHS_IMB_COMP (0xff << 8)
  599. #define STB0899_OFFST_PHS_IMB_COMP 8
  600. #define STB0899_WIDTH_PHS_IMB_COMP 8
  601. #define STB0899_AMPL_IMB_COMP (0xff << 0)
  602. #define STB0899_OFFST_AMPL_IMB_COMP 0
  603. #define STB0899_WIDTH_AMPL_IMB_COMP 8
  604. #define STB0899_OFF0_IMB_ESTIMATE 0xf368
  605. #define STB0899_BASE_IMB_ESTIMATE 0x00000020
  606. #define STB0899_PHS_IMB_ESTIMATE (0xff << 8)
  607. #define STB0899_OFFST_PHS_IMB_ESTIMATE 8
  608. #define STB0899_WIDTH_PHS_IMB_ESTIMATE 8
  609. #define STB0899_AMPL_IMB_ESTIMATE (0xff << 0)
  610. #define STB0899_OFFST_AMPL_IMB_ESTIMATE 0
  611. #define STB0899_WIDTH_AMPL_IMB_ESTIMATE 8
  612. #define STB0899_OFF0_IMB_CNTRL 0xf36c
  613. #define STB0899_BASE_IMB_CNTRL 0x00000020
  614. #define STB0899_PHS_ADAPT_LSHFT (0x07 << 4)
  615. #define STB0899_OFFST_PHS_ADAPT_LSHFT 4
  616. #define STB0899_WIDTH_PHS_ADAPT_LSHFT 3
  617. #define STB0899_AMPL_ADAPT_LSHFT (0x07 << 1)
  618. #define STB0899_OFFST_AMPL_ADAPT_LSHFT 1
  619. #define STB0899_WIDTH_AMPL_ADAPT_LSHFT 3
  620. #define STB0899_IMB_COMP (0x01 << 0)
  621. #define STB0899_OFFST_IMB_COMP 0
  622. #define STB0899_WIDTH_IMB_COMP 1
  623. #define STB0899_OFF0_IF_AGC_CNTRL2 0xf374
  624. #define STB0899_BASE_IF_AGC_CNTRL2 0x00000020
  625. #define STB0899_IF_AGC_LOCK_TH (0xff << 11)
  626. #define STB0899_OFFST_IF_AGC_LOCK_TH 11
  627. #define STB0899_WIDTH_IF_AGC_LOCK_TH 8
  628. #define STB0899_IF_AGC_SD_DIV (0xff << 3)
  629. #define STB0899_OFFST_IF_AGC_SD_DIV 3
  630. #define STB0899_WIDTH_IF_AGC_SD_DIV 8
  631. #define STB0899_IF_AGC_DUMP_PER (0x07 << 0)
  632. #define STB0899_OFFST_IF_AGC_DUMP_PER 0
  633. #define STB0899_WIDTH_IF_AGC_DUMP_PER 3
  634. #define STB0899_OFF0_DMD_CNTRL2 0xf378
  635. #define STB0899_BASE_DMD_CNTRL2 0x00000020
  636. #define STB0899_SPECTRUM_INVERT (0x01 << 2)
  637. #define STB0899_OFFST_SPECTRUM_INVERT 2
  638. #define STB0899_WIDTH_SPECTRUM_INVERT 1
  639. #define STB0899_AGC_MODE (0x01 << 1)
  640. #define STB0899_OFFST_AGC_MODE 1
  641. #define STB0899_WIDTH_AGC_MODE 1
  642. #define STB0899_CRL_FREQ_ADJ (0x01 << 0)
  643. #define STB0899_OFFST_CRL_FREQ_ADJ 0
  644. #define STB0899_WIDTH_CRL_FREQ_ADJ 1
  645. #define STB0899_OFF0_TP_BUFFER 0xf300
  646. #define STB0899_BASE_TP_BUFFER 0x00000040
  647. #define STB0899_TP_BUFFER_IN (0xffff << 0)
  648. #define STB0899_OFFST_TP_BUFFER_IN 0
  649. #define STB0899_WIDTH_TP_BUFFER_IN 16
  650. #define STB0899_OFF0_TP_BUFFER1 0xf304
  651. #define STB0899_BASE_TP_BUFFER1 0x00000040
  652. #define STB0899_OFF0_TP_BUFFER2 0xf308
  653. #define STB0899_BASE_TP_BUFFER2 0x00000040
  654. #define STB0899_OFF0_TP_BUFFER3 0xf30c
  655. #define STB0899_BASE_TP_BUFFER3 0x00000040
  656. #define STB0899_OFF0_TP_BUFFER4 0xf310
  657. #define STB0899_BASE_TP_BUFFER4 0x00000040
  658. #define STB0899_OFF0_TP_BUFFER5 0xf314
  659. #define STB0899_BASE_TP_BUFFER5 0x00000040
  660. #define STB0899_OFF0_TP_BUFFER6 0xf318
  661. #define STB0899_BASE_TP_BUFFER6 0x00000040
  662. #define STB0899_OFF0_TP_BUFFER7 0xf31c
  663. #define STB0899_BASE_TP_BUFFER7 0x00000040
  664. #define STB0899_OFF0_TP_BUFFER8 0xf320
  665. #define STB0899_BASE_TP_BUFFER8 0x00000040
  666. #define STB0899_OFF0_TP_BUFFER9 0xf324
  667. #define STB0899_BASE_TP_BUFFER9 0x00000040
  668. #define STB0899_OFF0_TP_BUFFER10 0xf328
  669. #define STB0899_BASE_TP_BUFFER10 0x00000040
  670. #define STB0899_OFF0_TP_BUFFER11 0xf32c
  671. #define STB0899_BASE_TP_BUFFER11 0x00000040
  672. #define STB0899_OFF0_TP_BUFFER12 0xf330
  673. #define STB0899_BASE_TP_BUFFER12 0x00000040
  674. #define STB0899_OFF0_TP_BUFFER13 0xf334
  675. #define STB0899_BASE_TP_BUFFER13 0x00000040
  676. #define STB0899_OFF0_TP_BUFFER14 0xf338
  677. #define STB0899_BASE_TP_BUFFER14 0x00000040
  678. #define STB0899_OFF0_TP_BUFFER15 0xf33c
  679. #define STB0899_BASE_TP_BUFFER15 0x00000040
  680. #define STB0899_OFF0_TP_BUFFER16 0xf340
  681. #define STB0899_BASE_TP_BUFFER16 0x00000040
  682. #define STB0899_OFF0_TP_BUFFER17 0xf344
  683. #define STB0899_BASE_TP_BUFFER17 0x00000040
  684. #define STB0899_OFF0_TP_BUFFER18 0xf348
  685. #define STB0899_BASE_TP_BUFFER18 0x00000040
  686. #define STB0899_OFF0_TP_BUFFER19 0xf34c
  687. #define STB0899_BASE_TP_BUFFER19 0x00000040
  688. #define STB0899_OFF0_TP_BUFFER20 0xf350
  689. #define STB0899_BASE_TP_BUFFER20 0x00000040
  690. #define STB0899_OFF0_TP_BUFFER21 0xf354
  691. #define STB0899_BASE_TP_BUFFER21 0x00000040
  692. #define STB0899_OFF0_TP_BUFFER22 0xf358
  693. #define STB0899_BASE_TP_BUFFER22 0x00000040
  694. #define STB0899_OFF0_TP_BUFFER23 0xf35c
  695. #define STB0899_BASE_TP_BUFFER23 0x00000040
  696. #define STB0899_OFF0_TP_BUFFER24 0xf360
  697. #define STB0899_BASE_TP_BUFFER24 0x00000040
  698. #define STB0899_OFF0_TP_BUFFER25 0xf364
  699. #define STB0899_BASE_TP_BUFFER25 0x00000040
  700. #define STB0899_OFF0_TP_BUFFER26 0xf368
  701. #define STB0899_BASE_TP_BUFFER26 0x00000040
  702. #define STB0899_OFF0_TP_BUFFER27 0xf36c
  703. #define STB0899_BASE_TP_BUFFER27 0x00000040
  704. #define STB0899_OFF0_TP_BUFFER28 0xf370
  705. #define STB0899_BASE_TP_BUFFER28 0x00000040
  706. #define STB0899_OFF0_TP_BUFFER29 0xf374
  707. #define STB0899_BASE_TP_BUFFER29 0x00000040
  708. #define STB0899_OFF0_TP_BUFFER30 0xf378
  709. #define STB0899_BASE_TP_BUFFER30 0x00000040
  710. #define STB0899_OFF0_TP_BUFFER31 0xf37c
  711. #define STB0899_BASE_TP_BUFFER31 0x00000040
  712. #define STB0899_OFF0_TP_BUFFER32 0xf300
  713. #define STB0899_BASE_TP_BUFFER32 0x00000060
  714. #define STB0899_OFF0_TP_BUFFER33 0xf304
  715. #define STB0899_BASE_TP_BUFFER33 0x00000060
  716. #define STB0899_OFF0_TP_BUFFER34 0xf308
  717. #define STB0899_BASE_TP_BUFFER34 0x00000060
  718. #define STB0899_OFF0_TP_BUFFER35 0xf30c
  719. #define STB0899_BASE_TP_BUFFER35 0x00000060
  720. #define STB0899_OFF0_TP_BUFFER36 0xf310
  721. #define STB0899_BASE_TP_BUFFER36 0x00000060
  722. #define STB0899_OFF0_TP_BUFFER37 0xf314
  723. #define STB0899_BASE_TP_BUFFER37 0x00000060
  724. #define STB0899_OFF0_TP_BUFFER38 0xf318
  725. #define STB0899_BASE_TP_BUFFER38 0x00000060
  726. #define STB0899_OFF0_TP_BUFFER39 0xf31c
  727. #define STB0899_BASE_TP_BUFFER39 0x00000060
  728. #define STB0899_OFF0_TP_BUFFER40 0xf320
  729. #define STB0899_BASE_TP_BUFFER40 0x00000060
  730. #define STB0899_OFF0_TP_BUFFER41 0xf324
  731. #define STB0899_BASE_TP_BUFFER41 0x00000060
  732. #define STB0899_OFF0_TP_BUFFER42 0xf328
  733. #define STB0899_BASE_TP_BUFFER42 0x00000060
  734. #define STB0899_OFF0_TP_BUFFER43 0xf32c
  735. #define STB0899_BASE_TP_BUFFER43 0x00000060
  736. #define STB0899_OFF0_TP_BUFFER44 0xf330
  737. #define STB0899_BASE_TP_BUFFER44 0x00000060
  738. #define STB0899_OFF0_TP_BUFFER45 0xf334
  739. #define STB0899_BASE_TP_BUFFER45 0x00000060
  740. #define STB0899_OFF0_TP_BUFFER46 0xf338
  741. #define STB0899_BASE_TP_BUFFER46 0x00000060
  742. #define STB0899_OFF0_TP_BUFFER47 0xf33c
  743. #define STB0899_BASE_TP_BUFFER47 0x00000060
  744. #define STB0899_OFF0_TP_BUFFER48 0xf340
  745. #define STB0899_BASE_TP_BUFFER48 0x00000060
  746. #define STB0899_OFF0_TP_BUFFER49 0xf344
  747. #define STB0899_BASE_TP_BUFFER49 0x00000060
  748. #define STB0899_OFF0_TP_BUFFER50 0xf348
  749. #define STB0899_BASE_TP_BUFFER50 0x00000060
  750. #define STB0899_OFF0_TP_BUFFER51 0xf34c
  751. #define STB0899_BASE_TP_BUFFER51 0x00000060
  752. #define STB0899_OFF0_TP_BUFFER52 0xf350
  753. #define STB0899_BASE_TP_BUFFER52 0x00000060
  754. #define STB0899_OFF0_TP_BUFFER53 0xf354
  755. #define STB0899_BASE_TP_BUFFER53 0x00000060
  756. #define STB0899_OFF0_TP_BUFFER54 0xf358
  757. #define STB0899_BASE_TP_BUFFER54 0x00000060
  758. #define STB0899_OFF0_TP_BUFFER55 0xf35c
  759. #define STB0899_BASE_TP_BUFFER55 0x00000060
  760. #define STB0899_OFF0_TP_BUFFER56 0xf360
  761. #define STB0899_BASE_TP_BUFFER56 0x00000060
  762. #define STB0899_OFF0_TP_BUFFER57 0xf364
  763. #define STB0899_BASE_TP_BUFFER57 0x00000060
  764. #define STB0899_OFF0_TP_BUFFER58 0xf368
  765. #define STB0899_BASE_TP_BUFFER58 0x00000060
  766. #define STB0899_OFF0_TP_BUFFER59 0xf36c
  767. #define STB0899_BASE_TP_BUFFER59 0x00000060
  768. #define STB0899_OFF0_TP_BUFFER60 0xf370
  769. #define STB0899_BASE_TP_BUFFER60 0x00000060
  770. #define STB0899_OFF0_TP_BUFFER61 0xf374
  771. #define STB0899_BASE_TP_BUFFER61 0x00000060
  772. #define STB0899_OFF0_TP_BUFFER62 0xf378
  773. #define STB0899_BASE_TP_BUFFER62 0x00000060
  774. #define STB0899_OFF0_TP_BUFFER63 0xf37c
  775. #define STB0899_BASE_TP_BUFFER63 0x00000060
  776. #define STB0899_OFF0_RESET_CNTRL 0xf300
  777. #define STB0899_BASE_RESET_CNTRL 0x00000400
  778. #define STB0899_DVBS2_RESET (0x01 << 0)
  779. #define STB0899_OFFST_DVBS2_RESET 0
  780. #define STB0899_WIDTH_DVBS2_RESET 1
  781. #define STB0899_OFF0_ACM_ENABLE 0xf304
  782. #define STB0899_BASE_ACM_ENABLE 0x00000400
  783. #define STB0899_ACM_ENABLE 1
  784. #define STB0899_OFF0_DESCR_CNTRL 0xf30c
  785. #define STB0899_BASE_DESCR_CNTRL 0x00000400
  786. #define STB0899_OFFST_DESCR_CNTRL 0
  787. #define STB0899_WIDTH_DESCR_CNTRL 16
  788. #define STB0899_OFF0_UWP_CNTRL1 0xf320
  789. #define STB0899_BASE_UWP_CNTRL1 0x00000400
  790. #define STB0899_UWP_TH_SOF (0x7fff << 11)
  791. #define STB0899_OFFST_UWP_TH_SOF 11
  792. #define STB0899_WIDTH_UWP_TH_SOF 15
  793. #define STB0899_UWP_ESN0_QUANT (0xff << 3)
  794. #define STB0899_OFFST_UWP_ESN0_QUANT 3
  795. #define STB0899_WIDTH_UWP_ESN0_QUANT 8
  796. #define STB0899_UWP_ESN0_AVE (0x03 << 1)
  797. #define STB0899_OFFST_UWP_ESN0_AVE 1
  798. #define STB0899_WIDTH_UWP_ESN0_AVE 2
  799. #define STB0899_UWP_START (0x01 << 0)
  800. #define STB0899_OFFST_UWP_START 0
  801. #define STB0899_WIDTH_UWP_START 1
  802. #define STB0899_OFF0_UWP_CNTRL2 0xf324
  803. #define STB0899_BASE_UWP_CNTRL2 0x00000400
  804. #define STB0899_UWP_MISS_TH (0xff << 16)
  805. #define STB0899_OFFST_UWP_MISS_TH 16
  806. #define STB0899_WIDTH_UWP_MISS_TH 8
  807. #define STB0899_FE_FINE_TRK (0xff << 8)
  808. #define STB0899_OFFST_FE_FINE_TRK 8
  809. #define STB0899_WIDTH_FE_FINE_TRK 8
  810. #define STB0899_FE_COARSE_TRK (0xff << 0)
  811. #define STB0899_OFFST_FE_COARSE_TRK 0
  812. #define STB0899_WIDTH_FE_COARSE_TRK 8
  813. #define STB0899_OFF0_UWP_STAT1 0xf328
  814. #define STB0899_BASE_UWP_STAT1 0x00000400
  815. #define STB0899_UWP_STATE (0x03ff << 15)
  816. #define STB0899_OFFST_UWP_STATE 15
  817. #define STB0899_WIDTH_UWP_STATE 10
  818. #define STB0899_UW_MAX_PEAK (0x7fff << 0)
  819. #define STB0899_OFFST_UW_MAX_PEAK 0
  820. #define STB0899_WIDTH_UW_MAX_PEAK 15
  821. #define STB0899_OFF0_UWP_STAT2 0xf32c
  822. #define STB0899_BASE_UWP_STAT2 0x00000400
  823. #define STB0899_ESNO_EST (0x07ffff << 7)
  824. #define STB0899_OFFST_ESN0_EST 7
  825. #define STB0899_WIDTH_ESN0_EST 19
  826. #define STB0899_UWP_DECODE_MOD (0x7f << 0)
  827. #define STB0899_OFFST_UWP_DECODE_MOD 0
  828. #define STB0899_WIDTH_UWP_DECODE_MOD 7
  829. #define STB0899_OFF0_DMD_CORE_ID 0xf334
  830. #define STB0899_BASE_DMD_CORE_ID 0x00000400
  831. #define STB0899_CORE_ID (0xffffffff << 0)
  832. #define STB0899_OFFST_CORE_ID 0
  833. #define STB0899_WIDTH_CORE_ID 32
  834. #define STB0899_OFF0_DMD_VERSION_ID 0xf33c
  835. #define STB0899_BASE_DMD_VERSION_ID 0x00000400
  836. #define STB0899_VERSION_ID (0xff << 0)
  837. #define STB0899_OFFST_VERSION_ID 0
  838. #define STB0899_WIDTH_VERSION_ID 8
  839. #define STB0899_OFF0_DMD_STAT2 0xf340
  840. #define STB0899_BASE_DMD_STAT2 0x00000400
  841. #define STB0899_CSM_LOCK (0x01 << 1)
  842. #define STB0899_OFFST_CSM_LOCK 1
  843. #define STB0899_WIDTH_CSM_LOCK 1
  844. #define STB0899_UWP_LOCK (0x01 << 0)
  845. #define STB0899_OFFST_UWP_LOCK 0
  846. #define STB0899_WIDTH_UWP_LOCK 1
  847. #define STB0899_OFF0_FREQ_ADJ_SCALE 0xf344
  848. #define STB0899_BASE_FREQ_ADJ_SCALE 0x00000400
  849. #define STB0899_FREQ_ADJ_SCALE (0x0fff << 0)
  850. #define STB0899_OFFST_FREQ_ADJ_SCALE 0
  851. #define STB0899_WIDTH_FREQ_ADJ_SCALE 12
  852. #define STB0899_OFF0_UWP_CNTRL3 0xf34c
  853. #define STB0899_BASE_UWP_CNTRL3 0x00000400
  854. #define STB0899_UWP_TH_TRACK (0x7fff << 15)
  855. #define STB0899_OFFST_UWP_TH_TRACK 15
  856. #define STB0899_WIDTH_UWP_TH_TRACK 15
  857. #define STB0899_UWP_TH_ACQ (0x7fff << 0)
  858. #define STB0899_OFFST_UWP_TH_ACQ 0
  859. #define STB0899_WIDTH_UWP_TH_ACQ 15
  860. #define STB0899_OFF0_SYM_CLK_SEL 0xf350
  861. #define STB0899_BASE_SYM_CLK_SEL 0x00000400
  862. #define STB0899_SYM_CLK_SEL (0x03 << 0)
  863. #define STB0899_OFFST_SYM_CLK_SEL 0
  864. #define STB0899_WIDTH_SYM_CLK_SEL 2
  865. #define STB0899_OFF0_SOF_SRCH_TO 0xf354
  866. #define STB0899_BASE_SOF_SRCH_TO 0x00000400
  867. #define STB0899_SOF_SEARCH_TIMEOUT (0x3fffff << 0)
  868. #define STB0899_OFFST_SOF_SEARCH_TIMEOUT 0
  869. #define STB0899_WIDTH_SOF_SEARCH_TIMEOUT 22
  870. #define STB0899_OFF0_ACQ_CNTRL1 0xf358
  871. #define STB0899_BASE_ACQ_CNTRL1 0x00000400
  872. #define STB0899_FE_FINE_ACQ (0xff << 8)
  873. #define STB0899_OFFST_FE_FINE_ACQ 8
  874. #define STB0899_WIDTH_FE_FINE_ACQ 8
  875. #define STB0899_FE_COARSE_ACQ (0xff << 0)
  876. #define STB0899_OFFST_FE_COARSE_ACQ 0
  877. #define STB0899_WIDTH_FE_COARSE_ACQ 8
  878. #define STB0899_OFF0_ACQ_CNTRL2 0xf35c
  879. #define STB0899_BASE_ACQ_CNTRL2 0x00000400
  880. #define STB0899_ZIGZAG (0x01 << 25)
  881. #define STB0899_OFFST_ZIGZAG 25
  882. #define STB0899_WIDTH_ZIGZAG 1
  883. #define STB0899_NUM_STEPS (0xff << 17)
  884. #define STB0899_OFFST_NUM_STEPS 17
  885. #define STB0899_WIDTH_NUM_STEPS 8
  886. #define STB0899_FREQ_STEPSIZE (0x1ffff << 0)
  887. #define STB0899_OFFST_FREQ_STEPSIZE 0
  888. #define STB0899_WIDTH_FREQ_STEPSIZE 17
  889. #define STB0899_OFF0_ACQ_CNTRL3 0xf360
  890. #define STB0899_BASE_ACQ_CNTRL3 0x00000400
  891. #define STB0899_THRESHOLD_SCL (0x3f << 23)
  892. #define STB0899_OFFST_THRESHOLD_SCL 23
  893. #define STB0899_WIDTH_THRESHOLD_SCL 6
  894. #define STB0899_UWP_TH_SRCH (0x7fff << 8)
  895. #define STB0899_OFFST_UWP_TH_SRCH 8
  896. #define STB0899_WIDTH_UWP_TH_SRCH 15
  897. #define STB0899_AUTO_REACQUIRE (0x01 << 7)
  898. #define STB0899_OFFST_AUTO_REACQUIRE 7
  899. #define STB0899_WIDTH_AUTO_REACQUIRE 1
  900. #define STB0899_TRACK_LOCK_SEL (0x01 << 6)
  901. #define STB0899_OFFST_TRACK_LOCK_SEL 6
  902. #define STB0899_WIDTH_TRACK_LOCK_SEL 1
  903. #define STB0899_ACQ_SEARCH_MODE (0x03 << 4)
  904. #define STB0899_OFFST_ACQ_SEARCH_MODE 4
  905. #define STB0899_WIDTH_ACQ_SEARCH_MODE 2
  906. #define STB0899_CONFIRM_FRAMES (0x0f << 0)
  907. #define STB0899_OFFST_CONFIRM_FRAMES 0
  908. #define STB0899_WIDTH_CONFIRM_FRAMES 4
  909. #define STB0899_OFF0_FE_SETTLE 0xf364
  910. #define STB0899_BASE_FE_SETTLE 0x00000400
  911. #define STB0899_SETTLING_TIME (0x3fffff << 0)
  912. #define STB0899_OFFST_SETTLING_TIME 0
  913. #define STB0899_WIDTH_SETTLING_TIME 22
  914. #define STB0899_OFF0_AC_DWELL 0xf368
  915. #define STB0899_BASE_AC_DWELL 0x00000400
  916. #define STB0899_DWELL_TIME (0x3fffff << 0)
  917. #define STB0899_OFFST_DWELL_TIME 0
  918. #define STB0899_WIDTH_DWELL_TIME 22
  919. #define STB0899_OFF0_ACQUIRE_TRIG 0xf36c
  920. #define STB0899_BASE_ACQUIRE_TRIG 0x00000400
  921. #define STB0899_ACQUIRE (0x01 << 0)
  922. #define STB0899_OFFST_ACQUIRE 0
  923. #define STB0899_WIDTH_ACQUIRE 1
  924. #define STB0899_OFF0_LOCK_LOST 0xf370
  925. #define STB0899_BASE_LOCK_LOST 0x00000400
  926. #define STB0899_LOCK_LOST (0x01 << 0)
  927. #define STB0899_OFFST_LOCK_LOST 0
  928. #define STB0899_WIDTH_LOCK_LOST 1
  929. #define STB0899_OFF0_ACQ_STAT1 0xf374
  930. #define STB0899_BASE_ACQ_STAT1 0x00000400
  931. #define STB0899_STEP_FREQ (0x1fffff << 11)
  932. #define STB0899_OFFST_STEP_FREQ 11
  933. #define STB0899_WIDTH_STEP_FREQ 21
  934. #define STB0899_ACQ_STATE (0x07 << 8)
  935. #define STB0899_OFFST_ACQ_STATE 8
  936. #define STB0899_WIDTH_ACQ_STATE 3
  937. #define STB0899_UW_DETECT_COUNT (0xff << 0)
  938. #define STB0899_OFFST_UW_DETECT_COUNT 0
  939. #define STB0899_WIDTH_UW_DETECT_COUNT 8
  940. #define STB0899_OFF0_ACQ_TIMEOUT 0xf378
  941. #define STB0899_BASE_ACQ_TIMEOUT 0x00000400
  942. #define STB0899_ACQ_TIMEOUT (0x3fffff << 0)
  943. #define STB0899_OFFST_ACQ_TIMEOUT 0
  944. #define STB0899_WIDTH_ACQ_TIMEOUT 22
  945. #define STB0899_OFF0_ACQ_TIME 0xf37c
  946. #define STB0899_BASE_ACQ_TIME 0x00000400
  947. #define STB0899_ACQ_TIME_SYM (0xffffff << 0)
  948. #define STB0899_OFFST_ACQ_TIME_SYM 0
  949. #define STB0899_WIDTH_ACQ_TIME_SYM 24
  950. #define STB0899_OFF0_FINAL_AGC_CNTRL 0xf308
  951. #define STB0899_BASE_FINAL_AGC_CNTRL 0x00000440
  952. #define STB0899_FINAL_GAIN_INIT (0x3fff << 12)
  953. #define STB0899_OFFST_FINAL_GAIN_INIT 12
  954. #define STB0899_WIDTH_FINAL_GAIN_INIT 14
  955. #define STB0899_FINAL_LOOP_GAIN (0x0f << 8)
  956. #define STB0899_OFFST_FINAL_LOOP_GAIN 8
  957. #define STB0899_WIDTH_FINAL_LOOP_GAIN 4
  958. #define STB0899_FINAL_LD_GAIN_INIT (0x01 << 7)
  959. #define STB0899_OFFST_FINAL_LD_GAIN_INIT 7
  960. #define STB0899_WIDTH_FINAL_LD_GAIN_INIT 1
  961. #define STB0899_FINAL_AGC_REF (0x7f << 0)
  962. #define STB0899_OFFST_FINAL_AGC_REF 0
  963. #define STB0899_WIDTH_FINAL_AGC_REF 7
  964. #define STB0899_OFF0_FINAL_AGC_GAIN 0xf30c
  965. #define STB0899_BASE_FINAL_AGC_GAIN 0x00000440
  966. #define STB0899_FINAL_AGC_GAIN (0x3fff << 0)
  967. #define STB0899_OFFST_FINAL_AGC_GAIN 0
  968. #define STB0899_WIDTH_FINAL_AGC_GAIN 14
  969. #define STB0899_OFF0_EQUALIZER_INIT 0xf310
  970. #define STB0899_BASE_EQUALIZER_INIT 0x00000440
  971. #define STB0899_EQ_SRST (0x01 << 1)
  972. #define STB0899_OFFST_EQ_SRST 1
  973. #define STB0899_WIDTH_EQ_SRST 1
  974. #define STB0899_EQ_INIT (0x01 << 0)
  975. #define STB0899_OFFST_EQ_INIT 0
  976. #define STB0899_WIDTH_EQ_INIT 1
  977. #define STB0899_OFF0_EQ_CNTRL 0xf314
  978. #define STB0899_BASE_EQ_CNTRL 0x00000440
  979. #define STB0899_EQ_ADAPT_MODE (0x01 << 18)
  980. #define STB0899_OFFST_EQ_ADAPT_MODE 18
  981. #define STB0899_WIDTH_EQ_ADAPT_MODE 1
  982. #define STB0899_EQ_DELAY (0x0f << 14)
  983. #define STB0899_OFFST_EQ_DELAY 14
  984. #define STB0899_WIDTH_EQ_DELAY 4
  985. #define STB0899_EQ_QUANT_LEVEL (0xff << 6)
  986. #define STB0899_OFFST_EQ_QUANT_LEVEL 6
  987. #define STB0899_WIDTH_EQ_QUANT_LEVEL 8
  988. #define STB0899_EQ_DISABLE_UPDATE (0x01 << 5)
  989. #define STB0899_OFFST_EQ_DISABLE_UPDATE 5
  990. #define STB0899_WIDTH_EQ_DISABLE_UPDATE 1
  991. #define STB0899_EQ_BYPASS (0x01 << 4)
  992. #define STB0899_OFFST_EQ_BYPASS 4
  993. #define STB0899_WIDTH_EQ_BYPASS 1
  994. #define STB0899_EQ_SHIFT (0x0f << 0)
  995. #define STB0899_OFFST_EQ_SHIFT 0
  996. #define STB0899_WIDTH_EQ_SHIFT 4
  997. #define STB0899_OFF0_EQ_I_INIT_COEFF_0 0xf320
  998. #define STB0899_OFF1_EQ_I_INIT_COEFF_1 0xf324
  999. #define STB0899_OFF2_EQ_I_INIT_COEFF_2 0xf328
  1000. #define STB0899_OFF3_EQ_I_INIT_COEFF_3 0xf32c
  1001. #define STB0899_OFF4_EQ_I_INIT_COEFF_4 0xf330
  1002. #define STB0899_OFF5_EQ_I_INIT_COEFF_5 0xf334
  1003. #define STB0899_OFF6_EQ_I_INIT_COEFF_6 0xf338
  1004. #define STB0899_OFF7_EQ_I_INIT_COEFF_7 0xf33c
  1005. #define STB0899_OFF8_EQ_I_INIT_COEFF_8 0xf340
  1006. #define STB0899_OFF9_EQ_I_INIT_COEFF_9 0xf344
  1007. #define STB0899_OFFa_EQ_I_INIT_COEFF_10 0xf348
  1008. #define STB0899_BASE_EQ_I_INIT_COEFF_N 0x00000440
  1009. #define STB0899_EQ_I_INIT_COEFF_N (0x0fff << 0)
  1010. #define STB0899_OFFST_EQ_I_INIT_COEFF_N 0
  1011. #define STB0899_WIDTH_EQ_I_INIT_COEFF_N 12
  1012. #define STB0899_OFF0_EQ_Q_INIT_COEFF_0 0xf350
  1013. #define STB0899_OFF1_EQ_Q_INIT_COEFF_1 0xf354
  1014. #define STB0899_OFF2_EQ_Q_INIT_COEFF_2 0xf358
  1015. #define STB0899_OFF3_EQ_Q_INIT_COEFF_3 0xf35c
  1016. #define STB0899_OFF4_EQ_Q_INIT_COEFF_4 0xf360
  1017. #define STB0899_OFF5_EQ_Q_INIT_COEFF_5 0xf364
  1018. #define STB0899_OFF6_EQ_Q_INIT_COEFF_6 0xf368
  1019. #define STB0899_OFF7_EQ_Q_INIT_COEFF_7 0xf36c
  1020. #define STB0899_OFF8_EQ_Q_INIT_COEFF_8 0xf370
  1021. #define STB0899_OFF9_EQ_Q_INIT_COEFF_9 0xf374
  1022. #define STB0899_OFFa_EQ_Q_INIT_COEFF_10 0xf378
  1023. #define STB0899_BASE_EQ_Q_INIT_COEFF_N 0x00000440
  1024. #define STB0899_EQ_Q_INIT_COEFF_N (0x0fff << 0)
  1025. #define STB0899_OFFST_EQ_Q_INIT_COEFF_N 0
  1026. #define STB0899_WIDTH_EQ_Q_INIT_COEFF_N 12
  1027. #define STB0899_OFF0_EQ_I_OUT_COEFF_0 0xf300
  1028. #define STB0899_OFF1_EQ_I_OUT_COEFF_1 0xf304
  1029. #define STB0899_OFF2_EQ_I_OUT_COEFF_2 0xf308
  1030. #define STB0899_OFF3_EQ_I_OUT_COEFF_3 0xf30c
  1031. #define STB0899_OFF4_EQ_I_OUT_COEFF_4 0xf310
  1032. #define STB0899_OFF5_EQ_I_OUT_COEFF_5 0xf314
  1033. #define STB0899_OFF6_EQ_I_OUT_COEFF_6 0xf318
  1034. #define STB0899_OFF7_EQ_I_OUT_COEFF_7 0xf31c
  1035. #define STB0899_OFF8_EQ_I_OUT_COEFF_8 0xf320
  1036. #define STB0899_OFF9_EQ_I_OUT_COEFF_9 0xf324
  1037. #define STB0899_OFFa_EQ_I_OUT_COEFF_10 0xf328
  1038. #define STB0899_BASE_EQ_I_OUT_COEFF_N 0x00000460
  1039. #define STB0899_EQ_I_OUT_COEFF_N (0x0fff << 0)
  1040. #define STB0899_OFFST_EQ_I_OUT_COEFF_N 0
  1041. #define STB0899_WIDTH_EQ_I_OUT_COEFF_N 12
  1042. #define STB0899_OFF0_EQ_Q_OUT_COEFF_0 0xf330
  1043. #define STB0899_OFF1_EQ_Q_OUT_COEFF_1 0xf334
  1044. #define STB0899_OFF2_EQ_Q_OUT_COEFF_2 0xf338
  1045. #define STB0899_OFF3_EQ_Q_OUT_COEFF_3 0xf33c
  1046. #define STB0899_OFF4_EQ_Q_OUT_COEFF_4 0xf340
  1047. #define STB0899_OFF5_EQ_Q_OUT_COEFF_5 0xf344
  1048. #define STB0899_OFF6_EQ_Q_OUT_COEFF_6 0xf348
  1049. #define STB0899_OFF7_EQ_Q_OUT_COEFF_7 0xf34c
  1050. #define STB0899_OFF8_EQ_Q_OUT_COEFF_8 0xf350
  1051. #define STB0899_OFF9_EQ_Q_OUT_COEFF_9 0xf354
  1052. #define STB0899_OFFa_EQ_Q_OUT_COEFF_10 0xf358
  1053. #define STB0899_BASE_EQ_Q_OUT_COEFF_N 0x00000460
  1054. #define STB0899_EQ_Q_OUT_COEFF_N (0x0fff << 0)
  1055. #define STB0899_OFFST_EQ_Q_OUT_COEFF_N 0
  1056. #define STB0899_WIDTH_EQ_Q_OUT_COEFF_N 12
  1057. /* S2 FEC */
  1058. #define STB0899_OFF0_BLOCK_LNGTH 0xfa04
  1059. #define STB0899_BASE_BLOCK_LNGTH 0x00000000
  1060. #define STB0899_BLOCK_LENGTH (0xff << 0)
  1061. #define STB0899_OFFST_BLOCK_LENGTH 0
  1062. #define STB0899_WIDTH_BLOCK_LENGTH 8
  1063. #define STB0899_OFF0_ROW_STR 0xfa08
  1064. #define STB0899_BASE_ROW_STR 0x00000000
  1065. #define STB0899_ROW_STRIDE (0xff << 0)
  1066. #define STB0899_OFFST_ROW_STRIDE 0
  1067. #define STB0899_WIDTH_ROW_STRIDE 8
  1068. #define STB0899_OFF0_MAX_ITER 0xfa0c
  1069. #define STB0899_BASE_MAX_ITER 0x00000000
  1070. #define STB0899_MAX_ITERATIONS (0xff << 0)
  1071. #define STB0899_OFFST_MAX_ITERATIONS 0
  1072. #define STB0899_WIDTH_MAX_ITERATIONS 8
  1073. #define STB0899_OFF0_BN_END_ADDR 0xfa10
  1074. #define STB0899_BASE_BN_END_ADDR 0x00000000
  1075. #define STB0899_BN_END_ADDR (0x0fff << 0)
  1076. #define STB0899_OFFST_BN_END_ADDR 0
  1077. #define STB0899_WIDTH_BN_END_ADDR 12
  1078. #define STB0899_OFF0_CN_END_ADDR 0xfa14
  1079. #define STB0899_BASE_CN_END_ADDR 0x00000000
  1080. #define STB0899_CN_END_ADDR (0x0fff << 0)
  1081. #define STB0899_OFFST_CN_END_ADDR 0
  1082. #define STB0899_WIDTH_CN_END_ADDR 12
  1083. #define STB0899_OFF0_INFO_LENGTH 0xfa1c
  1084. #define STB0899_BASE_INFO_LENGTH 0x00000000
  1085. #define STB0899_INFO_LENGTH (0xff << 0)
  1086. #define STB0899_OFFST_INFO_LENGTH 0
  1087. #define STB0899_WIDTH_INFO_LENGTH 8
  1088. #define STB0899_OFF0_BOT_ADDR 0xfa20
  1089. #define STB0899_BASE_BOT_ADDR 0x00000000
  1090. #define STB0899_BOTTOM_BASE_ADDR (0x03ff << 0)
  1091. #define STB0899_OFFST_BOTTOM_BASE_ADDR 0
  1092. #define STB0899_WIDTH_BOTTOM_BASE_ADDR 10
  1093. #define STB0899_OFF0_BCH_BLK_LN 0xfa24
  1094. #define STB0899_BASE_BCH_BLK_LN 0x00000000
  1095. #define STB0899_BCH_BLOCK_LENGTH (0xffff << 0)
  1096. #define STB0899_OFFST_BCH_BLOCK_LENGTH 0
  1097. #define STB0899_WIDTH_BCH_BLOCK_LENGTH 16
  1098. #define STB0899_OFF0_BCH_T 0xfa28
  1099. #define STB0899_BASE_BCH_T 0x00000000
  1100. #define STB0899_BCH_T (0x0f << 0)
  1101. #define STB0899_OFFST_BCH_T 0
  1102. #define STB0899_WIDTH_BCH_T 4
  1103. #define STB0899_OFF0_CNFG_MODE 0xfa00
  1104. #define STB0899_BASE_CNFG_MODE 0x00000800
  1105. #define STB0899_MODCOD (0x1f << 2)
  1106. #define STB0899_OFFST_MODCOD 2
  1107. #define STB0899_WIDTH_MODCOD 5
  1108. #define STB0899_MODCOD_SEL (0x01 << 1)
  1109. #define STB0899_OFFST_MODCOD_SEL 1
  1110. #define STB0899_WIDTH_MODCOD_SEL 1
  1111. #define STB0899_CONFIG_MODE (0x01 << 0)
  1112. #define STB0899_OFFST_CONFIG_MODE 0
  1113. #define STB0899_WIDTH_CONFIG_MODE 1
  1114. #define STB0899_OFF0_LDPC_STAT 0xfa04
  1115. #define STB0899_BASE_LDPC_STAT 0x00000800
  1116. #define STB0899_ITERATION (0xff << 3)
  1117. #define STB0899_OFFST_ITERATION 3
  1118. #define STB0899_WIDTH_ITERATION 8
  1119. #define STB0899_LDPC_DEC_STATE (0x07 << 0)
  1120. #define STB0899_OFFST_LDPC_DEC_STATE 0
  1121. #define STB0899_WIDTH_LDPC_DEC_STATE 3
  1122. #define STB0899_OFF0_ITER_SCALE 0xfa08
  1123. #define STB0899_BASE_ITER_SCALE 0x00000800
  1124. #define STB0899_ITERATION_SCALE (0xff << 0)
  1125. #define STB0899_OFFST_ITERATION_SCALE 0
  1126. #define STB0899_WIDTH_ITERATION_SCALE 8
  1127. #define STB0899_OFF0_INPUT_MODE 0xfa0c
  1128. #define STB0899_BASE_INPUT_MODE 0x00000800
  1129. #define STB0899_SD_BLOCK1_STREAM0 (0x01 << 0)
  1130. #define STB0899_OFFST_SD_BLOCK1_STREAM0 0
  1131. #define STB0899_WIDTH_SD_BLOCK1_STREAM0 1
  1132. #define STB0899_OFF0_LDPCDECRST 0xfa10
  1133. #define STB0899_BASE_LDPCDECRST 0x00000800
  1134. #define STB0899_LDPC_DEC_RST (0x01 << 0)
  1135. #define STB0899_OFFST_LDPC_DEC_RST 0
  1136. #define STB0899_WIDTH_LDPC_DEC_RST 1
  1137. #define STB0899_OFF0_CLK_PER_BYTE_RW 0xfa14
  1138. #define STB0899_BASE_CLK_PER_BYTE_RW 0x00000800
  1139. #define STB0899_CLKS_PER_BYTE (0x0f << 0)
  1140. #define STB0899_OFFST_CLKS_PER_BYTE 0
  1141. #define STB0899_WIDTH_CLKS_PER_BYTE 5
  1142. #define STB0899_OFF0_BCH_ERRORS 0xfa18
  1143. #define STB0899_BASE_BCH_ERRORS 0x00000800
  1144. #define STB0899_BCH_ERRORS (0x0f << 0)
  1145. #define STB0899_OFFST_BCH_ERRORS 0
  1146. #define STB0899_WIDTH_BCH_ERRORS 4
  1147. #define STB0899_OFF0_LDPC_ERRORS 0xfa1c
  1148. #define STB0899_BASE_LDPC_ERRORS 0x00000800
  1149. #define STB0899_LDPC_ERRORS (0xffff << 0)
  1150. #define STB0899_OFFST_LDPC_ERRORS 0
  1151. #define STB0899_WIDTH_LDPC_ERRORS 16
  1152. #define STB0899_OFF0_BCH_MODE 0xfa20
  1153. #define STB0899_BASE_BCH_MODE 0x00000800
  1154. #define STB0899_BCH_CORRECT_N (0x01 << 1)
  1155. #define STB0899_OFFST_BCH_CORRECT_N 1
  1156. #define STB0899_WIDTH_BCH_CORRECT_N 1
  1157. #define STB0899_FULL_BYPASS (0x01 << 0)
  1158. #define STB0899_OFFST_FULL_BYPASS 0
  1159. #define STB0899_WIDTH_FULL_BYPASS 1
  1160. #define STB0899_OFF0_ERR_ACC_PER 0xfa24
  1161. #define STB0899_BASE_ERR_ACC_PER 0x00000800
  1162. #define STB0899_BCH_ERR_ACC_PERIOD (0x0f << 0)
  1163. #define STB0899_OFFST_BCH_ERR_ACC_PERIOD 0
  1164. #define STB0899_WIDTH_BCH_ERR_ACC_PERIOD 4
  1165. #define STB0899_OFF0_BCH_ERR_ACC 0xfa28
  1166. #define STB0899_BASE_BCH_ERR_ACC 0x00000800
  1167. #define STB0899_BCH_ERR_ACCUM (0xff << 0)
  1168. #define STB0899_OFFST_BCH_ERR_ACCUM 0
  1169. #define STB0899_WIDTH_BCH_ERR_ACCUM 8
  1170. #define STB0899_OFF0_FEC_CORE_ID_REG 0xfa2c
  1171. #define STB0899_BASE_FEC_CORE_ID_REG 0x00000800
  1172. #define STB0899_FEC_CORE_ID (0xffffffff << 0)
  1173. #define STB0899_OFFST_FEC_CORE_ID 0
  1174. #define STB0899_WIDTH_FEC_CORE_ID 32
  1175. #define STB0899_OFF0_FEC_VER_ID_REG 0xfa34
  1176. #define STB0899_BASE_FEC_VER_ID_REG 0x00000800
  1177. #define STB0899_FEC_VER_ID (0xff << 0)
  1178. #define STB0899_OFFST_FEC_VER_ID 0
  1179. #define STB0899_WIDTH_FEC_VER_ID 8
  1180. #define STB0899_OFF0_FEC_TP_SEL 0xfa38
  1181. #define STB0899_BASE_FEC_TP_SEL 0x00000800
  1182. #define STB0899_OFF0_CSM_CNTRL1 0xf310
  1183. #define STB0899_BASE_CSM_CNTRL1 0x00000400
  1184. #define STB0899_CSM_FORCE_FREQLOCK (0x01 << 19)
  1185. #define STB0899_OFFST_CSM_FORCE_FREQLOCK 19
  1186. #define STB0899_WIDTH_CSM_FORCE_FREQLOCK 1
  1187. #define STB0899_CSM_FREQ_LOCKSTATE (0x01 << 18)
  1188. #define STB0899_OFFST_CSM_FREQ_LOCKSTATE 18
  1189. #define STB0899_WIDTH_CSM_FREQ_LOCKSTATE 1
  1190. #define STB0899_CSM_AUTO_PARAM (0x01 << 17)
  1191. #define STB0899_OFFST_CSM_AUTO_PARAM 17
  1192. #define STB0899_WIDTH_CSM_AUTO_PARAM 1
  1193. #define STB0899_FE_LOOP_SHIFT (0x07 << 14)
  1194. #define STB0899_OFFST_FE_LOOP_SHIFT 14
  1195. #define STB0899_WIDTH_FE_LOOP_SHIFT 3
  1196. #define STB0899_CSM_AGC_SHIFT (0x07 << 11)
  1197. #define STB0899_OFFST_CSM_AGC_SHIFT 11
  1198. #define STB0899_WIDTH_CSM_AGC_SHIFT 3
  1199. #define STB0899_CSM_AGC_GAIN (0x1ff << 2)
  1200. #define STB0899_OFFST_CSM_AGC_GAIN 2
  1201. #define STB0899_WIDTH_CSM_AGC_GAIN 9
  1202. #define STB0899_CSM_TWO_PASS (0x01 << 1)
  1203. #define STB0899_OFFST_CSM_TWO_PASS 1
  1204. #define STB0899_WIDTH_CSM_TWO_PASS 1
  1205. #define STB0899_CSM_DVT_TABLE (0x01 << 0)
  1206. #define STB0899_OFFST_CSM_DVT_TABLE 0
  1207. #define STB0899_WIDTH_CSM_DVT_TABLE 1
  1208. #define STB0899_OFF0_CSM_CNTRL2 0xf314
  1209. #define STB0899_BASE_CSM_CNTRL2 0x00000400
  1210. #define STB0899_CSM_GAMMA_RHO_ACQ (0x1ff << 9)
  1211. #define STB0899_OFFST_CSM_GAMMA_RHOACQ 9
  1212. #define STB0899_WIDTH_CSM_GAMMA_RHOACQ 9
  1213. #define STB0899_CSM_GAMMA_ACQ (0x1ff << 0)
  1214. #define STB0899_OFFST_CSM_GAMMA_ACQ 0
  1215. #define STB0899_WIDTH_CSM_GAMMA_ACQ 9
  1216. #define STB0899_OFF0_CSM_CNTRL3 0xf318
  1217. #define STB0899_BASE_CSM_CNTRL3 0x00000400
  1218. #define STB0899_CSM_GAMMA_RHO_TRACK (0x1ff << 9)
  1219. #define STB0899_OFFST_CSM_GAMMA_RHOTRACK 9
  1220. #define STB0899_WIDTH_CSM_GAMMA_RHOTRACK 9
  1221. #define STB0899_CSM_GAMMA_TRACK (0x1ff << 0)
  1222. #define STB0899_OFFST_CSM_GAMMA_TRACK 0
  1223. #define STB0899_WIDTH_CSM_GAMMA_TRACK 9
  1224. #define STB0899_OFF0_CSM_CNTRL4 0xf31c
  1225. #define STB0899_BASE_CSM_CNTRL4 0x00000400
  1226. #define STB0899_CSM_PHASEDIFF_THRESH (0x0f << 8)
  1227. #define STB0899_OFFST_CSM_PHASEDIFF_THRESH 8
  1228. #define STB0899_WIDTH_CSM_PHASEDIFF_THRESH 4
  1229. #define STB0899_CSM_LOCKCOUNT_THRESH (0xff << 0)
  1230. #define STB0899_OFFST_CSM_LOCKCOUNT_THRESH 0
  1231. #define STB0899_WIDTH_CSM_LOCKCOUNT_THRESH 8
  1232. /* Check on chapter 8 page 42 */
  1233. #define STB0899_ERRCTRL1 0xf574
  1234. #define STB0899_ERRCTRL2 0xf575
  1235. #define STB0899_ERRCTRL3 0xf576
  1236. #define STB0899_ERR_SRC_S1 (0x1f << 3)
  1237. #define STB0899_OFFST_ERR_SRC_S1 3
  1238. #define STB0899_WIDTH_ERR_SRC_S1 5
  1239. #define STB0899_ERR_SRC_S2 (0x0f << 0)
  1240. #define STB0899_OFFST_ERR_SRC_S2 0
  1241. #define STB0899_WIDTH_ERR_SRC_S2 4
  1242. #define STB0899_NOE (0x07 << 0)
  1243. #define STB0899_OFFST_NOE 0
  1244. #define STB0899_WIDTH_NOE 3
  1245. #define STB0899_ECNT1M 0xf524
  1246. #define STB0899_ECNT1L 0xf525
  1247. #define STB0899_ECNT2M 0xf526
  1248. #define STB0899_ECNT2L 0xf527
  1249. #define STB0899_ECNT3M 0xf528
  1250. #define STB0899_ECNT3L 0xf529
  1251. #define STB0899_DMONMSK1 0xf57b
  1252. #define STB0899_DMONMSK1_WAIT_1STEP (1 << 7)
  1253. #define STB0899_DMONMSK1_FREE_14 (1 << 6)
  1254. #define STB0899_DMONMSK1_AVRGVIT_CALC (1 << 5)
  1255. #define STB0899_DMONMSK1_FREE_12 (1 << 4)
  1256. #define STB0899_DMONMSK1_FREE_11 (1 << 3)
  1257. #define STB0899_DMONMSK1_B0DIV_CALC (1 << 2)
  1258. #define STB0899_DMONMSK1_KDIVB1_CALC (1 << 1)
  1259. #define STB0899_DMONMSK1_KDIVB2_CALC (1 << 0)
  1260. #define STB0899_DMONMSK0 0xf57c
  1261. #define STB0899_DMONMSK0_SMOTTH_CALC (1 << 7)
  1262. #define STB0899_DMONMSK0_FREE_6 (1 << 6)
  1263. #define STB0899_DMONMSK0_SIGPOWER_CALC (1 << 5)
  1264. #define STB0899_DMONMSK0_QSEUIL_CALC (1 << 4)
  1265. #define STB0899_DMONMSK0_FREE_3 (1 << 3)
  1266. #define STB0899_DMONMSK0_FREE_2 (1 << 2)
  1267. #define STB0899_DMONMSK0_KVDIVB1_CALC (1 << 1)
  1268. #define STB0899_DMONMSK0_KVDIVB2_CALC (1 << 0)
  1269. #define STB0899_TSULC 0xf549
  1270. #define STB0899_ULNOSYNCBYTES (0x01 << 7)
  1271. #define STB0899_OFFST_ULNOSYNCBYTES 7
  1272. #define STB0899_WIDTH_ULNOSYNCBYTES 1
  1273. #define STB0899_ULPARITY_ON (0x01 << 6)
  1274. #define STB0899_OFFST_ULPARITY_ON 6
  1275. #define STB0899_WIDTH_ULPARITY_ON 1
  1276. #define STB0899_ULSYNCOUTRS (0x01 << 5)
  1277. #define STB0899_OFFST_ULSYNCOUTRS 5
  1278. #define STB0899_WIDTH_ULSYNCOUTRS 1
  1279. #define STB0899_ULDSS_PACKETS (0x01 << 0)
  1280. #define STB0899_OFFST_ULDSS_PACKETS 0
  1281. #define STB0899_WIDTH_ULDSS_PACKETS 1
  1282. #define STB0899_TSLPL 0xf54b
  1283. #define STB0899_LLDVBS2_MODE (0x01 << 4)
  1284. #define STB0899_OFFST_LLDVBS2_MODE 4
  1285. #define STB0899_WIDTH_LLDVBS2_MODE 1
  1286. #define STB0899_LLISSYI_ON (0x01 << 3)
  1287. #define STB0899_OFFST_LLISSYI_ON 3
  1288. #define STB0899_WIDTH_LLISSYI_ON 1
  1289. #define STB0899_LLNPD_ON (0x01 << 2)
  1290. #define STB0899_OFFST_LLNPD_ON 2
  1291. #define STB0899_WIDTH_LLNPD_ON 1
  1292. #define STB0899_LLCRC8_ON (0x01 << 1)
  1293. #define STB0899_OFFST_LLCRC8_ON 1
  1294. #define STB0899_WIDTH_LLCRC8_ON 1
  1295. #define STB0899_TSCFGH 0xf54c
  1296. #define STB0899_OUTRS_PS (0x01 << 6)
  1297. #define STB0899_OFFST_OUTRS_PS 6
  1298. #define STB0899_WIDTH_OUTRS_PS 1
  1299. #define STB0899_SYNCBYTE (0x01 << 5)
  1300. #define STB0899_OFFST_SYNCBYTE 5
  1301. #define STB0899_WIDTH_SYNCBYTE 1
  1302. #define STB0899_PFBIT (0x01 << 4)
  1303. #define STB0899_OFFST_PFBIT 4
  1304. #define STB0899_WIDTH_PFBIT 1
  1305. #define STB0899_ERR_BIT (0x01 << 3)
  1306. #define STB0899_OFFST_ERR_BIT 3
  1307. #define STB0899_WIDTH_ERR_BIT 1
  1308. #define STB0899_MPEG (0x01 << 2)
  1309. #define STB0899_OFFST_MPEG 2
  1310. #define STB0899_WIDTH_MPEG 1
  1311. #define STB0899_CLK_POL (0x01 << 1)
  1312. #define STB0899_OFFST_CLK_POL 1
  1313. #define STB0899_WIDTH_CLK_POL 1
  1314. #define STB0899_FORCE0 (0x01 << 0)
  1315. #define STB0899_OFFST_FORCE0 0
  1316. #define STB0899_WIDTH_FORCE0 1
  1317. #define STB0899_TSCFGM 0xf54d
  1318. #define STB0899_LLPRIORITY (0x01 << 3)
  1319. #define STB0899_OFFST_LLPRIORIY 3
  1320. #define STB0899_WIDTH_LLPRIORITY 1
  1321. #define STB0899_EN188 (0x01 << 2)
  1322. #define STB0899_OFFST_EN188 2
  1323. #define STB0899_WIDTH_EN188 1
  1324. #define STB0899_TSCFGL 0xf54e
  1325. #define STB0899_DEL_ERRPCK (0x01 << 7)
  1326. #define STB0899_OFFST_DEL_ERRPCK 7
  1327. #define STB0899_WIDTH_DEL_ERRPCK 1
  1328. #define STB0899_ERRFLAGSTD (0x01 << 5)
  1329. #define STB0899_OFFST_ERRFLAGSTD 5
  1330. #define STB0899_WIDTH_ERRFLAGSTD 1
  1331. #define STB0899_MPEGERR (0x01 << 4)
  1332. #define STB0899_OFFST_MPEGERR 4
  1333. #define STB0899_WIDTH_MPEGERR 1
  1334. #define STB0899_BCH_CHK (0x01 << 3)
  1335. #define STB0899_OFFST_BCH_CHK 5
  1336. #define STB0899_WIDTH_BCH_CHK 1
  1337. #define STB0899_CRC8CHK (0x01 << 2)
  1338. #define STB0899_OFFST_CRC8CHK 2
  1339. #define STB0899_WIDTH_CRC8CHK 1
  1340. #define STB0899_SPEC_INFO (0x01 << 1)
  1341. #define STB0899_OFFST_SPEC_INFO 1
  1342. #define STB0899_WIDTH_SPEC_INFO 1
  1343. #define STB0899_LOW_PRIO_CLK (0x01 << 0)
  1344. #define STB0899_OFFST_LOW_PRIO_CLK 0
  1345. #define STB0899_WIDTH_LOW_PRIO_CLK 1
  1346. #define STB0899_ERROR_NORM (0x00 << 0)
  1347. #define STB0899_OFFST_ERROR_NORM 0
  1348. #define STB0899_WIDTH_ERROR_NORM 0
  1349. #define STB0899_TSOUT 0xf54f
  1350. #define STB0899_RSSYNCDEL 0xf550
  1351. #define STB0899_TSINHDELH 0xf551
  1352. #define STB0899_TSINHDELM 0xf552
  1353. #define STB0899_TSINHDELL 0xf553
  1354. #define STB0899_TSLLSTKM 0xf55a
  1355. #define STB0899_TSLLSTKL 0xf55b
  1356. #define STB0899_TSULSTKM 0xf55c
  1357. #define STB0899_TSULSTKL 0xf55d
  1358. #define STB0899_TSSTATUS 0xf561
  1359. #define STB0899_PDELCTRL 0xf600
  1360. #define STB0899_INVERT_RES (0x01 << 7)
  1361. #define STB0899_OFFST_INVERT_RES 7
  1362. #define STB0899_WIDTH_INVERT_RES 1
  1363. #define STB0899_FORCE_ACCEPTED (0x01 << 6)
  1364. #define STB0899_OFFST_FORCE_ACCEPTED 6
  1365. #define STB0899_WIDTH_FORCE_ACCEPTED 1
  1366. #define STB0899_FILTER_EN (0x01 << 5)
  1367. #define STB0899_OFFST_FILTER_EN 5
  1368. #define STB0899_WIDTH_FILTER_EN 1
  1369. #define STB0899_LOCKFALL_THRESH (0x01 << 4)
  1370. #define STB0899_OFFST_LOCKFALL_THRESH 4
  1371. #define STB0899_WIDTH_LOCKFALL_THRESH 1
  1372. #define STB0899_HYST_EN (0x01 << 3)
  1373. #define STB0899_OFFST_HYST_EN 3
  1374. #define STB0899_WIDTH_HYST_EN 1
  1375. #define STB0899_HYST_SWRST (0x01 << 2)
  1376. #define STB0899_OFFST_HYST_SWRST 2
  1377. #define STB0899_WIDTH_HYST_SWRST 1
  1378. #define STB0899_ALGO_EN (0x01 << 1)
  1379. #define STB0899_OFFST_ALGO_EN 1
  1380. #define STB0899_WIDTH_ALGO_EN 1
  1381. #define STB0899_ALGO_SWRST (0x01 << 0)
  1382. #define STB0899_OFFST_ALGO_SWRST 0
  1383. #define STB0899_WIDTH_ALGO_SWRST 1
  1384. #define STB0899_PDELCTRL2 0xf601
  1385. #define STB0899_BBHCTRL1 0xf602
  1386. #define STB0899_BBHCTRL2 0xf603
  1387. #define STB0899_HYSTTHRESH 0xf604
  1388. #define STB0899_MATCSTM 0xf605
  1389. #define STB0899_MATCSTL 0xf606
  1390. #define STB0899_UPLCSTM 0xf607
  1391. #define STB0899_UPLCSTL 0xf608
  1392. #define STB0899_DFLCSTM 0xf609
  1393. #define STB0899_DFLCSTL 0xf60a
  1394. #define STB0899_SYNCCST 0xf60b
  1395. #define STB0899_SYNCDCSTM 0xf60c
  1396. #define STB0899_SYNCDCSTL 0xf60d
  1397. #define STB0899_ISI_ENTRY 0xf60e
  1398. #define STB0899_ISI_BIT_EN 0xf60f
  1399. #define STB0899_MATSTRM 0xf610
  1400. #define STB0899_MATSTRL 0xf611
  1401. #define STB0899_UPLSTRM 0xf612
  1402. #define STB0899_UPLSTRL 0xf613
  1403. #define STB0899_DFLSTRM 0xf614
  1404. #define STB0899_DFLSTRL 0xf615
  1405. #define STB0899_SYNCSTR 0xf616
  1406. #define STB0899_SYNCDSTRM 0xf617
  1407. #define STB0899_SYNCDSTRL 0xf618
  1408. #define STB0899_CFGPDELSTATUS1 0xf619
  1409. #define STB0899_BADDFL (0x01 << 6)
  1410. #define STB0899_OFFST_BADDFL 6
  1411. #define STB0899_WIDTH_BADDFL 1
  1412. #define STB0899_CONTINUOUS_STREAM (0x01 << 5)
  1413. #define STB0899_OFFST_CONTINUOUS_STREAM 5
  1414. #define STB0899_WIDTH_CONTINUOUS_STREAM 1
  1415. #define STB0899_ACCEPTED_STREAM (0x01 << 4)
  1416. #define STB0899_OFFST_ACCEPTED_STREAM 4
  1417. #define STB0899_WIDTH_ACCEPTED_STREAM 1
  1418. #define STB0899_BCH_ERRFLAG (0x01 << 3)
  1419. #define STB0899_OFFST_BCH_ERRFLAG 3
  1420. #define STB0899_WIDTH_BCH_ERRFLAG 1
  1421. #define STB0899_CRCRES (0x01 << 2)
  1422. #define STB0899_OFFST_CRCRES 2
  1423. #define STB0899_WIDTH_CRCRES 1
  1424. #define STB0899_CFGPDELSTATUS_LOCK (0x01 << 1)
  1425. #define STB0899_OFFST_CFGPDELSTATUS_LOCK 1
  1426. #define STB0899_WIDTH_CFGPDELSTATUS_LOCK 1
  1427. #define STB0899_1STLOCK (0x01 << 0)
  1428. #define STB0899_OFFST_1STLOCK 0
  1429. #define STB0899_WIDTH_1STLOCK 1
  1430. #define STB0899_CFGPDELSTATUS2 0xf61a
  1431. #define STB0899_BBFERRORM 0xf61b
  1432. #define STB0899_BBFERRORL 0xf61c
  1433. #define STB0899_UPKTERRORM 0xf61d
  1434. #define STB0899_UPKTERRORL 0xf61e
  1435. #define STB0899_TSTCK 0xff10
  1436. #define STB0899_TSTRES 0xff11
  1437. #define STB0899_FRESLDPC (0x01 << 7)
  1438. #define STB0899_OFFST_FRESLDPC 7
  1439. #define STB0899_WIDTH_FRESLDPC 1
  1440. #define STB0899_FRESRS (0x01 << 6)
  1441. #define STB0899_OFFST_FRESRS 6
  1442. #define STB0899_WIDTH_FRESRS 1
  1443. #define STB0899_FRESVIT (0x01 << 5)
  1444. #define STB0899_OFFST_FRESVIT 5
  1445. #define STB0899_WIDTH_FRESVIT 1
  1446. #define STB0899_FRESMAS1_2 (0x01 << 4)
  1447. #define STB0899_OFFST_FRESMAS1_2 4
  1448. #define STB0899_WIDTH_FRESMAS1_2 1
  1449. #define STB0899_FRESACS (0x01 << 3)
  1450. #define STB0899_OFFST_FRESACS 3
  1451. #define STB0899_WIDTH_FRESACS 1
  1452. #define STB0899_FRESSYM (0x01 << 2)
  1453. #define STB0899_OFFST_FRESSYM 2
  1454. #define STB0899_WIDTH_FRESSYM 1
  1455. #define STB0899_FRESMAS (0x01 << 1)
  1456. #define STB0899_OFFST_FRESMAS 1
  1457. #define STB0899_WIDTH_FRESMAS 1
  1458. #define STB0899_FRESINT (0x01 << 0)
  1459. #define STB0899_OFFST_FRESINIT 0
  1460. #define STB0899_WIDTH_FRESINIT 1
  1461. #define STB0899_TSTOUT 0xff12
  1462. #define STB0899_EN_SIGNATURE (0x01 << 7)
  1463. #define STB0899_OFFST_EN_SIGNATURE 7
  1464. #define STB0899_WIDTH_EN_SIGNATURE 1
  1465. #define STB0899_BCLK_CLK (0x01 << 6)
  1466. #define STB0899_OFFST_BCLK_CLK 6
  1467. #define STB0899_WIDTH_BCLK_CLK 1
  1468. #define STB0899_SGNL_OUT (0x01 << 5)
  1469. #define STB0899_OFFST_SGNL_OUT 5
  1470. #define STB0899_WIDTH_SGNL_OUT 1
  1471. #define STB0899_TS (0x01 << 4)
  1472. #define STB0899_OFFST_TS 4
  1473. #define STB0899_WIDTH_TS 1
  1474. #define STB0899_CTEST (0x01 << 0)
  1475. #define STB0899_OFFST_CTEST 0
  1476. #define STB0899_WIDTH_CTEST 1
  1477. #define STB0899_TSTIN 0xff13
  1478. #define STB0899_TEST_IN (0x01 << 7)
  1479. #define STB0899_OFFST_TEST_IN 7
  1480. #define STB0899_WIDTH_TEST_IN 1
  1481. #define STB0899_EN_ADC (0x01 << 6)
  1482. #define STB0899_OFFST_EN_ADC 6
  1483. #define STB0899_WIDTH_ENADC 1
  1484. #define STB0899_SGN_ADC (0x01 << 5)
  1485. #define STB0899_OFFST_SGN_ADC 5
  1486. #define STB0899_WIDTH_SGN_ADC 1
  1487. #define STB0899_BCLK_IN (0x01 << 4)
  1488. #define STB0899_OFFST_BCLK_IN 4
  1489. #define STB0899_WIDTH_BCLK_IN 1
  1490. #define STB0899_JETONIN_MODE (0x01 << 3)
  1491. #define STB0899_OFFST_JETONIN_MODE 3
  1492. #define STB0899_WIDTH_JETONIN_MODE 1
  1493. #define STB0899_BCLK_VALUE (0x01 << 2)
  1494. #define STB0899_OFFST_BCLK_VALUE 2
  1495. #define STB0899_WIDTH_BCLK_VALUE 1
  1496. #define STB0899_SGNRST_T12 (0x01 << 1)
  1497. #define STB0899_OFFST_SGNRST_T12 1
  1498. #define STB0899_WIDTH_SGNRST_T12 1
  1499. #define STB0899_LOWSP_ENAX (0x01 << 0)
  1500. #define STB0899_OFFST_LOWSP_ENAX 0
  1501. #define STB0899_WIDTH_LOWSP_ENAX 1
  1502. #define STB0899_TSTSYS 0xff14
  1503. #define STB0899_TSTCHIP 0xff15
  1504. #define STB0899_TSTFREE 0xff16
  1505. #define STB0899_TSTI2C 0xff17
  1506. #define STB0899_BITSPEEDM 0xff1c
  1507. #define STB0899_BITSPEEDL 0xff1d
  1508. #define STB0899_TBUSBIT 0xff1e
  1509. #define STB0899_TSTDIS 0xff24
  1510. #define STB0899_TSTDISRX 0xff25
  1511. #define STB0899_TSTJETON 0xff28
  1512. #define STB0899_TSTDCADJ 0xff40
  1513. #define STB0899_TSTAGC1 0xff41
  1514. #define STB0899_TSTAGC1N 0xff42
  1515. #define STB0899_TSTPOLYPH 0xff48
  1516. #define STB0899_TSTR 0xff49
  1517. #define STB0899_TSTAGC2 0xff4a
  1518. #define STB0899_TSTCTL1 0xff4b
  1519. #define STB0899_TSTCTL2 0xff4c
  1520. #define STB0899_TSTCTL3 0xff4d
  1521. #define STB0899_TSTDEMAP 0xff50
  1522. #define STB0899_TSTDEMAP2 0xff51
  1523. #define STB0899_TSTDEMMON 0xff52
  1524. #define STB0899_TSTRATE 0xff53
  1525. #define STB0899_TSTSELOUT 0xff54
  1526. #define STB0899_TSYNC 0xff55
  1527. #define STB0899_TSTERR 0xff56
  1528. #define STB0899_TSTRAM1 0xff58
  1529. #define STB0899_TSTVSELOUT 0xff59
  1530. #define STB0899_TSTFORCEIN 0xff5a
  1531. #define STB0899_TSTRS1 0xff5c
  1532. #define STB0899_TSTRS2 0xff5d
  1533. #define STB0899_TSTRS3 0xff53
  1534. #define STB0899_INTBUFSTATUS 0xf200
  1535. #define STB0899_INTBUFCTRL 0xf201
  1536. #define STB0899_PCKLENUL 0xf55e
  1537. #define STB0899_PCKLENLL 0xf55f
  1538. #define STB0899_RSPCKLEN 0xf560
  1539. /* 2 registers */
  1540. #define STB0899_SYNCDCST 0xf60c
  1541. /* DiSEqC */
  1542. #define STB0899_DISCNTRL1 0xf0a0
  1543. #define STB0899_TIMOFF (0x01 << 7)
  1544. #define STB0899_OFFST_TIMOFF 7
  1545. #define STB0899_WIDTH_TIMOFF 1
  1546. #define STB0899_DISEQCRESET (0x01 << 6)
  1547. #define STB0899_OFFST_DISEQCRESET 6
  1548. #define STB0899_WIDTH_DISEQCRESET 1
  1549. #define STB0899_TIMCMD (0x03 << 4)
  1550. #define STB0899_OFFST_TIMCMD 4
  1551. #define STB0899_WIDTH_TIMCMD 2
  1552. #define STB0899_DISPRECHARGE (0x01 << 2)
  1553. #define STB0899_OFFST_DISPRECHARGE 2
  1554. #define STB0899_WIDTH_DISPRECHARGE 1
  1555. #define STB0899_DISEQCMODE (0x03 << 0)
  1556. #define STB0899_OFFST_DISEQCMODE 0
  1557. #define STB0899_WIDTH_DISEQCMODE 2
  1558. #define STB0899_DISCNTRL2 0xf0a1
  1559. #define STB0899_RECEIVER_ON (0x01 << 7)
  1560. #define STB0899_OFFST_RECEIVER_ON 7
  1561. #define STB0899_WIDTH_RECEIVER_ON 1
  1562. #define STB0899_IGNO_SHORT_22K (0x01 << 6)
  1563. #define STB0899_OFFST_IGNO_SHORT_22K 6
  1564. #define STB0899_WIDTH_IGNO_SHORT_22K 1
  1565. #define STB0899_ONECHIP_TRX (0x01 << 5)
  1566. #define STB0899_OFFST_ONECHIP_TRX 5
  1567. #define STB0899_WIDTH_ONECHIP_TRX 1
  1568. #define STB0899_EXT_ENVELOP (0x01 << 4)
  1569. #define STB0899_OFFST_EXT_ENVELOP 4
  1570. #define STB0899_WIDTH_EXT_ENVELOP 1
  1571. #define STB0899_PIN_SELECT (0x03 << 2)
  1572. #define STB0899_OFFST_PIN_SELCT 2
  1573. #define STB0899_WIDTH_PIN_SELCT 2
  1574. #define STB0899_IRQ_RXEND (0x01 << 1)
  1575. #define STB0899_OFFST_IRQ_RXEND 1
  1576. #define STB0899_WIDTH_IRQ_RXEND 1
  1577. #define STB0899_IRQ_4NBYTES (0x01 << 0)
  1578. #define STB0899_OFFST_IRQ_4NBYTES 0
  1579. #define STB0899_WIDTH_IRQ_4NBYTES 1
  1580. #define STB0899_DISRX_ST0 0xf0a4
  1581. #define STB0899_RXEND (0x01 << 7)
  1582. #define STB0899_OFFST_RXEND 7
  1583. #define STB0899_WIDTH_RXEND 1
  1584. #define STB0899_RXACTIVE (0x01 << 6)
  1585. #define STB0899_OFFST_RXACTIVE 6
  1586. #define STB0899_WIDTH_RXACTIVE 1
  1587. #define STB0899_SHORT22K (0x01 << 5)
  1588. #define STB0899_OFFST_SHORT22K 5
  1589. #define STB0899_WIDTH_SHORT22K 1
  1590. #define STB0899_CONTTONE (0x01 << 4)
  1591. #define STB0899_OFFST_CONTTONE 4
  1592. #define STB0899_WIDTH_CONTONE 1
  1593. #define STB0899_4BFIFOREDY (0x01 << 3)
  1594. #define STB0899_OFFST_4BFIFOREDY 3
  1595. #define STB0899_WIDTH_4BFIFOREDY 1
  1596. #define STB0899_FIFOEMPTY (0x01 << 2)
  1597. #define STB0899_OFFST_FIFOEMPTY 2
  1598. #define STB0899_WIDTH_FIFOEMPTY 1
  1599. #define STB0899_ABORTTRX (0x01 << 0)
  1600. #define STB0899_OFFST_ABORTTRX 0
  1601. #define STB0899_WIDTH_ABORTTRX 1
  1602. #define STB0899_DISRX_ST1 0xf0a5
  1603. #define STB0899_RXFAIL (0x01 << 7)
  1604. #define STB0899_OFFST_RXFAIL 7
  1605. #define STB0899_WIDTH_RXFAIL 1
  1606. #define STB0899_FIFOPFAIL (0x01 << 6)
  1607. #define STB0899_OFFST_FIFOPFAIL 6
  1608. #define STB0899_WIDTH_FIFOPFAIL 1
  1609. #define STB0899_RXNONBYTES (0x01 << 5)
  1610. #define STB0899_OFFST_RXNONBYTES 5
  1611. #define STB0899_WIDTH_RXNONBYTES 1
  1612. #define STB0899_FIFOOVF (0x01 << 4)
  1613. #define STB0899_OFFST_FIFOOVF 4
  1614. #define STB0899_WIDTH_FIFOOVF 1
  1615. #define STB0899_FIFOBYTENBR (0x0f << 0)
  1616. #define STB0899_OFFST_FIFOBYTENBR 0
  1617. #define STB0899_WIDTH_FIFOBYTENBR 4
  1618. #define STB0899_DISPARITY 0xf0a6
  1619. #define STB0899_DISFIFO 0xf0a7
  1620. #define STB0899_DISSTATUS 0xf0a8
  1621. #define STB0899_FIFOFULL (0x01 << 6)
  1622. #define STB0899_OFFST_FIFOFULL 6
  1623. #define STB0899_WIDTH_FIFOFULL 1
  1624. #define STB0899_TXIDLE (0x01 << 5)
  1625. #define STB0899_OFFST_TXIDLE 5
  1626. #define STB0899_WIDTH_TXIDLE 1
  1627. #define STB0899_GAPBURST (0x01 << 4)
  1628. #define STB0899_OFFST_GAPBURST 4
  1629. #define STB0899_WIDTH_GAPBURST 1
  1630. #define STB0899_TXFIFOBYTES (0x0f << 0)
  1631. #define STB0899_OFFST_TXFIFOBYTES 0
  1632. #define STB0899_WIDTH_TXFIFOBYTES 4
  1633. #define STB0899_DISF22 0xf0a9
  1634. #define STB0899_DISF22RX 0xf0aa
  1635. /* General Purpose */
  1636. #define STB0899_SYSREG 0xf101
  1637. #define STB0899_ACRPRESC 0xf110
  1638. #define STB0899_OFFST_RSVD2 7
  1639. #define STB0899_WIDTH_RSVD2 1
  1640. #define STB0899_OFFST_ACRPRESC 4
  1641. #define STB0899_WIDTH_ACRPRESC 3
  1642. #define STB0899_OFFST_RSVD1 3
  1643. #define STB0899_WIDTH_RSVD1 1
  1644. #define STB0899_OFFST_ACRPRESC2 0
  1645. #define STB0899_WIDTH_ACRPRESC2 3
  1646. #define STB0899_ACRDIV1 0xf111
  1647. #define STB0899_ACRDIV2 0xf112
  1648. #define STB0899_DACR1 0xf113
  1649. #define STB0899_DACR2 0xf114
  1650. #define STB0899_OUTCFG 0xf11c
  1651. #define STB0899_MODECFG 0xf11d
  1652. #define STB0899_NCOARSE 0xf1b3
  1653. #define STB0899_SYNTCTRL 0xf1b6
  1654. #define STB0899_STANDBY (0x01 << 7)
  1655. #define STB0899_OFFST_STANDBY 7
  1656. #define STB0899_WIDTH_STANDBY 1
  1657. #define STB0899_BYPASSPLL (0x01 << 6)
  1658. #define STB0899_OFFST_BYPASSPLL 6
  1659. #define STB0899_WIDTH_BYPASSPLL 1
  1660. #define STB0899_SEL1XRATIO (0x01 << 5)
  1661. #define STB0899_OFFST_SEL1XRATIO 5
  1662. #define STB0899_WIDTH_SEL1XRATIO 1
  1663. #define STB0899_SELOSCI (0x01 << 1)
  1664. #define STB0899_OFFST_SELOSCI 1
  1665. #define STB0899_WIDTH_SELOSCI 1
  1666. #define STB0899_FILTCTRL 0xf1b7
  1667. #define STB0899_SYSCTRL 0xf1b8
  1668. #define STB0899_STOPCLK1 0xf1c2
  1669. #define STB0899_STOP_CKINTBUF108 (0x01 << 7)
  1670. #define STB0899_OFFST_STOP_CKINTBUF108 7
  1671. #define STB0899_WIDTH_STOP_CKINTBUF108 1
  1672. #define STB0899_STOP_CKINTBUF216 (0x01 << 6)
  1673. #define STB0899_OFFST_STOP_CKINTBUF216 6
  1674. #define STB0899_WIDTH_STOP_CKINTBUF216 1
  1675. #define STB0899_STOP_CHK8PSK (0x01 << 5)
  1676. #define STB0899_OFFST_STOP_CHK8PSK 5
  1677. #define STB0899_WIDTH_STOP_CHK8PSK 1
  1678. #define STB0899_STOP_CKFEC108 (0x01 << 4)
  1679. #define STB0899_OFFST_STOP_CKFEC108 4
  1680. #define STB0899_WIDTH_STOP_CKFEC108 1
  1681. #define STB0899_STOP_CKFEC216 (0x01 << 3)
  1682. #define STB0899_OFFST_STOP_CKFEC216 3
  1683. #define STB0899_WIDTH_STOP_CKFEC216 1
  1684. #define STB0899_STOP_CKCORE216 (0x01 << 2)
  1685. #define STB0899_OFFST_STOP_CKCORE216 2
  1686. #define STB0899_WIDTH_STOP_CKCORE216 1
  1687. #define STB0899_STOP_CKADCI108 (0x01 << 1)
  1688. #define STB0899_OFFST_STOP_CKADCI108 1
  1689. #define STB0899_WIDTH_STOP_CKADCI108 1
  1690. #define STB0899_STOP_INVCKADCI108 (0x01 << 0)
  1691. #define STB0899_OFFST_STOP_INVCKADCI108 0
  1692. #define STB0899_WIDTH_STOP_INVCKADCI108 1
  1693. #define STB0899_STOPCLK2 0xf1c3
  1694. #define STB0899_STOP_CKS2DMD108 (0x01 << 2)
  1695. #define STB0899_OFFST_STOP_CKS2DMD108 2
  1696. #define STB0899_WIDTH_STOP_CKS2DMD108 1
  1697. #define STB0899_STOP_CKPKDLIN108 (0x01 << 1)
  1698. #define STB0899_OFFST_STOP_CKPKDLIN108 1
  1699. #define STB0899_WIDTH_STOP_CKPKDLIN108 1
  1700. #define STB0899_STOP_CKPKDLIN216 (0x01 << 0)
  1701. #define STB0899_OFFST_STOP_CKPKDLIN216 0
  1702. #define STB0899_WIDTH_STOP_CKPKDLIN216 1
  1703. #define STB0899_TSTTNR1 0xf1e0
  1704. #define STB0899_BYPASS_ADC (0x01 << 7)
  1705. #define STB0899_OFFST_BYPASS_ADC 7
  1706. #define STB0899_WIDTH_BYPASS_ADC 1
  1707. #define STB0899_INVADCICKOUT (0x01 << 6)
  1708. #define STB0899_OFFST_INVADCICKOUT 6
  1709. #define STB0899_WIDTH_INVADCICKOUT 1
  1710. #define STB0899_ADCTEST_VOLTAGE (0x03 << 4)
  1711. #define STB0899_OFFST_ADCTEST_VOLTAGE 4
  1712. #define STB0899_WIDTH_ADCTEST_VOLTAGE 1
  1713. #define STB0899_ADC_RESET (0x01 << 3)
  1714. #define STB0899_OFFST_ADC_RESET 3
  1715. #define STB0899_WIDTH_ADC_RESET 1
  1716. #define STB0899_TSTTNR1_2 (0x01 << 2)
  1717. #define STB0899_OFFST_TSTTNR1_2 2
  1718. #define STB0899_WIDTH_TSTTNR1_2 1
  1719. #define STB0899_ADCPON (0x01 << 1)
  1720. #define STB0899_OFFST_ADCPON 1
  1721. #define STB0899_WIDTH_ADCPON 1
  1722. #define STB0899_ADCIN_MODE (0x01 << 0)
  1723. #define STB0899_OFFST_ADCIN_MODE 0
  1724. #define STB0899_WIDTH_ADCIN_MODE 1
  1725. #define STB0899_TSTTNR2 0xf1e1
  1726. #define STB0899_TSTTNR2_7 (0x01 << 7)
  1727. #define STB0899_OFFST_TSTTNR2_7 7
  1728. #define STB0899_WIDTH_TSTTNR2_7 1
  1729. #define STB0899_NOT_DISRX_WIRED (0x01 << 6)
  1730. #define STB0899_OFFST_NOT_DISRX_WIRED 6
  1731. #define STB0899_WIDTH_NOT_DISRX_WIRED 1
  1732. #define STB0899_DISEQC_DCURRENT (0x01 << 5)
  1733. #define STB0899_OFFST_DISEQC_DCURRENT 5
  1734. #define STB0899_WIDTH_DISEQC_DCURRENT 1
  1735. #define STB0899_DISEQC_ZCURRENT (0x01 << 4)
  1736. #define STB0899_OFFST_DISEQC_ZCURRENT 4
  1737. #define STB0899_WIDTH_DISEQC_ZCURRENT 1
  1738. #define STB0899_DISEQC_SINC_SOURCE (0x03 << 2)
  1739. #define STB0899_OFFST_DISEQC_SINC_SOURCE 2
  1740. #define STB0899_WIDTH_DISEQC_SINC_SOURCE 2
  1741. #define STB0899_SELIQSRC (0x03 << 0)
  1742. #define STB0899_OFFST_SELIQSRC 0
  1743. #define STB0899_WIDTH_SELIQSRC 2
  1744. #define STB0899_TSTTNR3 0xf1e2
  1745. #define STB0899_I2CCFG 0xf129
  1746. #define STB0899_I2CCFGRSVD (0x0f << 4)
  1747. #define STB0899_OFFST_I2CCFGRSVD 4
  1748. #define STB0899_WIDTH_I2CCFGRSVD 4
  1749. #define STB0899_I2CFASTMODE (0x01 << 3)
  1750. #define STB0899_OFFST_I2CFASTMODE 3
  1751. #define STB0899_WIDTH_I2CFASTMODE 1
  1752. #define STB0899_STATUSWR (0x01 << 2)
  1753. #define STB0899_OFFST_STATUSWR 2
  1754. #define STB0899_WIDTH_STATUSWR 1
  1755. #define STB0899_I2CADDRINC (0x03 << 0)
  1756. #define STB0899_OFFST_I2CADDRINC 0
  1757. #define STB0899_WIDTH_I2CADDRINC 2
  1758. #define STB0899_I2CRPT 0xf12a
  1759. #define STB0899_I2CTON (0x01 << 7)
  1760. #define STB0899_OFFST_I2CTON 7
  1761. #define STB0899_WIDTH_I2CTON 1
  1762. #define STB0899_ENARPTLEVEL (0x01 << 6)
  1763. #define STB0899_OFFST_ENARPTLEVEL 6
  1764. #define STB0899_WIDTH_ENARPTLEVEL 2
  1765. #define STB0899_SCLTDELAY (0x01 << 3)
  1766. #define STB0899_OFFST_SCLTDELAY 3
  1767. #define STB0899_WIDTH_SCLTDELAY 1
  1768. #define STB0899_STOPENA (0x01 << 2)
  1769. #define STB0899_OFFST_STOPENA 2
  1770. #define STB0899_WIDTH_STOPENA 1
  1771. #define STB0899_STOPSDAT2SDA (0x01 << 1)
  1772. #define STB0899_OFFST_STOPSDAT2SDA 1
  1773. #define STB0899_WIDTH_STOPSDAT2SDA 1
  1774. #define STB0899_IOPVALUE8 0xf136
  1775. #define STB0899_IOPVALUE7 0xf137
  1776. #define STB0899_IOPVALUE6 0xf138
  1777. #define STB0899_IOPVALUE5 0xf139
  1778. #define STB0899_IOPVALUE4 0xf13a
  1779. #define STB0899_IOPVALUE3 0xf13b
  1780. #define STB0899_IOPVALUE2 0xf13c
  1781. #define STB0899_IOPVALUE1 0xf13d
  1782. #define STB0899_IOPVALUE0 0xf13e
  1783. #define STB0899_GPIO00CFG 0xf140
  1784. #define STB0899_GPIO01CFG 0xf141
  1785. #define STB0899_GPIO02CFG 0xf142
  1786. #define STB0899_GPIO03CFG 0xf143
  1787. #define STB0899_GPIO04CFG 0xf144
  1788. #define STB0899_GPIO05CFG 0xf145
  1789. #define STB0899_GPIO06CFG 0xf146
  1790. #define STB0899_GPIO07CFG 0xf147
  1791. #define STB0899_GPIO08CFG 0xf148
  1792. #define STB0899_GPIO09CFG 0xf149
  1793. #define STB0899_GPIO10CFG 0xf14a
  1794. #define STB0899_GPIO11CFG 0xf14b
  1795. #define STB0899_GPIO12CFG 0xf14c
  1796. #define STB0899_GPIO13CFG 0xf14d
  1797. #define STB0899_GPIO14CFG 0xf14e
  1798. #define STB0899_GPIO15CFG 0xf14f
  1799. #define STB0899_GPIO16CFG 0xf150
  1800. #define STB0899_GPIO17CFG 0xf151
  1801. #define STB0899_GPIO18CFG 0xf152
  1802. #define STB0899_GPIO19CFG 0xf153
  1803. #define STB0899_GPIO20CFG 0xf154
  1804. #define STB0899_SDATCFG 0xf155
  1805. #define STB0899_SCLTCFG 0xf156
  1806. #define STB0899_AGCRFCFG 0xf157
  1807. #define STB0899_GPIO22 0xf158 /* AGCBB2CFG */
  1808. #define STB0899_GPIO21 0xf159 /* AGCBB1CFG */
  1809. #define STB0899_DIRCLKCFG 0xf15a
  1810. #define STB0899_CLKOUT27CFG 0xf15b
  1811. #define STB0899_STDBYCFG 0xf15c
  1812. #define STB0899_CS0CFG 0xf15d
  1813. #define STB0899_CS1CFG 0xf15e
  1814. #define STB0899_DISEQCOCFG 0xf15f
  1815. #define STB0899_GPIO32CFG 0xf160
  1816. #define STB0899_GPIO33CFG 0xf161
  1817. #define STB0899_GPIO34CFG 0xf162
  1818. #define STB0899_GPIO35CFG 0xf163
  1819. #define STB0899_GPIO36CFG 0xf164
  1820. #define STB0899_GPIO37CFG 0xf165
  1821. #define STB0899_GPIO38CFG 0xf166
  1822. #define STB0899_GPIO39CFG 0xf167
  1823. #define STB0899_IRQSTATUS_3 0xf120
  1824. #define STB0899_IRQSTATUS_2 0xf121
  1825. #define STB0899_IRQSTATUS_1 0xf122
  1826. #define STB0899_IRQSTATUS_0 0xf123
  1827. #define STB0899_IRQMSK_3 0xf124
  1828. #define STB0899_IRQMSK_2 0xf125
  1829. #define STB0899_IRQMSK_1 0xf126
  1830. #define STB0899_IRQMSK_0 0xf127
  1831. #define STB0899_IRQCFG 0xf128
  1832. #define STB0899_GHOSTREG 0xf000
  1833. #define STB0899_S2DEMOD 0xf3fc
  1834. #define STB0899_S2FEC 0xfafc
  1835. #endif