Go to the documentation of this file. 1 #ifndef _SPARC64_SFAFSR_H
2 #define _SPARC64_SFAFSR_H
4 #include <linux/const.h>
8 #define SFAFSR_ME (_AC(1,UL) << SFAFSR_ME_SHIFT)
9 #define SFAFSR_ME_SHIFT 32
10 #define SFAFSR_PRIV (_AC(1,UL) << SFAFSR_PRIV_SHIFT)
11 #define SFAFSR_PRIV_SHIFT 31
12 #define SFAFSR_ISAP (_AC(1,UL) << SFAFSR_ISAP_SHIFT)
13 #define SFAFSR_ISAP_SHIFT 30
14 #define SFAFSR_ETP (_AC(1,UL) << SFAFSR_ETP_SHIFT)
15 #define SFAFSR_ETP_SHIFT 29
16 #define SFAFSR_IVUE (_AC(1,UL) << SFAFSR_IVUE_SHIFT)
17 #define SFAFSR_IVUE_SHIFT 28
18 #define SFAFSR_TO (_AC(1,UL) << SFAFSR_TO_SHIFT)
19 #define SFAFSR_TO_SHIFT 27
20 #define SFAFSR_BERR (_AC(1,UL) << SFAFSR_BERR_SHIFT)
21 #define SFAFSR_BERR_SHIFT 26
22 #define SFAFSR_LDP (_AC(1,UL) << SFAFSR_LDP_SHIFT)
23 #define SFAFSR_LDP_SHIFT 25
24 #define SFAFSR_CP (_AC(1,UL) << SFAFSR_CP_SHIFT)
25 #define SFAFSR_CP_SHIFT 24
26 #define SFAFSR_WP (_AC(1,UL) << SFAFSR_WP_SHIFT)
27 #define SFAFSR_WP_SHIFT 23
28 #define SFAFSR_EDP (_AC(1,UL) << SFAFSR_EDP_SHIFT)
29 #define SFAFSR_EDP_SHIFT 22
30 #define SFAFSR_UE (_AC(1,UL) << SFAFSR_UE_SHIFT)
31 #define SFAFSR_UE_SHIFT 21
32 #define SFAFSR_CE (_AC(1,UL) << SFAFSR_CE_SHIFT)
33 #define SFAFSR_CE_SHIFT 20
34 #define SFAFSR_ETS (_AC(0xf,UL) << SFAFSR_ETS_SHIFT)
35 #define SFAFSR_ETS_SHIFT 16
36 #define SFAFSR_PSYND (_AC(0xffff,UL) << SFAFSR_PSYND_SHIFT)
37 #define SFAFSR_PSYND_SHIFT 0
43 #define UDBE_UE (_AC(1,UL) << 9)
44 #define UDBE_CE (_AC(1,UL) << 8)
45 #define UDBE_E_SYNDR (_AC(0xff,UL) << 0)
58 #define SFSTAT_UDBH_MASK (_AC(0x3ff,UL) << SFSTAT_UDBH_SHIFT)
59 #define SFSTAT_UDBH_SHIFT 54
60 #define SFSTAT_UDBL_MASK (_AC(0x3ff,UL) << SFSTAT_UDBH_SHIFT)
61 #define SFSTAT_UDBL_SHIFT 44
62 #define SFSTAT_TL_GT_ONE (_AC(1,UL) << SFSTAT_TL_GT_ONE_SHIFT)
63 #define SFSTAT_TL_GT_ONE_SHIFT 42
64 #define SFSTAT_TRAP_TYPE (_AC(0x1FF,UL) << SFSTAT_TRAP_TYPE_SHIFT)
65 #define SFSTAT_TRAP_TYPE_SHIFT 33
66 #define SFSTAT_AFSR_MASK (_AC(0x1ffffffff,UL) << SFSTAT_AFSR_SHIFT)
67 #define SFSTAT_AFSR_SHIFT 0
70 #define ESTATE_ERR_CE 0x1
71 #define ESTATE_ERR_NCE 0x2
72 #define ESTATE_ERR_ISAP 0x4
73 #define ESTATE_ERR_ALL (ESTATE_ERR_CE | \
78 #define TRAP_TYPE_IAE 0x09
79 #define TRAP_TYPE_DAE 0x32
80 #define TRAP_TYPE_CEE 0x63