RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / asm-blackfin / unistd.h
blob0df9f2d322a3a473b54ef9bd4c14ad194966b0c9
1 #ifndef __ASM_BFIN_UNISTD_H
2 #define __ASM_BFIN_UNISTD_H
3 /*
4 * This file contains the system call numbers.
5 */
6 #define __NR_exit 1
7 #define __NR_fork 2
8 #define __NR_read 3
9 #define __NR_write 4
10 #define __NR_open 5
11 #define __NR_close 6
12 /* 7 __NR_waitpid obsolete */
13 #define __NR_creat 8
14 #define __NR_link 9
15 #define __NR_unlink 10
16 #define __NR_execve 11
17 #define __NR_chdir 12
18 #define __NR_time 13
19 #define __NR_mknod 14
20 #define __NR_chmod 15
21 #define __NR_chown 16
22 /* 17 __NR_break obsolete */
23 /* 18 __NR_oldstat obsolete */
24 #define __NR_lseek 19
25 #define __NR_getpid 20
26 #define __NR_mount 21
27 /* 22 __NR_umount obsolete */
28 #define __NR_setuid 23
29 #define __NR_getuid 24
30 #define __NR_stime 25
31 #define __NR_ptrace 26
32 #define __NR_alarm 27
33 /* 28 __NR_oldfstat obsolete */
34 #define __NR_pause 29
35 /* 30 __NR_utime obsolete */
36 /* 31 __NR_stty obsolete */
37 /* 32 __NR_gtty obsolete */
38 #define __NR_access 33
39 #define __NR_nice 34
40 /* 35 __NR_ftime obsolete */
41 #define __NR_sync 36
42 #define __NR_kill 37
43 #define __NR_rename 38
44 #define __NR_mkdir 39
45 #define __NR_rmdir 40
46 #define __NR_dup 41
47 #define __NR_pipe 42
48 #define __NR_times 43
49 /* 44 __NR_prof obsolete */
50 #define __NR_brk 45
51 #define __NR_setgid 46
52 #define __NR_getgid 47
53 /* 48 __NR_signal obsolete */
54 #define __NR_geteuid 49
55 #define __NR_getegid 50
56 #define __NR_acct 51
57 #define __NR_umount2 52
58 /* 53 __NR_lock obsolete */
59 #define __NR_ioctl 54
60 #define __NR_fcntl 55
61 /* 56 __NR_mpx obsolete */
62 #define __NR_setpgid 57
63 /* 58 __NR_ulimit obsolete */
64 /* 59 __NR_oldolduname obsolete */
65 #define __NR_umask 60
66 #define __NR_chroot 61
67 #define __NR_ustat 62
68 #define __NR_dup2 63
69 #define __NR_getppid 64
70 #define __NR_getpgrp 65
71 #define __NR_setsid 66
72 /* 67 __NR_sigaction obsolete */
73 #define __NR_sgetmask 68
74 #define __NR_ssetmask 69
75 #define __NR_setreuid 70
76 #define __NR_setregid 71
77 /* 72 __NR_sigsuspend obsolete */
78 /* 73 __NR_sigpending obsolete */
79 #define __NR_sethostname 74
80 #define __NR_setrlimit 75
81 /* 76 __NR_old_getrlimit obsolete */
82 #define __NR_getrusage 77
83 #define __NR_gettimeofday 78
84 #define __NR_settimeofday 79
85 #define __NR_getgroups 80
86 #define __NR_setgroups 81
87 /* 82 __NR_select obsolete */
88 #define __NR_symlink 83
89 /* 84 __NR_oldlstat obsolete */
90 #define __NR_readlink 85
91 /* 86 __NR_uselib obsolete */
92 /* 87 __NR_swapon obsolete */
93 #define __NR_reboot 88
94 /* 89 __NR_readdir obsolete */
95 /* 90 __NR_mmap obsolete */
96 #define __NR_munmap 91
97 #define __NR_truncate 92
98 #define __NR_ftruncate 93
99 #define __NR_fchmod 94
100 #define __NR_fchown 95
101 #define __NR_getpriority 96
102 #define __NR_setpriority 97
103 /* 98 __NR_profil obsolete */
104 #define __NR_statfs 99
105 #define __NR_fstatfs 100
106 /* 101 __NR_ioperm */
107 /* 102 __NR_socketcall obsolete */
108 #define __NR_syslog 103
109 #define __NR_setitimer 104
110 #define __NR_getitimer 105
111 #define __NR_stat 106
112 #define __NR_lstat 107
113 #define __NR_fstat 108
114 /* 109 __NR_olduname obsolete */
115 /* 110 __NR_iopl obsolete */
116 #define __NR_vhangup 111
117 /* 112 __NR_idle obsolete */
118 /* 113 __NR_vm86old */
119 #define __NR_wait4 114
120 /* 115 __NR_swapoff obsolete */
121 #define __NR_sysinfo 116
122 /* 117 __NR_ipc oboslete */
123 #define __NR_fsync 118
124 /* 119 __NR_sigreturn obsolete */
125 #define __NR_clone 120
126 #define __NR_setdomainname 121
127 #define __NR_uname 122
128 /* 123 __NR_modify_ldt obsolete */
129 #define __NR_adjtimex 124
130 #define __NR_mprotect 125
131 /* 126 __NR_sigprocmask obsolete */
132 /* 127 __NR_create_module obsolete */
133 #define __NR_init_module 128
134 #define __NR_delete_module 129
135 /* 130 __NR_get_kernel_syms obsolete */
136 #define __NR_quotactl 131
137 #define __NR_getpgid 132
138 #define __NR_fchdir 133
139 #define __NR_bdflush 134
140 /* 135 was sysfs */
141 #define __NR_personality 136
142 /* 137 __NR_afs_syscall */
143 #define __NR_setfsuid 138
144 #define __NR_setfsgid 139
145 #define __NR__llseek 140
146 #define __NR_getdents 141
147 /* 142 __NR__newselect obsolete */
148 #define __NR_flock 143
149 /* 144 __NR_msync obsolete */
150 #define __NR_readv 145
151 #define __NR_writev 146
152 #define __NR_getsid 147
153 #define __NR_fdatasync 148
154 #define __NR__sysctl 149
155 /* 150 __NR_mlock */
156 /* 151 __NR_munlock */
157 /* 152 __NR_mlockall */
158 /* 153 __NR_munlockall */
159 #define __NR_sched_setparam 154
160 #define __NR_sched_getparam 155
161 #define __NR_sched_setscheduler 156
162 #define __NR_sched_getscheduler 157
163 #define __NR_sched_yield 158
164 #define __NR_sched_get_priority_max 159
165 #define __NR_sched_get_priority_min 160
166 #define __NR_sched_rr_get_interval 161
167 #define __NR_nanosleep 162
168 /* 163 __NR_mremap */
169 #define __NR_setresuid 164
170 #define __NR_getresuid 165
171 /* 166 __NR_vm86 */
172 /* 167 __NR_query_module */
173 /* 168 __NR_poll */
174 /* 169 __NR_nfsservctl */
175 #define __NR_setresgid 170
176 #define __NR_getresgid 171
177 #define __NR_prctl 172
178 #define __NR_rt_sigreturn 173
179 #define __NR_rt_sigaction 174
180 #define __NR_rt_sigprocmask 175
181 #define __NR_rt_sigpending 176
182 #define __NR_rt_sigtimedwait 177
183 #define __NR_rt_sigqueueinfo 178
184 #define __NR_rt_sigsuspend 179
185 #define __NR_pread 180
186 #define __NR_pwrite 181
187 #define __NR_lchown 182
188 #define __NR_getcwd 183
189 #define __NR_capget 184
190 #define __NR_capset 185
191 #define __NR_sigaltstack 186
192 #define __NR_sendfile 187
193 /* 188 __NR_getpmsg */
194 /* 189 __NR_putpmsg */
195 #define __NR_vfork 190
196 #define __NR_getrlimit 191
197 #define __NR_mmap2 192
198 #define __NR_truncate64 193
199 #define __NR_ftruncate64 194
200 #define __NR_stat64 195
201 #define __NR_lstat64 196
202 #define __NR_fstat64 197
203 #define __NR_chown32 198
204 #define __NR_getuid32 199
205 #define __NR_getgid32 200
206 #define __NR_geteuid32 201
207 #define __NR_getegid32 202
208 #define __NR_setreuid32 203
209 #define __NR_setregid32 204
210 #define __NR_getgroups32 205
211 #define __NR_setgroups32 206
212 #define __NR_fchown32 207
213 #define __NR_setresuid32 208
214 #define __NR_getresuid32 209
215 #define __NR_setresgid32 210
216 #define __NR_getresgid32 211
217 #define __NR_lchown32 212
218 #define __NR_setuid32 213
219 #define __NR_setgid32 214
220 #define __NR_setfsuid32 215
221 #define __NR_setfsgid32 216
222 #define __NR_pivot_root 217
223 /* 218 __NR_mincore */
224 /* 219 __NR_madvise */
225 #define __NR_getdents64 220
226 #define __NR_fcntl64 221
227 /* 222 reserved for TUX */
228 /* 223 reserved for TUX */
229 #define __NR_gettid 224
230 /* 225 __NR_readahead */
231 #define __NR_setxattr 226
232 #define __NR_lsetxattr 227
233 #define __NR_fsetxattr 228
234 #define __NR_getxattr 229
235 #define __NR_lgetxattr 230
236 #define __NR_fgetxattr 231
237 #define __NR_listxattr 232
238 #define __NR_llistxattr 233
239 #define __NR_flistxattr 234
240 #define __NR_removexattr 235
241 #define __NR_lremovexattr 236
242 #define __NR_fremovexattr 237
243 #define __NR_tkill 238
244 #define __NR_sendfile64 239
245 #define __NR_futex 240
246 #define __NR_sched_setaffinity 241
247 #define __NR_sched_getaffinity 242
248 /* 243 __NR_set_thread_area */
249 /* 244 __NR_get_thread_area */
250 #define __NR_io_setup 245
251 #define __NR_io_destroy 246
252 #define __NR_io_getevents 247
253 #define __NR_io_submit 248
254 #define __NR_io_cancel 249
255 /* 250 __NR_alloc_hugepages */
256 /* 251 __NR_free_hugepages */
257 #define __NR_exit_group 252
258 #define __NR_lookup_dcookie 253
259 #define __NR_bfin_spinlock 254
261 #define __NR_epoll_create 255
262 #define __NR_epoll_ctl 256
263 #define __NR_epoll_wait 257
264 /* 258 __NR_remap_file_pages */
265 #define __NR_set_tid_address 259
266 #define __NR_timer_create 260
267 #define __NR_timer_settime (__NR_timer_create+1)
268 #define __NR_timer_gettime (__NR_timer_create+2)
269 #define __NR_timer_getoverrun (__NR_timer_create+3)
270 #define __NR_timer_delete (__NR_timer_create+4)
271 #define __NR_clock_settime (__NR_timer_create+5)
272 #define __NR_clock_gettime (__NR_timer_create+6)
273 #define __NR_clock_getres (__NR_timer_create+7)
274 #define __NR_clock_nanosleep (__NR_timer_create+8)
275 #define __NR_statfs64 269
276 #define __NR_fstatfs64 270
277 #define __NR_tgkill 271
278 #define __NR_utimes 272
279 #define __NR_fadvise64_64 273
280 /* 274 __NR_vserver */
281 /* 275 __NR_mbind */
282 /* 276 __NR_get_mempolicy */
283 /* 277 __NR_set_mempolicy */
284 #define __NR_mq_open 278
285 #define __NR_mq_unlink (__NR_mq_open+1)
286 #define __NR_mq_timedsend (__NR_mq_open+2)
287 #define __NR_mq_timedreceive (__NR_mq_open+3)
288 #define __NR_mq_notify (__NR_mq_open+4)
289 #define __NR_mq_getsetattr (__NR_mq_open+5)
290 /* 284 __NR_sys_kexec_load */
291 #define __NR_waitid 285
292 #define __NR_add_key 286
293 #define __NR_request_key 287
294 #define __NR_keyctl 288
295 #define __NR_ioprio_set 289
296 #define __NR_ioprio_get 290
297 #define __NR_inotify_init 291
298 #define __NR_inotify_add_watch 292
299 #define __NR_inotify_rm_watch 293
300 /* 294 __NR_migrate_pages */
301 #define __NR_openat 295
302 #define __NR_mkdirat 296
303 #define __NR_mknodat 297
304 #define __NR_fchownat 298
305 #define __NR_futimesat 299
306 #define __NR_fstatat64 300
307 #define __NR_unlinkat 301
308 #define __NR_renameat 302
309 #define __NR_linkat 303
310 #define __NR_symlinkat 304
311 #define __NR_readlinkat 305
312 #define __NR_fchmodat 306
313 #define __NR_faccessat 307
314 #define __NR_pselect6 308
315 #define __NR_ppoll 309
316 #define __NR_unshare 310
318 /* Blackfin private syscalls */
319 #define __NR_sram_alloc 311
320 #define __NR_sram_free 312
321 #define __NR_dma_memcpy 313
323 /* socket syscalls */
324 #define __NR_accept 314
325 #define __NR_bind 315
326 #define __NR_connect 316
327 #define __NR_getpeername 317
328 #define __NR_getsockname 318
329 #define __NR_getsockopt 319
330 #define __NR_listen 320
331 #define __NR_recv 321
332 #define __NR_recvfrom 322
333 #define __NR_recvmsg 323
334 #define __NR_send 324
335 #define __NR_sendmsg 325
336 #define __NR_sendto 326
337 #define __NR_setsockopt 327
338 #define __NR_shutdown 328
339 #define __NR_socket 329
340 #define __NR_socketpair 330
342 /* sysv ipc syscalls */
343 #define __NR_semctl 331
344 #define __NR_semget 332
345 #define __NR_semop 333
346 #define __NR_msgctl 334
347 #define __NR_msgget 335
348 #define __NR_msgrcv 336
349 #define __NR_msgsnd 337
350 #define __NR_shmat 338
351 #define __NR_shmctl 339
352 #define __NR_shmdt 340
353 #define __NR_shmget 341
355 #define __NR_syscall 342
356 #define NR_syscalls __NR_syscall
358 #ifdef __KERNEL__
359 #define __ARCH_WANT_IPC_PARSE_VERSION
360 #define __ARCH_WANT_STAT64
361 #define __ARCH_WANT_SYS_ALARM
362 #define __ARCH_WANT_SYS_GETHOSTNAME
363 #define __ARCH_WANT_SYS_PAUSE
364 #define __ARCH_WANT_SYS_SGETMASK
365 #define __ARCH_WANT_SYS_TIME
366 #define __ARCH_WANT_SYS_FADVISE64
367 #define __ARCH_WANT_SYS_GETPGRP
368 #define __ARCH_WANT_SYS_LLSEEK
369 #define __ARCH_WANT_SYS_NICE
370 #define __ARCH_WANT_SYS_RT_SIGACTION
371 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
374 * "Conditional" syscalls
376 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
377 * but it doesn't work on all toolchains, so we just do it by hand
379 #define cond_syscall(x) asm(".weak\t_" #x "\n\t.set\t_" #x ",_sys_ni_syscall");
381 #endif /* __KERNEL__ */
383 #endif /* __ASM_BFIN_UNISTD_H */