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                     hal_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 FREQ_APIC               RTAI_TIMER_FREQ
00073 #define LATENCY_APIC            RTAI_TIMER_LATENCY
00074 #define SETUP_TIME_APIC         RTAI_TIMER_SETUP_TIME       
00075 #define RTAI_FREQ_APIC          RTAI_TIMER_FREQ
00076 
00077 #define CALIBRATED_APIC_FREQ        RTAI_CALIBRATED_APIC_FREQ
00078 #define CALIBRATED_CPU_FREQ         RTAI_CALIBRATED_CPU_FREQ
00079 
00080 #ifdef __KERNEL__
00081 
00082 #undef  rdtsc
00083 #define rdtsc()                 rtai_rdtsc()
00084 #define rd_CPU_ts()             rtai_rdtsc()
00085 
00086 #define rt_set_rtai_trap_handler    rt_set_trap_handler
00087 #define rt_mount_rtai           rt_mount
00088 #define rt_umount_rtai          rt_umount
00089 #define calibrate_8254          rtai_calibrate_TC
00090 
00091 #define ulldiv(a,b,c)           rtai_ulldiv(a,b,c)
00092 #define imuldiv(a,b,c)          rtai_imuldiv(a,b,c)
00093 #define llimd(a,b,c)            rtai_llimd(a,b,c)
00094 
00095 #define rt_reset_irq_to_sym_mode(irq)
00096 #define rt_assign_irq_to_cpu(irq, cpu)
00097 
00098 #ifndef __cplusplus
00099 
00100 #include <linux/irq.h>
00101 
00102 extern inline int
00103 rt_request_cpu_own_irq(unsigned irq, rt_irq_handler_t handler)
00104 {
00105     return rt_request_irq(irq, handler, NULL, 0);
00106 }
00107 
00108 extern inline int
00109 rt_free_cpu_own_irq(unsigned irq)
00110 {
00111     return rt_release_irq(irq);
00112 }
00113 
00114 #endif /* !__cplusplus */
00115 
00116 #endif /* __KERNEL__ */
00117 
00118 #endif /* !__RTAI_HAL__ */
00119 
00120 #endif /* !_RTAI_ASM_ARM_OLDNAMES_H */

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