This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-ia64 / sn / shub_mmr.h
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-2004 Silicon Graphics, Inc.  All rights reserved.
8  */
9
10 #ifndef _ASM_IA64_SN_SHUB_MMR_H
11 #define _ASM_IA64_SN_SHUB_MMR_H
12
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
20
21 /*   SH_IPI_INT_TYPE                                                    */
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
25
26 /*   SH_IPI_INT_AGT                                                     */
27 /*   Description:  Agent, must be 0 for SHub                            */
28 #define SH_IPI_INT_AGT_SHFT                      3
29 #define SH_IPI_INT_AGT_MASK                      0x0000000000000008UL
30
31 /*   SH_IPI_INT_PID                                                     */
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
35
36 /*   SH_IPI_INT_BASE                                                    */
37 /*   Description:  Optional interrupt vector area, 2MB aligned          */
38 #define SH_IPI_INT_BASE_SHFT                     21
39 #define SH_IPI_INT_BASE_MASK                     0x0003ffffffe00000UL
40
41 /*   SH_IPI_INT_IDX                                                     */
42 /*   Description:  Targeted McKinley interrupt vector                   */
43 #define SH_IPI_INT_IDX_SHFT                      52
44 #define SH_IPI_INT_IDX_MASK                      0x0ff0000000000000UL
45
46 /*   SH_IPI_INT_SEND                                                    */
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
50
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
57
58 /* ==================================================================== */
59 /*                     Register "SH_PI_CAM_CONTROL"                     */
60 /*                      CRB CAM MMR Access Control                      */
61 /* ==================================================================== */
62 #ifndef __ASSEMBLY__
63 #define SH_PI_CAM_CONTROL                        0x0000000120050300UL
64 #else
65 #define SH_PI_CAM_CONTROL                        0x0000000120050300
66 #endif
67
68 /* ==================================================================== */
69 /*                        Register "SH_SHUB_ID"                         */
70 /*                            SHub ID Number                            */
71 /* ==================================================================== */
72 #define SH_SHUB_ID                               0x0000000110060580UL
73 #define SH_SHUB_ID_REVISION_SHFT                 28
74 #define SH_SHUB_ID_REVISION_MASK                 0x00000000f0000000
75
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
82
83 /* ==================================================================== */
84 /*                          Register "SH_RTC"                           */
85 /*                           Real-time Clock                            */
86 /* ==================================================================== */
87 #define SH_RTC                                   0x00000001101c0000UL
88 #define SH_RTC_MASK                              0x007fffffffffffffUL
89
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
96
97 /* ==================================================================== */
98 /*                   Register "SH_PIO_WRITE_STATUS_0|1"                 */
99 /*                      PIO Write Status for CPU 0 & 1                  */
100 /* ==================================================================== */
101 #ifndef __ASSEMBLY__
102 #define SH_PIO_WRITE_STATUS_0                    0x0000000120070200UL
103 #define SH_PIO_WRITE_STATUS_1                    0x0000000120070280UL
104
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
109
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
114 #else
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
118 #endif
119
120 /* ==================================================================== */
121 /*                Register "SH_PIO_WRITE_STATUS_0_ALIAS"                */
122 /* ==================================================================== */
123 #ifndef __ASSEMBLY__
124 #define SH_PIO_WRITE_STATUS_0_ALIAS              0x0000000120070208UL
125 #else
126 #define SH_PIO_WRITE_STATUS_0_ALIAS              0x0000000120070208
127 #endif
128
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
137
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
142
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
147
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
152
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
160
161 /*   SH_PTC_0_A                                                         */
162 /*   Description:  Type                                                 */
163 #define SH_PTC_0_A_SHFT                          0
164 #define SH_PTC_0_A_MASK                          0x0000000000000001
165
166 /*   SH_PTC_0_PS                                                        */
167 /*   Description:  Page Size                                            */
168 #define SH_PTC_0_PS_SHFT                         2
169 #define SH_PTC_0_PS_MASK                         0x00000000000000fc
170
171 /*   SH_PTC_0_RID                                                       */
172 /*   Description:  Region ID                                            */
173 #define SH_PTC_0_RID_SHFT                        8
174 #define SH_PTC_0_RID_MASK                        0x00000000ffffff00
175
176 /*   SH_PTC_0_START                                                     */
177 /*   Description:  Start                                                */
178 #define SH_PTC_0_START_SHFT                      63
179 #define SH_PTC_0_START_MASK                      0x8000000000000000
180
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
188
189 /*   SH_PTC_1_VPN                                                       */
190 /*   Description:  Virtual page number                                  */
191 #define SH_PTC_1_VPN_SHFT                        12
192 #define SH_PTC_1_VPN_MASK                        0x1ffffffffffff000
193
194 /*   SH_PTC_1_START                                                     */
195 /*   Description:  PTC_1 Start                                          */
196 #define SH_PTC_1_START_SHFT                      63
197 #define SH_PTC_1_START_MASK                      0x8000000000000000
198
199 #endif /* _ASM_IA64_SN_SHUB_MMR_H */