00001 /* 00002 * Copyright (C) 2001,2002,2003,2004,2005 Philippe Gerum <rpm@xenomai.org>. 00003 * 00004 * RTAI/fusion is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, 00007 * or (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 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00017 * 02111-1307, USA. 00018 */ 00019 00020 #ifndef _RTAI_NUCLEUS_FUSION_H 00021 #define _RTAI_NUCLEUS_FUSION_H 00022 00023 #include <rtai_config.h> 00024 00025 /* Thread priority levels. */ 00026 #define FUSION_LOW_PRIO 1 00027 #define FUSION_HIGH_PRIO 99 00028 /* Extra level for IRQ servers in user-space. */ 00029 #define FUSION_IRQ_PRIO (FUSION_HIGH_PRIO + 1) 00030 00031 #define FUSION_MIN_PRIO FUSION_LOW_PRIO 00032 #define FUSION_MAX_PRIO FUSION_IRQ_PRIO 00033 00034 #ifdef __KERNEL__ 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif /* __cplusplus */ 00039 00040 int xnfusion_mount(void); 00041 00042 int xnfusion_umount(void); 00043 00044 int xnfusion_attach(void); 00045 00046 int xnfusion_detach(void); 00047 00048 #ifdef __cplusplus 00049 }; 00050 #endif /* __cplusplus */ 00051 00052 #endif /* __KERNEL__ */ 00053 00054 #endif /* !_RTAI_NUCLEUS_FUSION_H */