Go to the documentation of this file. 1 #ifndef __UNIVERSE_DEFS
2 #define __UNIVERSE_DEFS
12 #ifndef PCI_VENDOR_ID_TUNDRA
13 #define PCI_VENDOR_ID_TUNDRA 0x10e3
15 #ifndef PCI_DEVICE_ID_TUNDRA_CA91C042
16 #define PCI_DEVICE_ID_TUNDRA_CA91C042 0x0000
21 #define UNIV_PCI_ID 0x000
22 #define UNIV_PCI_CSR 0x004
23 #define UNIV_PCI_CLASS 0x008
24 #define UNIV_BM_PCI_CLASS_BASE 0xFF000000
25 #define UNIV_OF_PCI_CLASS_BASE 24
26 #define UNIV_BM_PCI_CLASS_SUB 0x00FF0000
27 #define UNIV_OF_PCI_CLASS_SUB 16
28 #define UNIV_BM_PCI_CLASS_PROG 0x0000FF00
29 #define UNIV_OF_PCI_CLASS_PROG 8
30 #define UNIV_BM_PCI_CLASS_RID 0x000000FF
31 #define UNIV_OF_PCI_CLASS_RID 0
33 #define UNIV_OF_PCI_CLASS_RID_UNIVERSE_I 0
34 #define UNIV_OF_PCI_CLASS_RID_UNIVERSE_II 1
36 #define UNIV_PCI_MISC0 0x00C
37 #define UNIV_BM_PCI_MISC0_BISTC 0x80000000
38 #define UNIV_BM_PCI_MISC0_SBIST 0x60000000
39 #define UNIV_BM_PCI_MISC0_CCODE 0x0F000000
40 #define UNIV_BM_PCI_MISC0_MFUNCT 0x00800000
41 #define UNIV_BM_PCI_MISC0_LAYOUT 0x007F0000
42 #define UNIV_BM_PCI_MISC0_LTIMER 0x0000FF00
43 #define UNIV_OF_PCI_MISC0_LTIMER 8
44 #define UNIV_PCI_BS 0x010
45 #define UNIV_PCI_MISC1 0x03C
53 #define UNIV_BM_LSI_CTL_EN 0x80000000
54 #define UNIV_BM_LSI_CTL_PWEN 0x40000000
55 #define UNIV_BM_LSI_CTL_VDW 0x00C00000
56 #define UNIV_OF_LSI_CTL_VDW 22
57 #define UNIV_BM_LSI_CTL_VAS 0x00070000
58 #define UNIV_OF_LSI_CTL_VAS 16
59 #define UNIV_BM_LSI_CTL_PGM 0x0000C000
60 #define UNIV_OF_LSI_CTL_PGM 14
61 #define UNIV_BM_LSI_CTL_SUPER 0x00003000
62 #define UNIV_OF_LSI_CTL_SUPER 12
63 #define UNIV_BM_LSI_CTL_VCT 0x00000100
64 #define UNIV_BM_LSI_CTL_LAS 0x00000003
65 #define UNIV_OF_LSI_CTL_LAS 0
66 #define UNIV_BM_LSI_CTL_RESERVED (~ (UNIV_BM_LSI_CTL_EN | UNIV_BM_LSI_CTL_PWEN | UNIV_BM_LSI_CTL_VDW | UNIV_BM_LSI_CTL_VAS | UNIV_BM_LSI_CTL_PGM | UNIV_BM_LSI_CTL_SUPER | UNIV_BM_LSI_CTL_VCT | UNIV_BM_LSI_CTL_LAS))
69 #define UNIV_LSI0_CTL 0x100
70 #define UNIV_LSI0_BS 0x104
71 #define UNIV_LSI0_BD 0x108
72 #define UNIV_LSI0_TO 0x10C
74 #define UNIV_LSI1_CTL 0x114
75 #define UNIV_LSI1_BS 0x118
76 #define UNIV_LSI1_BD 0x11C
77 #define UNIV_LSI1_TO 0x120
79 #define UNIV_LSI2_CTL 0x128
80 #define UNIV_LSI2_BS 0x12C
81 #define UNIV_LSI2_BD 0x130
82 #define UNIV_LSI2_TO 0x134
84 #define UNIV_LSI3_CTL 0x13C
85 #define UNIV_LSI3_BS 0x140
86 #define UNIV_LSI3_BD 0x144
87 #define UNIV_LSI3_TO 0x148
90 #define UNIV_SCYC_CTL 0x170
91 #define UNIV_SCYC_ADDR 0x174
92 #define UNIV_SCYC_EN 0x178
93 #define UNIV_SCYC_CMP 0x17C
94 #define UNIV_SCYC_SWP 0x180
96 #define UNIV_LMISC 0x184
97 #define UNIV_BM_LMISC_CRT 0xF0000000
98 #define UNIV_OF_LMISC_CRT 28
99 #define UNIV_BM_LMISC_CWT 0x0F000000
100 #define UNIV_OF_LMISC_CWT 24
101 #define UNIV_SLSI 0x188
102 #define UNIV_BM_SLSI_EN 0x80000000
103 #define UNIV_BM_SLSI_PWEN 0x40000000
104 #define UNIV_BM_SLSI_VDW 0x00F00000
105 #define UNIV_OF_SLSI_VDW 20
106 #define UNIV_BM_SLSI_PGM 0x0000F000
107 #define UNIV_OF_SLSI_PGM 12
108 #define UNIV_BM_SLSI_SUPER 0x00000F00
109 #define UNIV_OF_SLSI_SUPER 8
110 #define UNIV_BM_SLSI_BS 0x000000F6
111 #define UNIV_OF_SLSI_BS 2
112 #define UNIV_BM_SLSI_LAS 0x00000003
113 #define UNIV_OF_SLSI_LAS 0
114 #define UNIV_BM_SLSI_RESERVED 0x3F0F0000
115 #define UNIV_L_CMDERR 0x18C
116 #define UNIV_LAERR 0x190
119 #define UNIV_LSI4_CTL 0x1A0
120 #define UNIV_LSI4_BS 0x1A4
121 #define UNIV_LSI4_BD 0x1A8
122 #define UNIV_LSI4_TO 0x1AC
124 #define UNIV_LSI5_CTL 0x1B4
125 #define UNIV_LSI5_BS 0x1B8
126 #define UNIV_LSI5_BD 0x1BC
127 #define UNIV_LSI5_TO 0x1C0
129 #define UNIV_LSI6_CTL 0x1C8
130 #define UNIV_LSI6_BS 0x1CC
131 #define UNIV_LSI6_BD 0x1D0
132 #define UNIV_LSI6_TO 0x1D4
134 #define UNIV_LSI7_CTL 0x1DC
135 #define UNIV_LSI7_BS 0x1E0
136 #define UNIV_LSI7_BD 0x1E4
137 #define UNIV_LSI7_TO 0x1E8
141 #define UNIV_DCTL 0x200
142 #define UNIV_BM_DCTL_L2V 0x80000000
143 #define UNIV_BM_DCTL_VDW 0x00C00000
144 #define UNIV_OF_DCTL_VDW 22
145 #define UNIV_BM_DCTL_VAS 0x00070000
146 #define UNIV_OF_DCTL_VAS 16
147 #define UNIV_BM_DCTL_PGM 0x0000C000
148 #define UNIV_OF_DCTL_PGM 14
149 #define UNIV_BM_DCTL_SUPER 0x00003000
150 #define UNIV_OF_DCTL_SUPER 12
151 #define UNIV_BM_DCTL_VCT 0x00000100
152 #define UNIV_BM_DCTL_LD64EN 0x00000080
153 #define UNIV_DTBC 0x204
154 #define UNIV_DLA 0x208
155 #define UNIV_DVA 0x210
156 #define UNIV_DCPP 0x218
157 #define UNIV_DGCS 0x220
158 #define UNIV_BM_DGCS_GO 0x80000000
159 #define UNIV_BM_DGCS_STOP_REQ 0x40000000
160 #define UNIV_BM_DGCS_HALT_REQ 0x20000000
161 #define UNIV_BM_DGCS_CHAIN 0x08000000
162 #define UNIV_BM_DGCS_VON 0x00F00000
163 #define UNIV_OF_DGCS_VON 20
164 #define UNIV_BM_DGCS_VOFF 0x000F0000
165 #define UNIV_OF_DGCS_VOFF 16
166 #define UNIV_BM_DGCS_ACT 0x00008000
167 #define UNIV_BM_DGCS_STOP 0x00004000
168 #define UNIV_BM_DGCS_HALT 0x00002000
169 #define UNIV_BM_DGCS_DONE 0x00000800
170 #define UNIV_BM_DGCS_LERR 0x00000400
171 #define UNIV_BM_DGCS_VERR 0x00000200
172 #define UNIV_BM_DGCS_PERR 0x00000100
173 #define UNIV_BM_DGCS_INT_STOP 0x00000040
174 #define UNIV_BM_DGCS_INT_HALT 0x00000020
175 #define UNIV_BM_DGCS_INT_DONE 0x00000008
176 #define UNIV_BM_DGCS_INT_LERR 0x00000004
177 #define UNIV_BM_DGCS_INT_VERR 0x00000002
178 #define UNIV_BM_DGCS_INT_PERR 0x00000001
179 #define UNIV_D_LLUE 0x224
182 #define UNIV_LINT_EN 0x300
183 #define UNIV_BM_LINT_ACFAIL 0x00008000
184 #define UNIV_BM_LINT_SYSFAIL 0x00004000
185 #define UNIV_BM_LINT_SW_INT 0x00002000
186 #define UNIV_BM_LINT_SW_IACK 0x00001000
187 #define UNIV_BM_LINT_VERR 0x00000400
188 #define UNIV_BM_LINT_LERR 0x00000200
189 #define UNIV_BM_LINT_DMA 0x00000100
190 #define UNIV_BM_LINT_VIRQ 0x000000FE
191 #define UNIV_BM_LINT_VIRQ7 0x00000080
192 #define UNIV_BM_LINT_VIRQ6 0x00000040
193 #define UNIV_BM_LINT_VIRQ5 0x00000020
194 #define UNIV_BM_LINT_VIRQ4 0x00000010
195 #define UNIV_BM_LINT_VIRQ3 0x00000008
196 #define UNIV_BM_LINT_VIRQ2 0x00000004
197 #define UNIV_BM_LINT_VIRQ1 0x00000002
198 #define UNIV_BM_LINT_VOWN 0x00000001
199 #define UNIV_LINT_STAT 0x304
200 #define UNIV_LINT_MAP0 0x308
201 #define UNIV_LINT_MAP1 0x30C
202 #define UNIV_VINT_EN 0x310
203 #define UNIV_VINT_STAT 0x314
204 #define UNIV_VINT_MAP0 0x318
205 #define UNIV_VINT_MAP1 0x31C
206 #define UNIV_VINT_STATID 0x320
207 #define UNIV_V1_STATID 0x324
208 #define UNIV_V2_STATID 0x328
209 #define UNIV_V3_STATID 0x32C
210 #define UNIV_V4_STATID 0x330
211 #define UNIV_V5_STATID 0x334
212 #define UNIV_V6_STATID 0x338
213 #define UNIV_V7_STATID 0x33C
214 #define UNIV_BM_VX_STATID_STATID 0x000000FF
215 #define UNIV_OF_VX_STATID_STATID 0
216 #define UNIV_BM_VX_STATID_ERR 0x00000100
221 #define UNIV_LINT_MAP2 0x340
222 #define UNIV_VINT_MAP2 0x344
223 #define UNIV_MBOX0 0x348
224 #define UNIV_MBOX1 0x34C
225 #define UNIV_MBOX2 0x350
226 #define UNIV_MBOX3 0x354
227 #define UNIV_SEMA0 0x358
228 #define UNIV_SEMA1 0x35C
234 #define UNIV_MAST_CTL 0x400
235 #define UNIV_BM_MAST_CTL_MAXRTRY 0xF0000000
236 #define UNIV_OF_MAST_CTL_MAXRTRY 28
237 #define UNIV_BM_MAST_CTL_PWON 0x0F000000
238 #define UNIV_OF_MAST_CTL_PWON 24
239 #define UNIV_BM_MAST_CTL_VRL 0x00C00000
240 #define UNIV_OF_MAST_CTL_VRL 22
241 #define UNIV_BM_MAST_CTL_VRM 0x00200000
242 #define UNIV_BM_MAST_CTL_VREL 0x00100000
243 #define UNIV_BM_MAST_CTL_VOWN 0x00080000
244 #define UNIV_BM_MAST_CTL_VOWN_ACK 0x00040000
245 #define UNIV_BM_MAST_CTL_PABS 0x00001000
246 #define UNIV_BM_MAST_CTL_BUS_NO 0x0000000F
247 #define UNIV_OF_MAST_CTL_BUS_NO 0
248 #define UNIV_MISC_CTL 0x404
249 #define UNIV_BM_MISC_CTL_VBTO 0xF0000000
250 #define UNIV_OF_MISC_CTL_VBTO 28
251 #define UNIV_BM_MISC_CTL_VARB 0x04000000
252 #define UNIV_BM_MISC_CTL_VARBTO 0x03000000
253 #define UNIV_OF_MISC_CTL_VARBTO 24
254 #define UNIV_BM_MISC_CTL_SW_LRST 0x00800000
255 #define UNIV_BM_MISC_CTL_SW_SRST 0x00400000
256 #define UNIV_BM_MISC_CTL_BI 0x00100000
257 #define UNIV_BM_MISC_CTL_ENGBI 0x00080000
258 #define UNIV_BM_MISC_CTL_RESCIND 0x00040000
259 #define UNIV_BM_MISC_CTL_SYSCON 0x00020000
260 #define UNIV_BM_MISC_CTL_V64AUTO 0x00010000
261 #define UNIV_BM_MISC_CTL_RESERVED 0x0820FFFF
262 #define UNIV_MISC_STAT 0x408
263 #define UNIV_BM_MISC_STAT_ENDIAN 0x80000000
264 #define UNIV_BM_MISC_STAT_LCLSIZE 0x40000000
265 #define UNIV_BM_MISC_STAT_DY4AUTO 0x08000000
266 #define UNIV_BM_MISC_STAT_MYBBSY 0x00200000
267 #define UNIV_BM_MISC_STAT_DY4DONE 0x00080000
268 #define UNIV_BM_MISC_STAT_TXFE 0x00040000
269 #define UNIV_BM_MISC_STAT_RXFE 0x00020000
270 #define UNIV_BM_MISC_STAT_DY4AUTOID 0x0000FF00
271 #define UNIV_OF_MISC_STAT_DY4AUTOID 8
272 #define UNIV_USER_AM 0x40C
274 #define UNIV_BM_VSI_CTL_EN 0x80000000
275 #define UNIV_BM_VSI_CTL_PWEN 0x40000000
276 #define UNIV_BM_VSI_CTL_PREN 0x20000000
277 #define UNIV_BM_VSI_CTL_PGM 0x00C00000
278 #define UNIV_OF_VSI_CTL_PGM 22
279 #define UNIV_BM_VSI_CTL_SUPER 0x00300000
280 #define UNIV_OF_VSI_CTL_SUPER 20
281 #define UNIV_BM_VSI_CTL_VAS 0x00070000
282 #define UNIV_OF_VSI_CTL_VAS 16
283 #define UNIV_BM_VSI_CTL_LD64EN 0x00000080
284 #define UNIV_BM_VSI_CTL_LLRMW 0x00000040
285 #define UNIV_BM_VSI_CTL_LAS 0x00000003
286 #define UNIV_OF_VSI_CTL_LAS 0
287 #define UNIV_BM_VSI_CTL_RESERVED 0x1F08FF3C
289 #define UNIV_VSI0_CTL 0xF00
290 #define UNIV_VSI0_BS 0xF04
291 #define UNIV_VSI0_BD 0xF08
292 #define UNIV_VSI0_TO 0xF0C
294 #define UNIV_VSI1_CTL 0xF14
295 #define UNIV_VSI1_BS 0xF18
296 #define UNIV_VSI1_BD 0xF1C
297 #define UNIV_VSI1_TO 0xF20
299 #define UNIV_VSI2_CTL 0xF28
300 #define UNIV_VSI2_BS 0xF2C
301 #define UNIV_VSI2_BD 0xF30
302 #define UNIV_VSI2_TO 0xF34
304 #define UNIV_VSI3_CTL 0xF3C
305 #define UNIV_VSI3_BS 0xF40
306 #define UNIV_VSI3_BD 0xF44
307 #define UNIV_VSI3_TO 0xF48
311 #define UNIV_LM_CTL 0xF64
312 #define UNIV_LM_BS 0xF66
317 #define UNIV_VRAI_CTL 0xF70
318 #define UNIV_BM_VRAI_CTL_EN 0x80000000
319 #define UNIV_BM_VRAI_CTL_PGM 0x00C00000
320 #define UNIV_OF_VRAI_CTL_PGM 22
321 #define UNIV_BM_VRAI_CTL_SUPER 0x00300000
322 #define UNIV_OF_VRAI_CTL_SUPER 20
323 #define UNIV_BM_VRAI_CTL_VAS 0x00030000
324 #define UNIV_OF_VRAI_CTL_VAS 16
325 #define UNIV_VRAI_BS 0xF74
326 #define UNIV_VCSR_CTL 0xF80
327 #define UNIV_VCSR_TO 0xF84
328 #define UNIV_V_AMERR 0xF88
329 #define UNIV_VAERR 0xF8C
332 #define UNIV_VSI4_CTL 0xF90
333 #define UNIV_VSI4_BS 0xF94
334 #define UNIV_VSI4_BD 0xF98
335 #define UNIV_VSI4_TO 0xF9C
337 #define UNIV_VSI5_CTL 0xFA4
338 #define UNIV_VSI5_BS 0xFA8
339 #define UNIV_VSI5_BD 0xFAC
340 #define UNIV_VSI5_TO 0xFB0
342 #define UNIV_VSI6_CTL 0xFB8
343 #define UNIV_VSI6_BS 0xFBC
344 #define UNIV_VSI6_BD 0xFC0
345 #define UNIV_VSI6_TO 0xFC4
347 #define UNIV_VSI7_CTL 0xFCC
348 #define UNIV_VSI7_BS 0xFD0
349 #define UNIV_VSI7_BD 0xFD4
350 #define UNIV_VSI7_TO 0xFD8
355 #define UNIV_VCSR_CLR 0xFF4
356 #define UNIV_VCSR_SET 0xFF8
357 #define UNIV_BM_VCSR_RESET 0x80000000
358 #define UNIV_BM_VCSR_SYSFAIL 0x40000000
359 #define UNIV_BM_VCSR_FAIL 0x20000000
360 #define UNIV_VCSR_BS 0xFFC