blob: b5308d3e6d391fc36568f95e2a64aeec865e3a68 [file] [log] [blame]
Arnd Bergmanna7f31842006-03-23 00:00:08 +01001#ifndef __ASM_POWERPC_SYSCALLS_H
2#define __ASM_POWERPC_SYSCALLS_H
3#ifdef __KERNEL__
4
5#include <linux/compiler.h>
6#include <linux/linkage.h>
7#include <linux/types.h>
8#include <asm/signal.h>
9
Arnd Bergmanna7f31842006-03-23 00:00:08 +010010struct pt_regs;
11struct rtas_args;
12struct sigaction;
13
14asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
15 unsigned long prot, unsigned long flags,
16 unsigned long fd, off_t offset);
17asmlinkage unsigned long sys_mmap2(unsigned long addr, size_t len,
18 unsigned long prot, unsigned long flags,
19 unsigned long fd, unsigned long pgoff);
Ulrich Drepperd35c7b02008-05-03 15:10:37 -040020asmlinkage long sys_pipe(int __user *fildes);
Tony Breeds973b7d82008-07-25 16:21:51 +100021asmlinkage long sys_pipe2(int __user *fildes, int flags);
Arnd Bergmanna7f31842006-03-23 00:00:08 +010022asmlinkage long sys_rt_sigaction(int sig,
23 const struct sigaction __user *act,
24 struct sigaction __user *oact, size_t sigsetsize);
Arnd Bergmanna7f31842006-03-23 00:00:08 +010025asmlinkage long ppc64_personality(unsigned long personality);
26asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
27asmlinkage time_t sys64_time(time_t __user * tloc);
Arnd Bergmanna7f31842006-03-23 00:00:08 +010028
29asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset,
30 size_t sigsetsize);
Arnd Bergmanna7f31842006-03-23 00:00:08 +010031asmlinkage long sys_sigaltstack(const stack_t __user *uss,
32 stack_t __user *uoss, unsigned long r5, unsigned long r6,
33 unsigned long r7, unsigned long r8, struct pt_regs *regs);
Arnd Bergmanna7f31842006-03-23 00:00:08 +010034
35#endif /* __KERNEL__ */
36#endif /* __ASM_POWERPC_SYSCALLS_H */