diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-02-21 12:39:00 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-02-21 12:44:09 +0000 |
commit | 604c934981618bb2125318b3aa9cbbbde7707fc5 (patch) | |
tree | e54de308223279cc083266c0503746f176d7f88f /src/include/compiler.h | |
parent | b87904ab204346c38fa8ceed765699ac18118c28 (diff) | |
download | ipxe-604c934981618bb2125318b3aa9cbbbde7707fc5.tar.gz |
Add DBGLVL_IO to trace all memory-mapped I/O.
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r-- | src/include/compiler.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |