irq.h 708 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __ASM_ARM_IRQ_H
  2. #define __ASM_ARM_IRQ_H
  3. #define NR_IRQS_LEGACY 16
  4. #ifndef CONFIG_SPARSE_IRQ
  5. #include <mach/irqs.h>
  6. #else
  7. #define NR_IRQS NR_IRQS_LEGACY
  8. #endif
  9. #ifndef irq_canonicalize
  10. #define irq_canonicalize(i) (i)
  11. #endif
  12. /*
  13. * Use this value to indicate lack of interrupt
  14. * capability
  15. */
  16. #ifndef NO_IRQ
  17. #define NO_IRQ ((unsigned int)(-1))
  18. #endif
  19. #ifndef __ASSEMBLY__
  20. struct irqaction;
  21. struct pt_regs;
  22. extern void migrate_irqs(void);
  23. extern void asm_do_IRQ(unsigned int, struct pt_regs *);
  24. void handle_IRQ(unsigned int, struct pt_regs *);
  25. void init_IRQ(void);
  26. void arch_trigger_all_cpu_backtrace(void);
  27. #define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace
  28. #endif
  29. #endif