2 * Copyright 2003 PMC-Sierra Inc.
3 * Author: Manish Lachwani (lachwani@pmc-sierra.com
5 * First-level interrupt router for the PMC-Sierra Titan board
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
13 #include <linux/config.h>
15 #include <asm/mipsregs.h>
16 #include <asm/addrspace.h>
17 #include <asm/regdef.h>
18 #include <asm/stackframe.h>
21 * IRQ router for the Titan board
25 NESTED(titan_handle_int, PT_SIZE, sp)
34 andi t1, t0, STATUSF_IP0 /* INTB0 hardware line */
35 bnez t1, ll_pcia_irq /* 64-bit PCI */
36 andi t1, t0, STATUSF_IP1 /* INTB1 hardware line */
37 bnez t1, ll_pcib_irq /* second 64-bit PCI slot */
38 andi t1, t0, STATUSF_IP2 /* INTB2 hardware line */
39 bnez t1, ll_duart_irq /* UART */
40 andi t1, t0, STATUSF_IP3 /* INTB3 hardware line*/
41 bnez t1, ll_ht_smp_irq /* Hypertransport */
42 andi t1, t0, STATUSF_IP5 /* INTB5 hardware line */
43 bnez t1, ll_timer_irq /* Timer */
48 /* Extended interrupts */
50 cfc0 t1, CP0_S1_INTCONTROL
58 andi t1, t0, STATUSF_IP6 /* INTB6 hardware line */
59 bnez t1, ll_phy0_irq /* Ethernet port 0 */
60 andi t1, t0, STATUSF_IP7 /* INTB7 hardware line */
61 bnez t1, ll_phy1_irq /* Ethernet port 1 */
62 andi t1, t0, STATUSF_IP8 /* INTB8 hardware line */
63 bnez t1, ll_phy2_irq /* Ethernet Port 2 */
77 /* Individual Handlers */
100 jal ll_ht_smp_irq_handler /* Detailed HT & SMP IRQ handling */