xref: /openbmc/linux/arch/sh/include/asm/syscalls_32.h (revision e12b090e)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2fa43972fSPaul Mundt #ifndef __ASM_SH_SYSCALLS_32_H
3fa43972fSPaul Mundt #define __ASM_SH_SYSCALLS_32_H
4fa43972fSPaul Mundt 
5fa43972fSPaul Mundt #include <linux/compiler.h>
6fa43972fSPaul Mundt #include <linux/linkage.h>
7fa43972fSPaul Mundt #include <linux/types.h>
8fa43972fSPaul Mundt 
9fa43972fSPaul Mundt struct pt_regs;
10fa43972fSPaul Mundt 
11abafe5d9SBobby Bingham asmlinkage int sys_sigreturn(void);
12abafe5d9SBobby Bingham asmlinkage int sys_rt_sigreturn(void);
13abafe5d9SBobby Bingham asmlinkage int sys_sh_pipe(void);
14fa43972fSPaul Mundt asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
15fa43972fSPaul Mundt 				     size_t count, long dummy, loff_t pos);
16fa43972fSPaul Mundt asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
17fa43972fSPaul Mundt 				      size_t count, long dummy, loff_t pos);
18fa43972fSPaul Mundt asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
19fa43972fSPaul Mundt 					u32 len0, u32 len1, int advice);
20fa43972fSPaul Mundt 
21fa43972fSPaul Mundt /* Misc syscall related bits */
22fa43972fSPaul Mundt asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
23fa43972fSPaul Mundt asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
24fa43972fSPaul Mundt asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
25fa43972fSPaul Mundt 				 unsigned long thread_info_flags);
26fa43972fSPaul Mundt 
27fa43972fSPaul Mundt #endif /* __ASM_SH_SYSCALLS_32_H */
28