irq.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Common Blackfin IRQ definitions (i.e. the CEC)
  3. *
  4. * Copyright 2005-2011 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later
  7. */
  8. #ifndef _MACH_COMMON_IRQ_H_
  9. #define _MACH_COMMON_IRQ_H_
  10. /*
  11. * Core events interrupt source definitions
  12. *
  13. * Event Source Event Name
  14. * Emulation EMU 0 (highest priority)
  15. * Reset RST 1
  16. * NMI NMI 2
  17. * Exception EVX 3
  18. * Reserved -- 4
  19. * Hardware Error IVHW 5
  20. * Core Timer IVTMR 6
  21. * Peripherals IVG7 7
  22. * Peripherals IVG8 8
  23. * Peripherals IVG9 9
  24. * Peripherals IVG10 10
  25. * Peripherals IVG11 11
  26. * Peripherals IVG12 12
  27. * Peripherals IVG13 13
  28. * Softirq IVG14 14
  29. * System Call IVG15 15 (lowest priority)
  30. */
  31. /* The ABSTRACT IRQ definitions */
  32. #define IRQ_EMU 0 /* Emulation */
  33. #define IRQ_RST 1 /* reset */
  34. #define IRQ_NMI 2 /* Non Maskable */
  35. #define IRQ_EVX 3 /* Exception */
  36. #define IRQ_UNUSED 4 /* - unused interrupt */
  37. #define IRQ_HWERR 5 /* Hardware Error */
  38. #define IRQ_CORETMR 6 /* Core timer */
  39. #define IVG7 7
  40. #define IVG8 8
  41. #define IVG9 9
  42. #define IVG10 10
  43. #define IVG11 11
  44. #define IVG12 12
  45. #define IVG13 13
  46. #define IVG14 14
  47. #define IVG15 15
  48. #define BFIN_IRQ(x) ((x) + IVG7)
  49. #define BFIN_SYSIRQ(x) ((x) - IVG7)
  50. #define NR_IRQS (NR_MACH_IRQS + NR_SPARE_IRQS)
  51. #endif