xref: /openbmc/linux/arch/powerpc/include/asm/syscalls.h (revision b8b572e1015f81b4e748417be2629dfe51ab99f9)
1*b8b572e1SStephen Rothwell #ifndef __ASM_POWERPC_SYSCALLS_H
2*b8b572e1SStephen Rothwell #define __ASM_POWERPC_SYSCALLS_H
3*b8b572e1SStephen Rothwell #ifdef __KERNEL__
4*b8b572e1SStephen Rothwell 
5*b8b572e1SStephen Rothwell #include <linux/compiler.h>
6*b8b572e1SStephen Rothwell #include <linux/linkage.h>
7*b8b572e1SStephen Rothwell #include <linux/types.h>
8*b8b572e1SStephen Rothwell #include <asm/signal.h>
9*b8b572e1SStephen Rothwell 
10*b8b572e1SStephen Rothwell struct new_utsname;
11*b8b572e1SStephen Rothwell struct pt_regs;
12*b8b572e1SStephen Rothwell struct rtas_args;
13*b8b572e1SStephen Rothwell struct sigaction;
14*b8b572e1SStephen Rothwell 
15*b8b572e1SStephen Rothwell asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
16*b8b572e1SStephen Rothwell 		unsigned long prot, unsigned long flags,
17*b8b572e1SStephen Rothwell 		unsigned long fd, off_t offset);
18*b8b572e1SStephen Rothwell asmlinkage unsigned long sys_mmap2(unsigned long addr, size_t len,
19*b8b572e1SStephen Rothwell 		unsigned long prot, unsigned long flags,
20*b8b572e1SStephen Rothwell 		unsigned long fd, unsigned long pgoff);
21*b8b572e1SStephen Rothwell asmlinkage int sys_execve(unsigned long a0, unsigned long a1,
22*b8b572e1SStephen Rothwell 		unsigned long a2, unsigned long a3, unsigned long a4,
23*b8b572e1SStephen Rothwell 		unsigned long a5, struct pt_regs *regs);
24*b8b572e1SStephen Rothwell asmlinkage int sys_clone(unsigned long clone_flags, unsigned long usp,
25*b8b572e1SStephen Rothwell 		int __user *parent_tidp, void __user *child_threadptr,
26*b8b572e1SStephen Rothwell 		int __user *child_tidp, int p6, struct pt_regs *regs);
27*b8b572e1SStephen Rothwell asmlinkage int sys_fork(unsigned long p1, unsigned long p2,
28*b8b572e1SStephen Rothwell 		unsigned long p3, unsigned long p4, unsigned long p5,
29*b8b572e1SStephen Rothwell 		unsigned long p6, struct pt_regs *regs);
30*b8b572e1SStephen Rothwell asmlinkage int sys_vfork(unsigned long p1, unsigned long p2,
31*b8b572e1SStephen Rothwell 		unsigned long p3, unsigned long p4, unsigned long p5,
32*b8b572e1SStephen Rothwell 		unsigned long p6, struct pt_regs *regs);
33*b8b572e1SStephen Rothwell asmlinkage long sys_pipe(int __user *fildes);
34*b8b572e1SStephen Rothwell asmlinkage long sys_pipe2(int __user *fildes, int flags);
35*b8b572e1SStephen Rothwell asmlinkage long sys_rt_sigaction(int sig,
36*b8b572e1SStephen Rothwell 		const struct sigaction __user *act,
37*b8b572e1SStephen Rothwell 		struct sigaction __user *oact, size_t sigsetsize);
38*b8b572e1SStephen Rothwell asmlinkage int sys_ipc(uint call, int first, unsigned long second,
39*b8b572e1SStephen Rothwell 		long third, void __user *ptr, long fifth);
40*b8b572e1SStephen Rothwell asmlinkage long ppc64_personality(unsigned long personality);
41*b8b572e1SStephen Rothwell asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
42*b8b572e1SStephen Rothwell asmlinkage time_t sys64_time(time_t __user * tloc);
43*b8b572e1SStephen Rothwell asmlinkage long ppc_newuname(struct new_utsname __user * name);
44*b8b572e1SStephen Rothwell 
45*b8b572e1SStephen Rothwell asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset,
46*b8b572e1SStephen Rothwell 		size_t sigsetsize);
47*b8b572e1SStephen Rothwell asmlinkage long sys_sigaltstack(const stack_t __user *uss,
48*b8b572e1SStephen Rothwell 		stack_t __user *uoss, unsigned long r5, unsigned long r6,
49*b8b572e1SStephen Rothwell 		unsigned long r7, unsigned long r8, struct pt_regs *regs);
50*b8b572e1SStephen Rothwell 
51*b8b572e1SStephen Rothwell #endif /* __KERNEL__ */
52*b8b572e1SStephen Rothwell #endif /* __ASM_POWERPC_SYSCALLS_H */
53