Tizen 2.1 base
[sdk/emulator/qemu.git] / linux-user / alpha / syscall.h
1 /* default linux values for the selectors */
2 #define __USER_DS       (1)
3
4 struct target_pt_regs {
5         abi_ulong r0;
6         abi_ulong r1;
7         abi_ulong r2;
8         abi_ulong r3;
9         abi_ulong r4;
10         abi_ulong r5;
11         abi_ulong r6;
12         abi_ulong r7;
13         abi_ulong r8;
14         abi_ulong r19;
15         abi_ulong r20;
16         abi_ulong r21;
17         abi_ulong r22;
18         abi_ulong r23;
19         abi_ulong r24;
20         abi_ulong r25;
21         abi_ulong r26;
22         abi_ulong r27;
23         abi_ulong r28;
24         abi_ulong hae;
25 /* JRP - These are the values provided to a0-a2 by PALcode */
26         abi_ulong trap_a0;
27         abi_ulong trap_a1;
28         abi_ulong trap_a2;
29 /* These are saved by PAL-code: */
30         abi_ulong ps;
31         abi_ulong pc;
32         abi_ulong gp;
33         abi_ulong r16;
34         abi_ulong r17;
35         abi_ulong r18;
36 /* Those is needed by qemu to temporary store the user stack pointer */
37         abi_ulong usp;
38         abi_ulong unique;
39 };
40
41 #define UNAME_MACHINE "alpha"
42
43 #undef TARGET_EDEADLK
44 #define TARGET_EDEADLK          11
45 #undef TARGET_EAGAIN
46 #define TARGET_EAGAIN           35
47 #undef TARGET_EINPROGRESS
48 #define TARGET_EINPROGRESS      36
49 #undef TARGET_EALREADY
50 #define TARGET_EALREADY         37
51 #undef TARGET_ENOTSOCK
52 #define TARGET_ENOTSOCK         38
53 #undef TARGET_EDESTADDRREQ
54 #define TARGET_EDESTADDRREQ     39
55 #undef TARGET_EMSGSIZE
56 #define TARGET_EMSGSIZE         40
57 #undef TARGET_EPROTOTYPE
58 #define TARGET_EPROTOTYPE       41
59 #undef TARGET_ENOPROTOOPT
60 #define TARGET_ENOPROTOOPT      42
61 #undef TARGET_EPROTONOSUPPORT
62 #define TARGET_EPROTONOSUPPORT  43
63 #undef TARGET_ESOCKTNOSUPPORT
64 #define TARGET_ESOCKTNOSUPPORT  44
65 #undef TARGET_EOPNOTSUPP
66 #define TARGET_EOPNOTSUPP       45
67 #undef TARGET_EPFNOSUPPORT
68 #define TARGET_EPFNOSUPPORT     46
69 #undef TARGET_EAFNOSUPPORT
70 #define TARGET_EAFNOSUPPORT     47
71 #undef TARGET_EADDRINUSE
72 #define TARGET_EADDRINUSE       48
73 #undef TARGET_EADDRNOTAVAIL
74 #define TARGET_EADDRNOTAVAIL    49
75 #undef TARGET_ENETDOWN
76 #define TARGET_ENETDOWN         50
77 #undef TARGET_ENETUNREACH
78 #define TARGET_ENETUNREACH      51
79 #undef TARGET_ENETRESET
80 #define TARGET_ENETRESET        52
81 #undef TARGET_ECONNABORTED
82 #define TARGET_ECONNABORTED     53
83 #undef TARGET_ECONNRESET
84 #define TARGET_ECONNRESET       54
85 #undef TARGET_ENOBUFS
86 #define TARGET_ENOBUFS          55
87 #undef TARGET_EISCONN
88 #define TARGET_EISCONN          56
89 #undef TARGET_ENOTCONN
90 #define TARGET_ENOTCONN         57
91 #undef TARGET_ESHUTDOWN
92 #define TARGET_ESHUTDOWN        58
93 #undef TARGET_ETOOMANYREFS
94 #define TARGET_ETOOMANYREFS     59
95 #undef TARGET_ETIMEDOUT
96 #define TARGET_ETIMEDOUT        60
97 #undef TARGET_ECONNREFUSED
98 #define TARGET_ECONNREFUSED     61
99 #undef TARGET_ELOOP
100 #define TARGET_ELOOP            62
101 #undef TARGET_ENAMETOOLONG
102 #define TARGET_ENAMETOOLONG     63
103 #undef TARGET_EHOSTDOWN
104 #define TARGET_EHOSTDOWN        64
105 #undef TARGET_EHOSTUNREACH
106 #define TARGET_EHOSTUNREACH     65
107 #undef TARGET_ENOTEMPTY
108 #define TARGET_ENOTEMPTY        66
109 // Unused                       67
110 #undef TARGET_EUSERS
111 #define TARGET_EUSERS           68
112 #undef TARGET_EDQUOT
113 #define TARGET_EDQUOT           69
114 #undef TARGET_ESTALE
115 #define TARGET_ESTALE           70
116 #undef TARGET_EREMOTE
117 #define TARGET_EREMOTE          71
118 // Unused                       72-76
119 #undef TARGET_ENOLCK
120 #define TARGET_ENOLCK           77
121 #undef TARGET_ENOSYS
122 #define TARGET_ENOSYS           78
123 // Unused                       79
124 #undef TARGET_ENOMSG
125 #define TARGET_ENOMSG           80
126 #undef TARGET_EIDRM
127 #define TARGET_EIDRM            81
128 #undef TARGET_ENOSR
129 #define TARGET_ENOSR            82
130 #undef TARGET_ETIME
131 #define TARGET_ETIME            83
132 #undef TARGET_EBADMSG
133 #define TARGET_EBADMSG          84
134 #undef TARGET_EPROTO
135 #define TARGET_EPROTO           85
136 #undef TARGET_ENODATA
137 #define TARGET_ENODATA          86
138 #undef TARGET_ENOSTR
139 #define TARGET_ENOSTR           87
140 #undef TARGET_ECHRNG
141 #define TARGET_ECHRNG           88
142 #undef TARGET_EL2NSYNC
143 #define TARGET_EL2NSYNC         89
144 #undef TARGET_EL3HLT
145 #define TARGET_EL3HLT           90
146 #undef TARGET_EL3RST
147 #define TARGET_EL3RST           91
148 #undef TARGET_ENOPKG
149 #define TARGET_ENOPKG           92
150 #undef TARGET_ELNRNG
151 #define TARGET_ELNRNG           93
152 #undef TARGET_EUNATCH
153 #define TARGET_EUNATCH          94
154 #undef TARGET_ENOCSI
155 #define TARGET_ENOCSI           95
156 #undef TARGET_EL2HLT
157 #define TARGET_EL2HLT           96
158 #undef TARGET_EBADE
159 #define TARGET_EBADE            97
160 #undef TARGET_EBADR
161 #define TARGET_EBADR            98
162 #undef TARGET_EXFULL
163 #define TARGET_EXFULL           99
164 #undef TARGET_ENOANO
165 #define TARGET_ENOANO           100
166 #undef TARGET_EBADRQC
167 #define TARGET_EBADRQC          101
168 #undef TARGET_EBADSLT
169 #define TARGET_EBADSLT          102
170 // Unused                       103
171 #undef TARGET_EBFONT
172 #define TARGET_EBFONT           104
173 #undef TARGET_ENONET
174 #define TARGET_ENONET           105
175 #undef TARGET_ENOLINK
176 #define TARGET_ENOLINK          106
177 #undef TARGET_EADV
178 #define TARGET_EADV             107
179 #undef TARGET_ESRMNT
180 #define TARGET_ESRMNT           108
181 #undef TARGET_ECOMM
182 #define TARGET_ECOMM            109
183 #undef TARGET_EMULTIHOP
184 #define TARGET_EMULTIHOP        110
185 #undef TARGET_EDOTDOT
186 #define TARGET_EDOTDOT          111
187 #undef TARGET_EOVERFLOW
188 #define TARGET_EOVERFLOW        112
189 #undef TARGET_ENOTUNIQ
190 #define TARGET_ENOTUNIQ         113
191 #undef TARGET_EBADFD
192 #define TARGET_EBADFD           114
193 #undef TARGET_EREMCHG
194 #define TARGET_EREMCHG          115
195 #undef TARGET_EILSEQ
196 #define TARGET_EILSEQ           116
197
198 // Same as default              117-121
199
200 #undef TARGET_ELIBACC
201 #define TARGET_ELIBACC          122
202 #undef TARGET_ELIBBAD
203 #define TARGET_ELIBBAD          123
204 #undef TARGET_ELIBSCN
205 #define TARGET_ELIBSCN          124
206 #undef TARGET_ELIBMAX
207 #define TARGET_ELIBMAX          125
208 #undef TARGET_ELIBEXEC
209 #define TARGET_ELIBEXEC         126
210 #undef TARGET_ERESTART
211 #define TARGET_ERESTART         127
212 #undef TARGET_ESTRPIPE
213 #define TARGET_ESTRPIPE         128
214 #undef TARGET_ENOMEDIUM
215 #define TARGET_ENOMEDIUM        129
216 #undef TARGET_EMEDIUMTYPE
217 #define TARGET_EMEDIUMTYPE      130
218 #undef TARGET_ECANCELED
219 #define TARGET_ECANCELED        131
220 #undef TARGET_ENOKEY
221 #define TARGET_ENOKEY           132
222 #undef TARGET_EKEYEXPIRED
223 #define TARGET_EKEYEXPIRED      133
224 #undef TARGET_EKEYREVOKED
225 #define TARGET_EKEYREVOKED      134
226 #undef TARGET_EKEYREJECTED
227 #define TARGET_EKEYREJECTED     135
228 #undef TARGET_EOWNERDEAD
229 #define TARGET_EOWNERDEAD       136
230 #undef TARGET_ENOTRECOVERABLE
231 #define TARGET_ENOTRECOVERABLE  137
232 #undef TARGET_ERFKILL
233 #define TARGET_ERFKILL          138
234
235 // For sys_osf_getsysinfo
236 #define TARGET_GSI_UACPROC              8
237 #define TARGET_GSI_IEEE_FP_CONTROL      45
238 #define TARGET_GSI_IEEE_STATE_AT_SIGNAL 46
239 #define TARGET_GSI_PROC_TYPE            60
240 #define TARGET_GSI_GET_HWRPB            101
241
242 // For sys_ofs_setsysinfo
243 #define TARGET_SSI_NVPAIRS              1
244 #define TARGET_SSI_IEEE_FP_CONTROL      14
245 #define TARGET_SSI_IEEE_STATE_AT_SIGNAL 15
246 #define TARGET_SSI_IEEE_IGNORE_STATE_AT_SIGNAL 16
247 #define TARGET_SSI_IEEE_RAISE_EXCEPTION 1001
248
249 #define TARGET_SSIN_UACPROC             6
250
251 #define TARGET_UAC_NOPRINT              1
252 #define TARGET_UAC_NOFIX                2
253 #define TARGET_UAC_SIGBUS               4