#include <linux/cb710.h>
#include <linux/kernel.h>
#include <linux/module.h>
Go to the source code of this file.
#define CB710_DUMP_REGS_TEMPLATE |
( |
|
t | ) |
|
Value:static void cb710_dump_regs_##
t(
struct device *
dev, \
{ \
const
char *
const xp = &cb710_xes[8 -
t/4]; \
const
char *
const format = cb710_regf_##
t; \
\
continue; \
for (j = 0; j < 0x10/(t/8); ++
j) { \
*p++ = ' '; \
if (j == 8/(t/8)) \
*p++ = ' '; \
if (allow_reg_read(i, j, t)) \
else \
} \
dev_dbg(
dev,
"%s 0x%02X %s\n",
prefix[i], i << 4, msg); \
} \
}
Definition at line 56 of file debug.c.
#define CB710_READ_AND_DUMP_REGS_TEMPLATE |
( |
|
t | ) |
|
Value:
Definition at line 83 of file debug.c.
#define CB710_READ_REGS_TEMPLATE |
( |
|
t | ) |
|
Value:
{ \
for (j = 0; j < 0x10/(
t/8); ++
j) { \
if (!allow_reg_read(i, j,
t)) \
+ (i << 4) + (j * (
t/8))); \
} \
} \
}
Definition at line 32 of file debug.c.
#define CB710_REG_ACCESS_TEMPLATES |
( |
|
t | ) |
|
Value:
CB710_DUMP_REGS_TEMPLATE(
t) \
CB710_READ_AND_DUMP_REGS_TEMPLATE(
t)
Definition at line 94 of file debug.c.
#define CB710_REG_COUNT 0x80 |