base/include/asm/rtai_srq.h

Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 1999-2003 Paolo Mantegazza <mantegazza@aero.polimi.it> 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License as 00006 * published by the Free Software Foundation; either version 2 of the 00007 * License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 #ifndef _RTAI_ASM_I386_SRQ_H 00020 #define _RTAI_ASM_I386_SRQ_H 00021 00022 #include <asm/rtai_vectors.h> 00023 00024 #ifndef __KERNEL__ 00025 00026 static inline long long rtai_srq(int srq, unsigned long args) 00027 { 00028 long long retval; 00029 RTAI_DO_TRAP(RTAI_SYS_VECTOR, retval, srq, args); 00030 return retval; 00031 } 00032 00033 static inline int rtai_open_srq(unsigned long label) 00034 { 00035 return (int)rtai_srq(0, label); 00036 } 00037 00038 #endif /* !__KERNEL__ */ 00039 00040 #endif /* !_RTAI_ASM_I386_SRQ_H */

Generated on Thu Nov 20 11:49:49 2008 for RTAI API by doxygen 1.3.8