2 * VIA chipset irq handling
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) 1996, 1997 by Ralf Baechle
9 * Copyright (C) 2001, 2002, 2003 by Liam Davies (ldavies@agile.tv)
13 #include <linux/irq.h>
14 #include <linux/kernel.h>
16 #include <asm/ptrace.h>
18 #include <asm/gt64120/gt64120.h>
19 #include <asm/cobalt/cobalt.h>
21 asmlinkage void via_irq(struct pt_regs *regs)
25 /* Read Master Status */
33 outb(mstat | 0x20, 0x20);
42 do_IRQ((sstat + 8) & 0x7f, regs);
44 outb((sstat & 0x7f) | 0x20, 0xA0);
46 printk("Spurious slave interrupt...\n");
50 printk("Spurious master interrupt...");
53 asmlinkage void galileo_irq(struct pt_regs *regs)
55 unsigned long irq_src;
57 irq_src = GALILEO_INL(GT_INTRCAUSE_OFS);
59 /* Check for timer irq ... */
60 if (irq_src & GALILEO_T0EXP) {
61 /* Clear the int line */
62 GALILEO_OUTL(0, GT_INTRCAUSE_OFS);
63 do_IRQ(COBALT_TIMER_IRQ, regs);
65 printk("Spurious Galileo interrupt...\n");