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 19static 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 27struct irqaction; 28extern int i8259_setup_irq(int irq, struct irqaction * new); 29 30extern void disable_irq(unsigned int); 31extern void disable_irq_nosync(unsigned int); 32extern void enable_irq(unsigned int); 33 34/* Machine specific interrupt initialization */ 35extern void (*irq_setup)(void); 36 37extern void init_generic_irq(void); 38 39#endif /* _ASM_IRQ_H */ 40