irq.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /*
  2. * linux/arch/$(ARCH)/platform/$(PLATFORM)/irq.c
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file COPYING in the main directory of this archive
  6. * for more details.
  7. *
  8. * Changed by HuTao Apr18, 2003
  9. *
  10. * Copyright was missing when I got the code so took from MIPS arch ...MaTed---
  11. * Copyright (C) 1994 by Waldorf GMBH, written by Ralf Baechle
  12. * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 by Ralf Baechle
  13. *
  14. * Adapted for BlackFin (ADI) by Ted Ma <mated@sympatico.ca>
  15. * Copyright (c) 2002 Arcturus Networks Inc. (www.arcturusnetworks.com)
  16. * Copyright (c) 2002 Lineo, Inc. <mattw@lineo.com>
  17. *
  18. * Adapted for BlackFin BF533 by Bas Vermeulen <bas@buyways.nl>
  19. * Copyright (c) 2003 BuyWays B.V. (www.buyways.nl)
  20. * Copyright (c) 2004 LG Soft India.
  21. * Copyright (c) 2004 HHTech.
  22. *
  23. * Adapted for BlackFin BF561 by Bas Vermeulen <bas@buyways.nl>
  24. * Copyright (c) 2005 BuyWays B.V. (www.buyways.nl)
  25. */
  26. #ifndef _BF561_IRQ_H_
  27. #define _BF561_IRQ_H_
  28. /*
  29. * Interrupt source definitions:
  30. * Event Source Core Event Name IRQ No
  31. * Emulation Events EMU 0
  32. * Reset RST 1
  33. * NMI NMI 2
  34. * Exception EVX 3
  35. * Reserved -- 4
  36. * Hardware Error IVHW 5
  37. * Core Timer IVTMR 6
  38. *
  39. * PLL Wakeup Interrupt IVG7 7
  40. * DMA1 Error (generic) IVG7 8
  41. * DMA2 Error (generic) IVG7 9
  42. * IMDMA Error (generic) IVG7 10
  43. * PPI1 Error Interrupt IVG7 11
  44. * PPI2 Error Interrupt IVG7 12
  45. * SPORT0 Error Interrupt IVG7 13
  46. * SPORT1 Error Interrupt IVG7 14
  47. * SPI Error Interrupt IVG7 15
  48. * UART Error Interrupt IVG7 16
  49. * Reserved Interrupt IVG7 17
  50. *
  51. * DMA1 0 Interrupt(PPI1) IVG8 18
  52. * DMA1 1 Interrupt(PPI2) IVG8 19
  53. * DMA1 2 Interrupt IVG8 20
  54. * DMA1 3 Interrupt IVG8 21
  55. * DMA1 4 Interrupt IVG8 22
  56. * DMA1 5 Interrupt IVG8 23
  57. * DMA1 6 Interrupt IVG8 24
  58. * DMA1 7 Interrupt IVG8 25
  59. * DMA1 8 Interrupt IVG8 26
  60. * DMA1 9 Interrupt IVG8 27
  61. * DMA1 10 Interrupt IVG8 28
  62. * DMA1 11 Interrupt IVG8 29
  63. *
  64. * DMA2 0 (SPORT0 RX) IVG9 30
  65. * DMA2 1 (SPORT0 TX) IVG9 31
  66. * DMA2 2 (SPORT1 RX) IVG9 32
  67. * DMA2 3 (SPORT2 TX) IVG9 33
  68. * DMA2 4 (SPI) IVG9 34
  69. * DMA2 5 (UART RX) IVG9 35
  70. * DMA2 6 (UART TX) IVG9 36
  71. * DMA2 7 Interrupt IVG9 37
  72. * DMA2 8 Interrupt IVG9 38
  73. * DMA2 9 Interrupt IVG9 39
  74. * DMA2 10 Interrupt IVG9 40
  75. * DMA2 11 Interrupt IVG9 41
  76. *
  77. * TIMER 0 Interrupt IVG10 42
  78. * TIMER 1 Interrupt IVG10 43
  79. * TIMER 2 Interrupt IVG10 44
  80. * TIMER 3 Interrupt IVG10 45
  81. * TIMER 4 Interrupt IVG10 46
  82. * TIMER 5 Interrupt IVG10 47
  83. * TIMER 6 Interrupt IVG10 48
  84. * TIMER 7 Interrupt IVG10 49
  85. * TIMER 8 Interrupt IVG10 50
  86. * TIMER 9 Interrupt IVG10 51
  87. * TIMER 10 Interrupt IVG10 52
  88. * TIMER 11 Interrupt IVG10 53
  89. *
  90. * Programmable Flags0 A (8) IVG11 54
  91. * Programmable Flags0 B (8) IVG11 55
  92. * Programmable Flags1 A (8) IVG11 56
  93. * Programmable Flags1 B (8) IVG11 57
  94. * Programmable Flags2 A (8) IVG11 58
  95. * Programmable Flags2 B (8) IVG11 59
  96. *
  97. * MDMA1 0 write/read INT IVG8 60
  98. * MDMA1 1 write/read INT IVG8 61
  99. *
  100. * MDMA2 0 write/read INT IVG9 62
  101. * MDMA2 1 write/read INT IVG9 63
  102. *
  103. * IMDMA 0 write/read INT IVG12 64
  104. * IMDMA 1 write/read INT IVG12 65
  105. *
  106. * Watch Dog Timer IVG13 66
  107. *
  108. * Reserved interrupt IVG7 67
  109. * Reserved interrupt IVG7 68
  110. * Supplemental interrupt 0 IVG7 69
  111. * supplemental interrupt 1 IVG7 70
  112. *
  113. * Software Interrupt 1 IVG14 71
  114. * Software Interrupt 2 IVG15 72
  115. */
  116. /*
  117. * The ABSTRACT IRQ definitions
  118. * the first seven of the following are fixed,
  119. * the rest you change if you need to.
  120. */
  121. /* IVG 0-6 */
  122. #define IRQ_EMU 0 /* Emulation */
  123. #define IRQ_RST 1 /* Reset */
  124. #define IRQ_NMI 2 /* Non Maskable Interrupt */
  125. #define IRQ_EVX 3 /* Exception */
  126. #define IRQ_UNUSED 4 /* Reserved interrupt */
  127. #define IRQ_HWERR 5 /* Hardware Error */
  128. #define IRQ_CORETMR 6 /* Core timer */
  129. #define IRQ_UART_RX_BIT 0x10000000
  130. #define IRQ_UART_TX_BIT 0x20000000
  131. #define IRQ_UART_ERROR_BIT 0x200
  132. #endif /* _BF561_IRQ_H_ */