xref: /openbmc/linux/arch/sparc/kernel/systbls.h (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg 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 
12958b7b07SSam Ravnborg asmlinkage unsigned long sys_getpagesize(void);
13958b7b07SSam Ravnborg asmlinkage long sparc_pipe(struct pt_regs *regs);
14958b7b07SSam Ravnborg asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs);
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);
26958b7b07SSam Ravnborg long 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);
49958b7b07SSam Ravnborg asmlinkage long sparc_memory_ordering(unsigned long model,
50a88b5ba8SSam Ravnborg 				      struct pt_regs *regs);
51958b7b07SSam Ravnborg asmlinkage void sparc64_set_context(struct pt_regs *regs);
52958b7b07SSam Ravnborg asmlinkage void sparc64_get_context(struct pt_regs *regs);
53ed8eb755SSam Ravnborg asmlinkage long sys32_truncate64(const char __user * path,
54ed8eb755SSam Ravnborg 				 unsigned long high,
55ed8eb755SSam Ravnborg 				 unsigned long low);
56ed8eb755SSam Ravnborg asmlinkage long sys32_ftruncate64(unsigned int fd,
57ed8eb755SSam Ravnborg 				  unsigned long high,
58ed8eb755SSam Ravnborg 				  unsigned long low);
59ed8eb755SSam Ravnborg struct compat_stat64;
60ed8eb755SSam Ravnborg asmlinkage long compat_sys_stat64(const char __user * filename,
61ed8eb755SSam Ravnborg 				  struct compat_stat64 __user *statbuf);
62ed8eb755SSam Ravnborg asmlinkage long compat_sys_lstat64(const char __user * filename,
63ed8eb755SSam Ravnborg 				   struct compat_stat64 __user *statbuf);
64ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstat64(unsigned int fd,
65ed8eb755SSam Ravnborg 				   struct compat_stat64 __user * statbuf);
66ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstatat64(unsigned int dfd,
67ed8eb755SSam Ravnborg 				     const char __user *filename,
68ed8eb755SSam Ravnborg 				     struct compat_stat64 __user * statbuf, int flag);
69ed8eb755SSam Ravnborg asmlinkage compat_ssize_t sys32_pread64(unsigned int fd,
70ed8eb755SSam Ravnborg 					char __user *ubuf,
71ed8eb755SSam Ravnborg 					compat_size_t count,
72ed8eb755SSam Ravnborg 					unsigned long poshi,
73ed8eb755SSam Ravnborg 					unsigned long poslo);
74ed8eb755SSam Ravnborg asmlinkage compat_ssize_t sys32_pwrite64(unsigned int fd,
75ed8eb755SSam Ravnborg 					 char __user *ubuf,
76ed8eb755SSam Ravnborg 					 compat_size_t count,
77ed8eb755SSam Ravnborg 					 unsigned long poshi,
78ed8eb755SSam Ravnborg 					 unsigned long poslo);
79ed8eb755SSam Ravnborg asmlinkage long compat_sys_readahead(int fd,
80ed8eb755SSam Ravnborg 				     unsigned long offhi,
81ed8eb755SSam Ravnborg 				     unsigned long offlo,
82ed8eb755SSam Ravnborg 				     compat_size_t count);
83ed8eb755SSam Ravnborg long compat_sys_fadvise64(int fd,
84ed8eb755SSam Ravnborg 			  unsigned long offhi,
85ed8eb755SSam Ravnborg 			  unsigned long offlo,
86ed8eb755SSam Ravnborg 			  compat_size_t len, int advice);
87ed8eb755SSam Ravnborg long compat_sys_fadvise64_64(int fd,
88ed8eb755SSam Ravnborg 			     unsigned long offhi, unsigned long offlo,
89ed8eb755SSam Ravnborg 			     unsigned long lenhi, unsigned long lenlo,
90ed8eb755SSam Ravnborg 			     int advice);
91ed8eb755SSam Ravnborg long sys32_sync_file_range(unsigned int fd,
92ed8eb755SSam Ravnborg 			   unsigned long off_high, unsigned long off_low,
93ed8eb755SSam Ravnborg 			   unsigned long nb_high, unsigned long nb_low,
94ed8eb755SSam Ravnborg 			   unsigned int flags);
95ed8eb755SSam Ravnborg asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
96ed8eb755SSam Ravnborg 				     u32 lenhi, u32 lenlo);
97ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstat64(unsigned int fd,
98ed8eb755SSam Ravnborg 				   struct compat_stat64 __user * statbuf);
99ed8eb755SSam Ravnborg asmlinkage long compat_sys_fstatat64(unsigned int dfd,
100ed8eb755SSam Ravnborg 				     const char __user *filename,
101ed8eb755SSam Ravnborg 				     struct compat_stat64 __user * statbuf,
102ed8eb755SSam Ravnborg 				     int flag);
103958b7b07SSam Ravnborg #endif /* CONFIG_SPARC64 */
104a88b5ba8SSam Ravnborg #endif /* _SYSTBLS_H */
105