]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/mips/include/asm/irq.h
MIPS: Remove "weak" from get_c0_compare_int() declaration
[mirror_ubuntu-artful-kernel.git] / arch / mips / include / asm / irq.h
CommitLineData
1da177e4
LT
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) 1994 by Waldorf GMBH, written by Ralf Baechle
7 * Copyright (C) 1995, 96, 97, 98, 99, 2000, 01, 02, 03 by Ralf Baechle
8 */
9#ifndef _ASM_IRQ_H
10#define _ASM_IRQ_H
11
1da177e4 12#include <linux/linkage.h>
631330f5 13#include <linux/smp.h>
abd2363f 14#include <linux/irqdomain.h>
41c594ab
RB
15
16#include <asm/mipsmtregs.h>
17
1da177e4
LT
18#include <irq.h>
19
20#ifdef CONFIG_I8259
21static inline int irq_canonicalize(int irq)
22{
2fa7937b 23 return ((irq == I8259A_IRQ_BASE + 2) ? I8259A_IRQ_BASE + 9 : irq);
1da177e4
LT
24}
25#else
26#define irq_canonicalize(irq) (irq) /* Sane hardware, sane code ... */
27#endif
28
950e97ca
SR
29asmlinkage void plat_irq_dispatch(void);
30
8f99a162 31extern void do_IRQ(unsigned int irq);
1da177e4 32
1da177e4 33extern void arch_init_irq(void);
937a8015 34extern void spurious_interrupt(void);
1da177e4 35
4a4cf779
RB
36extern int allocate_irqno(void);
37extern void alloc_legacy_irqno(void);
38extern void free_irqno(unsigned int irq);
39
3b1d4ed5
RB
40/*
41 * Before R2 the timer and performance counter interrupts were both fixed to
70342287 42 * IE7. Since R2 their number has to be read from the c0_intctl register.
3b1d4ed5
RB
43 */
44#define CP0_LEGACY_COMPARE_IRQ 7
c6a4ebb9 45#define CP0_LEGACY_PERFCNT_IRQ 7
3b1d4ed5
RB
46
47extern int cp0_compare_irq;
010c108d 48extern int cp0_compare_irq_shift;
3b1d4ed5 49extern int cp0_perfcount_irq;
8f7ff027
JH
50extern int cp0_fdc_irq;
51
52extern int __weak get_c0_fdc_int(void);
3b1d4ed5 53
856839b7
ES
54void arch_trigger_all_cpu_backtrace(bool);
55#define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace
56
1da177e4 57#endif /* _ASM_IRQ_H */