import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / mips / jazz / irq.c
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) 1992 Linus Torvalds
7  * Copyright (C) 1994 - 2001 Ralf Baechle
8  */
9 #include <linux/delay.h>
10 #include <linux/init.h>
11 #include <linux/interrupt.h>
12 #include <linux/kernel.h>
13 #include <linux/spinlock.h>
14
15 #include <asm/i8259.h>
16 #include <asm/io.h>
17 #include <asm/jazz.h>
18
19 extern asmlinkage void jazz_handle_int(void);
20
21 /*
22  * On systems with i8259-style interrupt controllers we assume for
23  * driver compatibility reasons interrupts 0 - 15 to be the i8259
24  * interrupts even if the hardware uses a different interrupt numbering.
25  */
26 void __init init_IRQ (void)
27 {
28         int i;
29
30         set_except_vector(0, jazz_handle_int);
31
32         init_generic_irq();
33         init_i8259_irqs();                      /* Integrated i8259  */
34 #if 0
35         init_jazz_irq();
36
37         /* Actually we've got more interrupts to handle ...  */
38         for (i = PCIMT_IRQ_INT2; i <= PCIMT_IRQ_ETHERNET; i++) {
39                 irq_desc[i].status     = IRQ_DISABLED;
40                 irq_desc[i].action     = 0;
41                 irq_desc[i].depth      = 1;
42                 irq_desc[i].handler    = &pciasic_irq_type;
43         }
44 #endif
45 }