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>
15 #include <linux/linkage.h>
17 #define NR_IRQS 128 /* Largest number of ints of all machines. */
20 static inline int irq_cannonicalize(int irq)
22 return ((irq == 2) ? 9 : irq);
25 #define irq_cannonicalize(irq) (irq) /* Sane hardware, sane code ... */
28 extern void disable_irq(unsigned int);
29 extern void disable_irq_nosync(unsigned int);
30 extern void enable_irq(unsigned int);
33 extern asmlinkage unsigned int do_IRQ(int irq, struct pt_regs *regs);
35 /* Machine specific interrupt initialization */
36 extern void (*irq_setup)(void);
38 extern void init_generic_irq(void);
40 #endif /* _ASM_IRQ_H */