syscall.h

00001 /*
00002  * Copyright (C) 2004 Philippe Gerum <rpm@xenomai.org>.
00003  *
00004  * RTAI/fusion is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * RTAI/fusion is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with RTAI/fusion; if not, write to the Free Software Foundation,
00016  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef _RTAI_SYSCALL_H
00020 #define _RTAI_SYSCALL_H
00021 
00022 #ifndef __RTAI_SIM__
00023 #include <nucleus/asm/syscall.h>
00024 #endif /* __RTAI_SIM__ */
00025 
00026 #define __rtai_task_create        0
00027 #define __rtai_task_bind          1
00028 #define __rtai_task_start         2
00029 #define __rtai_task_suspend       3
00030 #define __rtai_task_resume        4
00031 #define __rtai_task_delete        5
00032 #define __rtai_task_yield         6
00033 #define __rtai_task_set_periodic  7
00034 #define __rtai_task_wait_period   8
00035 #define __rtai_task_set_priority  9
00036 #define __rtai_task_sleep         10
00037 #define __rtai_task_sleep_until   11
00038 #define __rtai_task_unblock       12
00039 #define __rtai_task_inquire       13
00040 #define __rtai_task_notify        14
00041 #define __rtai_task_set_mode      15
00042 #define __rtai_task_self          16
00043 #define __rtai_task_slice         17
00044 #define __rtai_task_send          18
00045 #define __rtai_task_receive       19
00046 #define __rtai_task_reply         20
00047 #define __rtai_timer_start        21
00048 #define __rtai_timer_stop         22
00049 #define __rtai_timer_read         23
00050 #define __rtai_timer_tsc          24
00051 #define __rtai_timer_ns2ticks     25
00052 #define __rtai_timer_ticks2ns     26
00053 #define __rtai_timer_inquire      27
00054 #define __rtai_sem_create         28
00055 #define __rtai_sem_bind           29
00056 #define __rtai_sem_delete         30
00057 #define __rtai_sem_p              31
00058 #define __rtai_sem_v              32
00059 #define __rtai_sem_broadcast      33
00060 #define __rtai_sem_inquire        34
00061 #define __rtai_event_create       35
00062 #define __rtai_event_bind         36
00063 #define __rtai_event_delete       37
00064 #define __rtai_event_wait         38
00065 #define __rtai_event_signal       39
00066 #define __rtai_event_clear        40
00067 #define __rtai_event_inquire      41
00068 #define __rtai_mutex_create       42
00069 #define __rtai_mutex_bind         43
00070 #define __rtai_mutex_delete       44
00071 #define __rtai_mutex_lock         45
00072 #define __rtai_mutex_unlock       46
00073 #define __rtai_mutex_inquire      47
00074 #define __rtai_cond_create        48
00075 #define __rtai_cond_bind          49
00076 #define __rtai_cond_delete        50
00077 #define __rtai_cond_wait          51
00078 #define __rtai_cond_signal        52
00079 #define __rtai_cond_broadcast     53
00080 #define __rtai_cond_inquire       54
00081 #define __rtai_queue_create       55
00082 #define __rtai_queue_bind         56
00083 #define __rtai_queue_delete       57
00084 #define __rtai_queue_alloc        58
00085 #define __rtai_queue_free         59
00086 #define __rtai_queue_send         60
00087 #define __rtai_queue_recv         61
00088 #define __rtai_queue_inquire      62
00089 #define __rtai_heap_create        63
00090 #define __rtai_heap_bind          64
00091 #define __rtai_heap_delete        65
00092 #define __rtai_heap_alloc         66
00093 #define __rtai_heap_free          67
00094 #define __rtai_heap_inquire       68
00095 #define __rtai_alarm_create       69
00096 #define __rtai_alarm_delete       70
00097 #define __rtai_alarm_start        71
00098 #define __rtai_alarm_stop         72
00099 #define __rtai_alarm_wait         73
00100 #define __rtai_alarm_inquire      74
00101 #define __rtai_intr_create        75
00102 #define __rtai_intr_bind          76
00103 #define __rtai_intr_delete        77
00104 #define __rtai_intr_wait          78
00105 #define __rtai_intr_enable        79
00106 #define __rtai_intr_disable       80
00107 #define __rtai_intr_inquire       81
00108 #define __rtai_pipe_create        82
00109 #define __rtai_pipe_bind          83
00110 #define __rtai_pipe_delete        84
00111 #define __rtai_pipe_read          85
00112 #define __rtai_pipe_write         86
00113 #define __rtai_pipe_stream        87
00114 #define __rtai_misc_get_io_region 88
00115 #define __rtai_misc_put_io_region 89
00116 
00117 struct rt_arg_bulk {
00118 
00119     u_long a1;
00120     u_long a2;
00121     u_long a3;
00122     u_long a4;
00123     u_long a5;
00124 };
00125 
00126 #ifdef __KERNEL__
00127 
00128 #ifdef __cplusplus
00129 extern "C" {
00130 #endif
00131 
00132 int __rtai_syscall_init(void);
00133 
00134 void __rtai_syscall_cleanup(void);
00135 
00136 #ifdef __cplusplus
00137 }
00138 #endif
00139 
00140 #endif /* __KERNEL__ */
00141 
00142 #endif /* _RTAI_SYSCALL_H */

Generated on Wed Jun 22 22:54:02 2005 for RTAI Fusion API by  doxygen 1.4.1