irq-sh73180.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. #ifndef __ASM_SH_IRQ_SH73180_H
  2. #define __ASM_SH_IRQ_SH73180_H
  3. /*
  4. * linux/include/asm-sh/irq-sh73180.h
  5. *
  6. * Copyright (C) 2004 Takashi SHUDO <shudo@hitachi-ul.co.jp>
  7. */
  8. #undef INTC_IPRA
  9. #undef INTC_IPRB
  10. #undef INTC_IPRC
  11. #undef INTC_IPRD
  12. #undef DMTE0_IRQ
  13. #undef DMTE1_IRQ
  14. #undef DMTE2_IRQ
  15. #undef DMTE3_IRQ
  16. #undef DMTE4_IRQ
  17. #undef DMTE5_IRQ
  18. #undef DMTE6_IRQ
  19. #undef DMTE7_IRQ
  20. #undef DMAE_IRQ
  21. #undef DMA_IPR_ADDR
  22. #undef DMA_IPR_POS
  23. #undef DMA_PRIORITY
  24. #undef INTC_IMCR0
  25. #undef INTC_IMCR1
  26. #undef INTC_IMCR2
  27. #undef INTC_IMCR3
  28. #undef INTC_IMCR4
  29. #undef INTC_IMCR5
  30. #undef INTC_IMCR6
  31. #undef INTC_IMCR7
  32. #undef INTC_IMCR8
  33. #undef INTC_IMCR9
  34. #undef INTC_IMCR10
  35. #define INTC_IPRA 0xA4080000UL
  36. #define INTC_IPRB 0xA4080004UL
  37. #define INTC_IPRC 0xA4080008UL
  38. #define INTC_IPRD 0xA408000CUL
  39. #define INTC_IPRE 0xA4080010UL
  40. #define INTC_IPRF 0xA4080014UL
  41. #define INTC_IPRG 0xA4080018UL
  42. #define INTC_IPRH 0xA408001CUL
  43. #define INTC_IPRI 0xA4080020UL
  44. #define INTC_IPRJ 0xA4080024UL
  45. #define INTC_IPRK 0xA4080028UL
  46. #define INTC_IMR0 0xA4080080UL
  47. #define INTC_IMR1 0xA4080084UL
  48. #define INTC_IMR2 0xA4080088UL
  49. #define INTC_IMR3 0xA408008CUL
  50. #define INTC_IMR4 0xA4080090UL
  51. #define INTC_IMR5 0xA4080094UL
  52. #define INTC_IMR6 0xA4080098UL
  53. #define INTC_IMR7 0xA408009CUL
  54. #define INTC_IMR8 0xA40800A0UL
  55. #define INTC_IMR9 0xA40800A4UL
  56. #define INTC_IMR10 0xA40800A8UL
  57. #define INTC_IMR11 0xA40800ACUL
  58. #define INTC_IMCR0 0xA40800C0UL
  59. #define INTC_IMCR1 0xA40800C4UL
  60. #define INTC_IMCR2 0xA40800C8UL
  61. #define INTC_IMCR3 0xA40800CCUL
  62. #define INTC_IMCR4 0xA40800D0UL
  63. #define INTC_IMCR5 0xA40800D4UL
  64. #define INTC_IMCR6 0xA40800D8UL
  65. #define INTC_IMCR7 0xA40800DCUL
  66. #define INTC_IMCR8 0xA40800E0UL
  67. #define INTC_IMCR9 0xA40800E4UL
  68. #define INTC_IMCR10 0xA40800E8UL
  69. #define INTC_IMCR11 0xA40800ECUL
  70. #define INTC_ICR0 0xA4140000UL
  71. #define INTC_ICR1 0xA414001CUL
  72. #define INTMSK0 0xa4140044
  73. #define INTMSKCLR0 0xa4140064
  74. #define INTC_INTPRI0 0xa4140010
  75. /*
  76. NOTE:
  77. *_IRQ = (INTEVT2 - 0x200)/0x20
  78. */
  79. /* TMU0 */
  80. #define TMU0_IRQ 16
  81. #define TMU0_IPR_ADDR INTC_IPRA
  82. #define TMU0_IPR_POS 3
  83. #define TMU0_PRIORITY 2
  84. #define TIMER_IRQ 16
  85. #define TIMER_IPR_ADDR INTC_IPRA
  86. #define TIMER_IPR_POS 3
  87. #define TIMER_PRIORITY 2
  88. /* TMU1 */
  89. #define TMU1_IRQ 17
  90. #define TMU1_IPR_ADDR INTC_IPRA
  91. #define TMU1_IPR_POS 2
  92. #define TMU1_PRIORITY 2
  93. /* TMU2 */
  94. #define TMU2_IRQ 18
  95. #define TMU2_IPR_ADDR INTC_IPRA
  96. #define TMU2_IPR_POS 1
  97. #define TMU2_PRIORITY 2
  98. /* LCDC */
  99. #define LCDC_IRQ 28
  100. #define LCDC_IPR_ADDR INTC_IPRB
  101. #define LCDC_IPR_POS 2
  102. #define LCDC_PRIORITY 2
  103. /* VIO (Video I/O) */
  104. #define CEU_IRQ 52
  105. #define BEU_IRQ 53
  106. #define VEU_IRQ 54
  107. #define VOU_IRQ 55
  108. #define VIO_IPR_ADDR INTC_IPRE
  109. #define VIO_IPR_POS 2
  110. #define VIO_PRIORITY 2
  111. /* MFI (Multi Functional Interface) */
  112. #define MFI_IRQ 56
  113. #define MFI_IPR_ADDR INTC_IPRE
  114. #define MFI_IPR_POS 1
  115. #define MFI_PRIORITY 2
  116. /* VPU (Video Processing Unit) */
  117. #define VPU_IRQ 60
  118. #define VPU_IPR_ADDR INTC_IPRE
  119. #define VPU_IPR_POS 0
  120. #define VPU_PRIORITY 2
  121. /* 3DG */
  122. #define TDG_IRQ 63
  123. #define TDG_IPR_ADDR INTC_IPRJ
  124. #define TDG_IPR_POS 2
  125. #define TDG_PRIORITY 2
  126. /* DMAC(1) */
  127. #define DMTE0_IRQ 48
  128. #define DMTE1_IRQ 49
  129. #define DMTE2_IRQ 50
  130. #define DMTE3_IRQ 51
  131. #define DMA1_IPR_ADDR INTC_IPRE
  132. #define DMA1_IPR_POS 3
  133. #define DMA1_PRIORITY 7
  134. /* DMAC(2) */
  135. #define DMTE4_IRQ 76
  136. #define DMTE5_IRQ 77
  137. #define DMA2_IPR_ADDR INTC_IPRF
  138. #define DMA2_IPR_POS 2
  139. #define DMA2_PRIORITY 7
  140. /* SCIF0 */
  141. #define SCIF_ERI_IRQ 80
  142. #define SCIF_RXI_IRQ 81
  143. #define SCIF_BRI_IRQ 82
  144. #define SCIF_TXI_IRQ 83
  145. #define SCIF_IPR_ADDR INTC_IPRG
  146. #define SCIF_IPR_POS 3
  147. #define SCIF_PRIORITY 3
  148. /* SIOF0 */
  149. #define SIOF0_IRQ 84
  150. #define SIOF0_IPR_ADDR INTC_IPRH
  151. #define SIOF0_IPR_POS 3
  152. #define SIOF0_PRIORITY 3
  153. /* FLCTL (Flash Memory Controller) */
  154. #define FLSTE_IRQ 92
  155. #define FLTEND_IRQ 93
  156. #define FLTRQ0_IRQ 94
  157. #define FLTRQ1_IRQ 95
  158. #define FLCTL_IPR_ADDR INTC_IPRH
  159. #define FLCTL_IPR_POS 1
  160. #define FLCTL_PRIORITY 3
  161. /* IIC(0) (IIC Bus Interface) */
  162. #define IIC0_ALI_IRQ 96
  163. #define IIC0_TACKI_IRQ 97
  164. #define IIC0_WAITI_IRQ 98
  165. #define IIC0_DTEI_IRQ 99
  166. #define IIC0_IPR_ADDR INTC_IPRH
  167. #define IIC0_IPR_POS 0
  168. #define IIC0_PRIORITY 3
  169. /* IIC(1) (IIC Bus Interface) */
  170. #define IIC1_ALI_IRQ 44
  171. #define IIC1_TACKI_IRQ 45
  172. #define IIC1_WAITI_IRQ 46
  173. #define IIC1_DTEI_IRQ 47
  174. #define IIC1_IPR_ADDR INTC_IPRG
  175. #define IIC1_IPR_POS 0
  176. #define IIC1_PRIORITY 3
  177. /* SIO0 */
  178. #define SIO0_IRQ 88
  179. #define SIO0_IPR_ADDR INTC_IPRI
  180. #define SIO0_IPR_POS 3
  181. #define SIO0_PRIORITY 3
  182. /* SDHI */
  183. #define SDHI_SDHII0_IRQ 100
  184. #define SDHI_SDHII1_IRQ 101
  185. #define SDHI_SDHII2_IRQ 102
  186. #define SDHI_SDHII3_IRQ 103
  187. #define SDHI_IPR_ADDR INTC_IPRK
  188. #define SDHI_IPR_POS 0
  189. #define SDHI_PRIORITY 3
  190. /* SIU (Sound Interface Unit) */
  191. #define SIU_IRQ 108
  192. #define SIU_IPR_ADDR INTC_IPRJ
  193. #define SIU_IPR_POS 1
  194. #define SIU_PRIORITY 3
  195. #define PORT_PACR 0xA4050100UL
  196. #define PORT_PBCR 0xA4050102UL
  197. #define PORT_PCCR 0xA4050104UL
  198. #define PORT_PDCR 0xA4050106UL
  199. #define PORT_PECR 0xA4050108UL
  200. #define PORT_PFCR 0xA405010AUL
  201. #define PORT_PGCR 0xA405010CUL
  202. #define PORT_PHCR 0xA405010EUL
  203. #define PORT_PJCR 0xA4050110UL
  204. #define PORT_PKCR 0xA4050112UL
  205. #define PORT_PLCR 0xA4050114UL
  206. #define PORT_SCPCR 0xA4050116UL
  207. #define PORT_PMCR 0xA4050118UL
  208. #define PORT_PNCR 0xA405011AUL
  209. #define PORT_PQCR 0xA405011CUL
  210. #define PORT_PRCR 0xA405011EUL
  211. #define PORT_PTCR 0xA405014CUL
  212. #define PORT_PUCR 0xA405014EUL
  213. #define PORT_PVCR 0xA4050150UL
  214. #define PORT_PSELA 0xA4050140UL
  215. #define PORT_PSELB 0xA4050142UL
  216. #define PORT_PSELC 0xA4050144UL
  217. #define PORT_PSELE 0xA4050158UL
  218. #define PORT_HIZCRA 0xA4050146UL
  219. #define PORT_HIZCRB 0xA4050148UL
  220. #define PORT_DRVCR 0xA405014AUL
  221. #define PORT_PADR 0xA4050120UL
  222. #define PORT_PBDR 0xA4050122UL
  223. #define PORT_PCDR 0xA4050124UL
  224. #define PORT_PDDR 0xA4050126UL
  225. #define PORT_PEDR 0xA4050128UL
  226. #define PORT_PFDR 0xA405012AUL
  227. #define PORT_PGDR 0xA405012CUL
  228. #define PORT_PHDR 0xA405012EUL
  229. #define PORT_PJDR 0xA4050130UL
  230. #define PORT_PKDR 0xA4050132UL
  231. #define PORT_PLDR 0xA4050134UL
  232. #define PORT_SCPDR 0xA4050136UL
  233. #define PORT_PMDR 0xA4050138UL
  234. #define PORT_PNDR 0xA405013AUL
  235. #define PORT_PQDR 0xA405013CUL
  236. #define PORT_PRDR 0xA405013EUL
  237. #define PORT_PTDR 0xA405016CUL
  238. #define PORT_PUDR 0xA405016EUL
  239. #define PORT_PVDR 0xA4050170UL
  240. #define IRQ0_IRQ 32
  241. #define IRQ1_IRQ 33
  242. #define IRQ2_IRQ 34
  243. #define IRQ3_IRQ 35
  244. #define IRQ4_IRQ 36
  245. #define IRQ5_IRQ 37
  246. #define IRQ6_IRQ 38
  247. #define IRQ7_IRQ 39
  248. #define INTPRI00 0xA4140010UL
  249. #define IRQ0_IPR_ADDR INTPRI00
  250. #define IRQ1_IPR_ADDR INTPRI00
  251. #define IRQ2_IPR_ADDR INTPRI00
  252. #define IRQ3_IPR_ADDR INTPRI00
  253. #define IRQ4_IPR_ADDR INTPRI00
  254. #define IRQ5_IPR_ADDR INTPRI00
  255. #define IRQ6_IPR_ADDR INTPRI00
  256. #define IRQ7_IPR_ADDR INTPRI00
  257. #define IRQ0_IPR_POS 7
  258. #define IRQ1_IPR_POS 6
  259. #define IRQ2_IPR_POS 5
  260. #define IRQ3_IPR_POS 4
  261. #define IRQ4_IPR_POS 3
  262. #define IRQ5_IPR_POS 2
  263. #define IRQ6_IPR_POS 1
  264. #define IRQ7_IPR_POS 0
  265. #define IRQ0_PRIORITY 1
  266. #define IRQ1_PRIORITY 1
  267. #define IRQ2_PRIORITY 1
  268. #define IRQ3_PRIORITY 1
  269. #define IRQ4_PRIORITY 1
  270. #define IRQ5_PRIORITY 1
  271. #define IRQ6_PRIORITY 1
  272. #define IRQ7_PRIORITY 1
  273. int shmse_irq_demux(int irq);
  274. #endif /* __ASM_SH_IRQ_SH73180_H */