Xenomai API
2.5.6.1
|
00001 /* 00002 * Copyright (C) 2005 Jan Kiszka <[email protected]>. 00003 * Copyright (C) 2005 Joerg Langenberg <[email protected]>. 00004 * 00005 * Xenomai is free software; you can redistribute it and/or modify it 00006 * under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * Xenomai is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with Xenomai; if not, write to the Free Software Foundation, 00017 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 #ifndef _RTDM_SYSCALL_H 00021 #define _RTDM_SYSCALL_H 00022 00023 #ifndef __XENO_SIM__ 00024 #include <asm/xenomai/syscall.h> 00025 #endif /* __XENO_SIM__ */ 00026 00027 #define RTDM_SKIN_MAGIC 0x5254444D 00028 00029 #define __rtdm_fdcount 0 00030 #define __rtdm_open 1 00031 #define __rtdm_socket 2 00032 #define __rtdm_close 3 00033 #define __rtdm_ioctl 4 00034 #define __rtdm_read 5 00035 #define __rtdm_write 6 00036 #define __rtdm_recvmsg 7 00037 #define __rtdm_sendmsg 8 00038 00039 #ifdef __KERNEL__ 00040 00041 #ifdef __cplusplus 00042 extern "C" { 00043 #endif 00044 00045 extern int __rtdm_muxid; 00046 00047 int __init rtdm_syscall_init(void); 00048 00049 #ifdef CONFIG_XENO_OPT_PERVASIVE 00050 static inline void rtdm_syscall_cleanup(void) 00051 { 00052 xnshadow_unregister_interface(__rtdm_muxid); 00053 } 00054 #endif 00055 00056 #ifdef __cplusplus 00057 } 00058 #endif 00059 00060 #endif /* __KERNEL__ */ 00061 00062 #endif /* _RTDM_SYSCALL_H */