| 
									
										
										
										
											2011-01-04 21:28:14 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  *  Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org> | 
					
						
							|  |  |  |  *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  This program is free software; you can redistribute it and/or modify it | 
					
						
							|  |  |  |  *  under the terms of the GNU General Public License version 2 as published | 
					
						
							|  |  |  |  *  by the Free Software Foundation. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | #ifndef __ASM_MACH_ATH79_IRQ_H
 | 
					
						
							|  |  |  | #define __ASM_MACH_ATH79_IRQ_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define MIPS_CPU_IRQ_BASE	0
 | 
					
						
							| 
									
										
										
										
											2013-02-15 18:53:47 +00:00
										 |  |  | #define NR_IRQS			51
 | 
					
						
							| 
									
										
										
										
											2011-01-04 21:28:14 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-07 19:32:23 +00:00
										 |  |  | #define ATH79_CPU_IRQ(_x)	(MIPS_CPU_IRQ_BASE + (_x))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-04 21:28:14 +01:00
										 |  |  | #define ATH79_MISC_IRQ_BASE	8
 | 
					
						
							| 
									
										
										
										
											2011-06-05 23:38:44 +02:00
										 |  |  | #define ATH79_MISC_IRQ_COUNT	32
 | 
					
						
							| 
									
										
										
										
											2013-01-29 16:13:17 +00:00
										 |  |  | #define ATH79_MISC_IRQ(_x)	(ATH79_MISC_IRQ_BASE + (_x))
 | 
					
						
							| 
									
										
										
										
											2011-01-04 21:28:14 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-14 10:36:06 +01:00
										 |  |  | #define ATH79_PCI_IRQ_BASE	(ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
 | 
					
						
							|  |  |  | #define ATH79_PCI_IRQ_COUNT	6
 | 
					
						
							|  |  |  | #define ATH79_PCI_IRQ(_x)	(ATH79_PCI_IRQ_BASE + (_x))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-14 10:45:25 +01:00
										 |  |  | #define ATH79_IP2_IRQ_BASE	(ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
 | 
					
						
							|  |  |  | #define ATH79_IP2_IRQ_COUNT	2
 | 
					
						
							|  |  |  | #define ATH79_IP2_IRQ(_x)	(ATH79_IP2_IRQ_BASE + (_x))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-15 18:53:47 +00:00
										 |  |  | #define ATH79_IP3_IRQ_BASE	(ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
 | 
					
						
							|  |  |  | #define ATH79_IP3_IRQ_COUNT     3
 | 
					
						
							|  |  |  | #define ATH79_IP3_IRQ(_x)       (ATH79_IP3_IRQ_BASE + (_x))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-04 21:28:14 +01:00
										 |  |  | #include_next <irq.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* __ASM_MACH_ATH79_IRQ_H */
 |