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
7 * Copyright (c) 2001-2004 Silicon Graphics, Inc. All rights reserved.
10 #ifndef _ASM_IA64_SN_SHUB_MMR_H
11 #define _ASM_IA64_SN_SHUB_MMR_H
13 /* ==================================================================== */
14 /* Register "SH_IPI_INT" */
15 /* SHub Inter-Processor Interrupt Registers */
16 /* ==================================================================== */
17 #define SH_IPI_INT 0x0000000110000380UL
18 #define SH_IPI_INT_MASK 0x8ff3ffffffefffffUL
19 #define SH_IPI_INT_INIT 0x0000000000000000UL
22 /* Description: Type of Interrupt: 0=INT, 2=PMI, 4=NMI, 5=INIT */
23 #define SH_IPI_INT_TYPE_SHFT 0
24 #define SH_IPI_INT_TYPE_MASK 0x0000000000000007UL
27 /* Description: Agent, must be 0 for SHub */
28 #define SH_IPI_INT_AGT_SHFT 3
29 #define SH_IPI_INT_AGT_MASK 0x0000000000000008UL
32 /* Description: Processor ID, same setting as on targeted McKinley */
33 #define SH_IPI_INT_PID_SHFT 4
34 #define SH_IPI_INT_PID_MASK 0x00000000000ffff0UL
37 /* Description: Optional interrupt vector area, 2MB aligned */
38 #define SH_IPI_INT_BASE_SHFT 21
39 #define SH_IPI_INT_BASE_MASK 0x0003ffffffe00000UL
42 /* Description: Targeted McKinley interrupt vector */
43 #define SH_IPI_INT_IDX_SHFT 52
44 #define SH_IPI_INT_IDX_MASK 0x0ff0000000000000UL
47 /* Description: Send Interrupt Message to PI, This generates a puls */
48 #define SH_IPI_INT_SEND_SHFT 63
49 #define SH_IPI_INT_SEND_MASK 0x8000000000000000UL
51 /* ==================================================================== */
52 /* Register "SH_EVENT_OCCURRED" */
53 /* SHub Interrupt Event Occurred */
54 /* ==================================================================== */
55 #define SH_EVENT_OCCURRED 0x0000000110010000UL
56 #define SH_EVENT_OCCURRED_ALIAS 0x0000000110010008UL
58 /* ==================================================================== */
59 /* Register "SH_PI_CAM_CONTROL" */
60 /* CRB CAM MMR Access Control */
61 /* ==================================================================== */
63 #define SH_PI_CAM_CONTROL 0x0000000120050300UL
65 #define SH_PI_CAM_CONTROL 0x0000000120050300
68 /* ==================================================================== */
69 /* Register "SH_SHUB_ID" */
71 /* ==================================================================== */
72 #define SH_SHUB_ID 0x0000000110060580UL
73 #define SH_SHUB_ID_REVISION_SHFT 28
74 #define SH_SHUB_ID_REVISION_MASK 0x00000000f0000000
76 /* ==================================================================== */
77 /* Register "SH_PTC_0" */
78 /* Puge Translation Cache Message Configuration Information */
79 /* ==================================================================== */
80 #define SH_PTC_0 0x00000001101a0000UL
81 #define SH_PTC_1 0x00000001101a0080UL
83 /* ==================================================================== */
84 /* Register "SH_RTC" */
86 /* ==================================================================== */
87 #define SH_RTC 0x00000001101c0000UL
88 #define SH_RTC_MASK 0x007fffffffffffffUL
90 /* ==================================================================== */
91 /* Register "SH_MEMORY_WRITE_STATUS_0|1" */
92 /* Memory Write Status for CPU 0 & 1 */
93 /* ==================================================================== */
94 #define SH_MEMORY_WRITE_STATUS_0 0x0000000120070000UL
95 #define SH_MEMORY_WRITE_STATUS_1 0x0000000120070080UL
97 /* ==================================================================== */
98 /* Register "SH_PIO_WRITE_STATUS_0|1" */
99 /* PIO Write Status for CPU 0 & 1 */
100 /* ==================================================================== */
102 #define SH_PIO_WRITE_STATUS_0 0x0000000120070200UL
103 #define SH_PIO_WRITE_STATUS_1 0x0000000120070280UL
105 /* SH_PIO_WRITE_STATUS_0_WRITE_DEADLOCK */
106 /* Description: Deadlock response detected */
107 #define SH_PIO_WRITE_STATUS_0_WRITE_DEADLOCK_SHFT 1
108 #define SH_PIO_WRITE_STATUS_0_WRITE_DEADLOCK_MASK 0x0000000000000002
110 /* SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT */
111 /* Description: Count of currently pending PIO writes */
112 #define SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT_SHFT 56
113 #define SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT_MASK 0x3f00000000000000UL
115 #define SH_PIO_WRITE_STATUS_0 0x0000000120070200
116 #define SH_PIO_WRITE_STATUS_0_PENDING_WRITE_COUNT_SHFT 56
117 #define SH_PIO_WRITE_STATUS_0_WRITE_DEADLOCK_SHFT 1
120 /* ==================================================================== */
121 /* Register "SH_PIO_WRITE_STATUS_0_ALIAS" */
122 /* ==================================================================== */
124 #define SH_PIO_WRITE_STATUS_0_ALIAS 0x0000000120070208UL
126 #define SH_PIO_WRITE_STATUS_0_ALIAS 0x0000000120070208
129 /* ==================================================================== */
130 /* Register "SH_EVENT_OCCURRED" */
131 /* SHub Interrupt Event Occurred */
132 /* ==================================================================== */
133 /* SH_EVENT_OCCURRED_UART_INT */
134 /* Description: Pending Junk Bus UART Interrupt */
135 #define SH_EVENT_OCCURRED_UART_INT_SHFT 20
136 #define SH_EVENT_OCCURRED_UART_INT_MASK 0x0000000000100000
138 /* SH_EVENT_OCCURRED_IPI_INT */
139 /* Description: Pending IPI Interrupt */
140 #define SH_EVENT_OCCURRED_IPI_INT_SHFT 28
141 #define SH_EVENT_OCCURRED_IPI_INT_MASK 0x0000000010000000
143 /* SH_EVENT_OCCURRED_II_INT0 */
144 /* Description: Pending II 0 Interrupt */
145 #define SH_EVENT_OCCURRED_II_INT0_SHFT 29
146 #define SH_EVENT_OCCURRED_II_INT0_MASK 0x0000000020000000
148 /* SH_EVENT_OCCURRED_II_INT1 */
149 /* Description: Pending II 1 Interrupt */
150 #define SH_EVENT_OCCURRED_II_INT1_SHFT 30
151 #define SH_EVENT_OCCURRED_II_INT1_MASK 0x0000000040000000
153 /* ==================================================================== */
154 /* Register "SH_PTC_0" */
155 /* Puge Translation Cache Message Configuration Information */
156 /* ==================================================================== */
157 #define SH_PTC_0 0x00000001101a0000UL
158 #define SH_PTC_0_MASK 0x80000000fffffffd
159 #define SH_PTC_0_INIT 0x0000000000000000
162 /* Description: Type */
163 #define SH_PTC_0_A_SHFT 0
164 #define SH_PTC_0_A_MASK 0x0000000000000001
167 /* Description: Page Size */
168 #define SH_PTC_0_PS_SHFT 2
169 #define SH_PTC_0_PS_MASK 0x00000000000000fc
172 /* Description: Region ID */
173 #define SH_PTC_0_RID_SHFT 8
174 #define SH_PTC_0_RID_MASK 0x00000000ffffff00
177 /* Description: Start */
178 #define SH_PTC_0_START_SHFT 63
179 #define SH_PTC_0_START_MASK 0x8000000000000000
181 /* ==================================================================== */
182 /* Register "SH_PTC_1" */
183 /* Puge Translation Cache Message Configuration Information */
184 /* ==================================================================== */
185 #define SH_PTC_1 0x00000001101a0080UL
186 #define SH_PTC_1_MASK 0x9ffffffffffff000
187 #define SH_PTC_1_INIT 0x0000000000000000
190 /* Description: Virtual page number */
191 #define SH_PTC_1_VPN_SHFT 12
192 #define SH_PTC_1_VPN_MASK 0x1ffffffffffff000
195 /* Description: PTC_1 Start */
196 #define SH_PTC_1_START_SHFT 63
197 #define SH_PTC_1_START_MASK 0x8000000000000000
199 #endif /* _ASM_IA64_SN_SHUB_MMR_H */