gh_debug_smem.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_debug_smem.h
  5. **
  6. ** \brief SMEM 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_SMEM_H
  18. #define _GH_DEBUG_SMEM_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_SMEM_ENABLE_DEBUG_PRINT 0
  30. #ifdef __LINUX__
  31. #define GH_DEBUG_SMEM_DEBUG_PRINT_FUNCTION printk
  32. #else
  33. #define GH_DEBUG_SMEM_DEBUG_PRINT_FUNCTION printf
  34. #endif
  35. #ifndef __LINUX__
  36. #if GH_DEBUG_SMEM_ENABLE_DEBUG_PRINT
  37. #include <stdio.h>
  38. #endif
  39. #endif
  40. /*----------------------------------------------------------------------------*/
  41. /* registers */
  42. /*----------------------------------------------------------------------------*/
  43. #define REG_DEBUG_SMEM_SMEM_CHANNEL_REG_SUB0_START FIO_ADDRESS(DEBUG_SMEM,0xa0100000) /* read/write */
  44. #define REG_DEBUG_SMEM_SMEM_CHANNEL_REG_SUB1_START FIO_ADDRESS(DEBUG_SMEM,0xa0100400) /* read/write */
  45. #define REG_DEBUG_SMEM_SMEM_CHANNEL_REG_SUB2_START FIO_ADDRESS(DEBUG_SMEM,0xa0100800) /* read/write */
  46. #define REG_DEBUG_SMEM_SMEM_CHANNEL_REG_SUB3_START FIO_ADDRESS(DEBUG_SMEM,0xa0100C00) /* read/write */
  47. #define REG_DEBUG_SMEM_SMEM_CHANNEL_REG_SUB4_START FIO_ADDRESS(DEBUG_SMEM,0xa0101000) /* read/write */
  48. #define REG_DEBUG_SMEM_SYNC_COUNTER FIO_ADDRESS(DEBUG_SMEM,0xa0101000) /* read/write */
  49. #define REG_DEBUG_SMEM_DRAM_CHANNEL_SUB0 FIO_ADDRESS(DEBUG_SMEM,0xa0104000) /* read/write */
  50. #define REG_DEBUG_SMEM_DRAM_CHANNEL_SUB1 FIO_ADDRESS(DEBUG_SMEM,0xa0104400) /* read/write */
  51. #define REG_DEBUG_SMEM_DRAM_CHANNEL_SUB2 FIO_ADDRESS(DEBUG_SMEM,0xa0104800) /* read/write */
  52. #define REG_DEBUG_SMEM_DRAM_CHANNEL_SUB3 FIO_ADDRESS(DEBUG_SMEM,0xa0104C00) /* read/write */
  53. #define REG_DEBUG_SMEM_DRAM_CHANNEL_SUB4 FIO_ADDRESS(DEBUG_SMEM,0xa0105000) /* read/write */
  54. #define REG_DEBUG_SMEM_FMEM_REFRESH_VALUE FIO_ADDRESS(DEBUG_SMEM,0xa0108080) /* read/write */
  55. #define REG_DEBUG_SMEM_RMB_2ND_LVL_CLK_GATING_DISABLE FIO_ADDRESS(DEBUG_SMEM,0xa01080A0) /* read/write */
  56. #define REG_DEBUG_SMEM_DRAM_RMB_BEHAVIOR FIO_ADDRESS(DEBUG_SMEM,0xa01080A4) /* read/write */
  57. #define REG_DEBUG_SMEM_REQQ_REQUEST_QUEUE_STATUS FIO_ADDRESS(DEBUG_SMEM,0xa0108100) /* read */
  58. #define REG_DEBUG_SMEM_ONET_DMA_STATUS FIO_ADDRESS(DEBUG_SMEM,0xa0108104) /* read */
  59. #define REG_DEBUG_SMEM_RMB_DMA_STATUS0 FIO_ADDRESS(DEBUG_SMEM,0xa0108108) /* read */
  60. #define REG_DEBUG_SMEM_RMB_DMA_STATUS1 FIO_ADDRESS(DEBUG_SMEM,0xa010810C) /* read */
  61. #define REG_DEBUG_SMEM_XFER_DRAM_TRANSFER_STATUS FIO_ADDRESS(DEBUG_SMEM,0xa0108110) /* read */
  62. #define REG_DEBUG_SMEM_SYNC_COUNTER_STATUS0 FIO_ADDRESS(DEBUG_SMEM,0xa0108114) /* read */
  63. #define REG_DEBUG_SMEM_SYNC_COUNTER_STATUS1 FIO_ADDRESS(DEBUG_SMEM,0xa0108118) /* read */
  64. #define REG_DEBUG_SMEM_SYNC_COUNTER_IDSP_STATUS FIO_ADDRESS(DEBUG_SMEM,0xa010811C) /* read */
  65. #define REG_DEBUG_SMEM_SYNC_COUNTER_VOUT_STATUS FIO_ADDRESS(DEBUG_SMEM,0xa0108120) /* read */
  66. #define REG_DEBUG_SMEM_ERROR_STATUS FIO_ADDRESS(DEBUG_SMEM,0xa0108140) /* read/clear */
  67. #define REG_DEBUG_SMEM_ERROR_INFO FIO_ADDRESS(DEBUG_SMEM,0xa0108150) /* read/clear */
  68. #define REG_DEBUG_SMEM_ERROR_MASK FIO_ADDRESS(DEBUG_SMEM,0xa0108160) /* read/write */
  69. #define REG_DEBUG_SMEM_FMEM FIO_ADDRESS(DEBUG_SMEM,0xa0200000) /* read/write */
  70. /*----------------------------------------------------------------------------*/
  71. /* bit group structures */
  72. /*----------------------------------------------------------------------------*/
  73. typedef union { /* DEBUG_SMEM_sync_counter */
  74. U32 all;
  75. struct {
  76. U32 max : 8;
  77. U32 count : 8;
  78. U32 : 8;
  79. U32 max_notchange : 1;
  80. U32 value_notchange : 1;
  81. U32 : 6;
  82. } bitc;
  83. } GH_DEBUG_SMEM_SYNC_COUNTER_S;
  84. typedef union { /* DEBUG_SMEM_dram_channel_sub0 */
  85. U32 all;
  86. struct {
  87. U32 dpitch : 12;
  88. U32 drowmax : 13;
  89. U32 dpriority : 2;
  90. U32 dramdisable : 1;
  91. U32 nextdramdisable : 1;
  92. U32 : 3;
  93. } bitc;
  94. } GH_DEBUG_SMEM_DRAM_CHANNEL_SUB0_S;
  95. typedef union { /* DEBUG_SMEM_dram_channel_sub1 */
  96. U32 all;
  97. struct {
  98. U32 dcol : 14;
  99. U32 : 2;
  100. U32 drow : 9;
  101. U32 : 7;
  102. } bitc;
  103. } GH_DEBUG_SMEM_DRAM_CHANNEL_SUB1_S;
  104. typedef union { /* DEBUG_SMEM_dram_channel_sub2 */
  105. U32 all;
  106. struct {
  107. U32 dsrowcol : 14;
  108. U32 dscliprow : 10;
  109. U32 ddrepeatrow : 1;
  110. U32 dtileenable : 1;
  111. U32 dtilefield : 1;
  112. U32 : 5;
  113. } bitc;
  114. } GH_DEBUG_SMEM_DRAM_CHANNEL_SUB2_S;
  115. typedef union { /* DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable */
  116. U32 all;
  117. struct {
  118. U32 en : 16;
  119. U32 asserted : 3;
  120. U32 : 13;
  121. } bitc;
  122. } GH_DEBUG_SMEM_RMB_2ND_LVL_CLK_GATING_DISABLE_S;
  123. typedef union { /* DEBUG_SMEM_DRAM_RMB_behavior */
  124. U32 all;
  125. struct {
  126. U32 dram_rmb : 1;
  127. U32 no_real_purpose : 1;
  128. U32 : 14;
  129. U32 load_data : 1;
  130. U32 no_write_requests : 1;
  131. U32 best_left_alone : 2;
  132. U32 write_requests : 1;
  133. U32 : 11;
  134. } bitc;
  135. } GH_DEBUG_SMEM_DRAM_RMB_BEHAVIOR_S;
  136. typedef union { /* DEBUG_SMEM_SYNC_counter_status0 */
  137. U32 all;
  138. struct {
  139. U32 th0 : 3;
  140. U32 th1 : 3;
  141. U32 th2 : 3;
  142. U32 th3 : 3;
  143. U32 : 20;
  144. } bitc;
  145. } GH_DEBUG_SMEM_SYNC_COUNTER_STATUS0_S;
  146. typedef union { /* DEBUG_SMEM_SYNC_counter_status1 */
  147. U32 all;
  148. struct {
  149. U32 th0 : 3;
  150. U32 th1 : 3;
  151. U32 th2 : 3;
  152. U32 th3 : 3;
  153. U32 : 20;
  154. } bitc;
  155. } GH_DEBUG_SMEM_SYNC_COUNTER_STATUS1_S;
  156. typedef union { /* DEBUG_SMEM_SYNC_counter_IDSP_status */
  157. U32 all;
  158. struct {
  159. U32 id0 : 3;
  160. U32 id1 : 3;
  161. U32 id2 : 3;
  162. U32 id3 : 3;
  163. U32 id4 : 3;
  164. U32 id5 : 3;
  165. U32 id6 : 3;
  166. U32 : 11;
  167. } bitc;
  168. } GH_DEBUG_SMEM_SYNC_COUNTER_IDSP_STATUS_S;
  169. typedef union { /* DEBUG_SMEM_SYNC_counter_VOUT_status */
  170. U32 all;
  171. struct {
  172. U32 id0 : 3;
  173. U32 id1 : 3;
  174. U32 id2 : 3;
  175. U32 id3 : 3;
  176. U32 id4 : 3;
  177. U32 id5 : 3;
  178. U32 : 14;
  179. } bitc;
  180. } GH_DEBUG_SMEM_SYNC_COUNTER_VOUT_STATUS_S;
  181. typedef union { /* DEBUG_SMEM_ERROR_status */
  182. U32 all;
  183. struct {
  184. U32 left_right : 1;
  185. U32 top_bottom : 1;
  186. U32 reached : 1;
  187. U32 srows : 1;
  188. U32 vflip : 1;
  189. U32 wider : 1;
  190. U32 : 2;
  191. U32 transfers : 1;
  192. U32 : 3;
  193. U32 idsp_sync : 1;
  194. U32 vout_sync : 1;
  195. U32 : 18;
  196. } bitc;
  197. } GH_DEBUG_SMEM_ERROR_STATUS_S;
  198. typedef union { /* DEBUG_SMEM_ERROR_info */
  199. U32 all;
  200. struct {
  201. U32 first_error : 13;
  202. U32 : 3;
  203. U32 id : 4;
  204. U32 : 11;
  205. U32 valid : 1;
  206. } bitc;
  207. } GH_DEBUG_SMEM_ERROR_INFO_S;
  208. /*----------------------------------------------------------------------------*/
  209. /* mirror variables */
  210. /*----------------------------------------------------------------------------*/
  211. extern GH_DEBUG_SMEM_ERROR_STATUS_S m_debug_smem_error_status;
  212. extern GH_DEBUG_SMEM_ERROR_INFO_S m_debug_smem_error_info;
  213. #ifdef __cplusplus
  214. extern "C" {
  215. #endif
  216. /*----------------------------------------------------------------------------*/
  217. /* register DEBUG_SMEM_smem_channel_reg_sub0_start (read/write) */
  218. /*----------------------------------------------------------------------------*/
  219. /*! \brief Writes the register 'DEBUG_SMEM_smem_channel_reg_sub0_start'. */
  220. void GH_DEBUG_SMEM_set_smem_channel_reg_sub0_start(U16 index, U32 data);
  221. /*! \brief Reads the register 'DEBUG_SMEM_smem_channel_reg_sub0_start'. */
  222. U32 GH_DEBUG_SMEM_get_smem_channel_reg_sub0_start(U16 index);
  223. /*----------------------------------------------------------------------------*/
  224. /* register DEBUG_SMEM_smem_channel_reg_sub1_start (read/write) */
  225. /*----------------------------------------------------------------------------*/
  226. /*! \brief Writes the register 'DEBUG_SMEM_smem_channel_reg_sub1_start'. */
  227. void GH_DEBUG_SMEM_set_smem_channel_reg_sub1_start(U16 index, U32 data);
  228. /*! \brief Reads the register 'DEBUG_SMEM_smem_channel_reg_sub1_start'. */
  229. U32 GH_DEBUG_SMEM_get_smem_channel_reg_sub1_start(U16 index);
  230. /*----------------------------------------------------------------------------*/
  231. /* register DEBUG_SMEM_smem_channel_reg_sub2_start (read/write) */
  232. /*----------------------------------------------------------------------------*/
  233. /*! \brief Writes the register 'DEBUG_SMEM_smem_channel_reg_sub2_start'. */
  234. void GH_DEBUG_SMEM_set_smem_channel_reg_sub2_start(U16 index, U32 data);
  235. /*! \brief Reads the register 'DEBUG_SMEM_smem_channel_reg_sub2_start'. */
  236. U32 GH_DEBUG_SMEM_get_smem_channel_reg_sub2_start(U16 index);
  237. /*----------------------------------------------------------------------------*/
  238. /* register DEBUG_SMEM_smem_channel_reg_sub3_start (read/write) */
  239. /*----------------------------------------------------------------------------*/
  240. /*! \brief Writes the register 'DEBUG_SMEM_smem_channel_reg_sub3_start'. */
  241. void GH_DEBUG_SMEM_set_smem_channel_reg_sub3_start(U16 index, U32 data);
  242. /*! \brief Reads the register 'DEBUG_SMEM_smem_channel_reg_sub3_start'. */
  243. U32 GH_DEBUG_SMEM_get_smem_channel_reg_sub3_start(U16 index);
  244. /*----------------------------------------------------------------------------*/
  245. /* register DEBUG_SMEM_smem_channel_reg_sub4_start (read/write) */
  246. /*----------------------------------------------------------------------------*/
  247. /*! \brief Writes the register 'DEBUG_SMEM_smem_channel_reg_sub4_start'. */
  248. void GH_DEBUG_SMEM_set_smem_channel_reg_sub4_start(U16 index, U32 data);
  249. /*! \brief Reads the register 'DEBUG_SMEM_smem_channel_reg_sub4_start'. */
  250. U32 GH_DEBUG_SMEM_get_smem_channel_reg_sub4_start(U16 index);
  251. /*----------------------------------------------------------------------------*/
  252. /* register DEBUG_SMEM_sync_counter (read/write) */
  253. /*----------------------------------------------------------------------------*/
  254. /*! \brief Writes the register 'DEBUG_SMEM_sync_counter'. */
  255. void GH_DEBUG_SMEM_set_sync_counter(U8 index, U32 data);
  256. /*! \brief Reads the register 'DEBUG_SMEM_sync_counter'. */
  257. U32 GH_DEBUG_SMEM_get_sync_counter(U8 index);
  258. /*! \brief Writes the bit group 'max' of register 'DEBUG_SMEM_sync_counter'. */
  259. void GH_DEBUG_SMEM_set_sync_counter_max(U8 index, U8 data);
  260. /*! \brief Reads the bit group 'max' of register 'DEBUG_SMEM_sync_counter'. */
  261. U8 GH_DEBUG_SMEM_get_sync_counter_max(U8 index);
  262. /*! \brief Writes the bit group 'count' of register 'DEBUG_SMEM_sync_counter'. */
  263. void GH_DEBUG_SMEM_set_sync_counter_count(U8 index, U8 data);
  264. /*! \brief Reads the bit group 'count' of register 'DEBUG_SMEM_sync_counter'. */
  265. U8 GH_DEBUG_SMEM_get_sync_counter_count(U8 index);
  266. /*! \brief Writes the bit group 'max_notchange' of register 'DEBUG_SMEM_sync_counter'. */
  267. void GH_DEBUG_SMEM_set_sync_counter_max_notchange(U8 index, U8 data);
  268. /*! \brief Reads the bit group 'max_notchange' of register 'DEBUG_SMEM_sync_counter'. */
  269. U8 GH_DEBUG_SMEM_get_sync_counter_max_notchange(U8 index);
  270. /*! \brief Writes the bit group 'value_notchange' of register 'DEBUG_SMEM_sync_counter'. */
  271. void GH_DEBUG_SMEM_set_sync_counter_value_notchange(U8 index, U8 data);
  272. /*! \brief Reads the bit group 'value_notchange' of register 'DEBUG_SMEM_sync_counter'. */
  273. U8 GH_DEBUG_SMEM_get_sync_counter_value_notchange(U8 index);
  274. /*----------------------------------------------------------------------------*/
  275. /* register DEBUG_SMEM_dram_channel_sub0 (read/write) */
  276. /*----------------------------------------------------------------------------*/
  277. /*! \brief Writes the register 'DEBUG_SMEM_dram_channel_sub0'. */
  278. void GH_DEBUG_SMEM_set_dram_channel_sub0(U8 index, U32 data);
  279. /*! \brief Reads the register 'DEBUG_SMEM_dram_channel_sub0'. */
  280. U32 GH_DEBUG_SMEM_get_dram_channel_sub0(U8 index);
  281. /*! \brief Writes the bit group 'dpitch' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  282. void GH_DEBUG_SMEM_set_dram_channel_sub0_dpitch(U8 index, U16 data);
  283. /*! \brief Reads the bit group 'dpitch' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  284. U16 GH_DEBUG_SMEM_get_dram_channel_sub0_dpitch(U8 index);
  285. /*! \brief Writes the bit group 'drowmax' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  286. void GH_DEBUG_SMEM_set_dram_channel_sub0_drowmax(U8 index, U16 data);
  287. /*! \brief Reads the bit group 'drowmax' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  288. U16 GH_DEBUG_SMEM_get_dram_channel_sub0_drowmax(U8 index);
  289. /*! \brief Writes the bit group 'dpriority' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  290. void GH_DEBUG_SMEM_set_dram_channel_sub0_dpriority(U8 index, U8 data);
  291. /*! \brief Reads the bit group 'dpriority' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  292. U8 GH_DEBUG_SMEM_get_dram_channel_sub0_dpriority(U8 index);
  293. /*! \brief Writes the bit group 'dramDisable' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  294. void GH_DEBUG_SMEM_set_dram_channel_sub0_dramDisable(U8 index, U8 data);
  295. /*! \brief Reads the bit group 'dramDisable' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  296. U8 GH_DEBUG_SMEM_get_dram_channel_sub0_dramDisable(U8 index);
  297. /*! \brief Writes the bit group 'nextDramDisable' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  298. void GH_DEBUG_SMEM_set_dram_channel_sub0_nextDramDisable(U8 index, U8 data);
  299. /*! \brief Reads the bit group 'nextDramDisable' of register 'DEBUG_SMEM_dram_channel_sub0'. */
  300. U8 GH_DEBUG_SMEM_get_dram_channel_sub0_nextDramDisable(U8 index);
  301. /*----------------------------------------------------------------------------*/
  302. /* register DEBUG_SMEM_dram_channel_sub1 (read/write) */
  303. /*----------------------------------------------------------------------------*/
  304. /*! \brief Writes the register 'DEBUG_SMEM_dram_channel_sub1'. */
  305. void GH_DEBUG_SMEM_set_dram_channel_sub1(U8 index, U32 data);
  306. /*! \brief Reads the register 'DEBUG_SMEM_dram_channel_sub1'. */
  307. U32 GH_DEBUG_SMEM_get_dram_channel_sub1(U8 index);
  308. /*! \brief Writes the bit group 'dcol' of register 'DEBUG_SMEM_dram_channel_sub1'. */
  309. void GH_DEBUG_SMEM_set_dram_channel_sub1_dcol(U8 index, U16 data);
  310. /*! \brief Reads the bit group 'dcol' of register 'DEBUG_SMEM_dram_channel_sub1'. */
  311. U16 GH_DEBUG_SMEM_get_dram_channel_sub1_dcol(U8 index);
  312. /*! \brief Writes the bit group 'drow' of register 'DEBUG_SMEM_dram_channel_sub1'. */
  313. void GH_DEBUG_SMEM_set_dram_channel_sub1_drow(U8 index, U16 data);
  314. /*! \brief Reads the bit group 'drow' of register 'DEBUG_SMEM_dram_channel_sub1'. */
  315. U16 GH_DEBUG_SMEM_get_dram_channel_sub1_drow(U8 index);
  316. /*----------------------------------------------------------------------------*/
  317. /* register DEBUG_SMEM_dram_channel_sub2 (read/write) */
  318. /*----------------------------------------------------------------------------*/
  319. /*! \brief Writes the register 'DEBUG_SMEM_dram_channel_sub2'. */
  320. void GH_DEBUG_SMEM_set_dram_channel_sub2(U8 index, U32 data);
  321. /*! \brief Reads the register 'DEBUG_SMEM_dram_channel_sub2'. */
  322. U32 GH_DEBUG_SMEM_get_dram_channel_sub2(U8 index);
  323. /*! \brief Writes the bit group 'dsrowcol' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  324. void GH_DEBUG_SMEM_set_dram_channel_sub2_dsrowcol(U8 index, U16 data);
  325. /*! \brief Reads the bit group 'dsrowcol' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  326. U16 GH_DEBUG_SMEM_get_dram_channel_sub2_dsrowcol(U8 index);
  327. /*! \brief Writes the bit group 'dscliprow' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  328. void GH_DEBUG_SMEM_set_dram_channel_sub2_dscliprow(U8 index, U16 data);
  329. /*! \brief Reads the bit group 'dscliprow' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  330. U16 GH_DEBUG_SMEM_get_dram_channel_sub2_dscliprow(U8 index);
  331. /*! \brief Writes the bit group 'ddrepeatRow' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  332. void GH_DEBUG_SMEM_set_dram_channel_sub2_ddrepeatRow(U8 index, U8 data);
  333. /*! \brief Reads the bit group 'ddrepeatRow' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  334. U8 GH_DEBUG_SMEM_get_dram_channel_sub2_ddrepeatRow(U8 index);
  335. /*! \brief Writes the bit group 'dtileEnable' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  336. void GH_DEBUG_SMEM_set_dram_channel_sub2_dtileEnable(U8 index, U8 data);
  337. /*! \brief Reads the bit group 'dtileEnable' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  338. U8 GH_DEBUG_SMEM_get_dram_channel_sub2_dtileEnable(U8 index);
  339. /*! \brief Writes the bit group 'dtileField' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  340. void GH_DEBUG_SMEM_set_dram_channel_sub2_dtileField(U8 index, U8 data);
  341. /*! \brief Reads the bit group 'dtileField' of register 'DEBUG_SMEM_dram_channel_sub2'. */
  342. U8 GH_DEBUG_SMEM_get_dram_channel_sub2_dtileField(U8 index);
  343. /*----------------------------------------------------------------------------*/
  344. /* register DEBUG_SMEM_dram_channel_sub3 (read/write) */
  345. /*----------------------------------------------------------------------------*/
  346. /*! \brief Writes the register 'DEBUG_SMEM_dram_channel_sub3'. */
  347. void GH_DEBUG_SMEM_set_dram_channel_sub3(U8 index, U32 data);
  348. /*! \brief Reads the register 'DEBUG_SMEM_dram_channel_sub3'. */
  349. U32 GH_DEBUG_SMEM_get_dram_channel_sub3(U8 index);
  350. /*----------------------------------------------------------------------------*/
  351. /* register DEBUG_SMEM_dram_channel_sub4 (read/write) */
  352. /*----------------------------------------------------------------------------*/
  353. /*! \brief Writes the register 'DEBUG_SMEM_dram_channel_sub4'. */
  354. void GH_DEBUG_SMEM_set_dram_channel_sub4(U8 index, U32 data);
  355. /*! \brief Reads the register 'DEBUG_SMEM_dram_channel_sub4'. */
  356. U32 GH_DEBUG_SMEM_get_dram_channel_sub4(U8 index);
  357. /*----------------------------------------------------------------------------*/
  358. /* register DEBUG_SMEM_FMEM_refresh_value (read/write) */
  359. /*----------------------------------------------------------------------------*/
  360. /*! \brief Writes the register 'DEBUG_SMEM_FMEM_refresh_value'. */
  361. void GH_DEBUG_SMEM_set_FMEM_refresh_value(U32 data);
  362. /*! \brief Reads the register 'DEBUG_SMEM_FMEM_refresh_value'. */
  363. U32 GH_DEBUG_SMEM_get_FMEM_refresh_value(void);
  364. /*----------------------------------------------------------------------------*/
  365. /* register DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable (read/write) */
  366. /*----------------------------------------------------------------------------*/
  367. /*! \brief Writes the register 'DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable'. */
  368. void GH_DEBUG_SMEM_set_RMB_2nd_lvl_clk_gating_disable(U32 data);
  369. /*! \brief Reads the register 'DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable'. */
  370. U32 GH_DEBUG_SMEM_get_RMB_2nd_lvl_clk_gating_disable(void);
  371. /*! \brief Writes the bit group 'en' of register 'DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable'. */
  372. void GH_DEBUG_SMEM_set_RMB_2nd_lvl_clk_gating_disable_en(U16 data);
  373. /*! \brief Reads the bit group 'en' of register 'DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable'. */
  374. U16 GH_DEBUG_SMEM_get_RMB_2nd_lvl_clk_gating_disable_en(void);
  375. /*! \brief Writes the bit group 'asserted' of register 'DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable'. */
  376. void GH_DEBUG_SMEM_set_RMB_2nd_lvl_clk_gating_disable_asserted(U8 data);
  377. /*! \brief Reads the bit group 'asserted' of register 'DEBUG_SMEM_RMB_2nd_lvl_clk_gating_disable'. */
  378. U8 GH_DEBUG_SMEM_get_RMB_2nd_lvl_clk_gating_disable_asserted(void);
  379. /*----------------------------------------------------------------------------*/
  380. /* register DEBUG_SMEM_DRAM_RMB_behavior (read/write) */
  381. /*----------------------------------------------------------------------------*/
  382. /*! \brief Writes the register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  383. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior(U32 data);
  384. /*! \brief Reads the register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  385. U32 GH_DEBUG_SMEM_get_DRAM_RMB_behavior(void);
  386. /*! \brief Writes the bit group 'DRAM_RMB' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  387. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior_DRAM_RMB(U8 data);
  388. /*! \brief Reads the bit group 'DRAM_RMB' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  389. U8 GH_DEBUG_SMEM_get_DRAM_RMB_behavior_DRAM_RMB(void);
  390. /*! \brief Writes the bit group 'no_real_purpose' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  391. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior_no_real_purpose(U8 data);
  392. /*! \brief Reads the bit group 'no_real_purpose' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  393. U8 GH_DEBUG_SMEM_get_DRAM_RMB_behavior_no_real_purpose(void);
  394. /*! \brief Writes the bit group 'load_data' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  395. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior_load_data(U8 data);
  396. /*! \brief Reads the bit group 'load_data' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  397. U8 GH_DEBUG_SMEM_get_DRAM_RMB_behavior_load_data(void);
  398. /*! \brief Writes the bit group 'no_write_requests' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  399. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior_no_write_requests(U8 data);
  400. /*! \brief Reads the bit group 'no_write_requests' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  401. U8 GH_DEBUG_SMEM_get_DRAM_RMB_behavior_no_write_requests(void);
  402. /*! \brief Writes the bit group 'best_left_alone' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  403. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior_best_left_alone(U8 data);
  404. /*! \brief Reads the bit group 'best_left_alone' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  405. U8 GH_DEBUG_SMEM_get_DRAM_RMB_behavior_best_left_alone(void);
  406. /*! \brief Writes the bit group 'write_requests' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  407. void GH_DEBUG_SMEM_set_DRAM_RMB_behavior_write_requests(U8 data);
  408. /*! \brief Reads the bit group 'write_requests' of register 'DEBUG_SMEM_DRAM_RMB_behavior'. */
  409. U8 GH_DEBUG_SMEM_get_DRAM_RMB_behavior_write_requests(void);
  410. /*----------------------------------------------------------------------------*/
  411. /* register DEBUG_SMEM_REQQ_request_queue_status (read) */
  412. /*----------------------------------------------------------------------------*/
  413. /*! \brief Reads the register 'DEBUG_SMEM_REQQ_request_queue_status'. */
  414. U32 GH_DEBUG_SMEM_get_REQQ_request_queue_status(void);
  415. /*----------------------------------------------------------------------------*/
  416. /* register DEBUG_SMEM_ONET_dma_status (read) */
  417. /*----------------------------------------------------------------------------*/
  418. /*! \brief Reads the register 'DEBUG_SMEM_ONET_dma_status'. */
  419. U32 GH_DEBUG_SMEM_get_ONET_dma_status(void);
  420. /*----------------------------------------------------------------------------*/
  421. /* register DEBUG_SMEM_RMB_dma_status0 (read) */
  422. /*----------------------------------------------------------------------------*/
  423. /*! \brief Reads the register 'DEBUG_SMEM_RMB_dma_status0'. */
  424. U32 GH_DEBUG_SMEM_get_RMB_dma_status0(void);
  425. /*----------------------------------------------------------------------------*/
  426. /* register DEBUG_SMEM_RMB_dma_status1 (read) */
  427. /*----------------------------------------------------------------------------*/
  428. /*! \brief Reads the register 'DEBUG_SMEM_RMB_dma_status1'. */
  429. U32 GH_DEBUG_SMEM_get_RMB_dma_status1(void);
  430. /*----------------------------------------------------------------------------*/
  431. /* register DEBUG_SMEM_XFER_dram_transfer_status (read) */
  432. /*----------------------------------------------------------------------------*/
  433. /*! \brief Reads the register 'DEBUG_SMEM_XFER_dram_transfer_status'. */
  434. U32 GH_DEBUG_SMEM_get_XFER_dram_transfer_status(void);
  435. /*----------------------------------------------------------------------------*/
  436. /* register DEBUG_SMEM_SYNC_counter_status0 (read) */
  437. /*----------------------------------------------------------------------------*/
  438. /*! \brief Reads the register 'DEBUG_SMEM_SYNC_counter_status0'. */
  439. U32 GH_DEBUG_SMEM_get_SYNC_counter_status0(void);
  440. /*! \brief Reads the bit group 'TH0' of register 'DEBUG_SMEM_SYNC_counter_status0'. */
  441. U8 GH_DEBUG_SMEM_get_SYNC_counter_status0_TH0(void);
  442. /*! \brief Reads the bit group 'TH1' of register 'DEBUG_SMEM_SYNC_counter_status0'. */
  443. U8 GH_DEBUG_SMEM_get_SYNC_counter_status0_TH1(void);
  444. /*! \brief Reads the bit group 'TH2' of register 'DEBUG_SMEM_SYNC_counter_status0'. */
  445. U8 GH_DEBUG_SMEM_get_SYNC_counter_status0_TH2(void);
  446. /*! \brief Reads the bit group 'TH3' of register 'DEBUG_SMEM_SYNC_counter_status0'. */
  447. U8 GH_DEBUG_SMEM_get_SYNC_counter_status0_TH3(void);
  448. /*----------------------------------------------------------------------------*/
  449. /* register DEBUG_SMEM_SYNC_counter_status1 (read) */
  450. /*----------------------------------------------------------------------------*/
  451. /*! \brief Reads the register 'DEBUG_SMEM_SYNC_counter_status1'. */
  452. U32 GH_DEBUG_SMEM_get_SYNC_counter_status1(void);
  453. /*! \brief Reads the bit group 'TH0' of register 'DEBUG_SMEM_SYNC_counter_status1'. */
  454. U8 GH_DEBUG_SMEM_get_SYNC_counter_status1_TH0(void);
  455. /*! \brief Reads the bit group 'TH1' of register 'DEBUG_SMEM_SYNC_counter_status1'. */
  456. U8 GH_DEBUG_SMEM_get_SYNC_counter_status1_TH1(void);
  457. /*! \brief Reads the bit group 'TH2' of register 'DEBUG_SMEM_SYNC_counter_status1'. */
  458. U8 GH_DEBUG_SMEM_get_SYNC_counter_status1_TH2(void);
  459. /*! \brief Reads the bit group 'TH3' of register 'DEBUG_SMEM_SYNC_counter_status1'. */
  460. U8 GH_DEBUG_SMEM_get_SYNC_counter_status1_TH3(void);
  461. /*----------------------------------------------------------------------------*/
  462. /* register DEBUG_SMEM_SYNC_counter_IDSP_status (read) */
  463. /*----------------------------------------------------------------------------*/
  464. /*! \brief Reads the register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  465. U32 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status(void);
  466. /*! \brief Reads the bit group 'ID0' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  467. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID0(void);
  468. /*! \brief Reads the bit group 'ID1' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  469. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID1(void);
  470. /*! \brief Reads the bit group 'ID2' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  471. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID2(void);
  472. /*! \brief Reads the bit group 'ID3' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  473. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID3(void);
  474. /*! \brief Reads the bit group 'ID4' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  475. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID4(void);
  476. /*! \brief Reads the bit group 'ID5' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  477. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID5(void);
  478. /*! \brief Reads the bit group 'ID6' of register 'DEBUG_SMEM_SYNC_counter_IDSP_status'. */
  479. U8 GH_DEBUG_SMEM_get_SYNC_counter_IDSP_status_ID6(void);
  480. /*----------------------------------------------------------------------------*/
  481. /* register DEBUG_SMEM_SYNC_counter_VOUT_status (read) */
  482. /*----------------------------------------------------------------------------*/
  483. /*! \brief Reads the register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  484. U32 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status(void);
  485. /*! \brief Reads the bit group 'ID0' of register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  486. U8 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status_ID0(void);
  487. /*! \brief Reads the bit group 'ID1' of register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  488. U8 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status_ID1(void);
  489. /*! \brief Reads the bit group 'ID2' of register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  490. U8 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status_ID2(void);
  491. /*! \brief Reads the bit group 'ID3' of register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  492. U8 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status_ID3(void);
  493. /*! \brief Reads the bit group 'ID4' of register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  494. U8 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status_ID4(void);
  495. /*! \brief Reads the bit group 'ID5' of register 'DEBUG_SMEM_SYNC_counter_VOUT_status'. */
  496. U8 GH_DEBUG_SMEM_get_SYNC_counter_VOUT_status_ID5(void);
  497. /*----------------------------------------------------------------------------*/
  498. /* register DEBUG_SMEM_ERROR_status (read/clear) */
  499. /*----------------------------------------------------------------------------*/
  500. /*! \brief Writes the register 'DEBUG_SMEM_ERROR_status'. */
  501. U32 GH_DEBUG_SMEM_get_ERROR_status(void);
  502. /*! \brief Reads the mirror variable of the register 'DEBUG_SMEM_ERROR_status'. */
  503. U32 GH_DEBUG_SMEM_getm_ERROR_status(void);
  504. /*! \brief Reads the bit group 'left_right' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  505. U8 GH_DEBUG_SMEM_getm_ERROR_status_left_right(void);
  506. /*! \brief Reads the bit group 'top_bottom' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  507. U8 GH_DEBUG_SMEM_getm_ERROR_status_top_bottom(void);
  508. /*! \brief Reads the bit group 'reached' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  509. U8 GH_DEBUG_SMEM_getm_ERROR_status_reached(void);
  510. /*! \brief Reads the bit group 'srows' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  511. U8 GH_DEBUG_SMEM_getm_ERROR_status_srows(void);
  512. /*! \brief Reads the bit group 'vflip' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  513. U8 GH_DEBUG_SMEM_getm_ERROR_status_vflip(void);
  514. /*! \brief Reads the bit group 'wider' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  515. U8 GH_DEBUG_SMEM_getm_ERROR_status_wider(void);
  516. /*! \brief Reads the bit group 'transfers' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  517. U8 GH_DEBUG_SMEM_getm_ERROR_status_transfers(void);
  518. /*! \brief Reads the bit group 'IDSP_sync' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  519. U8 GH_DEBUG_SMEM_getm_ERROR_status_IDSP_sync(void);
  520. /*! \brief Reads the bit group 'VOUT_sync' from the mirror variable of register 'DEBUG_SMEM_ERROR_status'. */
  521. U8 GH_DEBUG_SMEM_getm_ERROR_status_VOUT_sync(void);
  522. /*----------------------------------------------------------------------------*/
  523. /* register DEBUG_SMEM_ERROR_info (read/clear) */
  524. /*----------------------------------------------------------------------------*/
  525. /*! \brief Writes the register 'DEBUG_SMEM_ERROR_info'. */
  526. U32 GH_DEBUG_SMEM_get_ERROR_info(void);
  527. /*! \brief Reads the mirror variable of the register 'DEBUG_SMEM_ERROR_info'. */
  528. U32 GH_DEBUG_SMEM_getm_ERROR_info(void);
  529. /*! \brief Reads the bit group 'first_error' from the mirror variable of register 'DEBUG_SMEM_ERROR_info'. */
  530. U16 GH_DEBUG_SMEM_getm_ERROR_info_first_error(void);
  531. /*! \brief Reads the bit group 'id' from the mirror variable of register 'DEBUG_SMEM_ERROR_info'. */
  532. U8 GH_DEBUG_SMEM_getm_ERROR_info_id(void);
  533. /*! \brief Reads the bit group 'valid' from the mirror variable of register 'DEBUG_SMEM_ERROR_info'. */
  534. U8 GH_DEBUG_SMEM_getm_ERROR_info_valid(void);
  535. /*----------------------------------------------------------------------------*/
  536. /* register DEBUG_SMEM_ERROR_mask (read/write) */
  537. /*----------------------------------------------------------------------------*/
  538. /*! \brief Writes the register 'DEBUG_SMEM_ERROR_mask'. */
  539. void GH_DEBUG_SMEM_set_ERROR_mask(U32 data);
  540. /*! \brief Reads the register 'DEBUG_SMEM_ERROR_mask'. */
  541. U32 GH_DEBUG_SMEM_get_ERROR_mask(void);
  542. /*----------------------------------------------------------------------------*/
  543. /* register DEBUG_SMEM_FMEM (read/write) */
  544. /*----------------------------------------------------------------------------*/
  545. /*! \brief Writes the register 'DEBUG_SMEM_FMEM'. */
  546. void GH_DEBUG_SMEM_set_FMEM(U32 data);
  547. /*! \brief Reads the register 'DEBUG_SMEM_FMEM'. */
  548. U32 GH_DEBUG_SMEM_get_FMEM(void);
  549. /*----------------------------------------------------------------------------*/
  550. /* init function */
  551. /*----------------------------------------------------------------------------*/
  552. /*! \brief Initialises the registers and mirror variables. */
  553. void GH_DEBUG_SMEM_init(void);
  554. #ifdef SRC_INLINE
  555. #define SRC_INC 1
  556. #include "gh_debug_smem.c"
  557. #undef SRC_INC
  558. #endif
  559. #ifdef __cplusplus
  560. }
  561. #endif
  562. #endif /* _GH_DEBUG_SMEM_H */
  563. /*----------------------------------------------------------------------------*/
  564. /* end of file */
  565. /*----------------------------------------------------------------------------*/