staging: ath6kl: Convert A_UINT32 to u32
[linux-2.6/libata-dev.git] / drivers / staging / ath6kl / include / common / AR6002 / AR6002_regdump.h
blob4a9b275d68b810baff99000aec1e1d69c4ee1d56
1 //------------------------------------------------------------------------------
2 // Copyright (c) 2006-2010 Atheros Corporation. All rights reserved.
3 //
4 //
5 // Permission to use, copy, modify, and/or distribute this software for any
6 // purpose with or without fee is hereby granted, provided that the above
7 // copyright notice and this permission notice appear in all copies.
8 //
9 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 //------------------------------------------------------------------------------
19 //==============================================================================
20 // Author(s): ="Atheros"
21 //==============================================================================
23 #ifndef __AR6002_REGDUMP_H__
24 #define __AR6002_REGDUMP_H__
26 #if !defined(__ASSEMBLER__)
28 * XTensa CPU state
29 * This must match the state saved by the target exception handler.
31 struct XTensa_exception_frame_s {
32 u32 xt_pc;
33 u32 xt_ps;
34 u32 xt_sar;
35 u32 xt_vpri;
36 u32 xt_a2;
37 u32 xt_a3;
38 u32 xt_a4;
39 u32 xt_a5;
40 u32 xt_exccause;
41 u32 xt_lcount;
42 u32 xt_lbeg;
43 u32 xt_lend;
45 u32 epc1, epc2, epc3, epc4;
47 /* Extra info to simplify post-mortem stack walkback */
48 #define AR6002_REGDUMP_FRAMES 10
49 struct {
50 u32 a0; /* pc */
51 u32 a1; /* sp */
52 u32 a2;
53 u32 a3;
54 } wb[AR6002_REGDUMP_FRAMES];
56 typedef struct XTensa_exception_frame_s CPU_exception_frame_t;
57 #define RD_SIZE sizeof(CPU_exception_frame_t)
59 #endif
60 #endif /* __AR6002_REGDUMP_H__ */