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) 1992 Linus Torvalds
7 * Copyright (C) 1994 - 2000 Ralf Baechle
8 * Copyright (C) 2006 Thomas Bogendoerfer
10 #include <linux/delay.h>
11 #include <linux/init.h>
12 #include <linux/interrupt.h>
13 #include <linux/irq.h>
14 #include <linux/kernel.h>
16 #include <asm/i8259.h>
20 #include <asm/irq_cpu.h>
22 void (*sni_hwint)(void);
24 asmlinkage void plat_irq_dispatch(void)
30 static irqreturn_t sni_isa_irq_handler(int dummy, void *p)
35 if (unlikely(irq < 0))
42 struct irqaction sni_isa_irq = {
43 .handler = sni_isa_irq_handler,
49 * On systems with i8259-style interrupt controllers we assume for
50 * driver compatibility reasons interrupts 0 - 15 to be the i8295
51 * interrupts even if the hardware uses a different interrupt numbering.
53 void __init arch_init_irq(void)
55 init_i8259_irqs(); /* Integrated i8259 */
56 switch (sni_brd_type) {
59 case SNI_BRD_TOWER_OASIC:
60 case SNI_BRD_MINITOWER:
64 case SNI_BRD_PCI_TOWER:
68 case SNI_BRD_PCI_TOWER_CPLUS:
69 sni_pcit_cplus_irq_init();
76 case SNI_BRD_PCI_MTOWER:
77 case SNI_BRD_PCI_DESKTOP:
78 case SNI_BRD_PCI_MTOWER_CPLUS: