gh_debug_tsfm.h 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_debug_tsfm.h
  5. **
  6. ** \brief TSFM Debug Registers.
  7. **
  8. ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
  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. /* check configuration */
  41. #ifndef GH_INLINE_LEVEL
  42. #error "GH_INLINE_LEVEL is not defined!"
  43. #endif
  44. #if GH_INLINE_LEVEL > 2
  45. #error "GH_INLINE_LEVEL must be set 0, 1 or 2!"
  46. #endif
  47. #ifndef GH_INLINE
  48. #error "GH_INLINE is not defined!"
  49. #endif
  50. /* disable inlining for debugging */
  51. #ifdef DEBUG
  52. #undef GH_INLINE_LEVEL
  53. #define GH_INLINE_LEVEL 0
  54. #endif
  55. /*----------------------------------------------------------------------------*/
  56. /* registers */
  57. /*----------------------------------------------------------------------------*/
  58. #define REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID FIO_ADDRESS(DEBUG_TSFM,0x70128000) /* read */
  59. #define REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP FIO_ADDRESS(DEBUG_TSFM,0x70128004) /* read */
  60. #define REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE FIO_ADDRESS(DEBUG_TSFM,0x70128008) /* read */
  61. #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE FIO_ADDRESS(DEBUG_TSFM,0x7012800C) /* read */
  62. #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP FIO_ADDRESS(DEBUG_TSFM,0x70128010) /* read */
  63. #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP FIO_ADDRESS(DEBUG_TSFM,0x70128014) /* read */
  64. #define REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE FIO_ADDRESS(DEBUG_TSFM,0x70128018) /* read */
  65. #define REG_DEBUG_TSFM_COUNT_NEW_MACRO FIO_ADDRESS(DEBUG_TSFM,0x7012801C) /* read */
  66. #define REG_DEBUG_TSFM_COUNT_JP_DONE FIO_ADDRESS(DEBUG_TSFM,0x70128020) /* read */
  67. #define REG_DEBUG_TSFM_COUNT_INTRA_4X4 FIO_ADDRESS(DEBUG_TSFM,0x70128024) /* read */
  68. #define REG_DEBUG_TSFM_COUNT_INTRA_16 FIO_ADDRESS(DEBUG_TSFM,0x70128028) /* read */
  69. #define REG_DEBUG_TSFM_COUNT_INTER FIO_ADDRESS(DEBUG_TSFM,0x7012802C) /* read */
  70. #define REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID FIO_ADDRESS(DEBUG_TSFM,0x70128030) /* read */
  71. #define REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS FIO_ADDRESS(DEBUG_TSFM,0x70128034) /* read */
  72. #define REG_DEBUG_TSFM_LBIST0_DATA FIO_ADDRESS(DEBUG_TSFM,0x70128080) /* read */
  73. #define REG_DEBUG_TSFM_LBIST1_DATA FIO_ADDRESS(DEBUG_TSFM,0x70128084) /* read */
  74. #define REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF FIO_ADDRESS(DEBUG_TSFM,0x70129000) /* read */
  75. #define REG_DEBUG_TSFM_DEBUG_TCTRM FIO_ADDRESS(DEBUG_TSFM,0x70129004) /* read */
  76. #define REG_DEBUG_TSFM_DGM_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012A000) /* read/write */
  77. #define REG_DEBUG_TSFM_TRM_REF_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012B000) /* read/write */
  78. #define REG_DEBUG_TSFM_TRM_TGT_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012B000) /* read/write */
  79. #define REG_DEBUG_TSFM_TRM_STB_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012C000) /* read/write */
  80. /*----------------------------------------------------------------------------*/
  81. /* bit group structures */
  82. /*----------------------------------------------------------------------------*/
  83. typedef union { /* DEBUG_TSFM_count_memd_tsfm_inst_valid */
  84. U32 all;
  85. struct {
  86. U32 count : 16;
  87. U32 : 16;
  88. } bitc;
  89. } GH_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID_S;
  90. typedef union { /* DEBUG_TSFM_count_memd_tsfm_vlc_stop */
  91. U32 all;
  92. struct {
  93. U32 count : 16;
  94. U32 : 16;
  95. } bitc;
  96. } GH_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP_S;
  97. typedef union { /* DEBUG_TSFM_count_tsfm_memd_inst_done */
  98. U32 all;
  99. struct {
  100. U32 count : 16;
  101. U32 : 16;
  102. } bitc;
  103. } GH_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE_S;
  104. typedef union { /* DEBUG_TSFM_count_tsfm_code_qcmem_done */
  105. U32 all;
  106. struct {
  107. U32 count : 16;
  108. U32 : 16;
  109. } bitc;
  110. } GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE_S;
  111. typedef union { /* DEBUG_TSFM_count_tsfm_code_qcmem_swap */
  112. U32 all;
  113. struct {
  114. U32 count : 16;
  115. U32 : 16;
  116. } bitc;
  117. } GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP_S;
  118. typedef union { /* DEBUG_TSFM_count_tsfm_code_vlc_stop */
  119. U32 all;
  120. struct {
  121. U32 count : 16;
  122. U32 : 16;
  123. } bitc;
  124. } GH_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP_S;
  125. typedef union { /* DEBUG_TSFM_count_code_tsfm_vlc_stop_done */
  126. U32 all;
  127. struct {
  128. U32 count : 16;
  129. U32 : 16;
  130. } bitc;
  131. } GH_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE_S;
  132. typedef union { /* DEBUG_TSFM_count_new_macro */
  133. U32 all;
  134. struct {
  135. U32 count : 16;
  136. U32 : 16;
  137. } bitc;
  138. } GH_DEBUG_TSFM_COUNT_NEW_MACRO_S;
  139. typedef union { /* DEBUG_TSFM_count_jp_done */
  140. U32 all;
  141. struct {
  142. U32 count : 16;
  143. U32 : 16;
  144. } bitc;
  145. } GH_DEBUG_TSFM_COUNT_JP_DONE_S;
  146. typedef union { /* DEBUG_TSFM_count_intra_4x4 */
  147. U32 all;
  148. struct {
  149. U32 count : 16;
  150. U32 : 16;
  151. } bitc;
  152. } GH_DEBUG_TSFM_COUNT_INTRA_4X4_S;
  153. typedef union { /* DEBUG_TSFM_count_intra_16 */
  154. U32 all;
  155. struct {
  156. U32 count : 16;
  157. U32 : 16;
  158. } bitc;
  159. } GH_DEBUG_TSFM_COUNT_INTRA_16_S;
  160. typedef union { /* DEBUG_TSFM_count_inter */
  161. U32 all;
  162. struct {
  163. U32 count : 16;
  164. U32 : 16;
  165. } bitc;
  166. } GH_DEBUG_TSFM_COUNT_INTER_S;
  167. typedef union { /* DEBUG_TSFM_count_pending_inst_valid */
  168. U32 all;
  169. struct {
  170. U32 count : 16;
  171. U32 : 16;
  172. } bitc;
  173. } GH_DEBUG_TSFM_COUNT_PENDING_INST_VALID_S;
  174. /*----------------------------------------------------------------------------*/
  175. /* mirror variables */
  176. /*----------------------------------------------------------------------------*/
  177. #ifdef __cplusplus
  178. extern "C" {
  179. #endif
  180. /*----------------------------------------------------------------------------*/
  181. /* register DEBUG_TSFM_count_memd_tsfm_inst_valid (read) */
  182. /*----------------------------------------------------------------------------*/
  183. #if GH_INLINE_LEVEL == 0
  184. /*! \brief Reads the register 'DEBUG_TSFM_count_memd_tsfm_inst_valid'. */
  185. U32 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid(void);
  186. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_memd_tsfm_inst_valid'. */
  187. U16 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count(void);
  188. #else /* GH_INLINE_LEVEL == 0 */
  189. GH_INLINE U32 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid(void)
  190. {
  191. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID);
  192. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  193. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid] --> 0x%08x\n",
  194. REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID,value);
  195. #endif
  196. return value;
  197. }
  198. GH_INLINE U16 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count(void)
  199. {
  200. GH_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID_S tmp_value;
  201. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID);
  202. tmp_value.all = value;
  203. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  204. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count] --> 0x%08x\n",
  205. REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID,value);
  206. #endif
  207. return tmp_value.bitc.count;
  208. }
  209. #endif /* GH_INLINE_LEVEL == 0 */
  210. /*----------------------------------------------------------------------------*/
  211. /* register DEBUG_TSFM_count_memd_tsfm_vlc_stop (read) */
  212. /*----------------------------------------------------------------------------*/
  213. #if GH_INLINE_LEVEL == 0
  214. /*! \brief Reads the register 'DEBUG_TSFM_count_memd_tsfm_vlc_stop'. */
  215. U32 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop(void);
  216. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_memd_tsfm_vlc_stop'. */
  217. U16 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count(void);
  218. #else /* GH_INLINE_LEVEL == 0 */
  219. GH_INLINE U32 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop(void)
  220. {
  221. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP);
  222. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  223. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop] --> 0x%08x\n",
  224. REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP,value);
  225. #endif
  226. return value;
  227. }
  228. GH_INLINE U16 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count(void)
  229. {
  230. GH_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP_S tmp_value;
  231. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP);
  232. tmp_value.all = value;
  233. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  234. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count] --> 0x%08x\n",
  235. REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP,value);
  236. #endif
  237. return tmp_value.bitc.count;
  238. }
  239. #endif /* GH_INLINE_LEVEL == 0 */
  240. /*----------------------------------------------------------------------------*/
  241. /* register DEBUG_TSFM_count_tsfm_memd_inst_done (read) */
  242. /*----------------------------------------------------------------------------*/
  243. #if GH_INLINE_LEVEL == 0
  244. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_memd_inst_done'. */
  245. U32 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done(void);
  246. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_memd_inst_done'. */
  247. U16 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count(void);
  248. #else /* GH_INLINE_LEVEL == 0 */
  249. GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done(void)
  250. {
  251. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE);
  252. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  253. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done] --> 0x%08x\n",
  254. REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE,value);
  255. #endif
  256. return value;
  257. }
  258. GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count(void)
  259. {
  260. GH_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE_S tmp_value;
  261. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE);
  262. tmp_value.all = value;
  263. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  264. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count] --> 0x%08x\n",
  265. REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE,value);
  266. #endif
  267. return tmp_value.bitc.count;
  268. }
  269. #endif /* GH_INLINE_LEVEL == 0 */
  270. /*----------------------------------------------------------------------------*/
  271. /* register DEBUG_TSFM_count_tsfm_code_qcmem_done (read) */
  272. /*----------------------------------------------------------------------------*/
  273. #if GH_INLINE_LEVEL == 0
  274. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_qcmem_done'. */
  275. U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done(void);
  276. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_qcmem_done'. */
  277. U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count(void);
  278. #else /* GH_INLINE_LEVEL == 0 */
  279. GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done(void)
  280. {
  281. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE);
  282. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  283. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done] --> 0x%08x\n",
  284. REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE,value);
  285. #endif
  286. return value;
  287. }
  288. GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count(void)
  289. {
  290. GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE_S tmp_value;
  291. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE);
  292. tmp_value.all = value;
  293. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  294. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count] --> 0x%08x\n",
  295. REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE,value);
  296. #endif
  297. return tmp_value.bitc.count;
  298. }
  299. #endif /* GH_INLINE_LEVEL == 0 */
  300. /*----------------------------------------------------------------------------*/
  301. /* register DEBUG_TSFM_count_tsfm_code_qcmem_swap (read) */
  302. /*----------------------------------------------------------------------------*/
  303. #if GH_INLINE_LEVEL == 0
  304. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_qcmem_swap'. */
  305. U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap(void);
  306. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_qcmem_swap'. */
  307. U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count(void);
  308. #else /* GH_INLINE_LEVEL == 0 */
  309. GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap(void)
  310. {
  311. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP);
  312. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  313. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap] --> 0x%08x\n",
  314. REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP,value);
  315. #endif
  316. return value;
  317. }
  318. GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count(void)
  319. {
  320. GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP_S tmp_value;
  321. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP);
  322. tmp_value.all = value;
  323. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  324. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count] --> 0x%08x\n",
  325. REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP,value);
  326. #endif
  327. return tmp_value.bitc.count;
  328. }
  329. #endif /* GH_INLINE_LEVEL == 0 */
  330. /*----------------------------------------------------------------------------*/
  331. /* register DEBUG_TSFM_count_tsfm_code_vlc_stop (read) */
  332. /*----------------------------------------------------------------------------*/
  333. #if GH_INLINE_LEVEL == 0
  334. /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_vlc_stop'. */
  335. U32 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop(void);
  336. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_vlc_stop'. */
  337. U16 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count(void);
  338. #else /* GH_INLINE_LEVEL == 0 */
  339. GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop(void)
  340. {
  341. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP);
  342. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  343. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop] --> 0x%08x\n",
  344. REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP,value);
  345. #endif
  346. return value;
  347. }
  348. GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count(void)
  349. {
  350. GH_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP_S tmp_value;
  351. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP);
  352. tmp_value.all = value;
  353. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  354. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count] --> 0x%08x\n",
  355. REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP,value);
  356. #endif
  357. return tmp_value.bitc.count;
  358. }
  359. #endif /* GH_INLINE_LEVEL == 0 */
  360. /*----------------------------------------------------------------------------*/
  361. /* register DEBUG_TSFM_count_code_tsfm_vlc_stop_done (read) */
  362. /*----------------------------------------------------------------------------*/
  363. #if GH_INLINE_LEVEL == 0
  364. /*! \brief Reads the register 'DEBUG_TSFM_count_code_tsfm_vlc_stop_done'. */
  365. U32 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done(void);
  366. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_code_tsfm_vlc_stop_done'. */
  367. U16 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count(void);
  368. #else /* GH_INLINE_LEVEL == 0 */
  369. GH_INLINE U32 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done(void)
  370. {
  371. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE);
  372. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  373. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done] --> 0x%08x\n",
  374. REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE,value);
  375. #endif
  376. return value;
  377. }
  378. GH_INLINE U16 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count(void)
  379. {
  380. GH_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE_S tmp_value;
  381. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE);
  382. tmp_value.all = value;
  383. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  384. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count] --> 0x%08x\n",
  385. REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE,value);
  386. #endif
  387. return tmp_value.bitc.count;
  388. }
  389. #endif /* GH_INLINE_LEVEL == 0 */
  390. /*----------------------------------------------------------------------------*/
  391. /* register DEBUG_TSFM_count_new_macro (read) */
  392. /*----------------------------------------------------------------------------*/
  393. #if GH_INLINE_LEVEL == 0
  394. /*! \brief Reads the register 'DEBUG_TSFM_count_new_macro'. */
  395. U32 GH_DEBUG_TSFM_get_count_new_macro(void);
  396. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_new_macro'. */
  397. U16 GH_DEBUG_TSFM_get_count_new_macro_count(void);
  398. #else /* GH_INLINE_LEVEL == 0 */
  399. GH_INLINE U32 GH_DEBUG_TSFM_get_count_new_macro(void)
  400. {
  401. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_NEW_MACRO);
  402. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  403. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_new_macro] --> 0x%08x\n",
  404. REG_DEBUG_TSFM_COUNT_NEW_MACRO,value);
  405. #endif
  406. return value;
  407. }
  408. GH_INLINE U16 GH_DEBUG_TSFM_get_count_new_macro_count(void)
  409. {
  410. GH_DEBUG_TSFM_COUNT_NEW_MACRO_S tmp_value;
  411. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_NEW_MACRO);
  412. tmp_value.all = value;
  413. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  414. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_new_macro_count] --> 0x%08x\n",
  415. REG_DEBUG_TSFM_COUNT_NEW_MACRO,value);
  416. #endif
  417. return tmp_value.bitc.count;
  418. }
  419. #endif /* GH_INLINE_LEVEL == 0 */
  420. /*----------------------------------------------------------------------------*/
  421. /* register DEBUG_TSFM_count_jp_done (read) */
  422. /*----------------------------------------------------------------------------*/
  423. #if GH_INLINE_LEVEL == 0
  424. /*! \brief Reads the register 'DEBUG_TSFM_count_jp_done'. */
  425. U32 GH_DEBUG_TSFM_get_count_jp_done(void);
  426. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_jp_done'. */
  427. U16 GH_DEBUG_TSFM_get_count_jp_done_count(void);
  428. #else /* GH_INLINE_LEVEL == 0 */
  429. GH_INLINE U32 GH_DEBUG_TSFM_get_count_jp_done(void)
  430. {
  431. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_JP_DONE);
  432. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  433. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_jp_done] --> 0x%08x\n",
  434. REG_DEBUG_TSFM_COUNT_JP_DONE,value);
  435. #endif
  436. return value;
  437. }
  438. GH_INLINE U16 GH_DEBUG_TSFM_get_count_jp_done_count(void)
  439. {
  440. GH_DEBUG_TSFM_COUNT_JP_DONE_S tmp_value;
  441. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_JP_DONE);
  442. tmp_value.all = value;
  443. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  444. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_jp_done_count] --> 0x%08x\n",
  445. REG_DEBUG_TSFM_COUNT_JP_DONE,value);
  446. #endif
  447. return tmp_value.bitc.count;
  448. }
  449. #endif /* GH_INLINE_LEVEL == 0 */
  450. /*----------------------------------------------------------------------------*/
  451. /* register DEBUG_TSFM_count_intra_4x4 (read) */
  452. /*----------------------------------------------------------------------------*/
  453. #if GH_INLINE_LEVEL == 0
  454. /*! \brief Reads the register 'DEBUG_TSFM_count_intra_4x4'. */
  455. U32 GH_DEBUG_TSFM_get_count_intra_4x4(void);
  456. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_intra_4x4'. */
  457. U16 GH_DEBUG_TSFM_get_count_intra_4x4_count(void);
  458. #else /* GH_INLINE_LEVEL == 0 */
  459. GH_INLINE U32 GH_DEBUG_TSFM_get_count_intra_4x4(void)
  460. {
  461. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_4X4);
  462. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  463. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_4x4] --> 0x%08x\n",
  464. REG_DEBUG_TSFM_COUNT_INTRA_4X4,value);
  465. #endif
  466. return value;
  467. }
  468. GH_INLINE U16 GH_DEBUG_TSFM_get_count_intra_4x4_count(void)
  469. {
  470. GH_DEBUG_TSFM_COUNT_INTRA_4X4_S tmp_value;
  471. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_4X4);
  472. tmp_value.all = value;
  473. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  474. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_4x4_count] --> 0x%08x\n",
  475. REG_DEBUG_TSFM_COUNT_INTRA_4X4,value);
  476. #endif
  477. return tmp_value.bitc.count;
  478. }
  479. #endif /* GH_INLINE_LEVEL == 0 */
  480. /*----------------------------------------------------------------------------*/
  481. /* register DEBUG_TSFM_count_intra_16 (read) */
  482. /*----------------------------------------------------------------------------*/
  483. #if GH_INLINE_LEVEL == 0
  484. /*! \brief Reads the register 'DEBUG_TSFM_count_intra_16'. */
  485. U32 GH_DEBUG_TSFM_get_count_intra_16(void);
  486. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_intra_16'. */
  487. U16 GH_DEBUG_TSFM_get_count_intra_16_count(void);
  488. #else /* GH_INLINE_LEVEL == 0 */
  489. GH_INLINE U32 GH_DEBUG_TSFM_get_count_intra_16(void)
  490. {
  491. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_16);
  492. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  493. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_16] --> 0x%08x\n",
  494. REG_DEBUG_TSFM_COUNT_INTRA_16,value);
  495. #endif
  496. return value;
  497. }
  498. GH_INLINE U16 GH_DEBUG_TSFM_get_count_intra_16_count(void)
  499. {
  500. GH_DEBUG_TSFM_COUNT_INTRA_16_S tmp_value;
  501. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_16);
  502. tmp_value.all = value;
  503. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  504. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_16_count] --> 0x%08x\n",
  505. REG_DEBUG_TSFM_COUNT_INTRA_16,value);
  506. #endif
  507. return tmp_value.bitc.count;
  508. }
  509. #endif /* GH_INLINE_LEVEL == 0 */
  510. /*----------------------------------------------------------------------------*/
  511. /* register DEBUG_TSFM_count_inter (read) */
  512. /*----------------------------------------------------------------------------*/
  513. #if GH_INLINE_LEVEL == 0
  514. /*! \brief Reads the register 'DEBUG_TSFM_count_inter'. */
  515. U32 GH_DEBUG_TSFM_get_count_inter(void);
  516. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_inter'. */
  517. U16 GH_DEBUG_TSFM_get_count_inter_count(void);
  518. #else /* GH_INLINE_LEVEL == 0 */
  519. GH_INLINE U32 GH_DEBUG_TSFM_get_count_inter(void)
  520. {
  521. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTER);
  522. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  523. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_inter] --> 0x%08x\n",
  524. REG_DEBUG_TSFM_COUNT_INTER,value);
  525. #endif
  526. return value;
  527. }
  528. GH_INLINE U16 GH_DEBUG_TSFM_get_count_inter_count(void)
  529. {
  530. GH_DEBUG_TSFM_COUNT_INTER_S tmp_value;
  531. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTER);
  532. tmp_value.all = value;
  533. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  534. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_inter_count] --> 0x%08x\n",
  535. REG_DEBUG_TSFM_COUNT_INTER,value);
  536. #endif
  537. return tmp_value.bitc.count;
  538. }
  539. #endif /* GH_INLINE_LEVEL == 0 */
  540. /*----------------------------------------------------------------------------*/
  541. /* register DEBUG_TSFM_count_pending_inst_valid (read) */
  542. /*----------------------------------------------------------------------------*/
  543. #if GH_INLINE_LEVEL == 0
  544. /*! \brief Reads the register 'DEBUG_TSFM_count_pending_inst_valid'. */
  545. U32 GH_DEBUG_TSFM_get_count_pending_inst_valid(void);
  546. /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_pending_inst_valid'. */
  547. U16 GH_DEBUG_TSFM_get_count_pending_inst_valid_count(void);
  548. #else /* GH_INLINE_LEVEL == 0 */
  549. GH_INLINE U32 GH_DEBUG_TSFM_get_count_pending_inst_valid(void)
  550. {
  551. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID);
  552. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  553. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_pending_inst_valid] --> 0x%08x\n",
  554. REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID,value);
  555. #endif
  556. return value;
  557. }
  558. GH_INLINE U16 GH_DEBUG_TSFM_get_count_pending_inst_valid_count(void)
  559. {
  560. GH_DEBUG_TSFM_COUNT_PENDING_INST_VALID_S tmp_value;
  561. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID);
  562. tmp_value.all = value;
  563. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  564. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_pending_inst_valid_count] --> 0x%08x\n",
  565. REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID,value);
  566. #endif
  567. return tmp_value.bitc.count;
  568. }
  569. #endif /* GH_INLINE_LEVEL == 0 */
  570. /*----------------------------------------------------------------------------*/
  571. /* register DEBUG_TSFM_read_clear_all_debug_counters (read) */
  572. /*----------------------------------------------------------------------------*/
  573. #if GH_INLINE_LEVEL == 0
  574. /*! \brief Reads the register 'DEBUG_TSFM_read_clear_all_debug_counters'. */
  575. U32 GH_DEBUG_TSFM_get_read_clear_all_debug_counters(void);
  576. #else /* GH_INLINE_LEVEL == 0 */
  577. GH_INLINE U32 GH_DEBUG_TSFM_get_read_clear_all_debug_counters(void)
  578. {
  579. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS);
  580. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  581. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_read_clear_all_debug_counters] --> 0x%08x\n",
  582. REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS,value);
  583. #endif
  584. return value;
  585. }
  586. #endif /* GH_INLINE_LEVEL == 0 */
  587. /*----------------------------------------------------------------------------*/
  588. /* register DEBUG_TSFM_lbist0_data (read) */
  589. /*----------------------------------------------------------------------------*/
  590. #if GH_INLINE_LEVEL == 0
  591. /*! \brief Reads the register 'DEBUG_TSFM_lbist0_data'. */
  592. U32 GH_DEBUG_TSFM_get_lbist0_data(void);
  593. #else /* GH_INLINE_LEVEL == 0 */
  594. GH_INLINE U32 GH_DEBUG_TSFM_get_lbist0_data(void)
  595. {
  596. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_LBIST0_DATA);
  597. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  598. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_lbist0_data] --> 0x%08x\n",
  599. REG_DEBUG_TSFM_LBIST0_DATA,value);
  600. #endif
  601. return value;
  602. }
  603. #endif /* GH_INLINE_LEVEL == 0 */
  604. /*----------------------------------------------------------------------------*/
  605. /* register DEBUG_TSFM_lbist1_data (read) */
  606. /*----------------------------------------------------------------------------*/
  607. #if GH_INLINE_LEVEL == 0
  608. /*! \brief Reads the register 'DEBUG_TSFM_lbist1_data'. */
  609. U32 GH_DEBUG_TSFM_get_lbist1_data(void);
  610. #else /* GH_INLINE_LEVEL == 0 */
  611. GH_INLINE U32 GH_DEBUG_TSFM_get_lbist1_data(void)
  612. {
  613. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_LBIST1_DATA);
  614. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  615. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_lbist1_data] --> 0x%08x\n",
  616. REG_DEBUG_TSFM_LBIST1_DATA,value);
  617. #endif
  618. return value;
  619. }
  620. #endif /* GH_INLINE_LEVEL == 0 */
  621. /*----------------------------------------------------------------------------*/
  622. /* register DEBUG_TSFM_debug_vlc_ci_medif (read) */
  623. /*----------------------------------------------------------------------------*/
  624. #if GH_INLINE_LEVEL == 0
  625. /*! \brief Reads the register 'DEBUG_TSFM_debug_vlc_ci_medif'. */
  626. U32 GH_DEBUG_TSFM_get_debug_vlc_ci_medif(void);
  627. #else /* GH_INLINE_LEVEL == 0 */
  628. GH_INLINE U32 GH_DEBUG_TSFM_get_debug_vlc_ci_medif(void)
  629. {
  630. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF);
  631. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  632. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_debug_vlc_ci_medif] --> 0x%08x\n",
  633. REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF,value);
  634. #endif
  635. return value;
  636. }
  637. #endif /* GH_INLINE_LEVEL == 0 */
  638. /*----------------------------------------------------------------------------*/
  639. /* register DEBUG_TSFM_debug_tctrm (read) */
  640. /*----------------------------------------------------------------------------*/
  641. #if GH_INLINE_LEVEL == 0
  642. /*! \brief Reads the register 'DEBUG_TSFM_debug_tctrm'. */
  643. U32 GH_DEBUG_TSFM_get_debug_tctrm(void);
  644. #else /* GH_INLINE_LEVEL == 0 */
  645. GH_INLINE U32 GH_DEBUG_TSFM_get_debug_tctrm(void)
  646. {
  647. U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_DEBUG_TCTRM);
  648. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  649. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_debug_tctrm] --> 0x%08x\n",
  650. REG_DEBUG_TSFM_DEBUG_TCTRM,value);
  651. #endif
  652. return value;
  653. }
  654. #endif /* GH_INLINE_LEVEL == 0 */
  655. /*----------------------------------------------------------------------------*/
  656. /* register DEBUG_TSFM_dgm_memory (read/write) */
  657. /*----------------------------------------------------------------------------*/
  658. #if GH_INLINE_LEVEL == 0
  659. /*! \brief Writes the register 'DEBUG_TSFM_dgm_memory'. */
  660. void GH_DEBUG_TSFM_set_dgm_memory(U8 index, U32 data);
  661. /*! \brief Reads the register 'DEBUG_TSFM_dgm_memory'. */
  662. U32 GH_DEBUG_TSFM_get_dgm_memory(U8 index);
  663. #else /* GH_INLINE_LEVEL == 0 */
  664. GH_INLINE void GH_DEBUG_TSFM_set_dgm_memory(U8 index, U32 data)
  665. {
  666. *(volatile U32 *)(REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
  667. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  668. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_dgm_memory] <-- 0x%08x\n",
  669. (REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
  670. #endif
  671. }
  672. GH_INLINE U32 GH_DEBUG_TSFM_get_dgm_memory(U8 index)
  673. {
  674. U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
  675. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  676. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_dgm_memory] --> 0x%08x\n",
  677. (REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
  678. #endif
  679. return value;
  680. }
  681. #endif /* GH_INLINE_LEVEL == 0 */
  682. /*----------------------------------------------------------------------------*/
  683. /* register DEBUG_TSFM_trm_ref_memory (read/write) */
  684. /*----------------------------------------------------------------------------*/
  685. #if GH_INLINE_LEVEL == 0
  686. /*! \brief Writes the register 'DEBUG_TSFM_trm_ref_memory'. */
  687. void GH_DEBUG_TSFM_set_trm_ref_memory(U8 index, U32 data);
  688. /*! \brief Reads the register 'DEBUG_TSFM_trm_ref_memory'. */
  689. U32 GH_DEBUG_TSFM_get_trm_ref_memory(U8 index);
  690. #else /* GH_INLINE_LEVEL == 0 */
  691. GH_INLINE void GH_DEBUG_TSFM_set_trm_ref_memory(U8 index, U32 data)
  692. {
  693. *(volatile U32 *)(REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
  694. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  695. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_trm_ref_memory] <-- 0x%08x\n",
  696. (REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
  697. #endif
  698. }
  699. GH_INLINE U32 GH_DEBUG_TSFM_get_trm_ref_memory(U8 index)
  700. {
  701. U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
  702. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  703. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_trm_ref_memory] --> 0x%08x\n",
  704. (REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
  705. #endif
  706. return value;
  707. }
  708. #endif /* GH_INLINE_LEVEL == 0 */
  709. /*----------------------------------------------------------------------------*/
  710. /* register DEBUG_TSFM_trm_tgt_memory (read/write) */
  711. /*----------------------------------------------------------------------------*/
  712. #if GH_INLINE_LEVEL == 0
  713. /*! \brief Writes the register 'DEBUG_TSFM_trm_tgt_memory'. */
  714. void GH_DEBUG_TSFM_set_trm_tgt_memory(U8 index, U32 data);
  715. /*! \brief Reads the register 'DEBUG_TSFM_trm_tgt_memory'. */
  716. U32 GH_DEBUG_TSFM_get_trm_tgt_memory(U8 index);
  717. #else /* GH_INLINE_LEVEL == 0 */
  718. GH_INLINE void GH_DEBUG_TSFM_set_trm_tgt_memory(U8 index, U32 data)
  719. {
  720. *(volatile U32 *)(REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
  721. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  722. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_trm_tgt_memory] <-- 0x%08x\n",
  723. (REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
  724. #endif
  725. }
  726. GH_INLINE U32 GH_DEBUG_TSFM_get_trm_tgt_memory(U8 index)
  727. {
  728. U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
  729. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  730. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_trm_tgt_memory] --> 0x%08x\n",
  731. (REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
  732. #endif
  733. return value;
  734. }
  735. #endif /* GH_INLINE_LEVEL == 0 */
  736. /*----------------------------------------------------------------------------*/
  737. /* register DEBUG_TSFM_trm_stb_memory (read/write) */
  738. /*----------------------------------------------------------------------------*/
  739. #if GH_INLINE_LEVEL == 0
  740. /*! \brief Writes the register 'DEBUG_TSFM_trm_stb_memory'. */
  741. void GH_DEBUG_TSFM_set_trm_stb_memory(U8 index, U32 data);
  742. /*! \brief Reads the register 'DEBUG_TSFM_trm_stb_memory'. */
  743. U32 GH_DEBUG_TSFM_get_trm_stb_memory(U8 index);
  744. #else /* GH_INLINE_LEVEL == 0 */
  745. GH_INLINE void GH_DEBUG_TSFM_set_trm_stb_memory(U8 index, U32 data)
  746. {
  747. *(volatile U32 *)(REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
  748. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  749. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_trm_stb_memory] <-- 0x%08x\n",
  750. (REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
  751. #endif
  752. }
  753. GH_INLINE U32 GH_DEBUG_TSFM_get_trm_stb_memory(U8 index)
  754. {
  755. U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
  756. #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
  757. GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_trm_stb_memory] --> 0x%08x\n",
  758. (REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
  759. #endif
  760. return value;
  761. }
  762. #endif /* GH_INLINE_LEVEL == 0 */
  763. /*----------------------------------------------------------------------------*/
  764. /* init function */
  765. /*----------------------------------------------------------------------------*/
  766. /*! \brief Initialises the registers and mirror variables. */
  767. void GH_DEBUG_TSFM_init(void);
  768. #ifdef __cplusplus
  769. }
  770. #endif
  771. #endif /* _GH_DEBUG_TSFM_H */
  772. /*----------------------------------------------------------------------------*/
  773. /* end of file */
  774. /*----------------------------------------------------------------------------*/