/*
 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * SW syscall interface
 */

#pragma once

#define SYSCALL_SW_thread_create			1
#define SYSCALL_SW_thread_wait				2
#define SYSCALL_SW_mmap					3
#define SYSCALL_SW_munmap				4
#define SYSCALL_SW_epoll_ctl				5
#define SYSCALL_SW_close				6
#define SYSCALL_SW_open					7
#define SYSCALL_SW_read					8
#define SYSCALL_SW_write				9
#define SYSCALL_SW_epoll_pwait				10
#define SYSCALL_SW_panic				12
#define SYSCALL_SW_getcpu				13
#define SYSCALL_SW_check_mem_acc_rights			14
#define SYSCALL_SW_ioctl				15
#define SYSCALL_SW_gettid				16
#define SYSCALL_SW_getpid				17
#define SYSCALL_SW_syslog				18
#define SYSCALL_SW_futex				19
#define SYSCALL_SW_sched_setaffinity			20
#define SYSCALL_SW_sched_getaffinity			21
#define SYSCALL_SW_getcluster				22
#define SYSCALL_SW_group_create				23
#define SYSCALL_SW_group_remove				24
#define SYSCALL_SW_mount				25
#define SYSCALL_SW_spawnfd				26
#define SYSCALL_SW_user_add_group			27
#define SYSCALL_SW_user_rm_group			28
#define SYSCALL_SW_irs_handler_svc			29
#define SYSCALL_SW_set_egid				30
#define SYSCALL_SW_ptrace				31
#define SYSCALL_SW_gcov_get_filename			32
#define SYSCALL_SW_gcov_read_info			33
#define SYSCALL_SW_kill					35
#define SYSCALL_SW_sigpending				36
#define SYSCALL_SW_sigsuspend				37
#define SYSCALL_SW_sigaction				38
#define SYSCALL_SW_sigprocmask				39
#define SYSCALL_SW_return_to_kernel			41
#define SYSCALL_SW_raise				42
#define SYSCALL_SW_alarm				43
#define SYSCALL_SW_nanosleep				44
#define SYSCALL_SW_yield				45
#define SYSCALL_SW_thread_exit				46
#define SYSCALL_SW_set_scheduler			47
#define SYSCALL_SW_get_scheduler			48
#define SYSCALL_SW_task_exit				49
#define SYSCALL_SW_fchown				50
#define SYSCALL_SW_user_create				51
#define SYSCALL_SW_user_remove				52
#define SYSCALL_SW_get_euid				53
#define SYSCALL_SW_set_euid				54
#define SYSCALL_SW_restore_euid				55
#define SYSCALL_SW_recv					56
#define SYSCALL_SW_send					57
#define SYSCALL_SW_sendmsg				58
#define SYSCALL_SW_recvmsg				59
#define SYSCALL_SW_socketpair				60
#define SYSCALL_SW_ftruncate				61
#define SYSCALL_SW_unlink				62
#define SYSCALL_SW_clock_gettime			63
#define SYSCALL_SW_socket				66
#define SYSCALL_SW_accept				67
#define SYSCALL_SW_bind					68
#define SYSCALL_SW_listen				69
#define SYSCALL_SW_connect				70
#define SYSCALL_SW_getsockopt				71
#define SYSCALL_SW_register_driver			72
#define SYSCALL_SW_release_driver			73
#define SYSCALL_SW_register_ioctl_desc			74
#define SYSCALL_SW_add_profile				75
#define SYSCALL_SW_rm_profile				76
#define SYSCALL_SW_set_tls				80
#define SYSCALL_SW_enter_critical			81
#define SYSCALL_SW_exit_critical			82
#define SYSCALL_SW_flush_dcache				83
#define SYSCALL_SW_cookie_add				85
#define SYSCALL_SW_get_egid				86
#define SYSCALL_SW_thread_detach			87
#define SYSCALL_SW_setsockopt				88
#define SYSCALL_SW_get_sysconf				89
#define SYSCALL_SW_stat					90
#define SYSCALL_SW_readdir				91
#define SYSCALL_SW_lseek				92
#define SYSCALL_SW_udf_register_driver			93
#define SYSCALL_SW_udf_release_driver			94
#define SYSCALL_SW_udf_return				95
#define SYSCALL_SW_gprof_control			96
#define SYSCALL_SW_mkdir				97
#define SYSCALL_SW_rmdir				98
#define SYSCALL_SW_rename				99
#define SYSCALL_SW_prlimit				100
#define SYSCALL_SW_fsync				101
#define SYSCALL_SW_epoll_create				103
#define SYSCALL_SW_mprotect				104
#define SYSCALL_SW_pread				105
#define SYSCALL_SW_pwrite				106

#define SYSCALL_SW_MAX_CNT				128

