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