bfin: remove inline keyword
[xenomai-head.git] / include / rtdm / syscall.h
blob02b1448cf63f8173633ac2a810831bb8de6724cf
1 /*
2 * Copyright (C) 2005 Jan Kiszka <jan.kiszka@web.de>.
3 * Copyright (C) 2005 Joerg Langenberg <joerg.langenberg@gmx.net>.
5 * Xenomai is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * Xenomai is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with Xenomai; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef _RTDM_SYSCALL_H
21 #define _RTDM_SYSCALL_H
23 #ifndef __XENO_SIM__
24 #include <asm/xenomai/syscall.h>
25 #endif /* __XENO_SIM__ */
27 #define RTDM_SKIN_MAGIC 0x5254444D
29 #define __rtdm_fdcount 0
30 #define __rtdm_open 1
31 #define __rtdm_socket 2
32 #define __rtdm_close 3
33 #define __rtdm_ioctl 4
34 #define __rtdm_read 5
35 #define __rtdm_write 6
36 #define __rtdm_recvmsg 7
37 #define __rtdm_sendmsg 8
39 #ifdef __KERNEL__
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
45 extern int __rtdm_muxid;
47 int __init rtdm_syscall_init(void);
49 #ifdef CONFIG_XENO_OPT_PERVASIVE
50 static inline void rtdm_syscall_cleanup(void)
52 xnshadow_unregister_interface(__rtdm_muxid);
54 #endif
56 #ifdef __cplusplus
58 #endif
60 #endif /* __KERNEL__ */
62 #endif /* _RTDM_SYSCALL_H */