Linux-2.6.12-rc2
[linux-flexiantxendom0-natty.git] / arch / mips / mips-boards / sead / sead_int.c
1 /*
2  * Carsten Langgaard, carstenl@mips.com
3  * Copyright (C) 2002 MIPS Technologies, Inc.  All rights reserved.
4  * Copyright (C) 2003 Ralf Baechle (ralf@linux-mips.org)
5  *
6  *  This program is free software; you can distribute it and/or modify it
7  *  under the terms of the GNU General Public License (Version 2) as
8  *  published by the Free Software Foundation.
9  *
10  *  This program is distributed in the hope it will be useful, but WITHOUT
11  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  *  for more details.
14  *
15  *  You should have received a copy of the GNU General Public License along
16  *  with this program; if not, write to the Free Software Foundation, Inc.,
17  *  59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
18  *
19  * Routines for generic manipulation of the interrupts found on the MIPS
20  * Sead board.
21  */
22 #include <linux/init.h>
23 #include <linux/irq.h>
24 #include <linux/interrupt.h>
25
26 #include <asm/mips-boards/seadint.h>
27
28 extern asmlinkage void mipsIRQ(void);
29
30 asmlinkage void sead_hw0_irqdispatch(struct pt_regs *regs)
31 {
32         do_IRQ(SEADINT_UART0, regs);
33 }
34
35 asmlinkage void sead_hw1_irqdispatch(struct pt_regs *regs)
36 {
37         do_IRQ(SEADINT_UART1, regs);
38 }
39
40 void __init arch_init_irq(void)
41 {
42         /*
43          * Mask out all interrupt
44          */
45         clear_c0_status(0x0000ff00);
46
47         /* Now safe to set the exception vector. */
48         set_except_vector(0, mipsIRQ);
49
50         mips_cpu_irq_init(0);
51 }