gh_debug_tsfm.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_debug_tsfm.h
  5. **
  6. ** \brief TSFM Debug Registers.
  7. **
  8. ** Copyright: 2012 - 2016 (C) GoKe Microelectronics
  9. **
  10. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  11. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  12. ** OMMISSIONS.
  13. **
  14. ** \note Do not modify this file as it is generated automatically.
  15. **
  16. ******************************************************************************/
  17. #ifndef _GH_DEBUG_TSFM_H
  18. #define _GH_DEBUG_TSFM_H
  19. #ifdef __LINUX__
  20. #include "reg4linux.h"
  21. #else
  22. #define FIO_ADDRESS(block,address) (address)
  23. #define FIO_MOFFSET(block,moffset) (moffset)
  24. #endif
  25. #ifndef __LINUX__
  26. #include "gtypes.h" /* global type definitions */
  27. #include "gh_lib_cfg.h" /* configuration */
  28. #endif
  29. #define GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT 0
  30. #ifdef __LINUX__
  31. #define GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION printk
  32. #else
  33. #define GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION printf
  34. #endif
  35. #ifndef __LINUX__
  36. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  37. #include <stdio.h>
  38. #endif
  39. #endif
  40. /*----------------------------------------------------------------------------*/
  41. /* registers */
  42. /*----------------------------------------------------------------------------*/
  43. #define REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID FIO_ADDRESS(DEBUG_TSFM,0xa0128000) /* read */
  44. #define REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP FIO_ADDRESS(DEBUG_TSFM,0xa0128004) /* read */
  45. #define REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE FIO_ADDRESS(DEBUG_TSFM,0xa0128008) /* read */
  46. #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE FIO_ADDRESS(DEBUG_TSFM,0xa012800C) /* read */
  47. #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP FIO_ADDRESS(DEBUG_TSFM,0xa0128010) /* read */
  48. #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP FIO_ADDRESS(DEBUG_TSFM,0xa0128014) /* read */
  49. #define REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE FIO_ADDRESS(DEBUG_TSFM,0xa0128018) /* read */
  50. #define REG_DEBUG_TSFM_COUNT_NEW_MACRO FIO_ADDRESS(DEBUG_TSFM,0xa012801C) /* read */
  51. #define REG_DEBUG_TSFM_COUNT_JP_DONE FIO_ADDRESS(DEBUG_TSFM,0xa0128020) /* read */
  52. #define REG_DEBUG_TSFM_COUNT_INTRA_4X4 FIO_ADDRESS(DEBUG_TSFM,0xa0128024) /* read */
  53. #define REG_DEBUG_TSFM_COUNT_INTRA_16 FIO_ADDRESS(DEBUG_TSFM,0xa0128028) /* read */
  54. #define REG_DEBUG_TSFM_COUNT_INTER FIO_ADDRESS(DEBUG_TSFM,0xa012802C) /* read */
  55. #define REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID FIO_ADDRESS(DEBUG_TSFM,0xa0128030) /* read */
  56. #define REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS FIO_ADDRESS(DEBUG_TSFM,0xa0128034) /* read */
  57. #define REG_DEBUG_TSFM_LBIST0_DATA FIO_ADDRESS(DEBUG_TSFM,0xa0128080) /* read */
  58. #define REG_DEBUG_TSFM_LBIST1_DATA FIO_ADDRESS(DEBUG_TSFM,0xa0128084) /* read */
  59. #define REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF FIO_ADDRESS(DEBUG_TSFM,0xa0129000) /* read */
  60. #define REG_DEBUG_TSFM_DEBUG_TCTRM FIO_ADDRESS(DEBUG_TSFM,0xa0129004) /* read */
  61. #define REG_DEBUG_TSFM_DGM_MEMORY FIO_ADDRESS(DEBUG_TSFM,0xa012A000) /* read/write */
  62. #define REG_DEBUG_TSFM_TRM_REF_MEMORY FIO_ADDRESS(DEBUG_TSFM,0xa012B000) /* read/write */
  63. #define REG_DEBUG_TSFM_TRM_TGT_MEMORY FIO_ADDRESS(DEBUG_TSFM,0xa012B000) /* read/write */
  64. #define REG_DEBUG_TSFM_TRM_STB_MEMORY FIO_ADDRESS(DEBUG_TSFM,0xa012C000) /* read/write */
  65. /*----------------------------------------------------------------------------*/
  66. /* bit group structures */
  67. /*----------------------------------------------------------------------------*/
  68. typedef union { /* DEBUG_TSFM_count_memd_tsfm_inst_valid */
  69. U32 all;
  70. struct {
  71. U32 count : 16;
  72. U32 : 16;
  73. } bitc;
  74. } GH_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID_S;
  75. typedef union { /* DEBUG_TSFM_count_memd_tsfm_vlc_stop */
  76. U32 all;
  77. struct {
  78. U32 count : 16;
  79. U32 : 16;
  80. } bitc;
  81. } GH_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP_S;
  82. typedef union { /* DEBUG_TSFM_count_tsfm_memd_inst_done */
  83. U32 all;
  84. struct {
  85. U32 count : 16;
  86. U32 : 16;
  87. } bitc;
  88. } GH_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE_S;
  89. typedef union { /* DEBUG_TSFM_count_tsfm_code_qcmem_done */
  90. U32 all;
  91. struct {
  92. U32 count : 16;
  93. U32 : 16;
  94. } bitc;
  95. } GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE_S;
  96. typedef union { /* DEBUG_TSFM_count_tsfm_code_qcmem_swap */
  97. U32 all;
  98. struct {
  99. U32 count : 16;
  100. U32 : 16;
  101. } bitc;
  102. } GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP_S;
  103. typedef union { /* DEBUG_TSFM_count_tsfm_code_vlc_stop */
  104. U32 all;
  105. struct {
  106. U32 count : 16;
  107. U32 : 16;
  108. } bitc;
  109. } GH_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP_S;
  110. typedef union { /* DEBUG_TSFM_count_code_tsfm_vlc_stop_done */
  111. U32 all;
  112. struct {
  113. U32 count : 16;
  114. U32 : 16;
  115. } bitc;
  116. } GH_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE_S;
  117. typedef union { /* DEBUG_TSFM_count_new_macro */
  118. U32 all;
  119. struct {
  120. U32 count : 16;
  121. U32 : 16;
  122. } bitc;
  123. } GH_DEBUG_TSFM_COUNT_NEW_MACRO_S;
  124. typedef union { /* DEBUG_TSFM_count_jp_done */
  125. U32 all;
  126. struct {
  127. U32 count : 16;
  128. U32 : 16;
  129. } bitc;
  130. } GH_DEBUG_TSFM_COUNT_JP_DONE_S;
  131. typedef union { /* DEBUG_TSFM_count_intra_4x4 */
  132. U32 all;
  133. struct {
  134. U32 count : 16;
  135. U32 : 16;
  136. } bitc;
  137. } GH_DEBUG_TSFM_COUNT_INTRA_4X4_S;
  138. typedef union { /* DEBUG_TSFM_count_intra_16 */
  139. U32 all;
  140. struct {
  141. U32 count : 16;
  142. U32 : 16;
  143. } bitc;
  144. } GH_DEBUG_TSFM_COUNT_INTRA_16_S;
  145. typedef union { /* DEBUG_TSFM_count_inter */
  146. U32 all;
  147. struct {
  148. U32 count : 16;
  149. U32 : 16;
  150. } bitc;
  151. } GH_DEBUG_TSFM_COUNT_INTER_S;
  152. typedef union { /* DEBUG_TSFM_count_pending_inst_valid */
  153. U32 all;
  154. struct {
  155. U32 count : 16;
  156. U32 : 16;
  157. } bitc;
  158. } GH_DEBUG_TSFM_COUNT_PENDING_INST_VALID_S;
  159. /*----------------------------------------------------------------------------*/
  160. /* mirror variables */
  161. /*----------------------------------------------------------------------------*/
  162. #ifdef __cplusplus
  163. extern "C" {
  164. #endif
  165. /*----------------------------------------------------------------------------*/
  166. /* register DEBUG_TSFM_count_memd_tsfm_inst_valid (read) */
  167. /*----------------------------------------------------------------------------*/
  168. /*! \brief Reads the register 'DEBUG_TSFM_count_memd_tsfm_inst_valid'. */
  169. U32 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid(void);
  170. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_memd_tsfm_inst_valid'. */
  171. U16 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count(void);
  172. /*----------------------------------------------------------------------------*/
  173. /* register DEBUG_TSFM_count_memd_tsfm_vlc_stop (read) */
  174. /*----------------------------------------------------------------------------*/
  175. /*! \brief Reads the register 'DEBUG_TSFM_count_memd_tsfm_vlc_stop'. */
  176. U32 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop(void);
  177. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_memd_tsfm_vlc_stop'. */
  178. U16 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count(void);
  179. /*----------------------------------------------------------------------------*/
  180. /* register DEBUG_TSFM_count_tsfm_memd_inst_done (read) */
  181. /*----------------------------------------------------------------------------*/
  182. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_memd_inst_done'. */
  183. U32 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done(void);
  184. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_memd_inst_done'. */
  185. U16 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count(void);
  186. /*----------------------------------------------------------------------------*/
  187. /* register DEBUG_TSFM_count_tsfm_code_qcmem_done (read) */
  188. /*----------------------------------------------------------------------------*/
  189. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_qcmem_done'. */
  190. U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done(void);
  191. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_qcmem_done'. */
  192. U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count(void);
  193. /*----------------------------------------------------------------------------*/
  194. /* register DEBUG_TSFM_count_tsfm_code_qcmem_swap (read) */
  195. /*----------------------------------------------------------------------------*/
  196. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_qcmem_swap'. */
  197. U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap(void);
  198. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_qcmem_swap'. */
  199. U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count(void);
  200. /*----------------------------------------------------------------------------*/
  201. /* register DEBUG_TSFM_count_tsfm_code_vlc_stop (read) */
  202. /*----------------------------------------------------------------------------*/
  203. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_vlc_stop'. */
  204. U32 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop(void);
  205. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_vlc_stop'. */
  206. U16 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count(void);
  207. /*----------------------------------------------------------------------------*/
  208. /* register DEBUG_TSFM_count_code_tsfm_vlc_stop_done (read) */
  209. /*----------------------------------------------------------------------------*/
  210. /*! \brief Reads the register 'DEBUG_TSFM_count_code_tsfm_vlc_stop_done'. */
  211. U32 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done(void);
  212. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_code_tsfm_vlc_stop_done'. */
  213. U16 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count(void);
  214. /*----------------------------------------------------------------------------*/
  215. /* register DEBUG_TSFM_count_new_macro (read) */
  216. /*----------------------------------------------------------------------------*/
  217. /*! \brief Reads the register 'DEBUG_TSFM_count_new_macro'. */
  218. U32 GH_DEBUG_TSFM_get_count_new_macro(void);
  219. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_new_macro'. */
  220. U16 GH_DEBUG_TSFM_get_count_new_macro_count(void);
  221. /*----------------------------------------------------------------------------*/
  222. /* register DEBUG_TSFM_count_jp_done (read) */
  223. /*----------------------------------------------------------------------------*/
  224. /*! \brief Reads the register 'DEBUG_TSFM_count_jp_done'. */
  225. U32 GH_DEBUG_TSFM_get_count_jp_done(void);
  226. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_jp_done'. */
  227. U16 GH_DEBUG_TSFM_get_count_jp_done_count(void);
  228. /*----------------------------------------------------------------------------*/
  229. /* register DEBUG_TSFM_count_intra_4x4 (read) */
  230. /*----------------------------------------------------------------------------*/
  231. /*! \brief Reads the register 'DEBUG_TSFM_count_intra_4x4'. */
  232. U32 GH_DEBUG_TSFM_get_count_intra_4x4(void);
  233. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_intra_4x4'. */
  234. U16 GH_DEBUG_TSFM_get_count_intra_4x4_count(void);
  235. /*----------------------------------------------------------------------------*/
  236. /* register DEBUG_TSFM_count_intra_16 (read) */
  237. /*----------------------------------------------------------------------------*/
  238. /*! \brief Reads the register 'DEBUG_TSFM_count_intra_16'. */
  239. U32 GH_DEBUG_TSFM_get_count_intra_16(void);
  240. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_intra_16'. */
  241. U16 GH_DEBUG_TSFM_get_count_intra_16_count(void);
  242. /*----------------------------------------------------------------------------*/
  243. /* register DEBUG_TSFM_count_inter (read) */
  244. /*----------------------------------------------------------------------------*/
  245. /*! \brief Reads the register 'DEBUG_TSFM_count_inter'. */
  246. U32 GH_DEBUG_TSFM_get_count_inter(void);
  247. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_inter'. */
  248. U16 GH_DEBUG_TSFM_get_count_inter_count(void);
  249. /*----------------------------------------------------------------------------*/
  250. /* register DEBUG_TSFM_count_pending_inst_valid (read) */
  251. /*----------------------------------------------------------------------------*/
  252. /*! \brief Reads the register 'DEBUG_TSFM_count_pending_inst_valid'. */
  253. U32 GH_DEBUG_TSFM_get_count_pending_inst_valid(void);
  254. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_pending_inst_valid'. */
  255. U16 GH_DEBUG_TSFM_get_count_pending_inst_valid_count(void);
  256. /*----------------------------------------------------------------------------*/
  257. /* register DEBUG_TSFM_read_clear_all_debug_counters (read) */
  258. /*----------------------------------------------------------------------------*/
  259. /*! \brief Reads the register 'DEBUG_TSFM_read_clear_all_debug_counters'. */
  260. U32 GH_DEBUG_TSFM_get_read_clear_all_debug_counters(void);
  261. /*----------------------------------------------------------------------------*/
  262. /* register DEBUG_TSFM_lbist0_data (read) */
  263. /*----------------------------------------------------------------------------*/
  264. /*! \brief Reads the register 'DEBUG_TSFM_lbist0_data'. */
  265. U32 GH_DEBUG_TSFM_get_lbist0_data(void);
  266. /*----------------------------------------------------------------------------*/
  267. /* register DEBUG_TSFM_lbist1_data (read) */
  268. /*----------------------------------------------------------------------------*/
  269. /*! \brief Reads the register 'DEBUG_TSFM_lbist1_data'. */
  270. U32 GH_DEBUG_TSFM_get_lbist1_data(void);
  271. /*----------------------------------------------------------------------------*/
  272. /* register DEBUG_TSFM_debug_vlc_ci_medif (read) */
  273. /*----------------------------------------------------------------------------*/
  274. /*! \brief Reads the register 'DEBUG_TSFM_debug_vlc_ci_medif'. */
  275. U32 GH_DEBUG_TSFM_get_debug_vlc_ci_medif(void);
  276. /*----------------------------------------------------------------------------*/
  277. /* register DEBUG_TSFM_debug_tctrm (read) */
  278. /*----------------------------------------------------------------------------*/
  279. /*! \brief Reads the register 'DEBUG_TSFM_debug_tctrm'. */
  280. U32 GH_DEBUG_TSFM_get_debug_tctrm(void);
  281. /*----------------------------------------------------------------------------*/
  282. /* register DEBUG_TSFM_dgm_memory (read/write) */
  283. /*----------------------------------------------------------------------------*/
  284. /*! \brief Writes the register 'DEBUG_TSFM_dgm_memory'. */
  285. void GH_DEBUG_TSFM_set_dgm_memory(U8 index, U32 data);
  286. /*! \brief Reads the register 'DEBUG_TSFM_dgm_memory'. */
  287. U32 GH_DEBUG_TSFM_get_dgm_memory(U8 index);
  288. /*----------------------------------------------------------------------------*/
  289. /* register DEBUG_TSFM_trm_ref_memory (read/write) */
  290. /*----------------------------------------------------------------------------*/
  291. /*! \brief Writes the register 'DEBUG_TSFM_trm_ref_memory'. */
  292. void GH_DEBUG_TSFM_set_trm_ref_memory(U8 index, U32 data);
  293. /*! \brief Reads the register 'DEBUG_TSFM_trm_ref_memory'. */
  294. U32 GH_DEBUG_TSFM_get_trm_ref_memory(U8 index);
  295. /*----------------------------------------------------------------------------*/
  296. /* register DEBUG_TSFM_trm_tgt_memory (read/write) */
  297. /*----------------------------------------------------------------------------*/
  298. /*! \brief Writes the register 'DEBUG_TSFM_trm_tgt_memory'. */
  299. void GH_DEBUG_TSFM_set_trm_tgt_memory(U8 index, U32 data);
  300. /*! \brief Reads the register 'DEBUG_TSFM_trm_tgt_memory'. */
  301. U32 GH_DEBUG_TSFM_get_trm_tgt_memory(U8 index);
  302. /*----------------------------------------------------------------------------*/
  303. /* register DEBUG_TSFM_trm_stb_memory (read/write) */
  304. /*----------------------------------------------------------------------------*/
  305. /*! \brief Writes the register 'DEBUG_TSFM_trm_stb_memory'. */
  306. void GH_DEBUG_TSFM_set_trm_stb_memory(U8 index, U32 data);
  307. /*! \brief Reads the register 'DEBUG_TSFM_trm_stb_memory'. */
  308. U32 GH_DEBUG_TSFM_get_trm_stb_memory(U8 index);
  309. /*----------------------------------------------------------------------------*/
  310. /* init function */
  311. /*----------------------------------------------------------------------------*/
  312. /*! \brief Initialises the registers and mirror variables. */
  313. void GH_DEBUG_TSFM_init(void);
  314. #ifdef SRC_INLINE
  315. #define SRC_INC 1
  316. #include "gh_debug_tsfm.c"
  317. #undef SRC_INC
  318. #endif
  319. #ifdef __cplusplus
  320. }
  321. #endif
  322. #endif /* _GH_DEBUG_TSFM_H */
  323. /*----------------------------------------------------------------------------*/
  324. /* end of file */
  325. /*----------------------------------------------------------------------------*/