| 1 | #ifndef __REGDUMP_H__ |
| 2 | #define __REGDUMP_H__ |
| 3 | /* |
| 4 | * Copyright (c) 2004-2007 Atheros Communications Inc. |
| 5 | * All rights reserved. |
| 6 | * |
| 7 | * $ATH_LICENSE_HOSTSDK0_C$ |
| 8 | * |
| 9 | */ |
| 10 | #if defined(AR6001) |
| 11 | #include "AR6001/AR6001_regdump.h" |
| 12 | #endif |
| 13 | #if defined(AR6002) |
| 14 | #include "AR6002/AR6002_regdump.h" |
| 15 | #endif |
| 16 | |
| 17 | #if !defined(__ASSEMBLER__) |
| 18 | /* |
| 19 | * Target CPU state at the time of failure is reflected |
| 20 | * in a register dump, which the Host can fetch through |
| 21 | * the diagnostic window. |
| 22 | */ |
| 23 | struct register_dump_s { |
| 24 | A_UINT32 target_id; /* Target ID */ |
| 25 | A_UINT32 assline; /* Line number (if assertion failure) */ |
| 26 | A_UINT32 pc; /* Program Counter at time of exception */ |
| 27 | A_UINT32 badvaddr; /* Virtual address causing exception */ |
| 28 | CPU_exception_frame_t exc_frame; /* CPU-specific exception info */ |
| 29 | |
| 30 | /* Could copy top of stack here, too.... */ |
| 31 | }; |
| 32 | #endif /* __ASSEMBLER__ */ |
| 33 | #endif /* __REGDUMP_H__ */ |
| 34 | |