irq.h 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  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. #ifndef NR_IRQS
  11. #define NR_IRQS 128
  12. #endif
  13. #ifdef CONFIG_I8259
  14. #ifndef I8259A_IRQ_BASE
  15. #define I8259A_IRQ_BASE 0
  16. #endif
  17. #endif
  18. #ifdef CONFIG_IRQ_MIPS_CPU
  19. #ifndef MIPS_CPU_IRQ_BASE
  20. #ifdef CONFIG_I8259
  21. #define MIPS_CPU_IRQ_BASE 16
  22. #else
  23. #define MIPS_CPU_IRQ_BASE 0
  24. #endif /* CONFIG_I8259 */
  25. #endif
  26. #ifdef CONFIG_IRQ_CPU_RM7K
  27. #ifndef RM7K_CPU_IRQ_BASE
  28. #define RM7K_CPU_IRQ_BASE (MIPS_CPU_IRQ_BASE+8)
  29. #endif
  30. #endif
  31. #endif /* CONFIG_IRQ_MIPS_CPU */
  32. #ifdef CONFIG_MIPS_GIC
  33. #ifndef MIPS_GIC_IRQ_BASE
  34. #define MIPS_GIC_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
  35. #endif
  36. #endif /* CONFIG_MIPS_GIC */
  37. #endif /* __ASM_MACH_GENERIC_IRQ_H */