xref: /openbmc/linux/arch/powerpc/include/asm/syscalls.h (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2b8b572e1SStephen Rothwell #ifndef __ASM_POWERPC_SYSCALLS_H
3b8b572e1SStephen Rothwell #define __ASM_POWERPC_SYSCALLS_H
4b8b572e1SStephen Rothwell #ifdef __KERNEL__
5b8b572e1SStephen Rothwell 
6b8b572e1SStephen Rothwell #include <linux/compiler.h>
7b8b572e1SStephen Rothwell #include <linux/linkage.h>
8b8b572e1SStephen Rothwell #include <linux/types.h>
9b8b572e1SStephen Rothwell 
10b8b572e1SStephen Rothwell struct rtas_args;
11b8b572e1SStephen Rothwell 
129c355917SBalbir Singh asmlinkage long sys_mmap(unsigned long addr, size_t len,
13b8b572e1SStephen Rothwell 		unsigned long prot, unsigned long flags,
14b8b572e1SStephen Rothwell 		unsigned long fd, off_t offset);
159c355917SBalbir Singh asmlinkage long sys_mmap2(unsigned long addr, size_t len,
16b8b572e1SStephen Rothwell 		unsigned long prot, unsigned long flags,
17b8b572e1SStephen Rothwell 		unsigned long fd, unsigned long pgoff);
18b8b572e1SStephen Rothwell asmlinkage long ppc64_personality(unsigned long personality);
19b8b572e1SStephen Rothwell asmlinkage int ppc_rtas(struct rtas_args __user *uargs);
20b8b572e1SStephen Rothwell 
21b8b572e1SStephen Rothwell #endif /* __KERNEL__ */
22b8b572e1SStephen Rothwell #endif /* __ASM_POWERPC_SYSCALLS_H */
23