xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-generic/irq.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
3*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
4*4882a593Smuzhiyun  * for more details.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 2003 by Ralf Baechle
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun #ifndef __ASM_MACH_GENERIC_IRQ_H
9*4882a593Smuzhiyun #define __ASM_MACH_GENERIC_IRQ_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef NR_IRQS
12*4882a593Smuzhiyun #define NR_IRQS 256
13*4882a593Smuzhiyun #endif
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifdef CONFIG_I8259
16*4882a593Smuzhiyun #ifndef I8259A_IRQ_BASE
17*4882a593Smuzhiyun #define I8259A_IRQ_BASE 0
18*4882a593Smuzhiyun #endif
19*4882a593Smuzhiyun #endif
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #ifdef CONFIG_IRQ_MIPS_CPU
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #ifndef MIPS_CPU_IRQ_BASE
24*4882a593Smuzhiyun #ifdef CONFIG_I8259
25*4882a593Smuzhiyun #define MIPS_CPU_IRQ_BASE 16
26*4882a593Smuzhiyun #else
27*4882a593Smuzhiyun #define MIPS_CPU_IRQ_BASE 0
28*4882a593Smuzhiyun #endif /* CONFIG_I8259 */
29*4882a593Smuzhiyun #endif
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #ifdef CONFIG_IRQ_CPU_RM7K
32*4882a593Smuzhiyun #ifndef RM7K_CPU_IRQ_BASE
33*4882a593Smuzhiyun #define RM7K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+8)
34*4882a593Smuzhiyun #endif
35*4882a593Smuzhiyun #endif
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun #endif /* CONFIG_IRQ_MIPS_CPU */
38*4882a593Smuzhiyun 
39*4882a593Smuzhiyun #endif /* __ASM_MACH_GENERIC_IRQ_H */
40