irq.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef __ASM_ARM_IRQ_H
  2. #define __ASM_ARM_IRQ_H
  3. #include <asm/arch/irqs.h>
  4. #ifndef irq_canonicalize
  5. #define irq_canonicalize(i) (i)
  6. #endif
  7. #ifndef NR_IRQS
  8. #define NR_IRQS 128
  9. #endif
  10. /*
  11. * Use this value to indicate lack of interrupt
  12. * capability
  13. */
  14. #ifndef NO_IRQ
  15. #define NO_IRQ ((unsigned int)(-1))
  16. #endif
  17. struct irqaction;
  18. extern void disable_irq_nosync(unsigned int);
  19. extern void disable_irq(unsigned int);
  20. extern void enable_irq(unsigned int);
  21. /*
  22. * These correspond with the SA_TRIGGER_* defines, and therefore the
  23. * IRQRESOURCE_IRQ_* defines.
  24. */
  25. #define __IRQT_RISEDGE (1 << 0)
  26. #define __IRQT_FALEDGE (1 << 1)
  27. #define __IRQT_HIGHLVL (1 << 2)
  28. #define __IRQT_LOWLVL (1 << 3)
  29. #define IRQT_NOEDGE (0)
  30. #define IRQT_RISING (__IRQT_RISEDGE)
  31. #define IRQT_FALLING (__IRQT_FALEDGE)
  32. #define IRQT_BOTHEDGE (__IRQT_RISEDGE|__IRQT_FALEDGE)
  33. #define IRQT_LOW (__IRQT_LOWLVL)
  34. #define IRQT_HIGH (__IRQT_HIGHLVL)
  35. #define IRQT_PROBE (1 << 4)
  36. int set_irq_type(unsigned int irq, unsigned int type);
  37. void disable_irq_wake(unsigned int irq);
  38. void enable_irq_wake(unsigned int irq);
  39. int setup_irq(unsigned int, struct irqaction *);
  40. struct irqaction;
  41. struct pt_regs;
  42. int handle_IRQ_event(unsigned int, struct pt_regs *, struct irqaction *);
  43. extern void migrate_irqs(void);
  44. #endif