2 * Copyright 2003, 04 PMC-Sierra Inc.
3 * Author: Manish Lachwani (lachwani@pmc-sierra.com
4 * Copyright 2004 Ralf Baechle (ralf@linux-mips.org)
6 * First-level interrupt router for the PMC-Sierra Titan board
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
13 * Titan supports Hypertransport or PCI but not both. Hence, one interrupt
14 * line is shared between the PCI slot A and Hypertransport. This is the
18 #include <linux/config.h>
20 #include <asm/mipsregs.h>
21 #include <asm/addrspace.h>
22 #include <asm/regdef.h>
23 #include <asm/stackframe.h>
26 NESTED(titan_handle_int, PT_SIZE, sp)
37 andi t1, t0, STATUSF_IP2 /* INTB0 hardware line */
38 bnez t1, ll_pcia_irq /* 64-bit PCI */
39 andi t1, t0, STATUSF_IP3 /* INTB1 hardware line */
40 bnez t1, ll_pcib_irq /* second 64-bit PCI slot */
41 andi t1, t0, STATUSF_IP4 /* INTB2 hardware line */
42 bnez t1, ll_duart_irq /* UART */
43 andi t1, t0, STATUSF_IP5 /* SMP inter-core interrupts */
45 andi t1, t0, STATUSF_IP6
46 bnez t1, ll_ht_irq /* Hypertransport */
47 andi t1, t0, STATUSF_IP7 /* INTB5 hardware line */
48 bnez t1, ll_timer_irq /* Timer */
53 /* Extended interrupts */
55 cfc0 t1, CP0_S1_INTCONTROL
73 #ifdef CONFIG_HYPERTRANSPORT
74 j ll_ht_smp_irq_handler
101 j ll_ht_smp_irq_handler