1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef _MACH_ANOMALY_H_
18#define _MACH_ANOMALY_H_
19
20
21#if __SILICON_REVISION__ < 0
22# error will not work on BF526/BF527 silicon version
23#endif
24
25#if defined(__ADSPBF522__) || defined(__ADSPBF524__) || defined(__ADSPBF526__)
26# define ANOMALY_BF526 1
27#else
28# define ANOMALY_BF526 0
29#endif
30#if defined(__ADSPBF523__) || defined(__ADSPBF525__) || defined(__ADSPBF527__)
31# define ANOMALY_BF527 1
32#else
33# define ANOMALY_BF527 0
34#endif
35
36#define _ANOMALY_BF526(rev526) (ANOMALY_BF526 && __SILICON_REVISION__ rev526)
37#define _ANOMALY_BF527(rev527) (ANOMALY_BF527 && __SILICON_REVISION__ rev527)
38#define _ANOMALY_BF526_BF527(rev526, rev527) (_ANOMALY_BF526(rev526) || _ANOMALY_BF527(rev527))
39
40
41#define ANOMALY_05000074 (1)
42
43#define ANOMALY_05000119 (1)
44
45#define ANOMALY_05000122 (1)
46
47#define ANOMALY_05000245 (1)
48
49#define ANOMALY_05000254 (1)
50
51#define ANOMALY_05000265 (1)
52
53#define ANOMALY_05000310 (1)
54
55#define ANOMALY_05000313 (_ANOMALY_BF526_BF527(< 1, < 2))
56
57#define ANOMALY_05000328 (_ANOMALY_BF527(< 2))
58
59#define ANOMALY_05000330 (_ANOMALY_BF527(< 2))
60
61#define ANOMALY_05000337 (_ANOMALY_BF527(< 2))
62
63#define ANOMALY_05000341 (_ANOMALY_BF527(< 2))
64
65#define ANOMALY_05000342 (_ANOMALY_BF527(< 2))
66
67#define ANOMALY_05000346 (_ANOMALY_BF526_BF527(< 1, < 2))
68
69#define ANOMALY_05000346_value 0xE510
70
71#define ANOMALY_05000347 (_ANOMALY_BF527(< 2))
72
73#define ANOMALY_05000348 (_ANOMALY_BF527(< 1))
74
75#define ANOMALY_05000353 (_ANOMALY_BF526(< 1))
76
77#define ANOMALY_05000355 (_ANOMALY_BF527(< 2))
78
79#define ANOMALY_05000357 (_ANOMALY_BF527(< 2))
80
81#define ANOMALY_05000364 (_ANOMALY_BF527(== 1))
82
83#define ANOMALY_05000366 (1)
84
85#define ANOMALY_05000368 (_ANOMALY_BF527(< 2))
86
87#define ANOMALY_05000371 (_ANOMALY_BF527(< 2))
88
89#define ANOMALY_05000376 (_ANOMALY_BF527(< 2))
90
91#define ANOMALY_05000380 (_ANOMALY_BF527(< 2))
92
93#define ANOMALY_05000382 (_ANOMALY_BF526_BF527(< 1, < 2))
94
95#define ANOMALY_05000385 (_ANOMALY_BF527(< 2))
96
97#define ANOMALY_05000386 (_ANOMALY_BF527(< 2))
98
99#define ANOMALY_05000387 (_ANOMALY_BF527(< 2))
100
101#define ANOMALY_05000388 (_ANOMALY_BF526_BF527(< 1, < 2))
102
103#define ANOMALY_05000389 (_ANOMALY_BF527(< 2))
104
105#define ANOMALY_05000392 (_ANOMALY_BF527(< 2))
106
107#define ANOMALY_05000393 (_ANOMALY_BF527(< 2))
108
109#define ANOMALY_05000394 (_ANOMALY_BF527(< 2))
110
111#define ANOMALY_05000395 (_ANOMALY_BF527(< 2))
112
113#define ANOMALY_05000396 (_ANOMALY_BF527(< 2))
114
115#define ANOMALY_05000397 (_ANOMALY_BF527(< 2))
116
117#define ANOMALY_05000398 (_ANOMALY_BF527(< 2))
118
119#define ANOMALY_05000399 (_ANOMALY_BF527(< 2))
120
121#define ANOMALY_05000401 (_ANOMALY_BF526_BF527(< 1, < 2))
122
123#define ANOMALY_05000403 (_ANOMALY_BF526_BF527(< 1, < 2))
124
125#define ANOMALY_05000404 (_ANOMALY_BF526_BF527(< 1, < 2))
126
127#define ANOMALY_05000405 (1)
128
129#define ANOMALY_05000407 (_ANOMALY_BF526_BF527(< 1, < 2))
130
131#define ANOMALY_05000408 (1)
132
133#define ANOMALY_05000409 (_ANOMALY_BF526_BF527(< 1, < 2))
134
135#define ANOMALY_05000410 (_ANOMALY_BF527(< 2))
136
137#define ANOMALY_05000411 (_ANOMALY_BF526(< 1))
138
139#define ANOMALY_05000414 (_ANOMALY_BF526_BF527(< 1, < 2))
140
141#define ANOMALY_05000415 (_ANOMALY_BF526_BF527(< 1, < 2))
142
143#define ANOMALY_05000416 (1)
144
145#define ANOMALY_05000417 (_ANOMALY_BF527(< 2))
146
147#define ANOMALY_05000418 (_ANOMALY_BF526_BF527(< 1, < 2))
148
149#define ANOMALY_05000420 (_ANOMALY_BF526_BF527(< 1, < 2))
150
151#define ANOMALY_05000421 (1)
152
153#define ANOMALY_05000422 (_ANOMALY_BF526_BF527(> 0, > 1))
154
155#define ANOMALY_05000423 (_ANOMALY_BF526_BF527(< 1, < 2))
156
157#define ANOMALY_05000424 (_ANOMALY_BF527(< 2))
158
159#define ANOMALY_05000425 (_ANOMALY_BF526_BF527(< 1, < 2))
160
161#define ANOMALY_05000426 (1)
162
163#define ANOMALY_05000429 (_ANOMALY_BF526_BF527(< 1, < 2))
164
165#define ANOMALY_05000430 (_ANOMALY_BF527(> 1))
166
167#define ANOMALY_05000431 (1)
168
169#define ANOMALY_05000432 (_ANOMALY_BF526(< 1))
170
171#define ANOMALY_05000434 (1)
172
173#define ANOMALY_05000435 (_ANOMALY_BF526_BF527(< 1, >= 0))
174
175#define ANOMALY_05000439 (_ANOMALY_BF526_BF527(< 1, >= 0))
176
177#define ANOMALY_05000440 (_ANOMALY_BF526_BF527(< 1, >= 0))
178
179#define ANOMALY_05000442 (_ANOMALY_BF527(< 1))
180
181#define ANOMALY_05000443 (1)
182
183#define ANOMALY_05000445 (_ANOMALY_BF527(>= 0))
184
185#define ANOMALY_05000450 (1)
186
187#define ANOMALY_05000451 (_ANOMALY_BF527(>= 0))
188
189#define ANOMALY_05000452 (_ANOMALY_BF526_BF527(< 1, >= 0))
190
191#define ANOMALY_05000456 (1)
192
193#define ANOMALY_05000457 (1)
194
195#define ANOMALY_05000460 (1)
196
197#define ANOMALY_05000461 (1)
198
199#define ANOMALY_05000462 (1)
200
201#define ANOMALY_05000465 (1)
202
203#define ANOMALY_05000466 (1)
204
205#define ANOMALY_05000467 (1)
206
207#define ANOMALY_05000469 (1)
208
209#define ANOMALY_05000472 (_ANOMALY_BF526(>= 0))
210
211#define ANOMALY_05000473 (1)
212
213#define ANOMALY_05000475 (1)
214
215#define ANOMALY_05000477 (1)
216
217#define ANOMALY_05000481 (1)
218
219#define ANOMALY_05000483 (1)
220
221#define ANOMALY_05000485 (_ANOMALY_BF526_BF527(< 2, >= 0))
222
223#define ANOMALY_05000487 (1)
224
225#define ANOMALY_05000490 (1)
226
227#define ANOMALY_05000491 (1)
228
229#define ANOMALY_05000494 (1)
230
231#define ANOMALY_05000498 (1)
232
233#define ANOMALY_05000501 (1)
234
235
236#define ANOMALY_05000099 (0)
237#define ANOMALY_05000120 (0)
238#define ANOMALY_05000125 (0)
239#define ANOMALY_05000149 (0)
240#define ANOMALY_05000158 (0)
241#define ANOMALY_05000171 (0)
242#define ANOMALY_05000179 (0)
243#define ANOMALY_05000182 (0)
244#define ANOMALY_05000183 (0)
245#define ANOMALY_05000189 (0)
246#define ANOMALY_05000198 (0)
247#define ANOMALY_05000202 (0)
248#define ANOMALY_05000215 (0)
249#define ANOMALY_05000219 (0)
250#define ANOMALY_05000220 (0)
251#define ANOMALY_05000227 (0)
252#define ANOMALY_05000230 (0)
253#define ANOMALY_05000231 (0)
254#define ANOMALY_05000233 (0)
255#define ANOMALY_05000234 (0)
256#define ANOMALY_05000242 (0)
257#define ANOMALY_05000244 (0)
258#define ANOMALY_05000248 (0)
259#define ANOMALY_05000250 (0)
260#define ANOMALY_05000257 (0)
261#define ANOMALY_05000261 (0)
262#define ANOMALY_05000263 (0)
263#define ANOMALY_05000266 (0)
264#define ANOMALY_05000273 (0)
265#define ANOMALY_05000274 (0)
266#define ANOMALY_05000278 (0)
267#define ANOMALY_05000281 (0)
268#define ANOMALY_05000283 (0)
269#define ANOMALY_05000285 (0)
270#define ANOMALY_05000287 (0)
271#define ANOMALY_05000301 (0)
272#define ANOMALY_05000305 (0)
273#define ANOMALY_05000307 (0)
274#define ANOMALY_05000311 (0)
275#define ANOMALY_05000312 (0)
276#define ANOMALY_05000315 (0)
277#define ANOMALY_05000323 (0)
278#define ANOMALY_05000362 (1)
279#define ANOMALY_05000363 (0)
280#define ANOMALY_05000383 (0)
281#define ANOMALY_05000400 (0)
282#define ANOMALY_05000402 (0)
283#define ANOMALY_05000412 (0)
284#define ANOMALY_05000447 (0)
285#define ANOMALY_05000448 (0)
286#define ANOMALY_05000474 (0)
287#define ANOMALY_05000480 (0)
288#define ANOMALY_16000030 (0)
289
290#endif
291