Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
0004  *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
0005  */
0006 #ifndef __ASM_MACH_ATH79_IRQ_H
0007 #define __ASM_MACH_ATH79_IRQ_H
0008 
0009 #define MIPS_CPU_IRQ_BASE   0
0010 #define NR_IRQS         51
0011 
0012 #define ATH79_CPU_IRQ(_x)   (MIPS_CPU_IRQ_BASE + (_x))
0013 
0014 #define ATH79_MISC_IRQ_BASE 8
0015 #define ATH79_MISC_IRQ_COUNT    32
0016 #define ATH79_MISC_IRQ(_x)  (ATH79_MISC_IRQ_BASE + (_x))
0017 
0018 #define ATH79_PCI_IRQ_BASE  (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
0019 #define ATH79_PCI_IRQ_COUNT 6
0020 #define ATH79_PCI_IRQ(_x)   (ATH79_PCI_IRQ_BASE + (_x))
0021 
0022 #define ATH79_IP2_IRQ_BASE  (ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
0023 #define ATH79_IP2_IRQ_COUNT 2
0024 #define ATH79_IP2_IRQ(_x)   (ATH79_IP2_IRQ_BASE + (_x))
0025 
0026 #define ATH79_IP3_IRQ_BASE  (ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
0027 #define ATH79_IP3_IRQ_COUNT     3
0028 #define ATH79_IP3_IRQ(_x)       (ATH79_IP3_IRQ_BASE + (_x))
0029 
0030 #include <asm/mach-generic/irq.h>
0031 
0032 #endif /* __ASM_MACH_ATH79_IRQ_H */