base/include/rtai_types.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_TYPES_H
00020 #define _RTAI_TYPES_H
00021 
00022 #include <rtai_config.h>
00023 #include <rtai_wrappers.h>
00024 
00025 #define PRIO_Q    0 
00026 #define FIFO_Q    4 
00027 #define RES_Q     3
00028 
00029 #define BIN_SEM   1 
00030 #define CNT_SEM   2 
00031 #define RES_SEM   3
00032 
00033 #define RESEM_RECURS   1
00034 #define RESEM_BINSEM   0
00035 #define RESEM_CHEKWT  -1
00036 
00037 #define RT_SCHED_FIFO  0 
00038 #define RT_SCHED_RR    1 
00039 
00040 struct pt_regs;
00041 
00042 struct rt_task_struct;
00043 
00044 typedef long long RTIME;
00045 
00046 typedef int (*RT_TRAP_HANDLER)(int, int, struct pt_regs *,void *);
00047 
00048 struct rt_times {
00049     int linux_tick;
00050     int periodic_tick;
00051     RTIME tick_time;
00052     RTIME linux_time;
00053     RTIME intr_time;
00054 };
00055 
00056 #endif /* !_RTAI_TYPES_H */

Generated on Tue Feb 2 17:46:05 2010 for RTAI API by  doxygen 1.4.7