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 irqreturn_t
sni_isa_irq_handler(int dummy
, void *p
)
35 if (unlikely(irq
< 0))
38 generic_handle_irq(irq
);
43 * On systems with i8259-style interrupt controllers we assume for
44 * driver compatibility reasons interrupts 0 - 15 to be the i8295
45 * interrupts even if the hardware uses a different interrupt numbering.
47 void __init
arch_init_irq(void)
49 init_i8259_irqs(); /* Integrated i8259 */
50 switch (sni_brd_type
) {
53 case SNI_BRD_TOWER_OASIC
:
54 case SNI_BRD_MINITOWER
:
58 case SNI_BRD_PCI_TOWER
:
62 case SNI_BRD_PCI_TOWER_CPLUS
:
63 sni_pcit_cplus_irq_init();
70 case SNI_BRD_PCI_MTOWER
:
71 case SNI_BRD_PCI_DESKTOP
:
72 case SNI_BRD_PCI_MTOWER_CPLUS
: