0001
0002 #ifndef __ASM_POWERPC_SYSCALLS_H
0003 #define __ASM_POWERPC_SYSCALLS_H
0004 #ifdef __KERNEL__
0005
0006 #include <linux/compiler.h>
0007 #include <linux/linkage.h>
0008 #include <linux/types.h>
0009 #include <linux/compat.h>
0010
0011 struct rtas_args;
0012
0013 asmlinkage long sys_mmap(unsigned long addr, size_t len,
0014 unsigned long prot, unsigned long flags,
0015 unsigned long fd, off_t offset);
0016 asmlinkage long sys_mmap2(unsigned long addr, size_t len,
0017 unsigned long prot, unsigned long flags,
0018 unsigned long fd, unsigned long pgoff);
0019 asmlinkage long ppc64_personality(unsigned long personality);
0020 asmlinkage long sys_rtas(struct rtas_args __user *uargs);
0021 int ppc_select(int n, fd_set __user *inp, fd_set __user *outp,
0022 fd_set __user *exp, struct __kernel_old_timeval __user *tvp);
0023 long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low,
0024 u32 len_high, u32 len_low);
0025
0026 #ifdef CONFIG_COMPAT
0027 unsigned long compat_sys_mmap2(unsigned long addr, size_t len,
0028 unsigned long prot, unsigned long flags,
0029 unsigned long fd, unsigned long pgoff);
0030
0031 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count,
0032 u32 reg6, u32 pos1, u32 pos2);
0033
0034 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count,
0035 u32 reg6, u32 pos1, u32 pos2);
0036
0037 compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offset1, u32 offset2, u32 count);
0038
0039 int compat_sys_truncate64(const char __user *path, u32 reg4,
0040 unsigned long len1, unsigned long len2);
0041
0042 long compat_sys_fallocate(int fd, int mode, u32 offset1, u32 offset2, u32 len1, u32 len2);
0043
0044 int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long len1,
0045 unsigned long len2);
0046
0047 long ppc32_fadvise64(int fd, u32 unused, u32 offset1, u32 offset2,
0048 size_t len, int advice);
0049
0050 long compat_sys_sync_file_range2(int fd, unsigned int flags,
0051 unsigned int offset1, unsigned int offset2,
0052 unsigned int nbytes1, unsigned int nbytes2);
0053 #endif
0054
0055 #endif
0056 #endif