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 by Ralf Baechle
8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
9 * Copyright (C) 2001 Kanoj Sarcar
14 #include <linux/config.h>
16 #define NR_IRQS 128 /* Largest number of ints of all machines. */
19 static inline int irq_cannonicalize(int irq)
21 return ((irq == 2) ? 9 : irq);
24 #define irq_cannonicalize(irq) (irq) /* Sane hardware, sane code ... */
28 extern int i8259_setup_irq(int irq, struct irqaction * new);
29 extern void disable_irq(unsigned int);
32 extern void disable_irq_nosync(unsigned int);
34 #define disable_irq_nosync disable_irq
37 extern void enable_irq(unsigned int);
39 /* Machine specific interrupt initialization */
40 extern void (*irq_setup)(void);
42 extern void init_generic_irq(void);
44 #endif /* _ASM_IRQ_H */