On Fri, Jun 15, 2012 at 04:09:53PM +0800, Huacai Chen wrote: > IRQ routing path of Loongson-3: > Devices(most) --> I8259 --> HT Controller --> IRQ Routing Table --> CPU > ^ > | > Device(legacy devices such as UART) --> Bonito ---| > > IRQ Routing Table route 32 INTs to CPU's INT0~INT3(IP2~IP5 of CP0), 32 > INTs include 16 HT INTs(mostly), 4 PCI INTs, 1 LPC INT, etc. IP6 is used > for IPI and IP7 is used for internal MIPS timer. LOONGSON_INT_ROUTER_* > are IRQ Routing Table registers. > > I8259 IRQs are 1:1 mapped to HT1 INTs. LOONGSON_HT1_* are configuration > registers of HT1 controller. > > Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx> > Signed-off-by: Hongliang Tao <taohl@xxxxxxxxxx> > Signed-off-by: Hua Yan <yanh@xxxxxxxxxx> > --- > arch/mips/include/asm/mach-loongson/irq.h | 26 +++++++ > arch/mips/include/asm/mach-loongson/loongson.h | 9 +++ > arch/mips/loongson/Makefile | 6 ++ > arch/mips/loongson/loongson-3/Makefile | 4 + > arch/mips/loongson/loongson-3/irq.c | 87 ++++++++++++++++++++++++ > 5 files changed, 132 insertions(+), 0 deletions(-) > create mode 100644 arch/mips/include/asm/mach-loongson/irq.h > create mode 100644 arch/mips/loongson/loongson-3/Makefile > create mode 100644 arch/mips/loongson/loongson-3/irq.c Fix the following compiling warning please: CC drivers/input/serio/i8042.o In file included from drivers/input/serio/i8042.h:32, from drivers/input/serio/i8042.c:91: drivers/input/serio/i8042-io.h:36:1: warning: "I8042_KBD_IRQ" redefined In file included from /home/liuqi/workspace/linux.git/arch/mips/include/asm/irq.h:18, from include/linux/irq.h:27, from include/asm-generic/hardirq.h:12, from /home/liuqi/workspace/linux.git/arch/mips/include/asm/hardirq.h:16, from include/linux/hardirq.h:7, from include/linux/interrupt.h:12, from drivers/input/serio/i8042.c:18: /home/liuqi/workspace/linux.git/arch/mips/include/asm/mach-loongson/irq.h:9:1: warning: this is the location of the previous definition LIU Qi