]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/chud/chud_spr.h
xnu-792.17.14.tar.gz
[apple/xnu.git] / osfmk / ppc / chud / chud_spr.h
1 /*
2 * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28
29 #ifndef _CHUD_SPR_H_
30 #define _CHUD_SPR_H_
31
32 /* PPC SPRs - 32-bit and 64-bit implementations */
33 #define chud_ppc_srr0 26
34 #define chud_ppc_srr1 27
35 #define chud_ppc_dsisr 18
36 #define chud_ppc_dar 19
37 #define chud_ppc_dec 22
38 #define chud_ppc_sdr1 25
39 #define chud_ppc_sprg0 272
40 #define chud_ppc_sprg1 273
41 #define chud_ppc_sprg2 274
42 #define chud_ppc_sprg3 275
43 #define chud_ppc_ear 282
44 #define chud_ppc_tbl 284
45 #define chud_ppc_tbu 285
46 #define chud_ppc_pvr 287
47 #define chud_ppc_ibat0u 528
48 #define chud_ppc_ibat0l 529
49 #define chud_ppc_ibat1u 530
50 #define chud_ppc_ibat1l 531
51 #define chud_ppc_ibat2u 532
52 #define chud_ppc_ibat2l 533
53 #define chud_ppc_ibat3u 534
54 #define chud_ppc_ibat3l 535
55 #define chud_ppc_dbat0u 536
56 #define chud_ppc_dbat0l 537
57 #define chud_ppc_dbat1u 538
58 #define chud_ppc_dbat1l 539
59 #define chud_ppc_dbat2u 540
60 #define chud_ppc_dbat2l 541
61 #define chud_ppc_dbat3u 542
62 #define chud_ppc_dbat3l 543
63 #define chud_ppc_dabr 1013
64 #define chud_ppc_msr 10000 /* FAKE */
65
66 /* PPC SPRs - 32-bit implementations */
67 #define chud_ppc32_sr0 20000 /* FAKE */
68 #define chud_ppc32_sr1 20001 /* FAKE */
69 #define chud_ppc32_sr2 20002 /* FAKE */
70 #define chud_ppc32_sr3 20003 /* FAKE */
71 #define chud_ppc32_sr4 20004 /* FAKE */
72 #define chud_ppc32_sr5 20005 /* FAKE */
73 #define chud_ppc32_sr6 20006 /* FAKE */
74 #define chud_ppc32_sr7 20007 /* FAKE */
75 #define chud_ppc32_sr8 20008 /* FAKE */
76 #define chud_ppc32_sr9 20009 /* FAKE */
77 #define chud_ppc32_sr10 20010 /* FAKE */
78 #define chud_ppc32_sr11 20011 /* FAKE */
79 #define chud_ppc32_sr12 20012 /* FAKE */
80 #define chud_ppc32_sr13 20013 /* FAKE */
81 #define chud_ppc32_sr14 20014 /* FAKE */
82 #define chud_ppc32_sr15 20015 /* FAKE */
83
84 /* PPC SPRs - 64-bit implementations */
85 #define chud_ppc64_asr 280
86
87 /* PPC SPRs - 750/750CX/750CXe/750FX Specific */
88 #define chud_750_upmc1 937
89 #define chud_750_upmc2 938
90 #define chud_750_upmc3 941
91 #define chud_750_upmc4 942
92 #define chud_750_mmcr0 952
93 #define chud_750_pmc1 953
94 #define chud_750_pmc2 954
95 #define chud_750_sia 955
96 #define chud_750_mmcr1 956
97 #define chud_750_pmc3 957
98 #define chud_750_pmc4 958
99 #define chud_750_hid0 1008
100 #define chud_750_hid1 1009
101 #define chud_750_iabr 1010
102 #define chud_750_l2cr 1017
103 #define chud_750_ictc 1019
104 #define chud_750_thrm1 1020
105 #define chud_750_thrm2 1021
106 #define chud_750_thrm3 1022
107 #define chud_750fx_ibat4u 560 /* 750FX only */
108 #define chud_750fx_ibat4l 561 /* 750FX only */
109 #define chud_750fx_ibat5u 562 /* 750FX only */
110 #define chud_750fx_ibat5l 563 /* 750FX only */
111 #define chud_750fx_ibat6u 564 /* 750FX only */
112 #define chud_750fx_ibat6l 565 /* 750FX only */
113 #define chud_750fx_ibat7u 566 /* 750FX only */
114 #define chud_750fx_ibat7l 567 /* 750FX only */
115 #define chud_750fx_dbat4u 568 /* 750FX only */
116 #define chud_750fx_dbat4l 569 /* 750FX only */
117 #define chud_750fx_dbat5u 570 /* 750FX only */
118 #define chud_750fx_dbat5l 571 /* 750FX only */
119 #define chud_750fx_dbat6u 572 /* 750FX only */
120 #define chud_750fx_dbat6l 573 /* 750FX only */
121 #define chud_750fx_dbat7u 574 /* 750FX only */
122 #define chud_750fx_dbat7l 575 /* 750FX only */
123 #define chud_750fx_hid2 1016 /* 750FX only */
124
125 /* PPC SPRs - 7400/7410 Specific */
126 #define chud_7400_upmc1 937
127 #define chud_7400_upmc2 938
128 #define chud_7400_upmc3 941
129 #define chud_7400_upmc4 942
130 #define chud_7400_mmcr2 944
131 #define chud_7400_bamr 951
132 #define chud_7400_mmcr0 952
133 #define chud_7400_pmc1 953
134 #define chud_7400_pmc2 954
135 #define chud_7400_siar 955
136 #define chud_7400_mmcr1 956
137 #define chud_7400_pmc3 957
138 #define chud_7400_pmc4 958
139 #define chud_7400_sda 959
140 #define chud_7400_hid0 1008
141 #define chud_7400_hid1 1009
142 #define chud_7400_iabr 1010
143 #define chud_7400_msscr0 1014
144 #define chud_7410_l2pmcr 1016 /* 7410 only */
145 #define chud_7400_l2cr 1017
146 #define chud_7400_ictc 1019
147 #define chud_7400_thrm1 1020
148 #define chud_7400_thrm2 1021
149 #define chud_7400_thrm3 1022
150 #define chud_7400_pir 1023
151
152 /* PPC SPRs - 7450/7455 Specific */
153 #define chud_7455_sprg4 276 /* 7455 only */
154 #define chud_7455_sprg5 277 /* 7455 only */
155 #define chud_7455_sprg6 278 /* 7455 only */
156 #define chud_7455_sprg7 279 /* 7455 only */
157 #define chud_7455_ibat4u 560 /* 7455 only */
158 #define chud_7455_ibat4l 561 /* 7455 only */
159 #define chud_7455_ibat5u 562 /* 7455 only */
160 #define chud_7455_ibat5l 563 /* 7455 only */
161 #define chud_7455_ibat6u 564 /* 7455 only */
162 #define chud_7455_ibat6l 565 /* 7455 only */
163 #define chud_7455_ibat7u 566 /* 7455 only */
164 #define chud_7455_ibat7l 567 /* 7455 only */
165 #define chud_7455_dbat4u 568 /* 7455 only */
166 #define chud_7455_dbat4l 569 /* 7455 only */
167 #define chud_7455_dbat5u 570 /* 7455 only */
168 #define chud_7455_dbat5l 571 /* 7455 only */
169 #define chud_7455_dbat6u 572 /* 7455 only */
170 #define chud_7455_dbat6l 573 /* 7455 only */
171 #define chud_7455_dbat7u 574 /* 7455 only */
172 #define chud_7455_dbat7l 575 /* 7455 only */
173 #define chud_7450_upmc5 929
174 #define chud_7450_upmc6 930
175 #define chud_7450_upmc1 937
176 #define chud_7450_upmc2 938
177 #define chud_7450_upmc3 941
178 #define chud_7450_upmc4 942
179 #define chud_7450_mmcr2 944
180 #define chud_7450_pmc5 945
181 #define chud_7450_pmc6 946
182 #define chud_7450_bamr 951
183 #define chud_7450_mmcr0 952
184 #define chud_7450_pmc1 953
185 #define chud_7450_pmc2 954
186 #define chud_7450_siar 955
187 #define chud_7450_mmcr1 956
188 #define chud_7450_pmc3 957
189 #define chud_7450_pmc4 958
190 #define chud_7450_tlbmiss 980
191 #define chud_7450_ptehi 981
192 #define chud_7450_ptelo 982
193 #define chud_7450_l3pm 983
194 #define chud_7450_hid0 1008
195 #define chud_7450_hid1 1009
196 #define chud_7450_iabr 1010
197 #define chud_7450_ldstdb 1012
198 #define chud_7450_msscr0 1014
199 #define chud_7450_msssr0 1015
200 #define chud_7450_ldstcr 1016
201 #define chud_7450_l2cr 1017
202 #define chud_7450_l3cr 1018
203 #define chud_7450_ictc 1019
204 #define chud_7450_ictrl 1011
205 #define chud_7450_thrm1 1020
206 #define chud_7450_thrm2 1021
207 #define chud_7450_thrm3 1022
208 #define chud_7450_pir 1023
209
210 /* PPC SPRs - 970 Specific */
211 #define chud_970_vrsave 256
212 #define chud_970_ummcra 770
213 #define chud_970_upmc1 771
214 #define chud_970_upmc2 772
215 #define chud_970_upmc3 773
216 #define chud_970_upmc4 774
217 #define chud_970_upmc5 775
218 #define chud_970_upmc6 776
219 #define chud_970_upmc7 777
220 #define chud_970_upmc8 778
221 #define chud_970_ummcr0 779
222 #define chud_970_usiar 780
223 #define chud_970_usdar 781
224 #define chud_970_ummcr1 782
225 #define chud_970_uimc 783
226 #define chud_970_mmcra 786
227 #define chud_970_pmc1 787
228 #define chud_970_pmc2 788
229 #define chud_970_pmc3 789
230 #define chud_970_pmc4 790
231 #define chud_970_pmc5 791
232 #define chud_970_pmc6 792
233 #define chud_970_pmc7 793
234 #define chud_970_pmc8 794
235 #define chud_970_mmcr0 795
236 #define chud_970_siar 796
237 #define chud_970_sdar 797
238 #define chud_970_mmcr1 798
239 #define chud_970_imc 799
240
241 /* PPC SPRs - 7400/7410 Specific, Private */
242 #define chud_7400_msscr1 1015
243
244 /* PPC SPRs - 64-bit implementations, Private */
245 #define chud_ppc64_accr 29
246 #define chud_ppc64_ctrl 152
247
248 /* PPC SPRs - 970 Specific, Private */
249 #define chud_970_scomc 276
250 #define chud_970_scomd 277
251 #define chud_970_hsprg0 304
252 #define chud_970_hsprg1 305
253 #define chud_970_hdec 310
254 #define chud_970_hior 311
255 #define chud_970_rmor 312
256 #define chud_970_hrmor 313
257 #define chud_970_hsrr0 314
258 #define chud_970_hsrr1 315
259 #define chud_970_lpcr 318
260 #define chud_970_lpidr 319
261 #define chud_970_trig0 976
262 #define chud_970_trig1 977
263 #define chud_970_trig2 978
264 #define chud_970_hid0 1008
265 #define chud_970_hid1 1009
266 #define chud_970_hid4 1012
267 #define chud_970_hid5 1014
268 #define chud_970_dabrx 1015
269 #define chud_970_trace 1022
270 #define chud_970_pir 1023
271
272 #endif // _CHUD_SPR_H_
273