00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
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
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
00111
00112
#endif
00113
00114
#endif
00115
00116
#endif