intc.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. /*
  2. * Automatically generated by gen-header.xsl
  3. */
  4. #ifndef __ASM_AVR32_PERIHP_INTC_H__
  5. #define __ASM_AVR32_PERIHP_INTC_H__
  6. #define INTC_NUM_INT_GRPS 33
  7. #define INTC_INTPR0 0x0
  8. # define INTC_INTPR0_INTLEV_OFFSET 30
  9. # define INTC_INTPR0_INTLEV_SIZE 2
  10. # define INTC_INTPR0_OFFSET_OFFSET 0
  11. # define INTC_INTPR0_OFFSET_SIZE 24
  12. #define INTC_INTREQ0 0x100
  13. # define INTC_INTREQ0_IREQUEST0_OFFSET 0
  14. # define INTC_INTREQ0_IREQUEST0_SIZE 1
  15. # define INTC_INTREQ0_IREQUEST1_OFFSET 1
  16. # define INTC_INTREQ0_IREQUEST1_SIZE 1
  17. #define INTC_INTPR1 0x4
  18. # define INTC_INTPR1_INTLEV_OFFSET 30
  19. # define INTC_INTPR1_INTLEV_SIZE 2
  20. # define INTC_INTPR1_OFFSET_OFFSET 0
  21. # define INTC_INTPR1_OFFSET_SIZE 24
  22. #define INTC_INTREQ1 0x104
  23. # define INTC_INTREQ1_IREQUEST32_OFFSET 0
  24. # define INTC_INTREQ1_IREQUEST32_SIZE 1
  25. # define INTC_INTREQ1_IREQUEST33_OFFSET 1
  26. # define INTC_INTREQ1_IREQUEST33_SIZE 1
  27. # define INTC_INTREQ1_IREQUEST34_OFFSET 2
  28. # define INTC_INTREQ1_IREQUEST34_SIZE 1
  29. # define INTC_INTREQ1_IREQUEST35_OFFSET 3
  30. # define INTC_INTREQ1_IREQUEST35_SIZE 1
  31. # define INTC_INTREQ1_IREQUEST36_OFFSET 4
  32. # define INTC_INTREQ1_IREQUEST36_SIZE 1
  33. # define INTC_INTREQ1_IREQUEST37_OFFSET 5
  34. # define INTC_INTREQ1_IREQUEST37_SIZE 1
  35. #define INTC_INTPR2 0x8
  36. # define INTC_INTPR2_INTLEV_OFFSET 30
  37. # define INTC_INTPR2_INTLEV_SIZE 2
  38. # define INTC_INTPR2_OFFSET_OFFSET 0
  39. # define INTC_INTPR2_OFFSET_SIZE 24
  40. #define INTC_INTREQ2 0x108
  41. # define INTC_INTREQ2_IREQUEST64_OFFSET 0
  42. # define INTC_INTREQ2_IREQUEST64_SIZE 1
  43. # define INTC_INTREQ2_IREQUEST65_OFFSET 1
  44. # define INTC_INTREQ2_IREQUEST65_SIZE 1
  45. # define INTC_INTREQ2_IREQUEST66_OFFSET 2
  46. # define INTC_INTREQ2_IREQUEST66_SIZE 1
  47. # define INTC_INTREQ2_IREQUEST67_OFFSET 3
  48. # define INTC_INTREQ2_IREQUEST67_SIZE 1
  49. # define INTC_INTREQ2_IREQUEST68_OFFSET 4
  50. # define INTC_INTREQ2_IREQUEST68_SIZE 1
  51. #define INTC_INTPR3 0xc
  52. # define INTC_INTPR3_INTLEV_OFFSET 30
  53. # define INTC_INTPR3_INTLEV_SIZE 2
  54. # define INTC_INTPR3_OFFSET_OFFSET 0
  55. # define INTC_INTPR3_OFFSET_SIZE 24
  56. #define INTC_INTREQ3 0x10c
  57. # define INTC_INTREQ3_IREQUEST96_OFFSET 0
  58. # define INTC_INTREQ3_IREQUEST96_SIZE 1
  59. #define INTC_INTPR4 0x10
  60. # define INTC_INTPR4_INTLEV_OFFSET 30
  61. # define INTC_INTPR4_INTLEV_SIZE 2
  62. # define INTC_INTPR4_OFFSET_OFFSET 0
  63. # define INTC_INTPR4_OFFSET_SIZE 24
  64. #define INTC_INTREQ4 0x110
  65. # define INTC_INTREQ4_IREQUEST128_OFFSET 0
  66. # define INTC_INTREQ4_IREQUEST128_SIZE 1
  67. #define INTC_INTPR5 0x14
  68. # define INTC_INTPR5_INTLEV_OFFSET 30
  69. # define INTC_INTPR5_INTLEV_SIZE 2
  70. # define INTC_INTPR5_OFFSET_OFFSET 0
  71. # define INTC_INTPR5_OFFSET_SIZE 24
  72. #define INTC_INTREQ5 0x114
  73. # define INTC_INTREQ5_IREQUEST160_OFFSET 0
  74. # define INTC_INTREQ5_IREQUEST160_SIZE 1
  75. #define INTC_INTPR6 0x18
  76. # define INTC_INTPR6_INTLEV_OFFSET 30
  77. # define INTC_INTPR6_INTLEV_SIZE 2
  78. # define INTC_INTPR6_OFFSET_OFFSET 0
  79. # define INTC_INTPR6_OFFSET_SIZE 24
  80. #define INTC_INTREQ6 0x118
  81. # define INTC_INTREQ6_IREQUEST192_OFFSET 0
  82. # define INTC_INTREQ6_IREQUEST192_SIZE 1
  83. #define INTC_INTPR7 0x1c
  84. # define INTC_INTPR7_INTLEV_OFFSET 30
  85. # define INTC_INTPR7_INTLEV_SIZE 2
  86. # define INTC_INTPR7_OFFSET_OFFSET 0
  87. # define INTC_INTPR7_OFFSET_SIZE 24
  88. #define INTC_INTREQ7 0x11c
  89. # define INTC_INTREQ7_IREQUEST224_OFFSET 0
  90. # define INTC_INTREQ7_IREQUEST224_SIZE 1
  91. #define INTC_INTPR8 0x20
  92. # define INTC_INTPR8_INTLEV_OFFSET 30
  93. # define INTC_INTPR8_INTLEV_SIZE 2
  94. # define INTC_INTPR8_OFFSET_OFFSET 0
  95. # define INTC_INTPR8_OFFSET_SIZE 24
  96. #define INTC_INTREQ8 0x120
  97. # define INTC_INTREQ8_IREQUEST256_OFFSET 0
  98. # define INTC_INTREQ8_IREQUEST256_SIZE 1
  99. #define INTC_INTPR9 0x24
  100. # define INTC_INTPR9_INTLEV_OFFSET 30
  101. # define INTC_INTPR9_INTLEV_SIZE 2
  102. # define INTC_INTPR9_OFFSET_OFFSET 0
  103. # define INTC_INTPR9_OFFSET_SIZE 24
  104. #define INTC_INTREQ9 0x124
  105. # define INTC_INTREQ9_IREQUEST288_OFFSET 0
  106. # define INTC_INTREQ9_IREQUEST288_SIZE 1
  107. #define INTC_INTPR10 0x28
  108. # define INTC_INTPR10_INTLEV_OFFSET 30
  109. # define INTC_INTPR10_INTLEV_SIZE 2
  110. # define INTC_INTPR10_OFFSET_OFFSET 0
  111. # define INTC_INTPR10_OFFSET_SIZE 24
  112. #define INTC_INTREQ10 0x128
  113. # define INTC_INTREQ10_IREQUEST320_OFFSET 0
  114. # define INTC_INTREQ10_IREQUEST320_SIZE 1
  115. #define INTC_INTPR11 0x2c
  116. # define INTC_INTPR11_INTLEV_OFFSET 30
  117. # define INTC_INTPR11_INTLEV_SIZE 2
  118. # define INTC_INTPR11_OFFSET_OFFSET 0
  119. # define INTC_INTPR11_OFFSET_SIZE 24
  120. #define INTC_INTREQ11 0x12c
  121. # define INTC_INTREQ11_IREQUEST352_OFFSET 0
  122. # define INTC_INTREQ11_IREQUEST352_SIZE 1
  123. #define INTC_INTPR12 0x30
  124. # define INTC_INTPR12_INTLEV_OFFSET 30
  125. # define INTC_INTPR12_INTLEV_SIZE 2
  126. # define INTC_INTPR12_OFFSET_OFFSET 0
  127. # define INTC_INTPR12_OFFSET_SIZE 24
  128. #define INTC_INTREQ12 0x130
  129. # define INTC_INTREQ12_IREQUEST384_OFFSET 0
  130. # define INTC_INTREQ12_IREQUEST384_SIZE 1
  131. #define INTC_INTPR13 0x34
  132. # define INTC_INTPR13_INTLEV_OFFSET 30
  133. # define INTC_INTPR13_INTLEV_SIZE 2
  134. # define INTC_INTPR13_OFFSET_OFFSET 0
  135. # define INTC_INTPR13_OFFSET_SIZE 24
  136. #define INTC_INTREQ13 0x134
  137. # define INTC_INTREQ13_IREQUEST416_OFFSET 0
  138. # define INTC_INTREQ13_IREQUEST416_SIZE 1
  139. #define INTC_INTPR14 0x38
  140. # define INTC_INTPR14_INTLEV_OFFSET 30
  141. # define INTC_INTPR14_INTLEV_SIZE 2
  142. # define INTC_INTPR14_OFFSET_OFFSET 0
  143. # define INTC_INTPR14_OFFSET_SIZE 24
  144. #define INTC_INTREQ14 0x138
  145. # define INTC_INTREQ14_IREQUEST448_OFFSET 0
  146. # define INTC_INTREQ14_IREQUEST448_SIZE 1
  147. #define INTC_INTPR15 0x3c
  148. # define INTC_INTPR15_INTLEV_OFFSET 30
  149. # define INTC_INTPR15_INTLEV_SIZE 2
  150. # define INTC_INTPR15_OFFSET_OFFSET 0
  151. # define INTC_INTPR15_OFFSET_SIZE 24
  152. #define INTC_INTREQ15 0x13c
  153. # define INTC_INTREQ15_IREQUEST480_OFFSET 0
  154. # define INTC_INTREQ15_IREQUEST480_SIZE 1
  155. #define INTC_INTPR16 0x40
  156. # define INTC_INTPR16_INTLEV_OFFSET 30
  157. # define INTC_INTPR16_INTLEV_SIZE 2
  158. # define INTC_INTPR16_OFFSET_OFFSET 0
  159. # define INTC_INTPR16_OFFSET_SIZE 24
  160. #define INTC_INTREQ16 0x140
  161. # define INTC_INTREQ16_IREQUEST512_OFFSET 0
  162. # define INTC_INTREQ16_IREQUEST512_SIZE 1
  163. #define INTC_INTPR17 0x44
  164. # define INTC_INTPR17_INTLEV_OFFSET 30
  165. # define INTC_INTPR17_INTLEV_SIZE 2
  166. # define INTC_INTPR17_OFFSET_OFFSET 0
  167. # define INTC_INTPR17_OFFSET_SIZE 24
  168. #define INTC_INTREQ17 0x144
  169. # define INTC_INTREQ17_IREQUEST544_OFFSET 0
  170. # define INTC_INTREQ17_IREQUEST544_SIZE 1
  171. #define INTC_INTPR18 0x48
  172. # define INTC_INTPR18_INTLEV_OFFSET 30
  173. # define INTC_INTPR18_INTLEV_SIZE 2
  174. # define INTC_INTPR18_OFFSET_OFFSET 0
  175. # define INTC_INTPR18_OFFSET_SIZE 24
  176. #define INTC_INTREQ18 0x148
  177. # define INTC_INTREQ18_IREQUEST576_OFFSET 0
  178. # define INTC_INTREQ18_IREQUEST576_SIZE 1
  179. #define INTC_INTPR19 0x4c
  180. # define INTC_INTPR19_INTLEV_OFFSET 30
  181. # define INTC_INTPR19_INTLEV_SIZE 2
  182. # define INTC_INTPR19_OFFSET_OFFSET 0
  183. # define INTC_INTPR19_OFFSET_SIZE 24
  184. #define INTC_INTREQ19 0x14c
  185. # define INTC_INTREQ19_IREQUEST608_OFFSET 0
  186. # define INTC_INTREQ19_IREQUEST608_SIZE 1
  187. # define INTC_INTREQ19_IREQUEST609_OFFSET 1
  188. # define INTC_INTREQ19_IREQUEST609_SIZE 1
  189. # define INTC_INTREQ19_IREQUEST610_OFFSET 2
  190. # define INTC_INTREQ19_IREQUEST610_SIZE 1
  191. # define INTC_INTREQ19_IREQUEST611_OFFSET 3
  192. # define INTC_INTREQ19_IREQUEST611_SIZE 1
  193. #define INTC_INTPR20 0x50
  194. # define INTC_INTPR20_INTLEV_OFFSET 30
  195. # define INTC_INTPR20_INTLEV_SIZE 2
  196. # define INTC_INTPR20_OFFSET_OFFSET 0
  197. # define INTC_INTPR20_OFFSET_SIZE 24
  198. #define INTC_INTREQ20 0x150
  199. # define INTC_INTREQ20_IREQUEST640_OFFSET 0
  200. # define INTC_INTREQ20_IREQUEST640_SIZE 1
  201. #define INTC_INTPR21 0x54
  202. # define INTC_INTPR21_INTLEV_OFFSET 30
  203. # define INTC_INTPR21_INTLEV_SIZE 2
  204. # define INTC_INTPR21_OFFSET_OFFSET 0
  205. # define INTC_INTPR21_OFFSET_SIZE 24
  206. #define INTC_INTREQ21 0x154
  207. # define INTC_INTREQ21_IREQUEST672_OFFSET 0
  208. # define INTC_INTREQ21_IREQUEST672_SIZE 1
  209. #define INTC_INTPR22 0x58
  210. # define INTC_INTPR22_INTLEV_OFFSET 30
  211. # define INTC_INTPR22_INTLEV_SIZE 2
  212. # define INTC_INTPR22_OFFSET_OFFSET 0
  213. # define INTC_INTPR22_OFFSET_SIZE 24
  214. #define INTC_INTREQ22 0x158
  215. # define INTC_INTREQ22_IREQUEST704_OFFSET 0
  216. # define INTC_INTREQ22_IREQUEST704_SIZE 1
  217. # define INTC_INTREQ22_IREQUEST705_OFFSET 1
  218. # define INTC_INTREQ22_IREQUEST705_SIZE 1
  219. # define INTC_INTREQ22_IREQUEST706_OFFSET 2
  220. # define INTC_INTREQ22_IREQUEST706_SIZE 1
  221. #define INTC_INTPR23 0x5c
  222. # define INTC_INTPR23_INTLEV_OFFSET 30
  223. # define INTC_INTPR23_INTLEV_SIZE 2
  224. # define INTC_INTPR23_OFFSET_OFFSET 0
  225. # define INTC_INTPR23_OFFSET_SIZE 24
  226. #define INTC_INTREQ23 0x15c
  227. # define INTC_INTREQ23_IREQUEST736_OFFSET 0
  228. # define INTC_INTREQ23_IREQUEST736_SIZE 1
  229. # define INTC_INTREQ23_IREQUEST737_OFFSET 1
  230. # define INTC_INTREQ23_IREQUEST737_SIZE 1
  231. # define INTC_INTREQ23_IREQUEST738_OFFSET 2
  232. # define INTC_INTREQ23_IREQUEST738_SIZE 1
  233. #define INTC_INTPR24 0x60
  234. # define INTC_INTPR24_INTLEV_OFFSET 30
  235. # define INTC_INTPR24_INTLEV_SIZE 2
  236. # define INTC_INTPR24_OFFSET_OFFSET 0
  237. # define INTC_INTPR24_OFFSET_SIZE 24
  238. #define INTC_INTREQ24 0x160
  239. # define INTC_INTREQ24_IREQUEST768_OFFSET 0
  240. # define INTC_INTREQ24_IREQUEST768_SIZE 1
  241. #define INTC_INTPR25 0x64
  242. # define INTC_INTPR25_INTLEV_OFFSET 30
  243. # define INTC_INTPR25_INTLEV_SIZE 2
  244. # define INTC_INTPR25_OFFSET_OFFSET 0
  245. # define INTC_INTPR25_OFFSET_SIZE 24
  246. #define INTC_INTREQ25 0x164
  247. # define INTC_INTREQ25_IREQUEST800_OFFSET 0
  248. # define INTC_INTREQ25_IREQUEST800_SIZE 1
  249. #define INTC_INTPR26 0x68
  250. # define INTC_INTPR26_INTLEV_OFFSET 30
  251. # define INTC_INTPR26_INTLEV_SIZE 2
  252. # define INTC_INTPR26_OFFSET_OFFSET 0
  253. # define INTC_INTPR26_OFFSET_SIZE 24
  254. #define INTC_INTREQ26 0x168
  255. # define INTC_INTREQ26_IREQUEST832_OFFSET 0
  256. # define INTC_INTREQ26_IREQUEST832_SIZE 1
  257. #define INTC_INTPR27 0x6c
  258. # define INTC_INTPR27_INTLEV_OFFSET 30
  259. # define INTC_INTPR27_INTLEV_SIZE 2
  260. # define INTC_INTPR27_OFFSET_OFFSET 0
  261. # define INTC_INTPR27_OFFSET_SIZE 24
  262. #define INTC_INTREQ27 0x16c
  263. # define INTC_INTREQ27_IREQUEST864_OFFSET 0
  264. # define INTC_INTREQ27_IREQUEST864_SIZE 1
  265. #define INTC_INTPR28 0x70
  266. # define INTC_INTPR28_INTLEV_OFFSET 30
  267. # define INTC_INTPR28_INTLEV_SIZE 2
  268. # define INTC_INTPR28_OFFSET_OFFSET 0
  269. # define INTC_INTPR28_OFFSET_SIZE 24
  270. #define INTC_INTREQ28 0x170
  271. # define INTC_INTREQ28_IREQUEST896_OFFSET 0
  272. # define INTC_INTREQ28_IREQUEST896_SIZE 1
  273. #define INTC_INTPR29 0x74
  274. # define INTC_INTPR29_INTLEV_OFFSET 30
  275. # define INTC_INTPR29_INTLEV_SIZE 2
  276. # define INTC_INTPR29_OFFSET_OFFSET 0
  277. # define INTC_INTPR29_OFFSET_SIZE 24
  278. #define INTC_INTREQ29 0x174
  279. # define INTC_INTREQ29_IREQUEST928_OFFSET 0
  280. # define INTC_INTREQ29_IREQUEST928_SIZE 1
  281. #define INTC_INTPR30 0x78
  282. # define INTC_INTPR30_INTLEV_OFFSET 30
  283. # define INTC_INTPR30_INTLEV_SIZE 2
  284. # define INTC_INTPR30_OFFSET_OFFSET 0
  285. # define INTC_INTPR30_OFFSET_SIZE 24
  286. #define INTC_INTREQ30 0x178
  287. # define INTC_INTREQ30_IREQUEST960_OFFSET 0
  288. # define INTC_INTREQ30_IREQUEST960_SIZE 1
  289. #define INTC_INTPR31 0x7c
  290. # define INTC_INTPR31_INTLEV_OFFSET 30
  291. # define INTC_INTPR31_INTLEV_SIZE 2
  292. # define INTC_INTPR31_OFFSET_OFFSET 0
  293. # define INTC_INTPR31_OFFSET_SIZE 24
  294. #define INTC_INTREQ31 0x17c
  295. # define INTC_INTREQ31_IREQUEST992_OFFSET 0
  296. # define INTC_INTREQ31_IREQUEST992_SIZE 1
  297. #define INTC_INTPR32 0x80
  298. # define INTC_INTPR32_INTLEV_OFFSET 30
  299. # define INTC_INTPR32_INTLEV_SIZE 2
  300. # define INTC_INTPR32_OFFSET_OFFSET 0
  301. # define INTC_INTPR32_OFFSET_SIZE 24
  302. #define INTC_INTREQ32 0x180
  303. # define INTC_INTREQ32_IREQUEST1024_OFFSET 0
  304. # define INTC_INTREQ32_IREQUEST1024_SIZE 1
  305. #define INTC_INTCAUSE0 0x20c
  306. # define INTC_INTCAUSE0_CAUSEGRP_OFFSET 0
  307. # define INTC_INTCAUSE0_CAUSEGRP_SIZE 6
  308. #define INTC_INTCAUSE1 0x208
  309. # define INTC_INTCAUSE1_CAUSEGRP_OFFSET 0
  310. # define INTC_INTCAUSE1_CAUSEGRP_SIZE 6
  311. #define INTC_INTCAUSE2 0x204
  312. # define INTC_INTCAUSE2_CAUSEGRP_OFFSET 0
  313. # define INTC_INTCAUSE2_CAUSEGRP_SIZE 6
  314. #define INTC_INTCAUSE3 0x200
  315. # define INTC_INTCAUSE3_CAUSEGRP_OFFSET 0
  316. # define INTC_INTCAUSE3_CAUSEGRP_SIZE 6
  317. #define INTC_BIT(name) (1 << INTC_##name##_OFFSET)
  318. #define INTC_MKBF(name, value) (((value) & ((1 << INTC_##name##_SIZE) - 1)) << INTC_##name##_OFFSET)
  319. #define INTC_GETBF(name, value) (((value) >> INTC_##name##_OFFSET) & ((1 << INTC_##name##_SIZE) - 1))
  320. #define intc_readl(port,reg) \
  321. __raw_readl((port)->regs + INTC_##reg)
  322. #define intc_writel(port,reg,value) \
  323. __raw_writel((value), (port)->regs + INTC_##reg)
  324. #endif /* __ASM_AVR32_PERIHP_INTC_H__ */