18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_SYSCALLS_32_H 38c2ecf20Sopenharmony_ci#define __ASM_SH_SYSCALLS_32_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/compiler.h> 68c2ecf20Sopenharmony_ci#include <linux/linkage.h> 78c2ecf20Sopenharmony_ci#include <linux/types.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cistruct pt_regs; 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciasmlinkage int sys_sigreturn(void); 128c2ecf20Sopenharmony_ciasmlinkage int sys_rt_sigreturn(void); 138c2ecf20Sopenharmony_ciasmlinkage int sys_sh_pipe(void); 148c2ecf20Sopenharmony_ciasmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf, 158c2ecf20Sopenharmony_ci size_t count, long dummy, loff_t pos); 168c2ecf20Sopenharmony_ciasmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf, 178c2ecf20Sopenharmony_ci size_t count, long dummy, loff_t pos); 188c2ecf20Sopenharmony_ciasmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, 198c2ecf20Sopenharmony_ci u32 len0, u32 len1, int advice); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* Misc syscall related bits */ 228c2ecf20Sopenharmony_ciasmlinkage long do_syscall_trace_enter(struct pt_regs *regs); 238c2ecf20Sopenharmony_ciasmlinkage void do_syscall_trace_leave(struct pt_regs *regs); 248c2ecf20Sopenharmony_ciasmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0, 258c2ecf20Sopenharmony_ci unsigned long thread_info_flags); 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#endif /* __ASM_SH_SYSCALLS_32_H */ 28