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