StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
uniLib.h
1 #ifndef _UNI_LIB_H_
2 #define _UNI_LIB_H_
3 
4 
5 #include <vxWorks.h>
6 
7 #include <MVME/universe.h> /* from the BSP */
8 
9 /*
10  the main Universe structure is meant to be used as
11  a pointer only and is carefully constructed so that
12  the offsets match the actual registers!
13  DO NOT CHANGE!
14  The various "rx" registers are "Universe reserved".
15 */
16 
17 /* for Universe version I */
18 struct uniStruct {
19 
20 volatile UINT32 PCI_ID ;
21 volatile UINT32 PCI_CSR ;
22 volatile UINT32 PCI_CLASS ;
23 volatile UINT32 PCI_MISC0 ;
24 volatile UINT32 PCI_BS ;
25 volatile UINT32 PCI_BS1 ;
26 int r1[9] ;
27 volatile UINT32 PCI_MISC1 ;
28 int r2[48] ;
29 volatile UINT32 LSI0_CTL ;
30 volatile UINT32 LSI0_BS ;
31 volatile UINT32 LSI0_BD ;
32 volatile UINT32 LSI0_TO ;
33 int r3 ;
34 volatile UINT32 LSI1_CTL ;
35 volatile UINT32 LSI1_BS ;
36 volatile UINT32 LSI1_BD ;
37 volatile UINT32 LSI1_TO ;
38 int r4 ;
39 volatile UINT32 LSI2_CTL ;
40 volatile UINT32 LSI2_BS ;
41 volatile UINT32 LSI2_BD ;
42 volatile UINT32 LSI2_TO ;
43 int r5 ;
44 volatile UINT32 LSI3_CTL ;
45 volatile UINT32 LSI3_BS ;
46 volatile UINT32 LSI3_BD ;
47 volatile UINT32 LSI3_TO ;
48 int r6[9] ;
49 volatile UINT32 SCYC_CTL ;
50 volatile UINT32 SCYC_ADDR ;
51 volatile UINT32 SCYC_EN ;
52 volatile UINT32 SCYC_CMP ;
53 volatile UINT32 SCYC_SWP ;
54 volatile UINT32 LMISC ;
55 volatile UINT32 SLSI ;
56 volatile UINT32 L_CMDERR ;
57 volatile UINT32 LAERR ;
58 int r7[3] ;
59 volatile UINT32 LSI4_CTL ;
60 volatile UINT32 LSI4_BS ;
61 volatile UINT32 LSI4_BD ;
62 volatile UINT32 LSI4_TO ;
63 int r33 ;
64 volatile UINT32 LSI5_CTL ;
65 volatile UINT32 LSI5_BS ;
66 volatile UINT32 LSI5_BD ;
67 volatile UINT32 LSI5_TO ;
68 int r43 ;
69 volatile UINT32 LSI6_CTL ;
70 volatile UINT32 LSI6_BS ;
71 volatile UINT32 LSI6_BD ;
72 volatile UINT32 LSI6_TO ;
73 int r53 ;
74 volatile UINT32 LSI7_CTL ;
75 volatile UINT32 LSI7_BS ;
76 volatile UINT32 LSI7_BD ;
77 volatile UINT32 LSI7_TO ;
78 int r77[5] ;
79 volatile UINT32 DCTL ;
80 volatile UINT32 DTBC ;
81 volatile UINT32 DLA ;
82 int r8 ;
83 volatile UINT32 DVA ;
84 int r9 ;
85 volatile UINT32 DCPP ;
86 int r10 ;
87 volatile UINT32 DGCS ;
88 volatile UINT32 D_LLUE ;
89 int r11[54] ;
90 volatile UINT32 LINT_EN ;
91 volatile UINT32 LINT_STAT ;
92 volatile UINT32 LINT_MAP0 ;
93 volatile UINT32 LINT_MAP1 ;
94 volatile UINT32 VINT_EN ;
95 volatile UINT32 VINT_STAT ;
96 volatile UINT32 VINT_MAP0 ;
97 volatile UINT32 VINT_MAP1 ;
98 volatile UINT32 STATID ;
99 volatile UINT32 V1_STATID ;
100 volatile UINT32 V2_STATID ;
101 volatile UINT32 V3_STATID ;
102 volatile UINT32 V4_STATID ;
103 volatile UINT32 V5_STATID ;
104 volatile UINT32 V6_STATID ;
105 volatile UINT32 V7_STATID ;
106 volatile UINT32 LINT_MAP2 ;
107 volatile UINT32 VINT_MAP2 ;
108 volatile UINT32 MBOX0 ;
109 volatile UINT32 MBOX1 ;
110 volatile UINT32 MBOX2 ;
111 volatile UINT32 MBOX3 ;
112 volatile UINT32 SEMA0 ;
113 volatile UINT32 SEMA1 ;
114 
115 int r12[40] ;
116 volatile UINT32 MAST_CTL ;
117 volatile UINT32 MISC_CTL ;
118 volatile UINT32 MISC_STAT ;
119 volatile UINT32 USER_AM ;
120 int r13[700] ;
121 volatile UINT32 VSI0_CTL ;
122 volatile UINT32 VSI0_BS ;
123 volatile UINT32 VSI0_BD ;
124 volatile UINT32 VSI0_TO ;
125 int r14 ;
126 volatile UINT32 VSI1_CTL ;
127 volatile UINT32 VSI1_BS;
128 volatile UINT32 VSI1_BD;
129 volatile UINT32 VSI1_TO;
130 int r15 ;
131 volatile UINT32 VSI2_CTL;
132 volatile UINT32 VSI2_BS;
133 volatile UINT32 VSI2_BD;
134 volatile UINT32 VSI2_TO;
135 int r16 ;
136 volatile UINT32 VSI3_CTL;
137 volatile UINT32 VSI3_BS;
138 volatile UINT32 VSI3_BD;
139 volatile UINT32 VSI3_TO;
140 int r17[6] ;
141 volatile UINT32 LM_CTL ;
142 volatile UINT32 LM_BS ;
143 int r177 ;
144 volatile UINT32 VRAI_CTL;
145 volatile UINT32 VRAI_BS;
146 int r18[2] ;
147 volatile UINT32 VCSR_CTL;
148 volatile UINT32 VCSR_TO;
149 volatile UINT32 V_AMERR;
150 volatile UINT32 VAERR;
151 volatile UINT32 VSI4_CTL ;
152 volatile UINT32 VSI4_BS ;
153 volatile UINT32 VSI4_BD ;
154 volatile UINT32 VSI4_TO ;
155 int r144 ;
156 volatile UINT32 VSI5_CTL ;
157 volatile UINT32 VSI5_BS;
158 volatile UINT32 VSI5_BD;
159 volatile UINT32 VSI5_TO;
160 int r154 ;
161 volatile UINT32 VSI6_CTL;
162 volatile UINT32 VSI6_BS;
163 volatile UINT32 VSI6_BD;
164 volatile UINT32 VSI6_TO;
165 int r164 ;
166 volatile UINT32 VSI7_CTL;
167 volatile UINT32 VSI7_BS;
168 volatile UINT32 VSI7_BD;
169 volatile UINT32 VSI7_TO;
170 
171 int r19[5] ;
172 volatile UINT32 VCSR_RES ;
173 volatile UINT32 VCSR_CLR;
174 volatile UINT32 VCSR_SET;
175 volatile UINT32 VCSR_BS ;
176 
177 } ;
178 
179 
180 
181 #endif /* _UNI_LIB_H */