irq.h 1000 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2008-2010 Gabor Juhos <[email protected]>
  4. * Copyright (C) 2008 Imre Kaloz <[email protected]>
  5. */
  6. #ifndef __ASM_MACH_ATH79_IRQ_H
  7. #define __ASM_MACH_ATH79_IRQ_H
  8. #define MIPS_CPU_IRQ_BASE 0
  9. #define NR_IRQS 51
  10. #define ATH79_CPU_IRQ(_x) (MIPS_CPU_IRQ_BASE + (_x))
  11. #define ATH79_MISC_IRQ_BASE 8
  12. #define ATH79_MISC_IRQ_COUNT 32
  13. #define ATH79_MISC_IRQ(_x) (ATH79_MISC_IRQ_BASE + (_x))
  14. #define ATH79_PCI_IRQ_BASE (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
  15. #define ATH79_PCI_IRQ_COUNT 6
  16. #define ATH79_PCI_IRQ(_x) (ATH79_PCI_IRQ_BASE + (_x))
  17. #define ATH79_IP2_IRQ_BASE (ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
  18. #define ATH79_IP2_IRQ_COUNT 2
  19. #define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x))
  20. #define ATH79_IP3_IRQ_BASE (ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
  21. #define ATH79_IP3_IRQ_COUNT 3
  22. #define ATH79_IP3_IRQ(_x) (ATH79_IP3_IRQ_BASE + (_x))
  23. #include <asm/mach-generic/irq.h>
  24. #endif /* __ASM_MACH_ATH79_IRQ_H */