162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci#ifndef __ASM_SYSCALLS_H
362306a36Sopenharmony_ci#define __ASM_SYSCALLS_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <linux/linkage.h>
662306a36Sopenharmony_ci#include <linux/types.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct pt_regs;
962306a36Sopenharmony_ciasmlinkage int sys_sigreturn(struct pt_regs *regs);
1062306a36Sopenharmony_ciasmlinkage int sys_rt_sigreturn(struct pt_regs *regs);
1162306a36Sopenharmony_ciasmlinkage long sys_arm_fadvise64_64(int fd, int advice,
1262306a36Sopenharmony_ci				     loff_t offset, loff_t len);
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cistruct oldabi_stat64;
1562306a36Sopenharmony_ciasmlinkage long sys_oabi_stat64(const char __user * filename,
1662306a36Sopenharmony_ci				struct oldabi_stat64 __user * statbuf);
1762306a36Sopenharmony_ciasmlinkage long sys_oabi_lstat64(const char __user * filename,
1862306a36Sopenharmony_ci				 struct oldabi_stat64 __user * statbuf);
1962306a36Sopenharmony_ciasmlinkage long sys_oabi_fstat64(unsigned long fd,
2062306a36Sopenharmony_ci				 struct oldabi_stat64 __user * statbuf);
2162306a36Sopenharmony_ciasmlinkage long sys_oabi_fstatat64(int dfd,
2262306a36Sopenharmony_ci				   const char __user *filename,
2362306a36Sopenharmony_ci				   struct oldabi_stat64  __user *statbuf,
2462306a36Sopenharmony_ci				   int flag);
2562306a36Sopenharmony_ciasmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd,
2662306a36Sopenharmony_ci				 unsigned long arg);
2762306a36Sopenharmony_cistruct oabi_epoll_event;
2862306a36Sopenharmony_ciasmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
2962306a36Sopenharmony_ci				   struct oabi_epoll_event __user *event);
3062306a36Sopenharmony_cistruct oabi_sembuf;
3162306a36Sopenharmony_cistruct old_timespec32;
3262306a36Sopenharmony_ciasmlinkage long sys_oabi_semtimedop(int semid,
3362306a36Sopenharmony_ci				    struct oabi_sembuf __user *tsops,
3462306a36Sopenharmony_ci				    unsigned nsops,
3562306a36Sopenharmony_ci				    const struct old_timespec32 __user *timeout);
3662306a36Sopenharmony_ciasmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
3762306a36Sopenharmony_ci			       unsigned nsops);
3862306a36Sopenharmony_ciasmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
3962306a36Sopenharmony_ci			    void __user *ptr, long fifth);
4062306a36Sopenharmony_cistruct sockaddr;
4162306a36Sopenharmony_ciasmlinkage long sys_oabi_bind(int fd, struct sockaddr __user *addr, int addrlen);
4262306a36Sopenharmony_ciasmlinkage long sys_oabi_connect(int fd, struct sockaddr __user *addr, int addrlen);
4362306a36Sopenharmony_ciasmlinkage long sys_oabi_sendto(int fd, void __user *buff,
4462306a36Sopenharmony_ci				size_t len, unsigned flags,
4562306a36Sopenharmony_ci				struct sockaddr __user *addr,
4662306a36Sopenharmony_ci				int addrlen);
4762306a36Sopenharmony_cistruct user_msghdr;
4862306a36Sopenharmony_ciasmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags);
4962306a36Sopenharmony_ciasmlinkage long sys_oabi_socketcall(int call, unsigned long __user *args);
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci#endif
52