xref: /openbmc/linux/arch/mips/include/asm/mach-generic/irq.h (revision 67e38cf2933e904426b428431961e4880d6d4b90)
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
12384740dcSRalf Baechle #define NR_IRQS 128
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 
21*67e38cf2SRalf 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 
31384740dcSRalf Baechle #ifdef CONFIG_IRQ_CPU_RM7K
32384740dcSRalf Baechle #ifndef RM7K_CPU_IRQ_BASE
33384740dcSRalf Baechle #define RM7K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+8)
34384740dcSRalf Baechle #endif
35384740dcSRalf Baechle #endif
36384740dcSRalf Baechle 
37*67e38cf2SRalf Baechle #endif /* CONFIG_IRQ_MIPS_CPU */
38384740dcSRalf Baechle 
398635233cSAndrew Bresticker #ifdef CONFIG_MIPS_GIC
408635233cSAndrew Bresticker #ifndef MIPS_GIC_IRQ_BASE
418635233cSAndrew Bresticker #define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
428635233cSAndrew Bresticker #endif
438635233cSAndrew Bresticker #endif /* CONFIG_MIPS_GIC */
448635233cSAndrew Bresticker 
45384740dcSRalf Baechle #endif /* __ASM_MACH_GENERIC_IRQ_H */
46