From 604c934981618bb2125318b3aa9cbbbde7707fc5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 21 Feb 2008 12:39:00 +0000 Subject: Add DBGLVL_IO to trace all memory-mapped I/O. --- src/include/compiler.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/compiler.h b/src/include/compiler.h index a195e5368..1d4312a61 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -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 -- cgit v1.2.3-55-g7522