1 /*
2  *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
3  *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
4  *
5  *  This program is free software; you can redistribute it and/or modify it
6  *  under the terms of the GNU General Public License version 2 as published
7  *  by the Free Software Foundation.
8  */
9 #ifndef __ASM_MACH_ATH79_IRQ_H
10 #define __ASM_MACH_ATH79_IRQ_H
11 
12 #define MIPS_CPU_IRQ_BASE	0
13 #define NR_IRQS			16
14 
15 #define ATH79_MISC_IRQ_BASE	8
16 #define ATH79_MISC_IRQ_COUNT	8
17 
18 #define ATH79_CPU_IRQ_IP2	(MIPS_CPU_IRQ_BASE + 2)
19 #define ATH79_CPU_IRQ_USB	(MIPS_CPU_IRQ_BASE + 3)
20 #define ATH79_CPU_IRQ_GE0	(MIPS_CPU_IRQ_BASE + 4)
21 #define ATH79_CPU_IRQ_GE1	(MIPS_CPU_IRQ_BASE + 5)
22 #define ATH79_CPU_IRQ_MISC	(MIPS_CPU_IRQ_BASE + 6)
23 #define ATH79_CPU_IRQ_TIMER	(MIPS_CPU_IRQ_BASE + 7)
24 
25 #define ATH79_MISC_IRQ_TIMER	(ATH79_MISC_IRQ_BASE + 0)
26 #define ATH79_MISC_IRQ_ERROR	(ATH79_MISC_IRQ_BASE + 1)
27 #define ATH79_MISC_IRQ_GPIO	(ATH79_MISC_IRQ_BASE + 2)
28 #define ATH79_MISC_IRQ_UART	(ATH79_MISC_IRQ_BASE + 3)
29 #define ATH79_MISC_IRQ_WDOG	(ATH79_MISC_IRQ_BASE + 4)
30 #define ATH79_MISC_IRQ_PERFC	(ATH79_MISC_IRQ_BASE + 5)
31 #define ATH79_MISC_IRQ_OHCI	(ATH79_MISC_IRQ_BASE + 6)
32 #define ATH79_MISC_IRQ_DMA	(ATH79_MISC_IRQ_BASE + 7)
33 
34 #include_next <irq.h>
35 
36 #endif /* __ASM_MACH_ATH79_IRQ_H */
37