4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
8 * Copyright (C) 1995, 1996, 1997, 2003 by Ralf Baechle
10 #include <linux/kernel.h>
11 #include <linux/init.h>
12 #include <linux/irq.h>
13 #include <linux/interrupt.h>
14 #include <linux/pci.h>
16 #include <asm/i8259.h>
17 #include <asm/irq_cpu.h>
18 #include <asm/irq_gt641xx.h>
19 #include <asm/gt64120.h>
23 asmlinkage void plat_irq_dispatch(void)
25 unsigned pending = read_c0_status() & read_c0_cause() & ST0_IM;
28 if (pending & CAUSEF_IP2)
29 gt641xx_irq_dispatch();
30 else if (pending & CAUSEF_IP6) {
36 } else if (pending & CAUSEF_IP3)
37 do_IRQ(MIPS_CPU_IRQ_BASE + 3);
38 else if (pending & CAUSEF_IP4)
39 do_IRQ(MIPS_CPU_IRQ_BASE + 4);
40 else if (pending & CAUSEF_IP5)
41 do_IRQ(MIPS_CPU_IRQ_BASE + 5);
42 else if (pending & CAUSEF_IP7)
43 do_IRQ(MIPS_CPU_IRQ_BASE + 7);
48 void __init arch_init_irq(void)
54 if (request_irq(GT641XX_CASCADE_IRQ, no_action, IRQF_NO_THREAD,
56 pr_err("Failed to request irq %d (cascade)\n",
59 if (request_irq(I8259_CASCADE_IRQ, no_action, IRQF_NO_THREAD,
61 pr_err("Failed to request irq %d (cascade)\n",