Go to the documentation of this file.
10 #ifndef _ASM_IA64_SN_SHUB_MMR_H
11 #define _ASM_IA64_SN_SHUB_MMR_H
17 #define SH1_IPI_INT __IA64_UL_CONST(0x0000000110000380)
18 #define SH2_IPI_INT __IA64_UL_CONST(0x0000000010000380)
22 #define SH_IPI_INT_TYPE_SHFT 0
23 #define SH_IPI_INT_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
27 #define SH_IPI_INT_AGT_SHFT 3
28 #define SH_IPI_INT_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
32 #define SH_IPI_INT_PID_SHFT 4
33 #define SH_IPI_INT_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
37 #define SH_IPI_INT_BASE_SHFT 21
38 #define SH_IPI_INT_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
42 #define SH_IPI_INT_IDX_SHFT 52
43 #define SH_IPI_INT_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
47 #define SH_IPI_INT_SEND_SHFT 63
48 #define SH_IPI_INT_SEND_MASK __IA64_UL_CONST(0x8000000000000000)
54 #define SH1_EVENT_OCCURRED __IA64_UL_CONST(0x0000000110010000)
55 #define SH1_EVENT_OCCURRED_ALIAS __IA64_UL_CONST(0x0000000110010008)
56 #define SH2_EVENT_OCCURRED __IA64_UL_CONST(0x0000000010010000)
57 #define SH2_EVENT_OCCURRED_ALIAS __IA64_UL_CONST(0x0000000010010008)
63 #define SH1_PI_CAM_CONTROL __IA64_UL_CONST(0x0000000120050300)
69 #define SH1_SHUB_ID __IA64_UL_CONST(0x0000000110060580)
70 #define SH1_SHUB_ID_REVISION_SHFT 28
71 #define SH1_SHUB_ID_REVISION_MASK __IA64_UL_CONST(0x00000000f0000000)
77 #define SH1_RTC __IA64_UL_CONST(0x00000001101c0000)
78 #define SH2_RTC __IA64_UL_CONST(0x00000002101c0000)
79 #define SH_RTC_MASK __IA64_UL_CONST(0x007fffffffffffff)
85 #define SH1_PIO_WRITE_STATUS_0 __IA64_UL_CONST(0x0000000120070200)
86 #define SH1_PIO_WRITE_STATUS_1 __IA64_UL_CONST(0x0000000120070280)
87 #define SH2_PIO_WRITE_STATUS_0 __IA64_UL_CONST(0x0000000020070200)
88 #define SH2_PIO_WRITE_STATUS_1 __IA64_UL_CONST(0x0000000020070280)
89 #define SH2_PIO_WRITE_STATUS_2 __IA64_UL_CONST(0x0000000020070300)
90 #define SH2_PIO_WRITE_STATUS_3 __IA64_UL_CONST(0x0000000020070380)
94 #define SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_SHFT 1
95 #define SH_PIO_WRITE_STATUS_WRITE_DEADLOCK_MASK \
96 __IA64_UL_CONST(0x0000000000000002)
100 #define SH_PIO_WRITE_STATUS_PENDING_WRITE_COUNT_SHFT 56
101 #define SH_PIO_WRITE_STATUS_PENDING_WRITE_COUNT_MASK \
102 __IA64_UL_CONST(0x3f00000000000000)
107 #define SH1_PIO_WRITE_STATUS_0_ALIAS __IA64_UL_CONST(0x0000000120070208)
108 #define SH2_PIO_WRITE_STATUS_0_ALIAS __IA64_UL_CONST(0x0000000020070208)
116 #define SH_EVENT_OCCURRED_UART_INT_SHFT 20
117 #define SH_EVENT_OCCURRED_UART_INT_MASK __IA64_UL_CONST(0x0000000000100000)
121 #define SH_EVENT_OCCURRED_IPI_INT_SHFT 28
122 #define SH_EVENT_OCCURRED_IPI_INT_MASK __IA64_UL_CONST(0x0000000010000000)
126 #define SH_EVENT_OCCURRED_II_INT0_SHFT 29
127 #define SH_EVENT_OCCURRED_II_INT0_MASK __IA64_UL_CONST(0x0000000020000000)
131 #define SH_EVENT_OCCURRED_II_INT1_SHFT 30
132 #define SH_EVENT_OCCURRED_II_INT1_MASK __IA64_UL_CONST(0x0000000040000000)
136 #define SH2_EVENT_OCCURRED_EXTIO_INT2_SHFT 33
137 #define SH2_EVENT_OCCURRED_EXTIO_INT2_MASK __IA64_UL_CONST(0x0000000200000000)
141 #define SH2_EVENT_OCCURRED_EXTIO_INT3_SHFT 34
142 #define SH2_EVENT_OCCURRED_EXTIO_INT3_MASK __IA64_UL_CONST(0x0000000400000000)
144 #define SH_ALL_INT_MASK \
145 (SH_EVENT_OCCURRED_UART_INT_MASK | SH_EVENT_OCCURRED_IPI_INT_MASK | \
146 SH_EVENT_OCCURRED_II_INT0_MASK | SH_EVENT_OCCURRED_II_INT1_MASK | \
147 SH_EVENT_OCCURRED_II_INT1_MASK | SH2_EVENT_OCCURRED_EXTIO_INT2_MASK | \
148 SH2_EVENT_OCCURRED_EXTIO_INT3_MASK)
154 #define SH1_REAL_JUNK_BUS_LED0 0x7fed00000UL
155 #define SH1_REAL_JUNK_BUS_LED1 0x7fed10000UL
156 #define SH1_REAL_JUNK_BUS_LED2 0x7fed20000UL
157 #define SH1_REAL_JUNK_BUS_LED3 0x7fed30000UL
159 #define SH2_REAL_JUNK_BUS_LED0 0xf0000000UL
160 #define SH2_REAL_JUNK_BUS_LED1 0xf0010000UL
161 #define SH2_REAL_JUNK_BUS_LED2 0xf0020000UL
162 #define SH2_REAL_JUNK_BUS_LED3 0xf0030000UL
168 #define SH1_PTC_0 __IA64_UL_CONST(0x00000001101a0000)
172 #define SH1_PTC_0_A_SHFT 0
176 #define SH1_PTC_0_PS_SHFT 2
180 #define SH1_PTC_0_RID_SHFT 8
184 #define SH1_PTC_0_START_SHFT 63
190 #define SH1_PTC_1 __IA64_UL_CONST(0x00000001101a0080)
194 #define SH1_PTC_1_START_SHFT 63
200 #define SH2_PTC __IA64_UL_CONST(0x0000000170000000)
204 #define SH2_PTC_A_SHFT 0
208 #define SH2_PTC_PS_SHFT 2
212 #define SH2_PTC_RID_SHFT 4
216 #define SH2_PTC_START_SHFT 63
220 #define SH2_PTC_ADDR_SHFT 4
221 #define SH2_PTC_ADDR_MASK __IA64_UL_CONST(0x1ffffffffffff000)
228 #define SH1_RTC1_INT_CONFIG __IA64_UL_CONST(0x0000000110001480)
229 #define SH2_RTC1_INT_CONFIG __IA64_UL_CONST(0x0000000010001480)
230 #define SH_RTC1_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff)
231 #define SH_RTC1_INT_CONFIG_INIT __IA64_UL_CONST(0x0000000000000000)
235 #define SH_RTC1_INT_CONFIG_TYPE_SHFT 0
236 #define SH_RTC1_INT_CONFIG_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
240 #define SH_RTC1_INT_CONFIG_AGT_SHFT 3
241 #define SH_RTC1_INT_CONFIG_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
245 #define SH_RTC1_INT_CONFIG_PID_SHFT 4
246 #define SH_RTC1_INT_CONFIG_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
250 #define SH_RTC1_INT_CONFIG_BASE_SHFT 21
251 #define SH_RTC1_INT_CONFIG_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
255 #define SH_RTC1_INT_CONFIG_IDX_SHFT 52
256 #define SH_RTC1_INT_CONFIG_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
263 #define SH1_RTC1_INT_ENABLE __IA64_UL_CONST(0x0000000110001500)
264 #define SH2_RTC1_INT_ENABLE __IA64_UL_CONST(0x0000000010001500)
265 #define SH_RTC1_INT_ENABLE_MASK __IA64_UL_CONST(0x0000000000000001)
266 #define SH_RTC1_INT_ENABLE_INIT __IA64_UL_CONST(0x0000000000000000)
270 #define SH_RTC1_INT_ENABLE_RTC1_ENABLE_SHFT 0
271 #define SH_RTC1_INT_ENABLE_RTC1_ENABLE_MASK \
272 __IA64_UL_CONST(0x0000000000000001)
279 #define SH1_RTC2_INT_CONFIG __IA64_UL_CONST(0x0000000110001580)
280 #define SH2_RTC2_INT_CONFIG __IA64_UL_CONST(0x0000000010001580)
281 #define SH_RTC2_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff)
282 #define SH_RTC2_INT_CONFIG_INIT __IA64_UL_CONST(0x0000000000000000)
286 #define SH_RTC2_INT_CONFIG_TYPE_SHFT 0
287 #define SH_RTC2_INT_CONFIG_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
291 #define SH_RTC2_INT_CONFIG_AGT_SHFT 3
292 #define SH_RTC2_INT_CONFIG_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
296 #define SH_RTC2_INT_CONFIG_PID_SHFT 4
297 #define SH_RTC2_INT_CONFIG_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
301 #define SH_RTC2_INT_CONFIG_BASE_SHFT 21
302 #define SH_RTC2_INT_CONFIG_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
306 #define SH_RTC2_INT_CONFIG_IDX_SHFT 52
307 #define SH_RTC2_INT_CONFIG_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
314 #define SH1_RTC2_INT_ENABLE __IA64_UL_CONST(0x0000000110001600)
315 #define SH2_RTC2_INT_ENABLE __IA64_UL_CONST(0x0000000010001600)
316 #define SH_RTC2_INT_ENABLE_MASK __IA64_UL_CONST(0x0000000000000001)
317 #define SH_RTC2_INT_ENABLE_INIT __IA64_UL_CONST(0x0000000000000000)
321 #define SH_RTC2_INT_ENABLE_RTC2_ENABLE_SHFT 0
322 #define SH_RTC2_INT_ENABLE_RTC2_ENABLE_MASK \
323 __IA64_UL_CONST(0x0000000000000001)
330 #define SH1_RTC3_INT_CONFIG __IA64_UL_CONST(0x0000000110001680)
331 #define SH2_RTC3_INT_CONFIG __IA64_UL_CONST(0x0000000010001680)
332 #define SH_RTC3_INT_CONFIG_MASK __IA64_UL_CONST(0x0ff3ffffffefffff)
333 #define SH_RTC3_INT_CONFIG_INIT __IA64_UL_CONST(0x0000000000000000)
337 #define SH_RTC3_INT_CONFIG_TYPE_SHFT 0
338 #define SH_RTC3_INT_CONFIG_TYPE_MASK __IA64_UL_CONST(0x0000000000000007)
342 #define SH_RTC3_INT_CONFIG_AGT_SHFT 3
343 #define SH_RTC3_INT_CONFIG_AGT_MASK __IA64_UL_CONST(0x0000000000000008)
347 #define SH_RTC3_INT_CONFIG_PID_SHFT 4
348 #define SH_RTC3_INT_CONFIG_PID_MASK __IA64_UL_CONST(0x00000000000ffff0)
352 #define SH_RTC3_INT_CONFIG_BASE_SHFT 21
353 #define SH_RTC3_INT_CONFIG_BASE_MASK __IA64_UL_CONST(0x0003ffffffe00000)
357 #define SH_RTC3_INT_CONFIG_IDX_SHFT 52
358 #define SH_RTC3_INT_CONFIG_IDX_MASK __IA64_UL_CONST(0x0ff0000000000000)
365 #define SH1_RTC3_INT_ENABLE __IA64_UL_CONST(0x0000000110001700)
366 #define SH2_RTC3_INT_ENABLE __IA64_UL_CONST(0x0000000010001700)
367 #define SH_RTC3_INT_ENABLE_MASK __IA64_UL_CONST(0x0000000000000001)
368 #define SH_RTC3_INT_ENABLE_INIT __IA64_UL_CONST(0x0000000000000000)
372 #define SH_RTC3_INT_ENABLE_RTC3_ENABLE_SHFT 0
373 #define SH_RTC3_INT_ENABLE_RTC3_ENABLE_MASK \
374 __IA64_UL_CONST(0x0000000000000001)
378 #define SH_EVENT_OCCURRED_RTC1_INT_SHFT 24
379 #define SH_EVENT_OCCURRED_RTC1_INT_MASK __IA64_UL_CONST(0x0000000001000000)
383 #define SH_EVENT_OCCURRED_RTC2_INT_SHFT 25
384 #define SH_EVENT_OCCURRED_RTC2_INT_MASK __IA64_UL_CONST(0x0000000002000000)
388 #define SH_EVENT_OCCURRED_RTC3_INT_SHFT 26
389 #define SH_EVENT_OCCURRED_RTC3_INT_MASK __IA64_UL_CONST(0x0000000004000000)
396 #define SH1_IPI_ACCESS __IA64_UL_CONST(0x0000000110060480)
397 #define SH2_IPI_ACCESS0 __IA64_UL_CONST(0x0000000010060c00)
398 #define SH2_IPI_ACCESS1 __IA64_UL_CONST(0x0000000010060c80)
399 #define SH2_IPI_ACCESS2 __IA64_UL_CONST(0x0000000010060d00)
400 #define SH2_IPI_ACCESS3 __IA64_UL_CONST(0x0000000010060d80)
407 #define SH1_INT_CMPB __IA64_UL_CONST(0x00000001101b0080)
408 #define SH2_INT_CMPB __IA64_UL_CONST(0x00000000101b0080)
409 #define SH_INT_CMPB_MASK __IA64_UL_CONST(0x007fffffffffffff)
410 #define SH_INT_CMPB_INIT __IA64_UL_CONST(0x0000000000000000)
414 #define SH_INT_CMPB_REAL_TIME_CMPB_SHFT 0
415 #define SH_INT_CMPB_REAL_TIME_CMPB_MASK __IA64_UL_CONST(0x007fffffffffffff)
422 #define SH1_INT_CMPC __IA64_UL_CONST(0x00000001101b0100)
423 #define SH2_INT_CMPC __IA64_UL_CONST(0x00000000101b0100)
424 #define SH_INT_CMPC_MASK __IA64_UL_CONST(0x007fffffffffffff)
425 #define SH_INT_CMPC_INIT __IA64_UL_CONST(0x0000000000000000)
429 #define SH_INT_CMPC_REAL_TIME_CMPC_SHFT 0
430 #define SH_INT_CMPC_REAL_TIME_CMPC_MASK __IA64_UL_CONST(0x007fffffffffffff)
437 #define SH1_INT_CMPD __IA64_UL_CONST(0x00000001101b0180)
438 #define SH2_INT_CMPD __IA64_UL_CONST(0x00000000101b0180)
439 #define SH_INT_CMPD_MASK __IA64_UL_CONST(0x007fffffffffffff)
440 #define SH_INT_CMPD_INIT __IA64_UL_CONST(0x0000000000000000)
444 #define SH_INT_CMPD_REAL_TIME_CMPD_SHFT 0
445 #define SH_INT_CMPD_REAL_TIME_CMPD_MASK __IA64_UL_CONST(0x007fffffffffffff)
451 #define SH1_MD_DQLP_MMR_DIR_PRIVEC0 __IA64_UL_CONST(0x0000000100030300)
457 #define SH1_MD_DQRP_MMR_DIR_PRIVEC0 __IA64_UL_CONST(0x0000000100050300)
467 #define shubmmr(a,b) (is_shub2() ? a##2_##b : a##1_##b)
469 #define SH_REAL_JUNK_BUS_LED0 shubmmr(SH, REAL_JUNK_BUS_LED0)
470 #define SH_IPI_INT shubmmr(SH, IPI_INT)
471 #define SH_EVENT_OCCURRED shubmmr(SH, EVENT_OCCURRED)
472 #define SH_EVENT_OCCURRED_ALIAS shubmmr(SH, EVENT_OCCURRED_ALIAS)
473 #define SH_RTC shubmmr(SH, RTC)
474 #define SH_RTC1_INT_CONFIG shubmmr(SH, RTC1_INT_CONFIG)
475 #define SH_RTC1_INT_ENABLE shubmmr(SH, RTC1_INT_ENABLE)
476 #define SH_RTC2_INT_CONFIG shubmmr(SH, RTC2_INT_CONFIG)
477 #define SH_RTC2_INT_ENABLE shubmmr(SH, RTC2_INT_ENABLE)
478 #define SH_RTC3_INT_CONFIG shubmmr(SH, RTC3_INT_CONFIG)
479 #define SH_RTC3_INT_ENABLE shubmmr(SH, RTC3_INT_ENABLE)
480 #define SH_INT_CMPB shubmmr(SH, INT_CMPB)
481 #define SH_INT_CMPC shubmmr(SH, INT_CMPC)
482 #define SH_INT_CMPD shubmmr(SH, INT_CMPD)
489 #define SH2_BT_ENG_CSR_0 __IA64_UL_CONST(0x0000000030040000)
490 #define SH2_BT_ENG_SRC_ADDR_0 __IA64_UL_CONST(0x0000000030040080)
491 #define SH2_BT_ENG_DEST_ADDR_0 __IA64_UL_CONST(0x0000000030040100)
492 #define SH2_BT_ENG_NOTIF_ADDR_0 __IA64_UL_CONST(0x0000000030040180)
498 #define SH2_BT_ENG_CSR_1 __IA64_UL_CONST(0x0000000030050000)
499 #define SH2_BT_ENG_CSR_2 __IA64_UL_CONST(0x0000000030060000)
500 #define SH2_BT_ENG_CSR_3 __IA64_UL_CONST(0x0000000030070000)