162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 362306a36Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 462306a36Sopenharmony_ci * for more details. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Copyright (C) 2003 by Ralf Baechle 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci#ifndef __ASM_MACH_GENERIC_IRQ_H 962306a36Sopenharmony_ci#define __ASM_MACH_GENERIC_IRQ_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#ifndef NR_IRQS 1262306a36Sopenharmony_ci#define NR_IRQS 256 1362306a36Sopenharmony_ci#endif 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#ifdef CONFIG_I8259 1662306a36Sopenharmony_ci#ifndef I8259A_IRQ_BASE 1762306a36Sopenharmony_ci#define I8259A_IRQ_BASE 0 1862306a36Sopenharmony_ci#endif 1962306a36Sopenharmony_ci#endif 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#ifdef CONFIG_IRQ_MIPS_CPU 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#ifndef MIPS_CPU_IRQ_BASE 2462306a36Sopenharmony_ci#ifdef CONFIG_I8259 2562306a36Sopenharmony_ci#define MIPS_CPU_IRQ_BASE 16 2662306a36Sopenharmony_ci#else 2762306a36Sopenharmony_ci#define MIPS_CPU_IRQ_BASE 0 2862306a36Sopenharmony_ci#endif /* CONFIG_I8259 */ 2962306a36Sopenharmony_ci#endif 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci#endif /* CONFIG_IRQ_MIPS_CPU */ 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#endif /* __ASM_MACH_GENERIC_IRQ_H */ 34