xref: /openbmc/linux/arch/sparc/kernel/systbls.h (revision bbecb07f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _SYSTBLS_H
3 #define _SYSTBLS_H
4 
5 #include <linux/signal.h>
6 #include <linux/kernel.h>
7 #include <linux/compat.h>
8 #include <linux/types.h>
9 
10 #include <asm/utrap.h>
11 
12 asmlinkage unsigned long sys_getpagesize(void);
13 asmlinkage long sparc_pipe(struct pt_regs *regs);
14 asmlinkage unsigned long c_sys_nis_syscall(struct pt_regs *regs);
15 asmlinkage long sys_getdomainname(char __user *name, int len);
16 void do_rt_sigreturn(struct pt_regs *regs);
17 asmlinkage long sys_mmap(unsigned long addr, unsigned long len,
18 			 unsigned long prot, unsigned long flags,
19 			 unsigned long fd, unsigned long off);
20 asmlinkage void sparc_breakpoint(struct pt_regs *regs);
21 
22 #ifdef CONFIG_SPARC32
23 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
24 			  unsigned long prot, unsigned long flags,
25 			  unsigned long fd, unsigned long pgoff);
26 long sparc_remap_file_pages(unsigned long start, unsigned long size,
27 			    unsigned long prot, unsigned long pgoff,
28 			    unsigned long flags);
29 
30 #endif /* CONFIG_SPARC32 */
31 
32 #ifdef CONFIG_SPARC64
33 asmlinkage long sys_sparc_ipc(unsigned int call, int first,
34 			      unsigned long second,
35 			      unsigned long third,
36 			      void __user *ptr, long fifth);
37 asmlinkage long sparc64_personality(unsigned long personality);
38 asmlinkage long sys64_munmap(unsigned long addr, size_t len);
39 asmlinkage unsigned long sys64_mremap(unsigned long addr,
40 				      unsigned long old_len,
41 				      unsigned long new_len,
42 				      unsigned long flags,
43 				      unsigned long new_addr);
44 asmlinkage long sys_utrap_install(utrap_entry_t type,
45 				  utrap_handler_t new_p,
46 				  utrap_handler_t new_d,
47 				  utrap_handler_t __user *old_p,
48 				  utrap_handler_t __user *old_d);
49 asmlinkage long sparc_memory_ordering(unsigned long model,
50 				      struct pt_regs *regs);
51 asmlinkage void sparc64_set_context(struct pt_regs *regs);
52 asmlinkage void sparc64_get_context(struct pt_regs *regs);
53 asmlinkage long sys32_truncate64(const char __user * path,
54 				 unsigned long high,
55 				 unsigned long low);
56 asmlinkage long sys32_ftruncate64(unsigned int fd,
57 				  unsigned long high,
58 				  unsigned long low);
59 struct compat_stat64;
60 asmlinkage long compat_sys_stat64(const char __user * filename,
61 				  struct compat_stat64 __user *statbuf);
62 asmlinkage long compat_sys_lstat64(const char __user * filename,
63 				   struct compat_stat64 __user *statbuf);
64 asmlinkage long compat_sys_fstat64(unsigned int fd,
65 				   struct compat_stat64 __user * statbuf);
66 asmlinkage long compat_sys_fstatat64(unsigned int dfd,
67 				     const char __user *filename,
68 				     struct compat_stat64 __user * statbuf, int flag);
69 asmlinkage compat_ssize_t sys32_pread64(unsigned int fd,
70 					char __user *ubuf,
71 					compat_size_t count,
72 					unsigned long poshi,
73 					unsigned long poslo);
74 asmlinkage compat_ssize_t sys32_pwrite64(unsigned int fd,
75 					 char __user *ubuf,
76 					 compat_size_t count,
77 					 unsigned long poshi,
78 					 unsigned long poslo);
79 asmlinkage long compat_sys_readahead(int fd,
80 				     unsigned long offhi,
81 				     unsigned long offlo,
82 				     compat_size_t count);
83 long compat_sys_fadvise64(int fd,
84 			  unsigned long offhi,
85 			  unsigned long offlo,
86 			  compat_size_t len, int advice);
87 long compat_sys_fadvise64_64(int fd,
88 			     unsigned long offhi, unsigned long offlo,
89 			     unsigned long lenhi, unsigned long lenlo,
90 			     int advice);
91 long sys32_sync_file_range(unsigned int fd,
92 			   unsigned long off_high, unsigned long off_low,
93 			   unsigned long nb_high, unsigned long nb_low,
94 			   unsigned int flags);
95 asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
96 				     u32 lenhi, u32 lenlo);
97 asmlinkage long compat_sys_fstat64(unsigned int fd,
98 				   struct compat_stat64 __user * statbuf);
99 asmlinkage long compat_sys_fstatat64(unsigned int dfd,
100 				     const char __user *filename,
101 				     struct compat_stat64 __user * statbuf,
102 				     int flag);
103 #endif /* CONFIG_SPARC64 */
104 #endif /* _SYSTBLS_H */
105