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