123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858 |
- /*!
- *******************************************************************************
- **
- ** \file gh_debug_tsfm.h
- **
- ** \brief TSFM Debug Registers.
- **
- ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
- **
- ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
- ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
- ** OMMISSIONS.
- **
- ** \note Do not modify this file as it is generated automatically.
- **
- ******************************************************************************/
- #ifndef _GH_DEBUG_TSFM_H
- #define _GH_DEBUG_TSFM_H
- #ifdef __LINUX__
- #include "reg4linux.h"
- #else
- #define FIO_ADDRESS(block,address) (address)
- #define FIO_MOFFSET(block,moffset) (moffset)
- #endif
- #ifndef __LINUX__
- #include "gtypes.h" /* global type definitions */
- #include "gh_lib_cfg.h" /* configuration */
- #endif
- #define GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT 0
- #ifdef __LINUX__
- #define GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION printk
- #else
- #define GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION printf
- #endif
- #ifndef __LINUX__
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- #include <stdio.h>
- #endif
- #endif
- /* check configuration */
- #ifndef GH_INLINE_LEVEL
- #error "GH_INLINE_LEVEL is not defined!"
- #endif
- #if GH_INLINE_LEVEL > 2
- #error "GH_INLINE_LEVEL must be set 0, 1 or 2!"
- #endif
- #ifndef GH_INLINE
- #error "GH_INLINE is not defined!"
- #endif
- /* disable inlining for debugging */
- #ifdef DEBUG
- #undef GH_INLINE_LEVEL
- #define GH_INLINE_LEVEL 0
- #endif
- /*----------------------------------------------------------------------------*/
- /* registers */
- /*----------------------------------------------------------------------------*/
- #define REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID FIO_ADDRESS(DEBUG_TSFM,0x70128000) /* read */
- #define REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP FIO_ADDRESS(DEBUG_TSFM,0x70128004) /* read */
- #define REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE FIO_ADDRESS(DEBUG_TSFM,0x70128008) /* read */
- #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE FIO_ADDRESS(DEBUG_TSFM,0x7012800C) /* read */
- #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP FIO_ADDRESS(DEBUG_TSFM,0x70128010) /* read */
- #define REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP FIO_ADDRESS(DEBUG_TSFM,0x70128014) /* read */
- #define REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE FIO_ADDRESS(DEBUG_TSFM,0x70128018) /* read */
- #define REG_DEBUG_TSFM_COUNT_NEW_MACRO FIO_ADDRESS(DEBUG_TSFM,0x7012801C) /* read */
- #define REG_DEBUG_TSFM_COUNT_JP_DONE FIO_ADDRESS(DEBUG_TSFM,0x70128020) /* read */
- #define REG_DEBUG_TSFM_COUNT_INTRA_4X4 FIO_ADDRESS(DEBUG_TSFM,0x70128024) /* read */
- #define REG_DEBUG_TSFM_COUNT_INTRA_16 FIO_ADDRESS(DEBUG_TSFM,0x70128028) /* read */
- #define REG_DEBUG_TSFM_COUNT_INTER FIO_ADDRESS(DEBUG_TSFM,0x7012802C) /* read */
- #define REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID FIO_ADDRESS(DEBUG_TSFM,0x70128030) /* read */
- #define REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS FIO_ADDRESS(DEBUG_TSFM,0x70128034) /* read */
- #define REG_DEBUG_TSFM_LBIST0_DATA FIO_ADDRESS(DEBUG_TSFM,0x70128080) /* read */
- #define REG_DEBUG_TSFM_LBIST1_DATA FIO_ADDRESS(DEBUG_TSFM,0x70128084) /* read */
- #define REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF FIO_ADDRESS(DEBUG_TSFM,0x70129000) /* read */
- #define REG_DEBUG_TSFM_DEBUG_TCTRM FIO_ADDRESS(DEBUG_TSFM,0x70129004) /* read */
- #define REG_DEBUG_TSFM_DGM_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012A000) /* read/write */
- #define REG_DEBUG_TSFM_TRM_REF_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012B000) /* read/write */
- #define REG_DEBUG_TSFM_TRM_TGT_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012B000) /* read/write */
- #define REG_DEBUG_TSFM_TRM_STB_MEMORY FIO_ADDRESS(DEBUG_TSFM,0x7012C000) /* read/write */
- /*----------------------------------------------------------------------------*/
- /* bit group structures */
- /*----------------------------------------------------------------------------*/
- typedef union { /* DEBUG_TSFM_count_memd_tsfm_inst_valid */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID_S;
- typedef union { /* DEBUG_TSFM_count_memd_tsfm_vlc_stop */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP_S;
- typedef union { /* DEBUG_TSFM_count_tsfm_memd_inst_done */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE_S;
- typedef union { /* DEBUG_TSFM_count_tsfm_code_qcmem_done */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE_S;
- typedef union { /* DEBUG_TSFM_count_tsfm_code_qcmem_swap */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP_S;
- typedef union { /* DEBUG_TSFM_count_tsfm_code_vlc_stop */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP_S;
- typedef union { /* DEBUG_TSFM_count_code_tsfm_vlc_stop_done */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE_S;
- typedef union { /* DEBUG_TSFM_count_new_macro */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_NEW_MACRO_S;
- typedef union { /* DEBUG_TSFM_count_jp_done */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_JP_DONE_S;
- typedef union { /* DEBUG_TSFM_count_intra_4x4 */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_INTRA_4X4_S;
- typedef union { /* DEBUG_TSFM_count_intra_16 */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_INTRA_16_S;
- typedef union { /* DEBUG_TSFM_count_inter */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_INTER_S;
- typedef union { /* DEBUG_TSFM_count_pending_inst_valid */
- U32 all;
- struct {
- U32 count : 16;
- U32 : 16;
- } bitc;
- } GH_DEBUG_TSFM_COUNT_PENDING_INST_VALID_S;
- /*----------------------------------------------------------------------------*/
- /* mirror variables */
- /*----------------------------------------------------------------------------*/
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_memd_tsfm_inst_valid (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_memd_tsfm_inst_valid'. */
- U32 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_memd_tsfm_inst_valid'. */
- U16 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count(void)
- {
- GH_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_inst_valid_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_MEMD_TSFM_INST_VALID,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_memd_tsfm_vlc_stop (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_memd_tsfm_vlc_stop'. */
- U32 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_memd_tsfm_vlc_stop'. */
- U16 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count(void)
- {
- GH_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_memd_tsfm_vlc_stop_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_MEMD_TSFM_VLC_STOP,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_tsfm_memd_inst_done (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_memd_inst_done'. */
- U32 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_memd_inst_done'. */
- U16 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count(void)
- {
- GH_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_memd_inst_done_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_MEMD_INST_DONE,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_tsfm_code_qcmem_done (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_qcmem_done'. */
- U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_qcmem_done'. */
- U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count(void)
- {
- GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_done_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_DONE,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_tsfm_code_qcmem_swap (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_qcmem_swap'. */
- U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_qcmem_swap'. */
- U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count(void)
- {
- GH_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_qcmem_swap_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_CODE_QCMEM_SWAP,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_tsfm_code_vlc_stop (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_tsfm_code_vlc_stop'. */
- U32 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_tsfm_code_vlc_stop'. */
- U16 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count(void)
- {
- GH_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_tsfm_code_vlc_stop_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_TSFM_CODE_VLC_STOP,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_code_tsfm_vlc_stop_done (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_code_tsfm_vlc_stop_done'. */
- U32 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_code_tsfm_vlc_stop_done'. */
- U16 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count(void)
- {
- GH_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_code_tsfm_vlc_stop_done_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_CODE_TSFM_VLC_STOP_DONE,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_new_macro (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_new_macro'. */
- U32 GH_DEBUG_TSFM_get_count_new_macro(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_new_macro'. */
- U16 GH_DEBUG_TSFM_get_count_new_macro_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_new_macro(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_NEW_MACRO);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_new_macro] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_NEW_MACRO,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_new_macro_count(void)
- {
- GH_DEBUG_TSFM_COUNT_NEW_MACRO_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_NEW_MACRO);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_new_macro_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_NEW_MACRO,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_jp_done (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_jp_done'. */
- U32 GH_DEBUG_TSFM_get_count_jp_done(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_jp_done'. */
- U16 GH_DEBUG_TSFM_get_count_jp_done_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_jp_done(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_JP_DONE);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_jp_done] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_JP_DONE,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_jp_done_count(void)
- {
- GH_DEBUG_TSFM_COUNT_JP_DONE_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_JP_DONE);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_jp_done_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_JP_DONE,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_intra_4x4 (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_intra_4x4'. */
- U32 GH_DEBUG_TSFM_get_count_intra_4x4(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_intra_4x4'. */
- U16 GH_DEBUG_TSFM_get_count_intra_4x4_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_intra_4x4(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_4X4);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_4x4] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_INTRA_4X4,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_intra_4x4_count(void)
- {
- GH_DEBUG_TSFM_COUNT_INTRA_4X4_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_4X4);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_4x4_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_INTRA_4X4,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_intra_16 (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_intra_16'. */
- U32 GH_DEBUG_TSFM_get_count_intra_16(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_intra_16'. */
- U16 GH_DEBUG_TSFM_get_count_intra_16_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_intra_16(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_16);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_16] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_INTRA_16,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_intra_16_count(void)
- {
- GH_DEBUG_TSFM_COUNT_INTRA_16_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTRA_16);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_intra_16_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_INTRA_16,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_inter (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_inter'. */
- U32 GH_DEBUG_TSFM_get_count_inter(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_inter'. */
- U16 GH_DEBUG_TSFM_get_count_inter_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_inter(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTER);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_inter] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_INTER,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_inter_count(void)
- {
- GH_DEBUG_TSFM_COUNT_INTER_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_INTER);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_inter_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_INTER,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_count_pending_inst_valid (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_count_pending_inst_valid'. */
- U32 GH_DEBUG_TSFM_get_count_pending_inst_valid(void);
- /*! \brief Reads the bit group 'count' of register 'DEBUG_TSFM_count_pending_inst_valid'. */
- U16 GH_DEBUG_TSFM_get_count_pending_inst_valid_count(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_count_pending_inst_valid(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_pending_inst_valid] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID,value);
- #endif
- return value;
- }
- GH_INLINE U16 GH_DEBUG_TSFM_get_count_pending_inst_valid_count(void)
- {
- GH_DEBUG_TSFM_COUNT_PENDING_INST_VALID_S tmp_value;
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID);
- tmp_value.all = value;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_count_pending_inst_valid_count] --> 0x%08x\n",
- REG_DEBUG_TSFM_COUNT_PENDING_INST_VALID,value);
- #endif
- return tmp_value.bitc.count;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_read_clear_all_debug_counters (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_read_clear_all_debug_counters'. */
- U32 GH_DEBUG_TSFM_get_read_clear_all_debug_counters(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_read_clear_all_debug_counters(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_read_clear_all_debug_counters] --> 0x%08x\n",
- REG_DEBUG_TSFM_READ_CLEAR_ALL_DEBUG_COUNTERS,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_lbist0_data (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_lbist0_data'. */
- U32 GH_DEBUG_TSFM_get_lbist0_data(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_lbist0_data(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_LBIST0_DATA);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_lbist0_data] --> 0x%08x\n",
- REG_DEBUG_TSFM_LBIST0_DATA,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_lbist1_data (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_lbist1_data'. */
- U32 GH_DEBUG_TSFM_get_lbist1_data(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_lbist1_data(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_LBIST1_DATA);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_lbist1_data] --> 0x%08x\n",
- REG_DEBUG_TSFM_LBIST1_DATA,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_debug_vlc_ci_medif (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_debug_vlc_ci_medif'. */
- U32 GH_DEBUG_TSFM_get_debug_vlc_ci_medif(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_debug_vlc_ci_medif(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_debug_vlc_ci_medif] --> 0x%08x\n",
- REG_DEBUG_TSFM_DEBUG_VLC_CI_MEDIF,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_debug_tctrm (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'DEBUG_TSFM_debug_tctrm'. */
- U32 GH_DEBUG_TSFM_get_debug_tctrm(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U32 GH_DEBUG_TSFM_get_debug_tctrm(void)
- {
- U32 value = (*(volatile U32 *)REG_DEBUG_TSFM_DEBUG_TCTRM);
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_debug_tctrm] --> 0x%08x\n",
- REG_DEBUG_TSFM_DEBUG_TCTRM,value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_dgm_memory (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'DEBUG_TSFM_dgm_memory'. */
- void GH_DEBUG_TSFM_set_dgm_memory(U8 index, U32 data);
- /*! \brief Reads the register 'DEBUG_TSFM_dgm_memory'. */
- U32 GH_DEBUG_TSFM_get_dgm_memory(U8 index);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_DEBUG_TSFM_set_dgm_memory(U8 index, U32 data)
- {
- *(volatile U32 *)(REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_dgm_memory] <-- 0x%08x\n",
- (REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
- #endif
- }
- GH_INLINE U32 GH_DEBUG_TSFM_get_dgm_memory(U8 index)
- {
- U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_dgm_memory] --> 0x%08x\n",
- (REG_DEBUG_TSFM_DGM_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_trm_ref_memory (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'DEBUG_TSFM_trm_ref_memory'. */
- void GH_DEBUG_TSFM_set_trm_ref_memory(U8 index, U32 data);
- /*! \brief Reads the register 'DEBUG_TSFM_trm_ref_memory'. */
- U32 GH_DEBUG_TSFM_get_trm_ref_memory(U8 index);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_DEBUG_TSFM_set_trm_ref_memory(U8 index, U32 data)
- {
- *(volatile U32 *)(REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_trm_ref_memory] <-- 0x%08x\n",
- (REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
- #endif
- }
- GH_INLINE U32 GH_DEBUG_TSFM_get_trm_ref_memory(U8 index)
- {
- U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_trm_ref_memory] --> 0x%08x\n",
- (REG_DEBUG_TSFM_TRM_REF_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_trm_tgt_memory (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'DEBUG_TSFM_trm_tgt_memory'. */
- void GH_DEBUG_TSFM_set_trm_tgt_memory(U8 index, U32 data);
- /*! \brief Reads the register 'DEBUG_TSFM_trm_tgt_memory'. */
- U32 GH_DEBUG_TSFM_get_trm_tgt_memory(U8 index);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_DEBUG_TSFM_set_trm_tgt_memory(U8 index, U32 data)
- {
- *(volatile U32 *)(REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_trm_tgt_memory] <-- 0x%08x\n",
- (REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
- #endif
- }
- GH_INLINE U32 GH_DEBUG_TSFM_get_trm_tgt_memory(U8 index)
- {
- U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_trm_tgt_memory] --> 0x%08x\n",
- (REG_DEBUG_TSFM_TRM_TGT_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register DEBUG_TSFM_trm_stb_memory (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'DEBUG_TSFM_trm_stb_memory'. */
- void GH_DEBUG_TSFM_set_trm_stb_memory(U8 index, U32 data);
- /*! \brief Reads the register 'DEBUG_TSFM_trm_stb_memory'. */
- U32 GH_DEBUG_TSFM_get_trm_stb_memory(U8 index);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_DEBUG_TSFM_set_trm_stb_memory(U8 index, U32 data)
- {
- *(volatile U32 *)(REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)) = data;
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_DEBUG_TSFM_set_trm_stb_memory] <-- 0x%08x\n",
- (REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),data,data);
- #endif
- }
- GH_INLINE U32 GH_DEBUG_TSFM_get_trm_stb_memory(U8 index)
- {
- U32 value = (*(volatile U32 *)(REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)));
- #if GH_DEBUG_TSFM_ENABLE_DEBUG_PRINT
- GH_DEBUG_TSFM_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_DEBUG_TSFM_get_trm_stb_memory] --> 0x%08x\n",
- (REG_DEBUG_TSFM_TRM_STB_MEMORY + index * FIO_MOFFSET(DEBUG_TSFM,0x00000004)),value);
- #endif
- return value;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* init function */
- /*----------------------------------------------------------------------------*/
- /*! \brief Initialises the registers and mirror variables. */
- void GH_DEBUG_TSFM_init(void);
- #ifdef __cplusplus
- }
- #endif
- #endif /* _GH_DEBUG_TSFM_H */
- /*----------------------------------------------------------------------------*/
- /* end of file */
- /*----------------------------------------------------------------------------*/
|