irq.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
  3. * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License version 2 as published
  7. * by the Free Software Foundation.
  8. */
  9. #ifndef __ASM_MACH_ATH79_IRQ_H
  10. #define __ASM_MACH_ATH79_IRQ_H
  11. #define MIPS_CPU_IRQ_BASE 0
  12. #define NR_IRQS 51
  13. #define ATH79_CPU_IRQ(_x) (MIPS_CPU_IRQ_BASE + (_x))
  14. #define ATH79_MISC_IRQ_BASE 8
  15. #define ATH79_MISC_IRQ_COUNT 32
  16. #define ATH79_MISC_IRQ(_x) (ATH79_MISC_IRQ_BASE + (_x))
  17. #define ATH79_PCI_IRQ_BASE (ATH79_MISC_IRQ_BASE + ATH79_MISC_IRQ_COUNT)
  18. #define ATH79_PCI_IRQ_COUNT 6
  19. #define ATH79_PCI_IRQ(_x) (ATH79_PCI_IRQ_BASE + (_x))
  20. #define ATH79_IP2_IRQ_BASE (ATH79_PCI_IRQ_BASE + ATH79_PCI_IRQ_COUNT)
  21. #define ATH79_IP2_IRQ_COUNT 2
  22. #define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x))
  23. #define ATH79_IP3_IRQ_BASE (ATH79_IP2_IRQ_BASE + ATH79_IP2_IRQ_COUNT)
  24. #define ATH79_IP3_IRQ_COUNT 3
  25. #define ATH79_IP3_IRQ(_x) (ATH79_IP3_IRQ_BASE + (_x))
  26. #include_next <irq.h>
  27. #endif /* __ASM_MACH_ATH79_IRQ_H */