00001 /* 00002 asm-arm/arch-clps711x/arch.h - ARM/CLPS711x specific stuff comes here 00003 00004 Don't include directly - it's included through asm-arm/rtai.h 00005 00006 Copyright (c) 2002, Alex Züpke, SYSGO RTS GmbH (azu@sysgo.de) 00007 Copyright (c) 2002, Thomas Gleixner, autronix automation (gleixner@autronix.de) 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Lesser General Public 00011 License as published by the Free Software Foundation; either 00012 version 2 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00022 */ 00023 /* 00024 ------------------------------------------------------------------- 00025 Acknowledgements 00026 - Paolo Mantegazza (mantegazza@aero.polimi.it) 00027 creator of RTAI 00028 */ 00029 00030 #ifndef _ASM_ARCH_RTAI_ARCH_H_ 00031 #define _ASM_ARCH_RTAI_ARCH_H_ 00032 00033 #define FREQ_SYS_CLK 512000 00034 #define LATENCY_MATCH_REG 2500 00035 #define SETUP_TIME_MATCH_REG 500 00036 00037 #define TIMER_8254_IRQ 9 00038 00039 #define arch_mount_rtai() \ 00040 { \ 00041 extern unsigned long rtai_lasttsc; \ 00042 extern union rtai_tsc rtai_tsc; \ 00043 /* setup our tsc compare register */ \ 00044 rtai_tsc.tsc = 0LL; \ 00045 rtai_lasttsc = ( unsigned long) (clps_readl(TC1D) & 0xffff); \ 00046 } 00047 00048 #define arch_umount_rtai() // nothing to do for umount 00049 00050 #define ARCH_EXPORTS EXPORT_SYMBOL(rtai_lasttsc); \ 00051 EXPORT_SYMBOL(rtai_TC2latch); 00052 00053 #endif