base/include/asm-arm/rtai_oldnames.h

Go to the documentation of this file.
00001 /* 00002 * ARTI -- RTAI-compatible Adeos-based Real-Time Interface. Based on 00003 * ARTI for x86 and RTHAL for ARM. This file provides user-visible 00004 * definitions for compatibility purpose with the legacy RTHAL. Must 00005 * be included from rtai_hal.h only. 00006 * 00007 * Original RTAI/x86 layer implementation: 00008 * Copyright (c) 2000 Paolo Mantegazza (mantegazza@aero.polimi.it) 00009 * Copyright (c) 2000 Steve Papacharalambous (stevep@zentropix.com) 00010 * Copyright (c) 2000 Stuart Hughes 00011 * and others. 00012 * 00013 * RTAI/x86 rewrite over Adeos: 00014 * Copyright (c) 2002 Philippe Gerum (rpm@xenomai.org) 00015 * 00016 * Original RTAI/ARM RTHAL implementation: 00017 * Copyright (c) 2000 Pierre Cloutier (pcloutier@poseidoncontrols.com) 00018 * Copyright (c) 2001 Alex Züpke, SYSGO RTS GmbH (azu@sysgo.de) 00019 * Copyright (c) 2002 Guennadi Liakhovetski DSA GmbH (gl@dsa-ac.de) 00020 * Copyright (c) 2002 Steve Papacharalambous (stevep@zentropix.com) 00021 * Copyright (c) 2002 Wolfgang Müller (wolfgang.mueller@dsa-ac.de) 00022 * Copyright (c) 2003 Bernard Haible, Marconi Communications 00023 * Copyright (c) 2003 Thomas Gleixner (tglx@linutronix.de) 00024 * Copyright (c) 2003 Philippe Gerum (rpm@xenomai.org) 00025 * 00026 * RTAI/ARM over Adeos rewrite: 00027 * Copyright (c) 2004-2005 Michael Neuhauser, Firmix Software GmbH (mike@firmix.at) 00028 * 00029 * 00030 * This program is free software; you can redistribute it and/or modify it under 00031 * the terms of the GNU General Public License as published by the Free Software 00032 * Foundation, Inc., 675 Mass Ave, Cambridge MA 02139, USA; either version 2 of 00033 * the License, or (at your option) any later version. 00034 * 00035 * This program is distributed in the hope that it will be useful, but WITHOUT 00036 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00037 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00038 * details. 00039 * 00040 * You should have received a copy of the GNU General Public License along with 00041 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00042 * Place - Suite 330, Boston, MA 02111-1307, USA. 00043 */ 00044 #ifndef _RTAI_ASM_ARM_OLDNAMES_H 00045 #define _RTAI_ASM_ARM_OLDNAMES_H 00046 00047 #ifdef __KERNEL__ 00048 00049 #define hard_cli() rtai_cli() 00050 #define hard_sti() rtai_sti() 00051 #define hard_save_flags_and_cli(x) rtai_save_flags_and_cli(x) 00052 #define hard_save_flags_cli(x) rtai_save_flags_and_cli(x) 00053 #define hard_restore_flags(x) rtai_restore_flags(x) 00054 #define hard_save_flags(x) rtai_save_flags(x) 00055 #define hard_cpu_id adeos_processor_id 00056 #define this_rt_task ptd 00057 00058 #endif /* __KERNEL__ */ 00059 00060 #ifndef __RTAI_HAL__ 00061 00062 #define tuned rtai_tunables 00063 #define NR_RT_CPUS RTAI_NR_CPUS 00064 #define RT_TIME_END RTAI_TIME_LIMIT 00065 00066 #define CPU_FREQ RTAI_CPU_FREQ 00067 #define TIMER_8254_IRQ RTAI_TIMER_IRQ 00068 #define FREQ_8254 RTAI_TIMER_FREQ 00069 #define LATENCY_8254 RTAI_TIMER_LATENCY 00070 #define SETUP_TIME_8254 RTAI_TIMER_SETUP_TIME 00071 00072 #define CALIBRATED_CPU_FREQ RTAI_CALIBRATED_CPU_FREQ 00073 00074 #ifdef __KERNEL__ 00075 00076 #undef rdtsc 00077 #define rdtsc() rtai_rdtsc() 00078 #define rd_CPU_ts() rtai_rdtsc() 00079 00080 #define rt_set_rtai_trap_handler rt_set_trap_handler 00081 #define rt_mount_rtai rt_mount 00082 #define rt_umount_rtai rt_umount 00083 #define calibrate_8254 rtai_calibrate_8254 00084 00085 #define ulldiv(a,b,c) rtai_ulldiv(a,b,c) 00086 #define imuldiv(a,b,c) rtai_imuldiv(a,b,c) 00087 #define llimd(a,b,c) rtai_llimd(a,b,c) 00088 00089 #define RTAI_NR_TRAPS ADEOS_NR_FAULTS 00090 00091 #define rt_reset_irq_to_sym_mode(irq) 00092 #define rt_assign_irq_to_cpu(irq, cpu) 00093 00094 #ifndef __cplusplus 00095 00096 #include <linux/irq.h> 00097 00098 extern inline int 00099 rt_request_cpu_own_irq(unsigned irq, rt_irq_handler_t handler) 00100 { 00101 return rt_request_irq(irq, handler, NULL, 0); 00102 } 00103 00104 extern inline int 00105 rt_free_cpu_own_irq(unsigned irq) 00106 { 00107 return rt_release_irq(irq); 00108 } 00109 00110 #endif /* !__cplusplus */ 00111 00112 #endif /* __KERNEL__ */ 00113 00114 #endif /* !__RTAI_HAL__ */ 00115 00116 #endif /* !_RTAI_ASM_ARM_OLDNAMES_H */

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