2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 by Ralf Baechle
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_MACH_GENERIC_IRQ_H
|
|
|
|
#define __ASM_MACH_GENERIC_IRQ_H
|
|
|
|
|
2007-01-08 00:14:29 +07:00
|
|
|
#ifndef NR_IRQS
|
2013-01-22 18:59:30 +07:00
|
|
|
#define NR_IRQS 128
|
2007-01-08 00:14:29 +07:00
|
|
|
#endif
|
|
|
|
|
2007-01-14 21:41:42 +07:00
|
|
|
#ifdef CONFIG_I8259
|
|
|
|
#ifndef I8259A_IRQ_BASE
|
2013-01-22 18:59:30 +07:00
|
|
|
#define I8259A_IRQ_BASE 0
|
2007-01-14 21:41:42 +07:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2015-05-26 23:20:06 +07:00
|
|
|
#ifdef CONFIG_IRQ_MIPS_CPU
|
2007-01-08 00:14:29 +07:00
|
|
|
|
|
|
|
#ifndef MIPS_CPU_IRQ_BASE
|
|
|
|
#ifdef CONFIG_I8259
|
|
|
|
#define MIPS_CPU_IRQ_BASE 16
|
|
|
|
#else
|
|
|
|
#define MIPS_CPU_IRQ_BASE 0
|
|
|
|
#endif /* CONFIG_I8259 */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_IRQ_CPU_RM7K
|
|
|
|
#ifndef RM7K_CPU_IRQ_BASE
|
|
|
|
#define RM7K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+8)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2015-05-26 23:20:06 +07:00
|
|
|
#endif /* CONFIG_IRQ_MIPS_CPU */
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2014-09-19 04:47:18 +07:00
|
|
|
#ifdef CONFIG_MIPS_GIC
|
|
|
|
#ifndef MIPS_GIC_IRQ_BASE
|
|
|
|
#define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
|
|
|
|
#endif
|
|
|
|
#endif /* CONFIG_MIPS_GIC */
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#endif /* __ASM_MACH_GENERIC_IRQ_H */
|