Sound Open Firmware
Loading...
Searching...
No Matches
debug.h File Reference
Include dependency graph for debug.h:

Go to the source code of this file.

Macros

#define DEBUG_SET_FW_READY_FLAGS
#define dbg()
#define dbg_at(__x)
#define dbg_val(__v)
#define dbg_val_at(__v, __x)
#define dump(addr, count)
#define dump_object(__o)
#define dump_object_ptr(__o)
#define bswap32(N)
#define dump_hex(ptr, idx, len)

Macro Definition Documentation

◆ bswap32

#define bswap32 ( N)
Value:
({ \
__typeof__(N) n = (N); \
((n & 0x000000FF) << 24) | \
((n & 0x0000FF00) << 8) | \
((n & 0x00FF0000) >> 8) | \
((n & 0xFF000000) >> 24); })

◆ dbg

#define dbg ( )
Value:
do {} while (0)

◆ dbg_at

#define dbg_at ( __x)
Value:
do {} while (0)

◆ dbg_val

#define dbg_val ( __v)
Value:
do {} while (0)

◆ dbg_val_at

#define dbg_val_at ( __v,
__x )
Value:
do {} while (0)

◆ DEBUG_SET_FW_READY_FLAGS

#define DEBUG_SET_FW_READY_FLAGS
Value:
( \
(IS_ENABLED(CONFIG_GDB_DEBUG) ? SOF_IPC_INFO_GDB : 0) \
)
#define IS_ENABLED(config)
Definition common.h:173
#define SOF_IPC_INFO_GDB
Definition info.h:35

◆ dump

#define dump ( addr,
count )
Value:
do {} while (0)

◆ dump_hex

#define dump_hex ( ptr,
idx,
len )
Value:
do { \
__typeof__(idx) __i = (idx); \
__typeof__(ptr) __p = (ptr) + __i; \
__typeof__(idx) __l = (len) - __i; \
__typeof__(idx) __n = __l > 4 ? 4 : __l; \
if (__n == 4) { \
comp_info(dev, "%08x%08x%08x%08x", bswap32(__p[0]), bswap32(__p[1]), \
bswap32(__p[2]), bswap32(__p[3])); \
} else if (__n == 3) { \
comp_info(dev, "%08x%08x%08x", bswap32(__p[0]), bswap32(__p[1]), \
bswap32(__p[2])); \
} else if (__n == 2) { \
comp_info(dev, "%08x%08x", bswap32(__p[0]), bswap32(__p[1])); \
} else if (__n == 1) { \
comp_info(dev, "%08x", bswap32(__p[0])); \
} \
idx += __n; \
} while (0)
#define bswap32(N)
Definition debug.h:138

◆ dump_object

#define dump_object ( __o)
Value:
do {} while (0)

◆ dump_object_ptr

#define dump_object_ptr ( __o)
Value:
do {} while (0)