Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / build / magpie_1_1 / sboot / inc / magpie_regdump.h
1 /*
2  * Copyright (c) 2006 Atheros Communications Inc.
3  * All rights reserved.
4  */
5
6 #ifndef __MAGPIE_REGDUMP_H__
7 #define __MAGPIE_REGDUMP_H__
8
9 #if !defined(__ASSEMBLER__)
10 /*
11  * XTensa CPU state
12  * This must match the state saved by the target exception handler.
13  */
14 struct XTensa_exception_frame_s {
15     uint32_t xt_pc;
16     uint32_t xt_ps;
17     uint32_t xt_sar;
18     uint32_t xt_vpri;
19     uint32_t xt_a2;
20     uint32_t xt_a3;
21     uint32_t xt_a4;
22     uint32_t xt_a5;
23     uint32_t xt_exccause;
24     uint32_t xt_lcount;
25     uint32_t xt_lbeg;
26     uint32_t xt_lend;
27
28     /* Extra info to simplify post-mortem stack walkback */
29 #define MAGPIE_REGDUMP_FRAMES 5
30     struct {
31         uint32_t a0;  /* pc */
32         uint32_t a1;  /* sp */
33         uint32_t a2;
34         uint32_t a3;
35     } wb[MAGPIE_REGDUMP_FRAMES];
36 };
37
38 typedef struct XTensa_exception_frame_s CPU_exception_frame_t; 
39 #define RD_SIZE sizeof(CPU_exception_frame_t)
40
41 #endif
42 #endif /* __MAGPIE_REGDUMP_H__ */