fc8300_regs.h 16 KB

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