Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / inc / k2 / regdump.h
1 #ifndef __REGDUMP_H__
2 #define __REGDUMP_H__
3
4 #include "magpie_regdump.h"
5
6
7 #if !defined(__ASSEMBLER__)
8
9 /*
10  * XTensa CPU state
11  * This must match the state saved by the target exception handler.
12  */
13  
14 #define RD_SIZE sizeof(CPU_exception_frame_t)
15
16 /*
17  * Target CPU state at the time of failure is reflected
18  * in a register dump, which the Host can fetch through
19  * the diagnostic window.
20  */
21 struct register_dump_s {
22         uint32_t target_id;               /* Target ID */
23         uint32_t assline;                 /* Line number (if assertion failure) */
24         uint32_t pc;                      /* Program Counter at time of exception */
25         uint32_t badvaddr;                /* Virtual address causing exception */
26         CPU_exception_frame_t exc_frame;  /* CPU-specific exception info */
27
28         /* Could copy top of stack here, too.... */
29 };
30
31 #endif /* __ASSEMBLER__ */
32 #endif /* __REGDUMP_H__ */