make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / asm-mips / irq.h
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 by Ralf Baechle
8  * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
9  * Copyright (C) 2001 Kanoj Sarcar
10  */
11 #ifndef _ASM_IRQ_H
12 #define _ASM_IRQ_H
13
14 #include <linux/config.h>
15
16 #define NR_IRQS 128             /* Largest number of ints of all machines.  */
17
18 #ifdef CONFIG_I8259
19 static inline int irq_cannonicalize(int irq)
20 {
21         return ((irq == 2) ? 9 : irq);
22 }
23 #else
24 #define irq_cannonicalize(irq) (irq)    /* Sane hardware, sane code ... */
25 #endif
26
27 struct irqaction;
28 extern int i8259_setup_irq(int irq, struct irqaction * new);
29 extern void disable_irq(unsigned int);
30
31 #ifdef CONFIG_NEW_IRQ
32 extern void disable_irq_nosync(unsigned int);
33 #else
34 #define disable_irq_nosync      disable_irq
35 #endif
36
37 extern void enable_irq(unsigned int);
38
39 /* Machine specific interrupt initialization  */
40 extern void (*irq_setup)(void);
41
42 extern void init_generic_irq(void);
43
44 #endif /* _ASM_IRQ_H */