blob: 91e6778907fe3dd70b4c7bcb78d92131d9af6b8f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2003 by Ralf Baechle
7 */
8#ifndef __ASM_MACH_GENERIC_IRQ_H
9#define __ASM_MACH_GENERIC_IRQ_H
10
Atsushi Nemoto97dcb822007-01-08 02:14:29 +090011#ifndef NR_IRQS
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#define NR_IRQS 128
Atsushi Nemoto97dcb822007-01-08 02:14:29 +090013#endif
14
15#ifdef CONFIG_IRQ_CPU
16
17#ifndef MIPS_CPU_IRQ_BASE
18#ifdef CONFIG_I8259
19#define MIPS_CPU_IRQ_BASE 16
20#else
21#define MIPS_CPU_IRQ_BASE 0
22#endif /* CONFIG_I8259 */
23#endif
24
25#ifdef CONFIG_IRQ_CPU_RM7K
26#ifndef RM7K_CPU_IRQ_BASE
27#define RM7K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+8)
28#endif
29#endif
30
31#ifdef CONFIG_IRQ_CPU_RM9K
32#ifndef RM9K_CPU_IRQ_BASE
33#define RM9K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+12)
34#endif
35#endif
36
37#endif /* CONFIG_IRQ_CPU */
Linus Torvalds1da177e2005-04-16 15:20:36 -070038
39#endif /* __ASM_MACH_GENERIC_IRQ_H */