xref: /linux/arch/mips/include/asm/mach-generic/irq.h (revision 0ea33321)
1384740dcSRalf Baechle /*
2384740dcSRalf Baechle  * This file is subject to the terms and conditions of the GNU General Public
3384740dcSRalf Baechle  * License.  See the file "COPYING" in the main directory of this archive
4384740dcSRalf Baechle  * for more details.
5384740dcSRalf Baechle  *
6384740dcSRalf Baechle  * Copyright (C) 2003 by Ralf Baechle
7384740dcSRalf Baechle  */
8384740dcSRalf Baechle #ifndef __ASM_MACH_GENERIC_IRQ_H
9384740dcSRalf Baechle #define __ASM_MACH_GENERIC_IRQ_H
10384740dcSRalf Baechle 
11384740dcSRalf Baechle #ifndef NR_IRQS
12*02bd530fSPaul Cercueil #define NR_IRQS 256
13384740dcSRalf Baechle #endif
14384740dcSRalf Baechle 
15384740dcSRalf Baechle #ifdef CONFIG_I8259
16384740dcSRalf Baechle #ifndef I8259A_IRQ_BASE
17384740dcSRalf Baechle #define I8259A_IRQ_BASE 0
18384740dcSRalf Baechle #endif
19384740dcSRalf Baechle #endif
20384740dcSRalf Baechle 
2167e38cf2SRalf Baechle #ifdef CONFIG_IRQ_MIPS_CPU
22384740dcSRalf Baechle 
23384740dcSRalf Baechle #ifndef MIPS_CPU_IRQ_BASE
24384740dcSRalf Baechle #ifdef CONFIG_I8259
25384740dcSRalf Baechle #define MIPS_CPU_IRQ_BASE 16
26384740dcSRalf Baechle #else
27384740dcSRalf Baechle #define MIPS_CPU_IRQ_BASE 0
28384740dcSRalf Baechle #endif /* CONFIG_I8259 */
29384740dcSRalf Baechle #endif
30384740dcSRalf Baechle 
3167e38cf2SRalf Baechle #endif /* CONFIG_IRQ_MIPS_CPU */
32384740dcSRalf Baechle 
33384740dcSRalf Baechle #endif /* __ASM_MACH_GENERIC_IRQ_H */
34