xref: /linux/arch/mips/include/asm/mach-ath79/irq.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
4  *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
5  */
6 #ifndef __ASM_MACH_ATH79_IRQ_H
7 #define __ASM_MACH_ATH79_IRQ_H
8 
9 #define MIPS_CPU_IRQ_BASE	0
10 #define NR_IRQS			51
11 
12 #define ATH79_CPU_IRQ(_x)	(MIPS_CPU_IRQ_BASE + (_x))
13 
14 #define ATH79_MISC_IRQ_BASE	8
15 #define ATH79_MISC_IRQ_COUNT	32
16 #define ATH79_MISC_IRQ(_x)	(ATH79_MISC_IRQ_BASE + (_x))
17 
18 #define ATH79_PCI_IRQ_BASE	(ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
19 #define ATH79_PCI_IRQ_COUNT	6
20 #define ATH79_PCI_IRQ(_x)	(ATH79_PCI_IRQ_BASE + (_x))
21 
22 #define ATH79_IP2_IRQ_BASE	(ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
23 #define ATH79_IP2_IRQ_COUNT	2
24 #define ATH79_IP2_IRQ(_x)	(ATH79_IP2_IRQ_BASE + (_x))
25 
26 #define ATH79_IP3_IRQ_BASE	(ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
27 #define ATH79_IP3_IRQ_COUNT     3
28 #define ATH79_IP3_IRQ(_x)       (ATH79_IP3_IRQ_BASE + (_x))
29 
30 #include <asm/mach-generic/irq.h>
31 
32 #endif /* __ASM_MACH_ATH79_IRQ_H */
33