shub_mmr.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. /*
  2. *
  3. * This file is subject to the terms and conditions of the GNU General Public
  4. * License. See the file "COPYING" in the main directory of this archive
  5. * for more details.
  6. *
  7. * Copyright (c) 2001-2005 Silicon Graphics, Inc. All rights reserved.
  8. */
  9. #ifndef _ASM_IA64_SN_SHUB_MMR_H
  10. #define _ASM_IA64_SN_SHUB_MMR_H
  11. /* ==================================================================== */
  12. /* Register "SH_IPI_INT" */
  13. /* SHub Inter-Processor Interrupt Registers */
  14. /* ==================================================================== */
  15. #define SH1_IPI_INT __IA64_UL_CONST(0x0000000110000380)
  16. #define SH2_IPI_INT __IA64_UL_CONST(0x0000000010000380)
  17. /* SH_IPI_INT_TYPE */
  18. /* Description: Type of Interrupt: 0=INT, 2=PMI, 4=NMI, 5=INIT */
  19. #define SH_IPI_INT_TYPE_SHFT 0
  20. #define SH_IPI_INT_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
  21. /* SH_IPI_INT_AGT */
  22. /* Description: Agent, must be 0 for SHub */
  23. #define SH_IPI_INT_AGT_SHFT 3
  24. #define SH_IPI_INT_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
  25. /* SH_IPI_INT_PID */
  26. /* Description: Processor ID, same setting as on targeted McKinley */
  27. #define SH_IPI_INT_PID_SHFT 4
  28. #define SH_IPI_INT_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
  29. /* SH_IPI_INT_BASE */
  30. /* Description: Optional interrupt vector area, 2MB aligned */
  31. #define SH_IPI_INT_BASE_SHFT 21
  32. #define SH_IPI_INT_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
  33. /* SH_IPI_INT_IDX */
  34. /* Description: Targeted McKinley interrupt vector */
  35. #define SH_IPI_INT_IDX_SHFT 52
  36. #define SH_IPI_INT_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
  37. /* SH_IPI_INT_SEND */
  38. /* Description: Send Interrupt Message to PI, This generates a puls */
  39. #define SH_IPI_INT_SEND_SHFT 63
  40. #define SH_IPI_INT_SEND_MASK __IA64_UL_CONST(0x8000000000000000)
  41. /* ==================================================================== */
  42. /* Register "SH_EVENT_OCCURRED" */
  43. /* SHub Interrupt Event Occurred */
  44. /* ==================================================================== */
  45. #define SH1_EVENT_OCCURRED __IA64_UL_CONST(0x0000000110010000)
  46. #define SH1_EVENT_OCCURRED_ALIAS __IA64_UL_CONST(0x0000000110010008)
  47. #define SH2_EVENT_OCCURRED __IA64_UL_CONST(0x0000000010010000)
  48. #define SH2_EVENT_OCCURRED_ALIAS __IA64_UL_CONST(0x0000000010010008)
  49. /* ==================================================================== */
  50. /* Register "SH_PI_CAM_CONTROL" */
  51. /* CRB CAM MMR Access Control */
  52. /* ==================================================================== */
  53. #define SH1_PI_CAM_CONTROL __IA64_UL_CONST(0x0000000120050300)
  54. /* ==================================================================== */
  55. /* Register "SH_SHUB_ID" */
  56. /* SHub ID Number */
  57. /* ==================================================================== */
  58. #define SH1_SHUB_ID __IA64_UL_CONST(0x0000000110060580)
  59. #define SH1_SHUB_ID_REVISION_SHFT 28
  60. #define SH1_SHUB_ID_REVISION_MASK __IA64_UL_CONST(0x00000000f0000000)
  61. /* ==================================================================== */
  62. /* Register "SH_RTC" */
  63. /* Real-time Clock */
  64. /* ==================================================================== */
  65. #define SH1_RTC __IA64_UL_CONST(0x00000001101c0000)
  66. #define SH2_RTC __IA64_UL_CONST(0x00000002101c0000)
  67. #define SH_RTC_MASK __IA64_UL_CONST(0x007fffffffffffff)
  68. /* ==================================================================== */
  69. /* Register "SH_PIO_WRITE_STATUS_0|1" */
  70. /* PIO Write Status for CPU 0 & 1 */
  71. /* ==================================================================== */
  72. #define SH1_PIO_WRITE_STATUS_0 __IA64_UL_CONST(0x0000000120070200)
  73. #define SH1_PIO_WRITE_STATUS_1 __IA64_UL_CONST(0x0000000120070280)
  74. #define SH2_PIO_WRITE_STATUS_0 __IA64_UL_CONST(0x0000000020070200)
  75. #define SH2_PIO_WRITE_STATUS_1 __IA64_UL_CONST(0x0000000020070280)
  76. #define SH2_PIO_WRITE_STATUS_2 __IA64_UL_CONST(0x0000000020070300)
  77. #define SH2_PIO_WRITE_STATUS_3 __IA64_UL_CONST(0x0000000020070380)
  78. /* SH_PIO_WRITE_STATUS_0_WRITE_DEADLOCK */
  79. /* Description: Deadlock response detected */
  80. #define SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_SHFT 1
  81. #define SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_MASK \
  82. __IA64_UL_CONST(0x0000000000000002)
  83. /* SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT */
  84. /* Description: Count of currently pending PIO writes */
  85. #define SH_PIO_WRITE_STATUS_PENDING_WRITE_COUNT_SHFT 56
  86. #define SH_PIO_WRITE_STATUS_PENDING_WRITE_COUNT_MASK \
  87. __IA64_UL_CONST(0x3f00000000000000)
  88. /* ==================================================================== */
  89. /* Register "SH_PIO_WRITE_STATUS_0_ALIAS" */
  90. /* ==================================================================== */
  91. #define SH1_PIO_WRITE_STATUS_0_ALIAS __IA64_UL_CONST(0x0000000120070208)
  92. #define SH2_PIO_WRITE_STATUS_0_ALIAS __IA64_UL_CONST(0x0000000020070208)
  93. /* ==================================================================== */
  94. /* Register "SH_EVENT_OCCURRED" */
  95. /* SHub Interrupt Event Occurred */
  96. /* ==================================================================== */
  97. /* SH_EVENT_OCCURRED_UART_INT */
  98. /* Description: Pending Junk Bus UART Interrupt */
  99. #define SH_EVENT_OCCURRED_UART_INT_SHFT 20
  100. #define SH_EVENT_OCCURRED_UART_INT_MASK __IA64_UL_CONST(0x0000000000100000)
  101. /* SH_EVENT_OCCURRED_IPI_INT */
  102. /* Description: Pending IPI Interrupt */
  103. #define SH_EVENT_OCCURRED_IPI_INT_SHFT 28
  104. #define SH_EVENT_OCCURRED_IPI_INT_MASK __IA64_UL_CONST(0x0000000010000000)
  105. /* SH_EVENT_OCCURRED_II_INT0 */
  106. /* Description: Pending II 0 Interrupt */
  107. #define SH_EVENT_OCCURRED_II_INT0_SHFT 29
  108. #define SH_EVENT_OCCURRED_II_INT0_MASK __IA64_UL_CONST(0x0000000020000000)
  109. /* SH_EVENT_OCCURRED_II_INT1 */
  110. /* Description: Pending II 1 Interrupt */
  111. #define SH_EVENT_OCCURRED_II_INT1_SHFT 30
  112. #define SH_EVENT_OCCURRED_II_INT1_MASK __IA64_UL_CONST(0x0000000040000000)
  113. /* SH2_EVENT_OCCURRED_EXTIO_INT2 */
  114. /* Description: Pending SHUB 2 EXT IO INT2 */
  115. #define SH2_EVENT_OCCURRED_EXTIO_INT2_SHFT 33
  116. #define SH2_EVENT_OCCURRED_EXTIO_INT2_MASK __IA64_UL_CONST(0x0000000200000000)
  117. /* SH2_EVENT_OCCURRED_EXTIO_INT3 */
  118. /* Description: Pending SHUB 2 EXT IO INT3 */
  119. #define SH2_EVENT_OCCURRED_EXTIO_INT3_SHFT 34
  120. #define SH2_EVENT_OCCURRED_EXTIO_INT3_MASK __IA64_UL_CONST(0x0000000400000000)
  121. #define SH_ALL_INT_MASK \
  122. (SH_EVENT_OCCURRED_UART_INT_MASK | SH_EVENT_OCCURRED_IPI_INT_MASK | \
  123. SH_EVENT_OCCURRED_II_INT0_MASK | SH_EVENT_OCCURRED_II_INT1_MASK | \
  124. SH_EVENT_OCCURRED_II_INT1_MASK | SH2_EVENT_OCCURRED_EXTIO_INT2_MASK | \
  125. SH2_EVENT_OCCURRED_EXTIO_INT3_MASK)
  126. /* ==================================================================== */
  127. /* LEDS */
  128. /* ==================================================================== */
  129. #define SH1_REAL_JUNK_BUS_LED0 0x7fed00000UL
  130. #define SH1_REAL_JUNK_BUS_LED1 0x7fed10000UL
  131. #define SH1_REAL_JUNK_BUS_LED2 0x7fed20000UL
  132. #define SH1_REAL_JUNK_BUS_LED3 0x7fed30000UL
  133. #define SH2_REAL_JUNK_BUS_LED0 0xf0000000UL
  134. #define SH2_REAL_JUNK_BUS_LED1 0xf0010000UL
  135. #define SH2_REAL_JUNK_BUS_LED2 0xf0020000UL
  136. #define SH2_REAL_JUNK_BUS_LED3 0xf0030000UL
  137. /* ==================================================================== */
  138. /* Register "SH1_PTC_0" */
  139. /* Puge Translation Cache Message Configuration Information */
  140. /* ==================================================================== */
  141. #define SH1_PTC_0 __IA64_UL_CONST(0x00000001101a0000)
  142. /* SH1_PTC_0_A */
  143. /* Description: Type */
  144. #define SH1_PTC_0_A_SHFT 0
  145. /* SH1_PTC_0_PS */
  146. /* Description: Page Size */
  147. #define SH1_PTC_0_PS_SHFT 2
  148. /* SH1_PTC_0_RID */
  149. /* Description: Region ID */
  150. #define SH1_PTC_0_RID_SHFT 8
  151. /* SH1_PTC_0_START */
  152. /* Description: Start */
  153. #define SH1_PTC_0_START_SHFT 63
  154. /* ==================================================================== */
  155. /* Register "SH1_PTC_1" */
  156. /* Puge Translation Cache Message Configuration Information */
  157. /* ==================================================================== */
  158. #define SH1_PTC_1 __IA64_UL_CONST(0x00000001101a0080)
  159. /* SH1_PTC_1_START */
  160. /* Description: PTC_1 Start */
  161. #define SH1_PTC_1_START_SHFT 63
  162. /* ==================================================================== */
  163. /* Register "SH2_PTC" */
  164. /* Puge Translation Cache Message Configuration Information */
  165. /* ==================================================================== */
  166. #define SH2_PTC __IA64_UL_CONST(0x0000000170000000)
  167. /* SH2_PTC_A */
  168. /* Description: Type */
  169. #define SH2_PTC_A_SHFT 0
  170. /* SH2_PTC_PS */
  171. /* Description: Page Size */
  172. #define SH2_PTC_PS_SHFT 2
  173. /* SH2_PTC_RID */
  174. /* Description: Region ID */
  175. #define SH2_PTC_RID_SHFT 4
  176. /* SH2_PTC_START */
  177. /* Description: Start */
  178. #define SH2_PTC_START_SHFT 63
  179. /* SH2_PTC_ADDR_RID */
  180. /* Description: Region ID */
  181. #define SH2_PTC_ADDR_SHFT 4
  182. #define SH2_PTC_ADDR_MASK __IA64_UL_CONST(0x1ffffffffffff000)
  183. /* ==================================================================== */
  184. /* Register "SH_RTC1_INT_CONFIG" */
  185. /* SHub RTC 1 Interrupt Config Registers */
  186. /* ==================================================================== */
  187. #define SH1_RTC1_INT_CONFIG __IA64_UL_CONST(0x0000000110001480)
  188. #define SH2_RTC1_INT_CONFIG __IA64_UL_CONST(0x0000000010001480)
  189. #define SH_RTC1_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff)
  190. #define SH_RTC1_INT_CONFIG_INIT __IA64_UL_CONST(0x0000000000000000)
  191. /* SH_RTC1_INT_CONFIG_TYPE */
  192. /* Description: Type of Interrupt: 0=INT, 2=PMI, 4=NMI, 5=INIT */
  193. #define SH_RTC1_INT_CONFIG_TYPE_SHFT 0
  194. #define SH_RTC1_INT_CONFIG_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
  195. /* SH_RTC1_INT_CONFIG_AGT */
  196. /* Description: Agent, must be 0 for SHub */
  197. #define SH_RTC1_INT_CONFIG_AGT_SHFT 3
  198. #define SH_RTC1_INT_CONFIG_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
  199. /* SH_RTC1_INT_CONFIG_PID */
  200. /* Description: Processor ID, same setting as on targeted McKinley */
  201. #define SH_RTC1_INT_CONFIG_PID_SHFT 4
  202. #define SH_RTC1_INT_CONFIG_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
  203. /* SH_RTC1_INT_CONFIG_BASE */
  204. /* Description: Optional interrupt vector area, 2MB aligned */
  205. #define SH_RTC1_INT_CONFIG_BASE_SHFT 21
  206. #define SH_RTC1_INT_CONFIG_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
  207. /* SH_RTC1_INT_CONFIG_IDX */
  208. /* Description: Targeted McKinley interrupt vector */
  209. #define SH_RTC1_INT_CONFIG_IDX_SHFT 52
  210. #define SH_RTC1_INT_CONFIG_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
  211. /* ==================================================================== */
  212. /* Register "SH_RTC1_INT_ENABLE" */
  213. /* SHub RTC 1 Interrupt Enable Registers */
  214. /* ==================================================================== */
  215. #define SH1_RTC1_INT_ENABLE __IA64_UL_CONST(0x0000000110001500)
  216. #define SH2_RTC1_INT_ENABLE __IA64_UL_CONST(0x0000000010001500)
  217. #define SH_RTC1_INT_ENABLE_MASK __IA64_UL_CONST(0x0000000000000001)
  218. #define SH_RTC1_INT_ENABLE_INIT __IA64_UL_CONST(0x0000000000000000)
  219. /* SH_RTC1_INT_ENABLE_RTC1_ENABLE */
  220. /* Description: Enable RTC 1 Interrupt */
  221. #define SH_RTC1_INT_ENABLE_RTC1_ENABLE_SHFT 0
  222. #define SH_RTC1_INT_ENABLE_RTC1_ENABLE_MASK \
  223. __IA64_UL_CONST(0x0000000000000001)
  224. /* ==================================================================== */
  225. /* Register "SH_RTC2_INT_CONFIG" */
  226. /* SHub RTC 2 Interrupt Config Registers */
  227. /* ==================================================================== */
  228. #define SH1_RTC2_INT_CONFIG __IA64_UL_CONST(0x0000000110001580)
  229. #define SH2_RTC2_INT_CONFIG __IA64_UL_CONST(0x0000000010001580)
  230. #define SH_RTC2_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff)
  231. #define SH_RTC2_INT_CONFIG_INIT __IA64_UL_CONST(0x0000000000000000)
  232. /* SH_RTC2_INT_CONFIG_TYPE */
  233. /* Description: Type of Interrupt: 0=INT, 2=PMI, 4=NMI, 5=INIT */
  234. #define SH_RTC2_INT_CONFIG_TYPE_SHFT 0
  235. #define SH_RTC2_INT_CONFIG_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
  236. /* SH_RTC2_INT_CONFIG_AGT */
  237. /* Description: Agent, must be 0 for SHub */
  238. #define SH_RTC2_INT_CONFIG_AGT_SHFT 3
  239. #define SH_RTC2_INT_CONFIG_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
  240. /* SH_RTC2_INT_CONFIG_PID */
  241. /* Description: Processor ID, same setting as on targeted McKinley */
  242. #define SH_RTC2_INT_CONFIG_PID_SHFT 4
  243. #define SH_RTC2_INT_CONFIG_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
  244. /* SH_RTC2_INT_CONFIG_BASE */
  245. /* Description: Optional interrupt vector area, 2MB aligned */
  246. #define SH_RTC2_INT_CONFIG_BASE_SHFT 21
  247. #define SH_RTC2_INT_CONFIG_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
  248. /* SH_RTC2_INT_CONFIG_IDX */
  249. /* Description: Targeted McKinley interrupt vector */
  250. #define SH_RTC2_INT_CONFIG_IDX_SHFT 52
  251. #define SH_RTC2_INT_CONFIG_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
  252. /* ==================================================================== */
  253. /* Register "SH_RTC2_INT_ENABLE" */
  254. /* SHub RTC 2 Interrupt Enable Registers */
  255. /* ==================================================================== */
  256. #define SH1_RTC2_INT_ENABLE __IA64_UL_CONST(0x0000000110001600)
  257. #define SH2_RTC2_INT_ENABLE __IA64_UL_CONST(0x0000000010001600)
  258. #define SH_RTC2_INT_ENABLE_MASK __IA64_UL_CONST(0x0000000000000001)
  259. #define SH_RTC2_INT_ENABLE_INIT __IA64_UL_CONST(0x0000000000000000)
  260. /* SH_RTC2_INT_ENABLE_RTC2_ENABLE */
  261. /* Description: Enable RTC 2 Interrupt */
  262. #define SH_RTC2_INT_ENABLE_RTC2_ENABLE_SHFT 0
  263. #define SH_RTC2_INT_ENABLE_RTC2_ENABLE_MASK \
  264. __IA64_UL_CONST(0x0000000000000001)
  265. /* ==================================================================== */
  266. /* Register "SH_RTC3_INT_CONFIG" */
  267. /* SHub RTC 3 Interrupt Config Registers */
  268. /* ==================================================================== */
  269. #define SH1_RTC3_INT_CONFIG __IA64_UL_CONST(0x0000000110001680)
  270. #define SH2_RTC3_INT_CONFIG __IA64_UL_CONST(0x0000000010001680)
  271. #define SH_RTC3_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff)
  272. #define SH_RTC3_INT_CONFIG_INIT __IA64_UL_CONST(0x0000000000000000)
  273. /* SH_RTC3_INT_CONFIG_TYPE */
  274. /* Description: Type of Interrupt: 0=INT, 2=PMI, 4=NMI, 5=INIT */
  275. #define SH_RTC3_INT_CONFIG_TYPE_SHFT 0
  276. #define SH_RTC3_INT_CONFIG_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
  277. /* SH_RTC3_INT_CONFIG_AGT */
  278. /* Description: Agent, must be 0 for SHub */
  279. #define SH_RTC3_INT_CONFIG_AGT_SHFT 3
  280. #define SH_RTC3_INT_CONFIG_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
  281. /* SH_RTC3_INT_CONFIG_PID */
  282. /* Description: Processor ID, same setting as on targeted McKinley */
  283. #define SH_RTC3_INT_CONFIG_PID_SHFT 4
  284. #define SH_RTC3_INT_CONFIG_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
  285. /* SH_RTC3_INT_CONFIG_BASE */
  286. /* Description: Optional interrupt vector area, 2MB aligned */
  287. #define SH_RTC3_INT_CONFIG_BASE_SHFT 21
  288. #define SH_RTC3_INT_CONFIG_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
  289. /* SH_RTC3_INT_CONFIG_IDX */
  290. /* Description: Targeted McKinley interrupt vector */
  291. #define SH_RTC3_INT_CONFIG_IDX_SHFT 52
  292. #define SH_RTC3_INT_CONFIG_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
  293. /* ==================================================================== */
  294. /* Register "SH_RTC3_INT_ENABLE" */
  295. /* SHub RTC 3 Interrupt Enable Registers */
  296. /* ==================================================================== */
  297. #define SH1_RTC3_INT_ENABLE __IA64_UL_CONST(0x0000000110001700)
  298. #define SH2_RTC3_INT_ENABLE __IA64_UL_CONST(0x0000000010001700)
  299. #define SH_RTC3_INT_ENABLE_MASK __IA64_UL_CONST(0x0000000000000001)
  300. #define SH_RTC3_INT_ENABLE_INIT __IA64_UL_CONST(0x0000000000000000)
  301. /* SH_RTC3_INT_ENABLE_RTC3_ENABLE */
  302. /* Description: Enable RTC 3 Interrupt */
  303. #define SH_RTC3_INT_ENABLE_RTC3_ENABLE_SHFT 0
  304. #define SH_RTC3_INT_ENABLE_RTC3_ENABLE_MASK \
  305. __IA64_UL_CONST(0x0000000000000001)
  306. /* SH_EVENT_OCCURRED_RTC1_INT */
  307. /* Description: Pending RTC 1 Interrupt */
  308. #define SH_EVENT_OCCURRED_RTC1_INT_SHFT 24
  309. #define SH_EVENT_OCCURRED_RTC1_INT_MASK __IA64_UL_CONST(0x0000000001000000)
  310. /* SH_EVENT_OCCURRED_RTC2_INT */
  311. /* Description: Pending RTC 2 Interrupt */
  312. #define SH_EVENT_OCCURRED_RTC2_INT_SHFT 25
  313. #define SH_EVENT_OCCURRED_RTC2_INT_MASK __IA64_UL_CONST(0x0000000002000000)
  314. /* SH_EVENT_OCCURRED_RTC3_INT */
  315. /* Description: Pending RTC 3 Interrupt */
  316. #define SH_EVENT_OCCURRED_RTC3_INT_SHFT 26
  317. #define SH_EVENT_OCCURRED_RTC3_INT_MASK __IA64_UL_CONST(0x0000000004000000)
  318. /* ==================================================================== */
  319. /* Register "SH_IPI_ACCESS" */
  320. /* CPU interrupt Access Permission Bits */
  321. /* ==================================================================== */
  322. #define SH1_IPI_ACCESS __IA64_UL_CONST(0x0000000110060480)
  323. #define SH2_IPI_ACCESS0 __IA64_UL_CONST(0x0000000010060c00)
  324. #define SH2_IPI_ACCESS1 __IA64_UL_CONST(0x0000000010060c80)
  325. #define SH2_IPI_ACCESS2 __IA64_UL_CONST(0x0000000010060d00)
  326. #define SH2_IPI_ACCESS3 __IA64_UL_CONST(0x0000000010060d80)
  327. /* ==================================================================== */
  328. /* Register "SH_INT_CMPB" */
  329. /* RTC Compare Value for Processor B */
  330. /* ==================================================================== */
  331. #define SH1_INT_CMPB __IA64_UL_CONST(0x00000001101b0080)
  332. #define SH2_INT_CMPB __IA64_UL_CONST(0x00000000101b0080)
  333. #define SH_INT_CMPB_MASK __IA64_UL_CONST(0x007fffffffffffff)
  334. #define SH_INT_CMPB_INIT __IA64_UL_CONST(0x0000000000000000)
  335. /* SH_INT_CMPB_REAL_TIME_CMPB */
  336. /* Description: Real Time Clock Compare */
  337. #define SH_INT_CMPB_REAL_TIME_CMPB_SHFT 0
  338. #define SH_INT_CMPB_REAL_TIME_CMPB_MASK __IA64_UL_CONST(0x007fffffffffffff)
  339. /* ==================================================================== */
  340. /* Register "SH_INT_CMPC" */
  341. /* RTC Compare Value for Processor C */
  342. /* ==================================================================== */
  343. #define SH1_INT_CMPC __IA64_UL_CONST(0x00000001101b0100)
  344. #define SH2_INT_CMPC __IA64_UL_CONST(0x00000000101b0100)
  345. #define SH_INT_CMPC_MASK __IA64_UL_CONST(0x007fffffffffffff)
  346. #define SH_INT_CMPC_INIT __IA64_UL_CONST(0x0000000000000000)
  347. /* SH_INT_CMPC_REAL_TIME_CMPC */
  348. /* Description: Real Time Clock Compare */
  349. #define SH_INT_CMPC_REAL_TIME_CMPC_SHFT 0
  350. #define SH_INT_CMPC_REAL_TIME_CMPC_MASK __IA64_UL_CONST(0x007fffffffffffff)
  351. /* ==================================================================== */
  352. /* Register "SH_INT_CMPD" */
  353. /* RTC Compare Value for Processor D */
  354. /* ==================================================================== */
  355. #define SH1_INT_CMPD __IA64_UL_CONST(0x00000001101b0180)
  356. #define SH2_INT_CMPD __IA64_UL_CONST(0x00000000101b0180)
  357. #define SH_INT_CMPD_MASK __IA64_UL_CONST(0x007fffffffffffff)
  358. #define SH_INT_CMPD_INIT __IA64_UL_CONST(0x0000000000000000)
  359. /* SH_INT_CMPD_REAL_TIME_CMPD */
  360. /* Description: Real Time Clock Compare */
  361. #define SH_INT_CMPD_REAL_TIME_CMPD_SHFT 0
  362. #define SH_INT_CMPD_REAL_TIME_CMPD_MASK __IA64_UL_CONST(0x007fffffffffffff)
  363. /* ==================================================================== */
  364. /* Register "SH_MD_DQLP_MMR_DIR_PRIVEC0" */
  365. /* privilege vector for acc=0 */
  366. /* ==================================================================== */
  367. #define SH1_MD_DQLP_MMR_DIR_PRIVEC0 __IA64_UL_CONST(0x0000000100030300)
  368. /* ==================================================================== */
  369. /* Register "SH_MD_DQRP_MMR_DIR_PRIVEC0" */
  370. /* privilege vector for acc=0 */
  371. /* ==================================================================== */
  372. #define SH1_MD_DQRP_MMR_DIR_PRIVEC0 __IA64_UL_CONST(0x0000000100050300)
  373. /* ==================================================================== */
  374. /* Some MMRs are functionally identical (or close enough) on both SHUB1 */
  375. /* and SHUB2 that it makes sense to define a geberic name for the MMR. */
  376. /* It is acceptible to use (for example) SH_IPI_INT to reference the */
  377. /* the IPI MMR. The value of SH_IPI_INT is determined at runtime based */
  378. /* on the type of the SHUB. Do not use these #defines in performance */
  379. /* critical code or loops - there is a small performance penalty. */
  380. /* ==================================================================== */
  381. #define shubmmr(a,b) (is_shub2() ? a##2_##b : a##1_##b)
  382. #define SH_REAL_JUNK_BUS_LED0 shubmmr(SH, REAL_JUNK_BUS_LED0)
  383. #define SH_IPI_INT shubmmr(SH, IPI_INT)
  384. #define SH_EVENT_OCCURRED shubmmr(SH, EVENT_OCCURRED)
  385. #define SH_EVENT_OCCURRED_ALIAS shubmmr(SH, EVENT_OCCURRED_ALIAS)
  386. #define SH_RTC shubmmr(SH, RTC)
  387. #define SH_RTC1_INT_CONFIG shubmmr(SH, RTC1_INT_CONFIG)
  388. #define SH_RTC1_INT_ENABLE shubmmr(SH, RTC1_INT_ENABLE)
  389. #define SH_RTC2_INT_CONFIG shubmmr(SH, RTC2_INT_CONFIG)
  390. #define SH_RTC2_INT_ENABLE shubmmr(SH, RTC2_INT_ENABLE)
  391. #define SH_RTC3_INT_CONFIG shubmmr(SH, RTC3_INT_CONFIG)
  392. #define SH_RTC3_INT_ENABLE shubmmr(SH, RTC3_INT_ENABLE)
  393. #define SH_INT_CMPB shubmmr(SH, INT_CMPB)
  394. #define SH_INT_CMPC shubmmr(SH, INT_CMPC)
  395. #define SH_INT_CMPD shubmmr(SH, INT_CMPD)
  396. /* ========================================================================== */
  397. /* Register "SH2_BT_ENG_CSR_0" */
  398. /* Engine 0 Control and Status Register */
  399. /* ========================================================================== */
  400. #define SH2_BT_ENG_CSR_0 __IA64_UL_CONST(0x0000000030040000)
  401. #define SH2_BT_ENG_SRC_ADDR_0 __IA64_UL_CONST(0x0000000030040080)
  402. #define SH2_BT_ENG_DEST_ADDR_0 __IA64_UL_CONST(0x0000000030040100)
  403. #define SH2_BT_ENG_NOTIF_ADDR_0 __IA64_UL_CONST(0x0000000030040180)
  404. /* ========================================================================== */
  405. /* BTE interfaces 1-3 */
  406. /* ========================================================================== */
  407. #define SH2_BT_ENG_CSR_1 __IA64_UL_CONST(0x0000000030050000)
  408. #define SH2_BT_ENG_CSR_2 __IA64_UL_CONST(0x0000000030060000)
  409. #define SH2_BT_ENG_CSR_3 __IA64_UL_CONST(0x0000000030070000)
  410. #endif /* _ASM_IA64_SN_SHUB_MMR_H */