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
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
12 #include <linux/linkage.h>
13 #include <linux/smp.h>
14 #include <linux/irqdomain.h>
16 #include <asm/mipsmtregs.h>
21 static inline int irq_canonicalize(int irq
)
23 return ((irq
== I8259A_IRQ_BASE
+ 2) ? I8259A_IRQ_BASE
+ 9 : irq
);
26 #define irq_canonicalize(irq) (irq) /* Sane hardware, sane code ... */
29 asmlinkage
void plat_irq_dispatch(void);
31 extern void do_IRQ(unsigned int irq
);
33 extern void arch_init_irq(void);
34 extern void spurious_interrupt(void);
36 extern int allocate_irqno(void);
37 extern void alloc_legacy_irqno(void);
38 extern void free_irqno(unsigned int irq
);
41 * Before R2 the timer and performance counter interrupts were both fixed to
42 * IE7. Since R2 their number has to be read from the c0_intctl register.
44 #define CP0_LEGACY_COMPARE_IRQ 7
45 #define CP0_LEGACY_PERFCNT_IRQ 7
47 extern int cp0_compare_irq
;
48 extern int cp0_compare_irq_shift
;
49 extern int cp0_perfcount_irq
;
50 extern int cp0_fdc_irq
;
52 extern int get_c0_fdc_int(void);
54 void arch_trigger_all_cpu_backtrace(bool);
55 #define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace
57 #endif /* _ASM_IRQ_H */