Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 2008 Kevin D. Kissell
0007  */
0008 
0009 /*
0010  * Definitions used for common event timer implementation
0011  * for MIPS 4K-type processors and their MIPS MT variants.
0012  * Avoids unsightly extern declarations in C files.
0013  */
0014 #ifndef __ASM_CEVT_R4K_H
0015 #define __ASM_CEVT_R4K_H
0016 
0017 #include <linux/clockchips.h>
0018 #include <asm/time.h>
0019 
0020 DECLARE_PER_CPU(struct clock_event_device, mips_clockevent_device);
0021 
0022 void mips_event_handler(struct clock_event_device *dev);
0023 int c0_compare_int_usable(void);
0024 irqreturn_t c0_compare_interrupt(int, void *);
0025 
0026 extern struct irqaction c0_compare_irqaction;
0027 extern int cp0_timer_irq_installed;
0028 
0029 #endif /* __ASM_CEVT_R4K_H */