1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * This file is subject to the terms and conditions of the GNU General Public 3*4882a593Smuzhiyun * License. See the file "COPYING" in the main directory of this archive 4*4882a593Smuzhiyun * for more details. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Copyright (C) 2008 Kevin D. Kissell 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun /* 10*4882a593Smuzhiyun * Definitions used for common event timer implementation 11*4882a593Smuzhiyun * for MIPS 4K-type processors and their MIPS MT variants. 12*4882a593Smuzhiyun * Avoids unsightly extern declarations in C files. 13*4882a593Smuzhiyun */ 14*4882a593Smuzhiyun #ifndef __ASM_CEVT_R4K_H 15*4882a593Smuzhiyun #define __ASM_CEVT_R4K_H 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #include <linux/clockchips.h> 18*4882a593Smuzhiyun #include <asm/time.h> 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun DECLARE_PER_CPU(struct clock_event_device, mips_clockevent_device); 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun void mips_event_handler(struct clock_event_device *dev); 23*4882a593Smuzhiyun int c0_compare_int_usable(void); 24*4882a593Smuzhiyun irqreturn_t c0_compare_interrupt(int, void *); 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun extern struct irqaction c0_compare_irqaction; 27*4882a593Smuzhiyun extern int cp0_timer_irq_installed; 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun #endif /* __ASM_CEVT_R4K_H */ 30