diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-18 01:01:48 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-18 01:01:48 +0200 |
commit | f1f8ac32dddfb765e8d57fdb3b3e9c10727a0873 (patch) | |
tree | e261e1490ba2171d66a2b4940478d6a7a9c98cb5 /drivers/ar6000/include/regdump.h | |
parent | 1eec1fc0f0dd4463b06cebaf9825def6acad9a23 (diff) | |
parent | 4dbd5b751767bf88ffdda5d55646738871c751ad (diff) |
Merge branch 'ar6000-2.6.34' into om-gta02-2.6.34
Diffstat (limited to 'drivers/ar6000/include/regdump.h')
-rw-r--r-- | drivers/ar6000/include/regdump.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/ar6000/include/regdump.h b/drivers/ar6000/include/regdump.h new file mode 100644 index 00000000000..0106825ce27 --- /dev/null +++ b/drivers/ar6000/include/regdump.h @@ -0,0 +1,33 @@ +#ifndef __REGDUMP_H__ +#define __REGDUMP_H__ +/* + * Copyright (c) 2004-2007 Atheros Communications Inc. + * All rights reserved. + * + * $ATH_LICENSE_HOSTSDK0_C$ + * + */ +#if defined(AR6001) +#include "AR6001/AR6001_regdump.h" +#endif +#if defined(AR6002) +#include "AR6002/AR6002_regdump.h" +#endif + +#if !defined(__ASSEMBLER__) +/* + * Target CPU state at the time of failure is reflected + * in a register dump, which the Host can fetch through + * the diagnostic window. + */ +struct register_dump_s { + A_UINT32 target_id; /* Target ID */ + A_UINT32 assline; /* Line number (if assertion failure) */ + A_UINT32 pc; /* Program Counter at time of exception */ + A_UINT32 badvaddr; /* Virtual address causing exception */ + CPU_exception_frame_t exc_frame; /* CPU-specific exception info */ + + /* Could copy top of stack here, too.... */ +}; +#endif /* __ASSEMBLER__ */ +#endif /* __REGDUMP_H__ */ |