1b2441318SGreg 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> 9cc47ad40SCédric Le Goater #include <linux/compat.h> 10b8b572e1SStephen Rothwell 11b8b572e1SStephen Rothwell struct rtas_args; 12b8b572e1SStephen Rothwell 13*5ba6c9a9SRohan McLure long sys_mmap(unsigned long addr, size_t len, 14b8b572e1SStephen Rothwell unsigned long prot, unsigned long flags, 15b8b572e1SStephen Rothwell unsigned long fd, off_t offset); 16*5ba6c9a9SRohan McLure long sys_mmap2(unsigned long addr, size_t len, 17b8b572e1SStephen Rothwell unsigned long prot, unsigned long flags, 18b8b572e1SStephen Rothwell unsigned long fd, unsigned long pgoff); 19*5ba6c9a9SRohan McLure long ppc64_personality(unsigned long personality); 20*5ba6c9a9SRohan McLure long sys_rtas(struct rtas_args __user *uargs); 2176222808SChristophe Leroy int ppc_select(int n, fd_set __user *inp, fd_set __user *outp, 2276222808SChristophe Leroy fd_set __user *exp, struct __kernel_old_timeval __user *tvp); 2376222808SChristophe Leroy long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low, 2476222808SChristophe Leroy u32 len_high, u32 len_low); 25b8b572e1SStephen Rothwell 26cc47ad40SCédric Le Goater #ifdef CONFIG_COMPAT 27cc47ad40SCédric Le Goater unsigned long compat_sys_mmap2(unsigned long addr, size_t len, 28cc47ad40SCédric Le Goater unsigned long prot, unsigned long flags, 29cc47ad40SCédric Le Goater unsigned long fd, unsigned long pgoff); 30cc47ad40SCédric Le Goater 31cc47ad40SCédric Le Goater compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, 32cc47ad40SCédric Le Goater u32 reg6, u32 pos1, u32 pos2); 33cc47ad40SCédric Le Goater 34cc47ad40SCédric Le Goater compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, 35cc47ad40SCédric Le Goater u32 reg6, u32 pos1, u32 pos2); 36cc47ad40SCédric Le Goater 37cc47ad40SCédric Le Goater compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offset1, u32 offset2, u32 count); 38cc47ad40SCédric Le Goater 39cc47ad40SCédric Le Goater int compat_sys_truncate64(const char __user *path, u32 reg4, 40cc47ad40SCédric Le Goater unsigned long len1, unsigned long len2); 41cc47ad40SCédric Le Goater 42cc47ad40SCédric Le Goater long compat_sys_fallocate(int fd, int mode, u32 offset1, u32 offset2, u32 len1, u32 len2); 43cc47ad40SCédric Le Goater 44cc47ad40SCédric Le Goater int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long len1, 45cc47ad40SCédric Le Goater unsigned long len2); 46cc47ad40SCédric Le Goater 47cc47ad40SCédric Le Goater long ppc32_fadvise64(int fd, u32 unused, u32 offset1, u32 offset2, 48cc47ad40SCédric Le Goater size_t len, int advice); 49cc47ad40SCédric Le Goater 50cc47ad40SCédric Le Goater long compat_sys_sync_file_range2(int fd, unsigned int flags, 51cc47ad40SCédric Le Goater unsigned int offset1, unsigned int offset2, 52cc47ad40SCédric Le Goater unsigned int nbytes1, unsigned int nbytes2); 53cc47ad40SCédric Le Goater #endif 54cc47ad40SCédric Le Goater 55b8b572e1SStephen Rothwell #endif /* __KERNEL__ */ 56b8b572e1SStephen Rothwell #endif /* __ASM_POWERPC_SYSCALLS_H */ 57