1
2#ifndef _SPARC64_PSTATE_H
3#define _SPARC64_PSTATE_H
4
5#include <linux/const.h>
6
7
8
9
10
11
12
13
14
15
16
17
18#define PSTATE_IG _AC(0x0000000000000800,UL)
19#define PSTATE_MCDE _AC(0x0000000000000800,UL)
20#define PSTATE_MG _AC(0x0000000000000400,UL)
21#define PSTATE_CLE _AC(0x0000000000000200,UL)
22#define PSTATE_TLE _AC(0x0000000000000100,UL)
23#define PSTATE_MM _AC(0x00000000000000c0,UL)
24#define PSTATE_TSO _AC(0x0000000000000000,UL)
25#define PSTATE_PSO _AC(0x0000000000000040,UL)
26#define PSTATE_RMO _AC(0x0000000000000080,UL)
27#define PSTATE_RED _AC(0x0000000000000020,UL)
28#define PSTATE_PEF _AC(0x0000000000000010,UL)
29#define PSTATE_AM _AC(0x0000000000000008,UL)
30#define PSTATE_PRIV _AC(0x0000000000000004,UL)
31#define PSTATE_IE _AC(0x0000000000000002,UL)
32#define PSTATE_AG _AC(0x0000000000000001,UL)
33
34
35
36
37
38
39
40
41#define TSTATE_GL _AC(0x0000070000000000,UL)
42#define TSTATE_CCR _AC(0x000000ff00000000,UL)
43#define TSTATE_XCC _AC(0x000000f000000000,UL)
44#define TSTATE_XNEG _AC(0x0000008000000000,UL)
45#define TSTATE_XZERO _AC(0x0000004000000000,UL)
46#define TSTATE_XOVFL _AC(0x0000002000000000,UL)
47#define TSTATE_XCARRY _AC(0x0000001000000000,UL)
48#define TSTATE_ICC _AC(0x0000000f00000000,UL)
49#define TSTATE_INEG _AC(0x0000000800000000,UL)
50#define TSTATE_IZERO _AC(0x0000000400000000,UL)
51#define TSTATE_IOVFL _AC(0x0000000200000000,UL)
52#define TSTATE_ICARRY _AC(0x0000000100000000,UL)
53#define TSTATE_ASI _AC(0x00000000ff000000,UL)
54#define TSTATE_PIL _AC(0x0000000000f00000,UL)
55#define TSTATE_PSTATE _AC(0x00000000000fff00,UL)
56
57
58
59
60#define TSTATE_IG _AC(0x0000000000080000,UL)
61#define TSTATE_MCDE _AC(0x0000000000080000,UL)
62#define TSTATE_MG _AC(0x0000000000040000,UL)
63#define TSTATE_CLE _AC(0x0000000000020000,UL)
64#define TSTATE_TLE _AC(0x0000000000010000,UL)
65#define TSTATE_MM _AC(0x000000000000c000,UL)
66#define TSTATE_TSO _AC(0x0000000000000000,UL)
67#define TSTATE_PSO _AC(0x0000000000004000,UL)
68#define TSTATE_RMO _AC(0x0000000000008000,UL)
69#define TSTATE_RED _AC(0x0000000000002000,UL)
70#define TSTATE_PEF _AC(0x0000000000001000,UL)
71#define TSTATE_AM _AC(0x0000000000000800,UL)
72#define TSTATE_PRIV _AC(0x0000000000000400,UL)
73#define TSTATE_IE _AC(0x0000000000000200,UL)
74#define TSTATE_AG _AC(0x0000000000000100,UL)
75#define TSTATE_SYSCALL _AC(0x0000000000000020,UL)
76#define TSTATE_CWP _AC(0x000000000000001f,UL)
77
78
79
80
81
82
83
84
85#define FPRS_FEF _AC(0x0000000000000004,UL)
86#define FPRS_DU _AC(0x0000000000000002,UL)
87#define FPRS_DL _AC(0x0000000000000001,UL)
88
89
90
91
92
93
94
95
96#define VERS_MANUF _AC(0xffff000000000000,UL)
97#define VERS_IMPL _AC(0x0000ffff00000000,UL)
98#define VERS_MASK _AC(0x00000000ff000000,UL)
99#define VERS_MAXTL _AC(0x000000000000ff00,UL)
100#define VERS_MAXWIN _AC(0x000000000000001f,UL)
101
102
103#define CFR_AES _AC(0x0000000000000001,UL)
104#define CFR_DES _AC(0x0000000000000002,UL)
105#define CFR_KASUMI _AC(0x0000000000000004,UL)
106#define CFR_CAMELLIA _AC(0x0000000000000008,UL)
107#define CFR_MD5 _AC(0x0000000000000010,UL)
108#define CFR_SHA1 _AC(0x0000000000000020,UL)
109#define CFR_SHA256 _AC(0x0000000000000040,UL)
110#define CFR_SHA512 _AC(0x0000000000000080,UL)
111#define CFR_MPMUL _AC(0x0000000000000100,UL)
112#define CFR_MONTMUL _AC(0x0000000000000200,UL)
113#define CFR_MONTSQR _AC(0x0000000000000400,UL)
114#define CFR_CRC32C _AC(0x0000000000000800,UL)
115
116#endif
117