diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 15:20:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 15:20:36 -0700 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/mips/pmc-sierra/yosemite/irq-handler.S | |
download | op-kernel-dev-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.zip op-kernel-dev-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.tar.gz |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/mips/pmc-sierra/yosemite/irq-handler.S')
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/irq-handler.S | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/arch/mips/pmc-sierra/yosemite/irq-handler.S b/arch/mips/pmc-sierra/yosemite/irq-handler.S new file mode 100644 index 0000000..33b9c40 --- /dev/null +++ b/arch/mips/pmc-sierra/yosemite/irq-handler.S @@ -0,0 +1,93 @@ +/* + * Copyright 2003, 04 PMC-Sierra Inc. + * Author: Manish Lachwani (lachwani@pmc-sierra.com + * Copyright 2004 Ralf Baechle (ralf@linux-mips.org) + * + * First-level interrupt router for the PMC-Sierra Titan board + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * Titan supports Hypertransport or PCI but not both. Hence, one interrupt + * line is shared between the PCI slot A and Hypertransport. This is the + * Processor INTB #0. + */ + +#include <linux/config.h> +#include <asm/asm.h> +#include <asm/mipsregs.h> +#include <asm/addrspace.h> +#include <asm/regdef.h> +#include <asm/stackframe.h> + + .align 5 + NESTED(titan_handle_int, PT_SIZE, sp) + SAVE_ALL + CLI + .set at + .set noreorder + la ra, ret_from_irq + mfc0 t0, CP0_CAUSE + mfc0 t2, CP0_STATUS + + and t0, t2 + + andi t2, t0, STATUSF_IP7 /* INTB5 hardware line */ + bnez t2, ll_timer_irq /* Timer */ + andi t1, t0, STATUSF_IP2 /* INTB0 hardware line */ + bnez t1, ll_pcia_irq /* 64-bit PCI */ + andi t2, t0, STATUSF_IP3 /* INTB1 hardware line */ + bnez t2, ll_pcib_irq /* second 64-bit PCI slot */ + andi t1, t0, STATUSF_IP4 /* INTB2 hardware line */ + bnez t1, ll_duart_irq /* UART */ + andi t2, t0, STATUSF_IP5 /* SMP inter-core interrupts */ + bnez t2, ll_smp_irq + andi t1, t0, STATUSF_IP6 + bnez t1, ll_ht_irq /* Hypertransport */ + + move a0, sp + j do_extended_irq + END(titan_handle_int) + + .set reorder + .align 5 + +ll_pcia_irq: + li a0, 2 + move a1, sp +#ifdef CONFIG_HYPERTRANSPORT + j ll_ht_smp_irq_handler +#else + j do_IRQ +#endif + +ll_pcib_irq: + li a0, 3 + move a1, sp + j do_IRQ + +ll_duart_irq: + li a0, 4 + move a1, sp + j do_IRQ + +ll_smp_irq: + li a0, 5 + move a1, sp +#ifdef CONFIG_SMP + j titan_mailbox_irq +#else + j do_IRQ +#endif + +ll_ht_irq: + li a0, 6 + move a1, sp + j ll_ht_smp_irq_handler + +ll_timer_irq: + li a0, 7 + move a1, sp + j do_IRQ |