fc8300_regs.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. /*****************************************************************************
  2. Copyright(c) 2013 FCI Inc. All Rights Reserved
  3. File name : fc8300_regs.h
  4. Description : header of FC8300 register map
  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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. History :
  17. ----------------------------------------------------------------------
  18. *******************************************************************************/
  19. #ifndef __FC8300_REGS_H__
  20. #define __FC8300_REGS_H__
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #if defined(CONFIG_SEC_FACTORY)
  25. /* shown at FACTORY */
  26. #define ISDB_PR_ERR(A,...) pr_err("[FC8300_SPI]"A,##__VA_ARGS__)
  27. /* NOT shown at FACTORY */
  28. #define ISDB_PR_INFO(A,...)
  29. #define ISDB_PR_DBG(A,...)
  30. #else
  31. extern unsigned int sec_dbg_level;
  32. /* shown at HIGH/MID/LOW, user mode:default LOW, eng mode: default MID*/
  33. #define ISDB_PR_ERR(A,...) pr_err("[FC8300_SPI]"A,##__VA_ARGS__)
  34. /* shown at HIGH/MID, user mode:default LOW, eng mode: default MID*/
  35. #define ISDB_PR_INFO(A,...) \
  36. do { \
  37. if (sec_dbg_level != KERNEL_SEC_DEBUG_LEVEL_LOW) \
  38. pr_info("[FC8300_SPI]"A,##__VA_ARGS__);\
  39. } while(0)
  40. /* shown at HIGH/MID under debug control, user mode:default LOW, eng mode: default MID*/
  41. #define ISDB_PR_DBG(A,...) \
  42. do { \
  43. if (sec_dbg_level != KERNEL_SEC_DEBUG_LEVEL_LOW) \
  44. pr_debug("[FC8300_SPI]"A,##__VA_ARGS__);\
  45. } while(0)
  46. #endif
  47. /* #define FEATURE_DEBUG_BROADCAST */
  48. /* #define TS_DROP_DEBUG */
  49. //#define BBM_I2C_SPI
  50. /* #define BBM_I2C_TSIF */
  51. #define BBM_INT_LOW_ACTIVE
  52. /* #define BBM_AUX_INT */
  53. #define BBM_NULL_PID_FILTER
  54. /* #define BBM_FAIL_FRAME */
  55. /* #define BBM_TS_204 */
  56. /* #define BBM_2_DIVERSITY */
  57. /* #define BBM_4_DIVERSITY */
  58. /* #define BBM_DESCRAMBLER */
  59. #define BBM_SPI_30M /* ONLY CS */
  60. /* #define BBM_I2C_PARALLEL_TSIF */
  61. /* #define BBM_ES */ /* deprecated */
  62. /* #define BBM_ES_CURRENT */ /* deprecated */
  63. /* #define BBM_XTAL_FREQ 16000 */
  64. /* #define BBM_XTAL_FREQ 16384 */
  65. /* #define BBM_XTAL_FREQ 18000 */
  66. /* #define BBM_XTAL_FREQ 19200 */
  67. /* #define BBM_XTAL_FREQ 24000 */
  68. /* #define BBM_XTAL_FREQ 24576 */
  69. #define BBM_XTAL_FREQ 26000
  70. /* #define BBM_XTAL_FREQ 27000 */
  71. /* #define BBM_XTAL_FREQ 27120 */
  72. /* #define BBM_XTAL_FREQ 32000 */
  73. /* #define BBM_XTAL_FREQ 37200 */
  74. /* #define BBM_XTAL_FREQ 37400 */
  75. /* #define BBM_XTAL_FREQ 38400 */
  76. #define BBM_BAND_WIDTH 6
  77. /* #define BBM_BAND_WIDTH 7
  78. #define BBM_BAND_WIDTH 8 */
  79. /* #define BBM_TSIF_CLK_ARBITRARY */
  80. /* #define BBM_TSIF_CLK 48000 */ /* Up to 48M */
  81. /* #define BBM_TSIF_CLK 32000 */
  82. #define BBM_TSIF_CLK 26000
  83. #if (BBM_BAND_WIDTH == 6)
  84. #define BBM_TARGET_CLK 97523
  85. #elif (BBM_BAND_WIDTH == 7)
  86. #define BBM_TARGET_CLK 113777
  87. #else /* BBM_BAND_WIDTH == 8 */
  88. #define BBM_TARGET_CLK 130031
  89. #endif
  90. /* SYS_MD Interrupt */
  91. #define SYS_MD_NO_OFDM_DETECT 0x01
  92. #define SYS_MD_RESYNC_OCCUR 0x02
  93. #define SYS_MD_TMCC_LOCK 0x04
  94. #define SYS_MD_A_LAYER_BER_UPDATE 0x08
  95. #define SYS_MD_B_LAYER_BER_UPDATE 0x10
  96. #define SYS_MD_C_LAYER_BER_UPDATE 0x20
  97. #define SYS_MD_BER_UPDATE 0x40
  98. /* MD_INT2 Interrupt */
  99. /* TMCC EAB (Emergency Alarm Broadcast) Signal */
  100. #define AUX_INT_TMCC_INT_SRC 0x01
  101. /* The indicator to transmission switching parameter */
  102. #define AUX_INT_TMCC_INDTPS_SRC 0x02
  103. /* AC Dmd Diff Flag - Prev FRM */
  104. #define AUX_INT_AC_PREFRM_SRC 0x04
  105. /* AC EWI (Earthquake Warning Indicator) Start Flag */
  106. #define AUX_INT_AC_EWISTAFLAG_SRC 0x08
  107. #define AUX_INT_SYNC_RELATED_INT 0x10
  108. #define AUX_INT_GPIO_INT_CLEAR 0x20
  109. #define AUX_INT_FEC_RELATED_INT 0x40
  110. /* Auto switch 12/1 seg */
  111. #define AUX_INT_AUTO_SWITCH 0x80
  112. /* FEC INT */
  113. #define FEC_INT_IRQ_A_TS_ERROR 0x01
  114. #define FEC_INT_IRQ_B_TS_ERROR 0x02
  115. #define FEC_INT_IRQ_C_TS_ERROR 0x04
  116. /* AUTO SWITCH INT */
  117. #define AUTO_SWITCH_12_SEG 0x00
  118. #define AUTO_SWITCH_1_SEG 0x01
  119. /* COMMON */
  120. #define BBM_SW_RESET 0x0001
  121. #define BBM_INT_STATUS 0x0002
  122. #define BBM_INT_MASK 0x0003
  123. #define BBM_INT_STS_EN 0x0006
  124. #define BBM_TS0_DATA 0x0008
  125. #define BBM_TS1_DATA 0x0009
  126. #define BBM_TS2_DATA 0x000a
  127. #define BBM_TS3_DATA 0x000b
  128. #define BBM_AC_A_DATA 0x000c
  129. #define BBM_AC_B_DATA 0x000d
  130. #define BBM_AC_C_DATA 0x000e
  131. #define BBM_AC_D_DATA 0x000f
  132. #define BBM_TS_CLK_DIV 0x0010
  133. #define BBM_TS_CTRL 0x0011
  134. #define BBM_MD_MISO 0x0012
  135. #define BBM_TS_SEL 0x0013
  136. #define BBM_TS_PAUSE 0x0014
  137. #define BBM_RF_DEVID 0x0015
  138. #define BBM_CLK_CTRL 0x0016
  139. #define BBM_INT_AUTO_CLEAR 0x0017
  140. #define BBM_INT_PERIOD 0x0018
  141. #define BBM_NON_AUTO_INT_PERIOD 0x0019
  142. #define BBM_STATUS_AUTO_CLEAR_EN 0x001a
  143. #define BBM_TS_BER_CHK 0x001b
  144. #define BBM_BUF_SPIOUT 0x001c
  145. #define BBM_SPI2_CTRL 0x001d
  146. #define BBM_INT_POLAR_SEL 0x0020
  147. #define BBM_TS_PAT_MD 0x0021
  148. #define BBM_INT_FORCE 0x0022
  149. #define BBM_OUT_FORCE 0x0023
  150. #define BBM_CHIP_ID 0x0026
  151. #define BBM_CHIP_VERSION 0x002a
  152. #define BBM_RF_BYPASS 0x0037
  153. #define BBM_PLL1_ENABLE 0x0050
  154. #define BBM_PLL1_PD 0x0051
  155. #define BBM_PLL1_RESET 0x0052
  156. #define BBM_PLL1_PRE_POST_SELECTION 0x0055
  157. #define BBM_PLL1_DIVIDER 0x0056
  158. #define BBM_PLL2_ENABLE 0x0060
  159. #define BBM_PLL2_PD 0x0061
  160. #define BBM_PLL2_RESET 0x0062
  161. #define BBM_PLL2_PRE_POST_SELECTION 0x0065
  162. #define BBM_PLL2_DIVIDER 0x0066
  163. #define BBM_DIVERSITY_DEVICE_SEL 0x0071
  164. #define BBM_PLL_SEL 0x0085
  165. #define BBM_TS_PAT 0x00a0
  166. #define BBM_AC_PAT 0x00a2
  167. #define BBM_VERIFY_TEST 0x00a4
  168. #define BBM_RF_POWER_SAVE 0x00ae
  169. #define BBM_ADC_BIAS 0x00b3
  170. #define BBM_ADC_PWRDN 0x00b4
  171. #define BBM_ADC_RST 0x00b5
  172. #define BBM_RF_RST 0x00b9
  173. #define BBM_BB2RF_RFEN 0x00ba
  174. #define BBM_XTAL_OUTBUF_EN 0x00bd
  175. #define BBM_XTAL_OUTBUF_GAIN 0x00be
  176. #define BBM_FUSELOAD 0x00c5
  177. #define BBM_MEMORY_RWM0 0x00e0
  178. #define BBM_MEMORY_RWM1 0x00e1
  179. #define BBM_MEMORY_RWM2 0x00e2
  180. #define BBM_MEMORY_RWM3 0x00e3
  181. #define BBM_BUF_STATUS_CLEAR 0x8000
  182. #define BBM_BUF_OVERRUN 0x8001
  183. #define BBM_BUF_ENABLE 0x8002
  184. #define BBM_BUF_INT_ENABLE 0x8003
  185. #define BBM_FAIL_FRAME_TX 0x8004
  186. #define BBM_SYS_MD_INT_CLR 0x8006
  187. #define BBM_SYS_MD_INT_EN 0x8007
  188. #define BBM_FEC_INT_CLR 0x8008
  189. #define BBM_FEC_INT_EN 0x8009
  190. #define BBM_HANGING_TS 0x800a
  191. #define BBM_HANGING_AC 0x800b
  192. #define BBM_HANGING_ENABLE 0x800c
  193. #define BBM_AUX_INT_EN 0x800d
  194. #define BBM_AUX_STATUS_CLEAR 0x800e
  195. #define BBM_NULL_PID_FILTERING 0x800f
  196. #define BBM_BUF_TS0_START 0x8010
  197. #define BBM_BUF_TS1_START 0x8012
  198. #define BBM_BUF_TS2_START 0x8014
  199. #define BBM_BUF_TS3_START 0x8016
  200. #define BBM_BUF_AC_A_START 0x8018
  201. #define BBM_BUF_AC_B_START 0x801a
  202. #define BBM_BUF_AC_C_START 0x801c
  203. #define BBM_BUF_AC_D_START 0x801e
  204. #define BBM_BUF_TS0_END 0x8020
  205. #define BBM_BUF_TS1_END 0x8022
  206. #define BBM_BUF_TS2_END 0x8024
  207. #define BBM_BUF_TS3_END 0x8026
  208. #define BBM_BUF_AC_A_END 0x8028
  209. #define BBM_BUF_AC_B_END 0x802a
  210. #define BBM_BUF_AC_C_END 0x802c
  211. #define BBM_BUF_AC_D_END 0x802e
  212. #define BBM_BUF_TS0_THR 0x8030
  213. #define BBM_BUF_TS1_THR 0x8032
  214. #define BBM_BUF_TS2_THR 0x8034
  215. #define BBM_BUF_TS3_THR 0x8036
  216. #define BBM_BUF_AC_A_THR 0x8038
  217. #define BBM_BUF_AC_B_THR 0x803a
  218. #define BBM_BUF_AC_C_THR 0x803c
  219. #define BBM_BUF_AC_D_THR 0x803e
  220. #define BBM_BID_FILTER_MODE 0x8040
  221. #define BBM_LAYER_FILTER0 0x8041
  222. #define BBM_LAYER_FILTER1 0x8042
  223. #define BBM_LAYER_FILTER2 0x8043
  224. #define BBM_BUF_READ_LENGTH 0x8064
  225. /* INTERNAL I2C */
  226. #define BBM_I2C_PR 0x0030
  227. #define BBM_I2C_CTR 0x0032
  228. #define BBM_I2C_RXR 0x0033
  229. #define BBM_I2C_SR 0x0034
  230. #define BBM_I2C_TXR 0x0035
  231. #define BBM_I2C_CR 0x0036
  232. /* FRONT */
  233. #define BBM_ADC_CTRL 0x1000
  234. #define BBM_REF_AMP 0x1008
  235. #define BBM_IQC_EN 0x1020
  236. #define BBM_LOW_IF_VALUE 0x1032
  237. #define BBM_NCO_OFFSET 0x103c
  238. #define BBM_ACIF_COEF_00 0x1040
  239. #define BBM_ACIF_COEF_01 0x1041
  240. #define BBM_ACIF_COEF_02 0x1042
  241. #define BBM_ACIF_COEF_03 0x1043
  242. #define BBM_ACIF_COEF_04 0x1044
  243. #define BBM_ACIF_COEF_05 0x1045
  244. #define BBM_ACIF_COEF_06 0x1046
  245. #define BBM_ACIF_COEF_07 0x1047
  246. #define BBM_ACIF_COEF_08 0x1048
  247. #define BBM_ACIF_COEF_09 0x1049
  248. #define BBM_ACIF_COEF_10 0x104a
  249. #define BBM_ACIF_COEF_11 0x104b
  250. #define BBM_ACIF_COEF_12 0x104c
  251. #define BBM_ACIF_COEF_13 0x104d
  252. #define BBM_ACIF_COEF_14 0x104e
  253. #define BBM_ACIF_COEF_15 0x104f
  254. #define BBM_SLPF_COEF_00 0x1050
  255. #define BBM_SLPF_COEF_01 0x1051
  256. #define BBM_SLPF_COEF_02 0x1052
  257. #define BBM_SLPF_COEF_03 0x1053
  258. #define BBM_PGA_GAIN_MAX 0x1064
  259. #define BBM_PGA_GAIN_MIN 0x1065
  260. #define BBM_CSF_GAIN_MAX 0x1069
  261. #define BBM_PSAT_ON_REF_1SEG_QPSK 0x1083
  262. #define BBM_PSAT_ON_REF_1SEG_16QAM 0x1084
  263. /* SYNC */
  264. #define BBM_FREQ_COMPEN_VAL0 0x2008
  265. #define BBM_FREQ_COMPEN_VAL1 0x2009
  266. #define BBM_FREQ_COMPEN_VAL2 0x200a
  267. #define BBM_FFS_ERR_MAX_EN 0x200b /* with BBM_FREQ_COMPEN_VAL0 */
  268. #define BBM_SFS_FTS_ERR_MAX_1SEG 0x2014
  269. #define BBM_SFS_FTS_ERR_MAX_3SEG 0x2015
  270. #define BBM_SFS_MTH 0x2016
  271. #define BBM_IIFOECFG_EARLYSTOP_THM 0x2021
  272. /* DEMOD */
  273. #define BBM_SYSTEM_MODE 0x3010
  274. #define BBM_CENTER_CH_NUM 0x3011
  275. #define BBM_RESYNC_ENABLE 0x3040
  276. #define BBM_HOLD_RST_EN 0x3052
  277. /* 1/12-SEG auto switch enable */
  278. #define BBM_OSS_CFG_EN 0x30a0
  279. /* 1/12-SEG auto switch's output status */
  280. #define BBM_OSS_MNT 0x30ac
  281. /* ECHO */
  282. #define BBM_ECHOC_EN 0x3100
  283. #define BBM_REF_DELAY_POST 0x3104
  284. #define BBM_RESTART_BY_TS_EN 0x3113
  285. /* CE */
  286. #define BBM_WSCN_MSQ 0x4063
  287. #define BBM_AD_GAIN_PERIOD 0x4070
  288. #define BBM_MAN_PARTIAL_EN 0x41f1
  289. #define BBM_MAN_LAYER_A_SEG_NUM 0x41f2
  290. #define BBM_MAN_LAYER_B_SEG_NUM 0x41f3
  291. #define BBM_MAN_LAYER_C_SEG_NUM 0x41f4
  292. #define BBM_MAN_LAYER_A_MOD_TYPE 0x41f5
  293. #define BBM_MAN_LAYER_B_MOD_TYPE 0x41f6
  294. #define BBM_MAN_LAYER_C_MOD_TYPE 0x41f7
  295. #define BBM_MAN_LAYER_A_CODE_RATE 0x41f8
  296. #define BBM_MAN_LAYER_B_CODE_RATE 0x41f9
  297. #define BBM_MAN_LAYER_C_CODE_RATE 0x41fa
  298. #define BBM_MAN_LAYER_A_TI_LENGTH 0x41fb
  299. #define BBM_MAN_LAYER_B_TI_LENGTH 0x41fc
  300. #define BBM_MAN_LAYER_C_TI_LENGTH 0x41fd
  301. #define BBM_FD_RD_LATENCY_1SEG 0x4200
  302. #define BBM_FD_OUT_MODE 0x4208
  303. #define BBM_MSNR_FREQ_S_POW_MAN_VALUE3 0x4247
  304. /* DIVERSITY */
  305. #define BBM_DIVERSITY_EN 0x4300
  306. #define BBM_DIVERSITY_MODE 0x4301
  307. #define BBM_CN_WEIGHT_USE_EN 0x4304
  308. #define BBM_D_SYNC_TIME_OUT_TH 0x4305
  309. #define BBM_DIV_START_MODE 0x4307
  310. #define BBM_COMB_OFF 0x4314
  311. #define BBM_COMB_CN_OK_FD_EN 0x4333
  312. /* FEC */
  313. #define BBM_BER_REQ 0x5000
  314. #define BBM_FEC_LAYER 0x5002
  315. #define BBM_FEC_CTRL_A 0x5010
  316. #define BBM_FEC_CTRL_B 0x5011
  317. #define BBM_FEC_CTRL_C 0x5012
  318. #define BBM_FEC_CTRL 0x5014
  319. #define BBM_TDI_PRE_A 0x5019
  320. #define BBM_TDI_PRE_B 0x501a
  321. #define BBM_TDI_PRE_C 0x501b
  322. #define BBM_BER_AUTO_UP 0x5022
  323. #define BBM_VIT_A_BER_RXD_RSPS 0x5040
  324. #define BBM_VIT_A_BER_ERR_RSPS 0x5042
  325. #define BBM_VIT_A_BER_ERR_BITS 0x5044
  326. #define BBM_VIT_B_BER_RXD_RSPS 0x5050
  327. #define BBM_VIT_B_BER_ERR_RSPS 0x5052
  328. #define BBM_VIT_B_BER_ERR_BITS 0x5054
  329. #define BBM_VIT_C_BER_RXD_RSPS 0x5060
  330. #define BBM_VIT_C_BER_ERR_RSPS 0x5062
  331. #define BBM_VIT_C_BER_ERR_BITS 0x5064
  332. #define BBM_BER_RXD_RSPS 0x5070
  333. #define BBM_BER_ERR_RSPS 0x5072
  334. #define BBM_BER_ERR_BITS 0x5074
  335. /* DEMAP */
  336. #define BBM_DMP_A_BER_RXD_BITS 0x5080
  337. #define BBM_DMP_A_BER_ERR_BITS 0x5084
  338. #define BBM_DMP_B_BER_RXD_BITS 0x5090
  339. #define BBM_DMP_B_BER_ERR_BITS 0x5094
  340. #define BBM_DMP_C_BER_RXD_BITS 0x50A0
  341. #define BBM_DMP_C_BER_ERR_BITS 0x50A4
  342. #define BBM_DMP_BER_RXD_BITS 0x50B0
  343. #define BBM_DMP_BER_ERR_BITS 0x50B4
  344. /* GPIO */
  345. #define BBM_GPIO_DATA 0x9000
  346. #define BBM_GPIO_DIR 0x9001
  347. #define BBM_GPIO_SENSE 0x9002
  348. #define BBM_GPIO_BOTH_EDGE 0x9003
  349. #define BBM_GPIO_EVENT 0x9004
  350. #define BBM_GPIO_IE 0x9005
  351. #define BBM_GPIO_STATUS 0x9006
  352. #define BBM_GPIO_MASKED_STATUS 0x9007
  353. #define BBM_GPIO_INTERRUPT_CLEAR 0x9008
  354. /* B-CAS DESCRAMBLER */
  355. #define BBM_BCAS_ENABLE 0xa000
  356. #define BBM_BCAS_ROUND 0xa001
  357. #define BBM_BCAS_PID0_DKEY0 0xa020
  358. #define BBM_BCAS_PID0_DKEY1 0xa024
  359. #define BBM_BCAS_PID0_DKEY2 0xa028
  360. #define BBM_BCAS_PID0_DKEY3 0xa02c
  361. #define BBM_BCAS_CBC_INIT_L 0xa0a0
  362. #define BBM_BCAS_CBC_INIT_R 0xa0a4
  363. #define BBM_BCAS_SYS_KEY0 0xa0a8
  364. #define BBM_BCAS_SYS_KEY1 0xa0ac
  365. #define BBM_BCAS_SYS_KEY2 0xa0b0
  366. #define BBM_BCAS_SYS_KEY3 0xa0b4
  367. #define BBM_BCAS_SYS_KEY4 0xa0b8
  368. #define BBM_BCAS_SYS_KEY5 0xa0bc
  369. #define BBM_BCAS_SYS_KEY6 0xa0c0
  370. #define BBM_BCAS_SYS_KEY7 0xa0c4
  371. /* DM */
  372. #define BBM_DM_DATA 0xf000
  373. /* BUFFER CONFIGURATION */
  374. #define TS0_BUF_START (0x0000)
  375. #define TS0_BUF_LENGTH (188 * 320) //(188 * 320) /* 188 x 640 */
  376. #define TS0_BUF_END (TS0_BUF_START + TS0_BUF_LENGTH - 1)
  377. #define TS0_BUF_THR (TS0_BUF_LENGTH / 2 - 1)
  378. #define TS1_BUF_START (TS0_BUF_START + TS0_BUF_LENGTH)
  379. #define TS1_BUF_LENGTH (0)
  380. #define TS1_BUF_END (TS1_BUF_START + TS1_BUF_LENGTH - 1)
  381. #define TS1_BUF_THR (0)
  382. #define TS2_BUF_START (TS1_BUF_START + TS1_BUF_LENGTH)
  383. #define TS2_BUF_LENGTH (0)
  384. #define TS2_BUF_END (TS2_BUF_START + TS2_BUF_LENGTH - 1)
  385. #define TS2_BUF_THR (0)
  386. #define TS3_BUF_START (TS2_BUF_START + TS2_BUF_LENGTH)
  387. #define TS3_BUF_LENGTH (0)
  388. #define TS3_BUF_END (TS3_BUF_START + TS3_BUF_LENGTH - 1)
  389. #define TS3_BUF_THR (0)
  390. #define AC_A_BUF_START (TS3_BUF_START + TS3_BUF_LENGTH)
  391. #define AC_A_BUF_LENGTH (204) /* 204 x 2 */
  392. #define AC_A_BUF_END (AC_A_BUF_START + AC_A_BUF_LENGTH - 1)
  393. #define AC_A_BUF_THR (AC_A_BUF_LENGTH / 2 - 1)
  394. #define AC_B_BUF_START (AC_A_BUF_START + AC_A_BUF_LENGTH)
  395. #define AC_B_BUF_LENGTH (2040) /* 2040 x 2 */
  396. #define AC_B_BUF_END (AC_B_BUF_START + AC_B_BUF_LENGTH - 1)
  397. #define AC_B_BUF_THR (AC_B_BUF_LENGTH / 2 - 1)
  398. #define AC_C_BUF_START (AC_B_BUF_START + AC_B_BUF_LENGTH)
  399. #define AC_C_BUF_LENGTH (408) /* 408 x 2 */
  400. #define AC_C_BUF_END (AC_C_BUF_START + AC_C_BUF_LENGTH - 1)
  401. #define AC_C_BUF_THR (AC_C_BUF_LENGTH / 2 - 1)
  402. #define AC_D_BUF_START (AC_C_BUF_START + AC_C_BUF_LENGTH)
  403. #define AC_D_BUF_LENGTH (28) /* 28 x 2 */
  404. #define AC_D_BUF_END (AC_D_BUF_START + AC_D_BUF_LENGTH - 1)
  405. #define AC_D_BUF_THR (AC_D_BUF_LENGTH / 2 - 1)
  406. #ifdef __cplusplus
  407. }
  408. #endif
  409. #endif /* __FC8300_REGS_H__ */