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, 1999, 2000 by Ralf Baechle
8 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
9 */
10 #ifndef _ASM_IRQ_H
11 #define _ASM_IRQ_H
12
13 #include <linux/config.h>
14
15 #define NR_IRQS 256
16
17 #define TIMER_IRQ 0
18
19 #ifdef CONFIG_I8259
20 static inline int irq_cannonicalize(int irq)
21 {
22 return ((irq == 2) ? 9 : irq);
23 }
24 #else
25 #define irq_cannonicalize(irq) (irq) /* Sane hardware, sane code ... */
26 #endif
27
28
29 struct irqaction;
30 extern int i8259_setup_irq(int irq, struct irqaction * new);
31 extern void disable_irq(unsigned int);
32 extern void enable_irq(unsigned int);
33
34 /* Machine specific interrupt initialization */
35 extern void (*irq_setup)(void);
36
37 #endif /* _ASM_IRQ_H */
38
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.