Add DBGLVL_IO to trace all memory-mapped I/O.

This commit is contained in:
Michael Brown
2008-02-21 12:39:00 +00:00
parent b87904ab20
commit 604c934981
2 changed files with 50 additions and 6 deletions

View File

@@ -144,6 +144,8 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
#define DBG_EXTRA ( DBGLVL & DBGLVL_EXTRA )
#define DBGLVL_PROFILE 4
#define DBG_PROFILE ( DBGLVL & DBGLVL_PROFILE )
#define DBGLVL_IO 8
#define DBG_IO ( DBGLVL & DBGLVL_IO )
/**
* Print debugging message if we are at a certain debug level
@@ -262,6 +264,15 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
#define DBGCP_HDA( ... ) DBGC_HDA_IF ( PROFILE, __VA_ARGS__ )
#define DBGCP_HD( ... ) DBGC_HD_IF ( PROFILE, __VA_ARGS__ )
/* Versions of the DBGxxx_IF() macros that imply DBGxxx_IF( IO, ... )*/
#define DBGIO( ... ) DBG_IF ( IO, __VA_ARGS__ )
#define DBGIO_HDA( ... ) DBG_HDA_IF ( IO, __VA_ARGS__ )
#define DBGIO_HD( ... ) DBG_HD_IF ( IO, __VA_ARGS__ )
#define DBGCIO( ... ) DBGC_IF ( IO, __VA_ARGS__ )
#define DBGCIO_HDA( ... ) DBGC_HDA_IF ( IO, __VA_ARGS__ )
#define DBGCIO_HD( ... ) DBGC_HD_IF ( IO, __VA_ARGS__ )
#if DEBUG_SYMBOL == 0
#define NDEBUG