1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2a88b5ba8SSam Ravnborg #ifndef _SYSTBLS_H 3a88b5ba8SSam Ravnborg #define _SYSTBLS_H 4a88b5ba8SSam Ravnborg 5574c4866SAl Viro #include <linux/signal.h> 6ed8eb755SSam Ravnborg #include <linux/kernel.h> 7ed8eb755SSam Ravnborg #include <linux/compat.h> 8ed8eb755SSam Ravnborg #include <linux/types.h> 9ed8eb755SSam Ravnborg 10a88b5ba8SSam Ravnborg #include <asm/utrap.h> 11a88b5ba8SSam Ravnborg 12ee076e81SAl Viro asmlinkage long sys_getpagesize(void); 133e3511b3SAl Viro asmlinkage long sys_sparc_pipe(void); 14*47db6975SAl Viro asmlinkage long sys_nis_syscall(void); 15958b7b07SSam Ravnborg asmlinkage long sys_getdomainname(char __user *name, int len); 16958b7b07SSam Ravnborg void do_rt_sigreturn(struct pt_regs *regs); 17958b7b07SSam Ravnborg asmlinkage long sys_mmap(unsigned long addr, unsigned long len, 18958b7b07SSam Ravnborg unsigned long prot, unsigned long flags, 19958b7b07SSam Ravnborg unsigned long fd, unsigned long off); 20958b7b07SSam Ravnborg asmlinkage void sparc_breakpoint(struct pt_regs *regs); 21958b7b07SSam Ravnborg 22958b7b07SSam Ravnborg #ifdef CONFIG_SPARC32 23958b7b07SSam Ravnborg asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, 24958b7b07SSam Ravnborg unsigned long prot, unsigned long flags, 25958b7b07SSam Ravnborg unsigned long fd, unsigned long pgoff); 26a0d32ad3SAl Viro long sys_sparc_remap_file_pages(unsigned long start, unsigned long size, 27958b7b07SSam Ravnborg unsigned long prot, unsigned long pgoff, 28958b7b07SSam Ravnborg unsigned long flags); 29958b7b07SSam Ravnborg 30958b7b07SSam Ravnborg #endif /* CONFIG_SPARC32 */ 31958b7b07SSam Ravnborg 32958b7b07SSam Ravnborg #ifdef CONFIG_SPARC64 33958b7b07SSam Ravnborg asmlinkage long sys_sparc_ipc(unsigned int call, int first, 34a88b5ba8SSam Ravnborg unsigned long second, 35a88b5ba8SSam Ravnborg unsigned long third, 36a88b5ba8SSam Ravnborg void __user *ptr, long fifth); 37958b7b07SSam Ravnborg asmlinkage long sparc64_personality(unsigned long personality); 38958b7b07SSam Ravnborg asmlinkage long sys64_munmap(unsigned long addr, size_t len); 39958b7b07SSam Ravnborg asmlinkage unsigned long sys64_mremap(unsigned long addr, 40a88b5ba8SSam Ravnborg unsigned long old_len, 41a88b5ba8SSam Ravnborg unsigned long new_len, 42a88b5ba8SSam Ravnborg unsigned long flags, 43a88b5ba8SSam Ravnborg unsigned long new_addr); 44958b7b07SSam Ravnborg asmlinkage long sys_utrap_install(utrap_entry_t type, 45a88b5ba8SSam Ravnborg utrap_handler_t new_p, 46a88b5ba8SSam Ravnborg utrap_handler_t new_d, 47a88b5ba8SSam Ravnborg utrap_handler_t __user *old_p, 48a88b5ba8SSam Ravnborg utrap_handler_t __user *old_d); 496de7617eSAl Viro asmlinkage long sys_memory_ordering(unsigned long model); 50958b7b07SSam Ravnborg asmlinkage void sparc64_set_context(struct pt_regs *regs); 51958b7b07SSam Ravnborg asmlinkage void sparc64_get_context(struct pt_regs *regs); 523d0e354eSAl Viro asmlinkage long compat_sys_truncate64(const char __user * path, 533d0e354eSAl Viro u32 high, 543d0e354eSAl Viro u32 low); 553d0e354eSAl Viro asmlinkage long compat_sys_ftruncate64(unsigned int fd, 563d0e354eSAl Viro u32 high, 573d0e354eSAl Viro u32 low); 58ed8eb755SSam Ravnborg struct compat_stat64; 59ed8eb755SSam Ravnborg asmlinkage long compat_sys_stat64(const char __user * filename, 60ed8eb755SSam Ravnborg struct compat_stat64 __user *statbuf); 61ed8eb755SSam Ravnborg asmlinkage long compat_sys_lstat64(const char __user * filename, 62ed8eb755SSam Ravnborg struct compat_stat64 __user *statbuf); 63ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstat64(unsigned int fd, 64ed8eb755SSam Ravnborg struct compat_stat64 __user * statbuf); 65ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstatat64(unsigned int dfd, 66ed8eb755SSam Ravnborg const char __user *filename, 67ed8eb755SSam Ravnborg struct compat_stat64 __user * statbuf, int flag); 688c82ccd6SAl Viro asmlinkage long compat_sys_pread64(unsigned int fd, 69ed8eb755SSam Ravnborg char __user *ubuf, 70ed8eb755SSam Ravnborg compat_size_t count, 718c82ccd6SAl Viro u32 poshi, 728c82ccd6SAl Viro u32 poslo); 738c82ccd6SAl Viro asmlinkage long compat_sys_pwrite64(unsigned int fd, 74ed8eb755SSam Ravnborg char __user *ubuf, 75ed8eb755SSam Ravnborg compat_size_t count, 768c82ccd6SAl Viro u32 poshi, 778c82ccd6SAl Viro u32 poslo); 78ed8eb755SSam Ravnborg asmlinkage long compat_sys_readahead(int fd, 79a00a700bSAl Viro unsigned offhi, 80a00a700bSAl Viro unsigned offlo, 81ed8eb755SSam Ravnborg compat_size_t count); 82ed8eb755SSam Ravnborg long compat_sys_fadvise64(int fd, 83a00a700bSAl Viro unsigned offhi, 84a00a700bSAl Viro unsigned offlo, 85ed8eb755SSam Ravnborg compat_size_t len, int advice); 86ed8eb755SSam Ravnborg long compat_sys_fadvise64_64(int fd, 87a00a700bSAl Viro unsigned offhi, unsigned offlo, 88a00a700bSAl Viro unsigned lenhi, unsigned lenlo, 89ed8eb755SSam Ravnborg int advice); 908ccb0046SAl Viro long compat_sys_sync_file_range(unsigned int fd, 918ccb0046SAl Viro unsigned off_high, unsigned off_low, 928ccb0046SAl Viro unsigned nb_high, unsigned nb_low, 93ed8eb755SSam Ravnborg unsigned int flags); 94ed8eb755SSam Ravnborg asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo, 95ed8eb755SSam Ravnborg u32 lenhi, u32 lenlo); 96ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstat64(unsigned int fd, 97ed8eb755SSam Ravnborg struct compat_stat64 __user * statbuf); 98ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstatat64(unsigned int dfd, 99ed8eb755SSam Ravnborg const char __user *filename, 100ed8eb755SSam Ravnborg struct compat_stat64 __user * statbuf, 101ed8eb755SSam Ravnborg int flag); 102958b7b07SSam Ravnborg #endif /* CONFIG_SPARC64 */ 103a88b5ba8SSam Ravnborg #endif /* _SYSTBLS_H */ 104