Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
irq.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2010 Gabor Juhos <[email protected]>
3  * Copyright (C) 2008 Imre Kaloz <[email protected]>
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 48
14 
15 #define ATH79_MISC_IRQ_BASE 8
16 #define ATH79_MISC_IRQ_COUNT 32
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_CPU_IRQ_IP2 (MIPS_CPU_IRQ_BASE + 2)
27 #define ATH79_CPU_IRQ_USB (MIPS_CPU_IRQ_BASE + 3)
28 #define ATH79_CPU_IRQ_GE0 (MIPS_CPU_IRQ_BASE + 4)
29 #define ATH79_CPU_IRQ_GE1 (MIPS_CPU_IRQ_BASE + 5)
30 #define ATH79_CPU_IRQ_MISC (MIPS_CPU_IRQ_BASE + 6)
31 #define ATH79_CPU_IRQ_TIMER (MIPS_CPU_IRQ_BASE + 7)
32 
33 #define ATH79_MISC_IRQ_TIMER (ATH79_MISC_IRQ_BASE + 0)
34 #define ATH79_MISC_IRQ_ERROR (ATH79_MISC_IRQ_BASE + 1)
35 #define ATH79_MISC_IRQ_GPIO (ATH79_MISC_IRQ_BASE + 2)
36 #define ATH79_MISC_IRQ_UART (ATH79_MISC_IRQ_BASE + 3)
37 #define ATH79_MISC_IRQ_WDOG (ATH79_MISC_IRQ_BASE + 4)
38 #define ATH79_MISC_IRQ_PERFC (ATH79_MISC_IRQ_BASE + 5)
39 #define ATH79_MISC_IRQ_OHCI (ATH79_MISC_IRQ_BASE + 6)
40 #define ATH79_MISC_IRQ_DMA (ATH79_MISC_IRQ_BASE + 7)
41 #define ATH79_MISC_IRQ_TIMER2 (ATH79_MISC_IRQ_BASE + 8)
42 #define ATH79_MISC_IRQ_TIMER3 (ATH79_MISC_IRQ_BASE + 9)
43 #define ATH79_MISC_IRQ_TIMER4 (ATH79_MISC_IRQ_BASE + 10)
44 #define ATH79_MISC_IRQ_ETHSW (ATH79_MISC_IRQ_BASE + 12)
45 
46 #include_next <irq.h>
47 
48 #endif /* __ASM_MACH_ATH79_IRQ_H */