1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
|
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/atichip.c,v 1.18 2001/03/25 05:32:07 tsi Exp $ */
/*
* Copyright 1997 through 2001 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that copyright
* notice and this permission notice appear in supporting documentation, and
* that the name of Marc Aurele La France not be used in advertising or
* publicity pertaining to distribution of the software without specific,
* written prior permission. Marc Aurele La France makes no representations
* about the suitability of this software for any purpose. It is provided
* "as-is" without express or implied warranty.
*
* MARC AURELE LA FRANCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
* EVENT SHALL MARC AURELE LA FRANCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#include "ati.h"
#include "atibus.h"
#include "atichip.h"
#include "atimach64io.h"
#include "ativersion.h"
/*
* Chip-related definitions.
*/
const char *ATIChipNames[] =
{
"Unknown",
#ifndef AVOID_CPIO
"IBM VGA or compatible",
"ATI 18800",
"ATI 18800-1",
"ATI 28800-2",
"ATI 28800-4",
"ATI 28800-5",
"ATI 28800-6",
"IBM 8514/A",
"Chips & Technologies 82C480",
"ATI 38800-1",
"ATI 68800",
"ATI 68800-3",
"ATI 68800-6",
"ATI 68800LX",
"ATI 68800AX",
#endif /* AVOID_CPIO */
"ATI 88800GX-C",
"ATI 88800GX-D",
"ATI 88800GX-E",
"ATI 88800GX-F",
"ATI 88800GX",
"ATI 88800CX",
"ATI 264CT",
"ATI 264ET",
"ATI 264VT",
"ATI 3D Rage",
"ATI 264VT-B",
"ATI 3D Rage II",
"ATI 264VT3",
"ATI 3D Rage II+DVD",
"ATI 3D Rage LT",
"ATI 264VT4",
"ATI 3D Rage IIc",
"ATI 3D Rage Pro",
"ATI 3D Rage LT Pro",
"ATI 3D Rage XL or XC",
"ATI 3D Rage Mobility",
"ATI unknown Mach64",
"ATI Rage 128 GL",
"ATI Rage 128 VR",
"ATI Rage 128 Pro GL",
"ATI Rage 128 Pro VR",
"ATI Rage 128 Mobility M3",
"ATI Rage 128 Mobility M4",
"ATI unknown Rage 128"
"ATI Radeon",
"ATI Rage HDTV"
};
const char *ATIFoundryNames[] =
{ "SGS", "NEC", "KCS", "UMC", "TSMC", "5", "6", "UMC" };
#ifndef AVOID_CPIO
/*
* ATIMach32ChipID --
*
* Set variables whose value is dependent upon an 68800's CHIP_ID register.
*/
void
ATIMach32ChipID
(
ATIPtr pATI
)
{
CARD16 IOValue = inw(CHIP_ID);
pATI->ChipType = GetBits(IOValue, CHIP_CODE_0 | CHIP_CODE_1);
pATI->ChipClass = GetBits(IOValue, CHIP_CLASS);
pATI->ChipRevision = GetBits(IOValue, CHIP_REV);
pATI->ChipRev = pATI->ChipRevision;
if (IOValue == 0xFFFFU)
IOValue = 0;
switch (GetBits(IOValue, CHIP_CODE_0 | CHIP_CODE_1))
{
case OldChipID('A', 'A'):
pATI->Chip = ATI_CHIP_68800_3;
break;
case OldChipID('X', 'X'):
pATI->Chip = ATI_CHIP_68800_6;
break;
case OldChipID('L', 'X'):
pATI->Chip = ATI_CHIP_68800LX;
break;
case OldChipID('A', 'X'):
pATI->Chip = ATI_CHIP_68800AX;
break;
default:
pATI->Chip = ATI_CHIP_68800;
break;
}
}
#endif /* AVOID_CPIO */
/*
* ATIMach64ChipID --
*
* Set variables whose value is dependent upon a Mach64's CONFIG_CHIP_ID
* register.
*/
void
ATIMach64ChipID
(
ATIPtr pATI,
const CARD16 ExpectedChipType
)
{
pATI->config_chip_id = inr(CONFIG_CHIP_ID);
pATI->ChipType = GetBits(pATI->config_chip_id, 0xFFFFU);
pATI->ChipClass = GetBits(pATI->config_chip_id, CFG_CHIP_CLASS);
pATI->ChipRevision = GetBits(pATI->config_chip_id, CFG_CHIP_REV);
pATI->ChipVersion = GetBits(pATI->config_chip_id, CFG_CHIP_VERSION);
pATI->ChipFoundry = GetBits(pATI->config_chip_id, CFG_CHIP_FOUNDRY);
pATI->ChipRev = pATI->ChipRevision;
switch (pATI->ChipType)
{
case OldChipID('G', 'X'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'X'):
switch (pATI->ChipRevision)
{
case 0x00U:
pATI->Chip = ATI_CHIP_88800GXC;
break;
case 0x01U:
pATI->Chip = ATI_CHIP_88800GXD;
break;
case 0x02U:
pATI->Chip = ATI_CHIP_88800GXE;
break;
case 0x03U:
pATI->Chip = ATI_CHIP_88800GXF;
break;
default:
pATI->Chip = ATI_CHIP_88800GX;
break;
}
break;
case OldChipID('C', 'X'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('C', 'X'):
pATI->Chip = ATI_CHIP_88800CX;
break;
case OldChipID('C', 'T'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('C', 'T'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264CT;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('E', 'T'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('E', 'T'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264ET;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('V', 'T'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('V', 'T'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264VT;
pATI->BusType = ATI_BUS_PCI;
/* Some early GT's are detected as VT's */
if (ExpectedChipType && (pATI->ChipType != ExpectedChipType))
{
if (ExpectedChipType == NewChipID('G', 'T'))
pATI->Chip = ATI_CHIP_264GT;
else
xf86Msg(X_WARNING,
ATI_NAME ": Mach64 chip type probe discrepancy"
" detected: PCI=0x%04X; CHIP_ID=0x%04X.\n",
ExpectedChipType, pATI->ChipType);
}
else if (pATI->ChipVersion)
pATI->Chip = ATI_CHIP_264VTB;
break;
case OldChipID('G', 'T'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'T'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->BusType = ATI_BUS_PCI;
if (!pATI->ChipVersion)
pATI->Chip = ATI_CHIP_264GT;
else
pATI->Chip = ATI_CHIP_264GTB;
break;
case OldChipID('V', 'U'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('V', 'U'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264VT3;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('G', 'U'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'U'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264GTDVD;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('L', 'G'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('L', 'G'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264LT;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('V', 'V'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('V', 'V'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264VT4;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('G', 'V'):
case OldChipID('G', 'Y'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'V'):
case NewChipID('G', 'Y'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264GT2C;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('G', 'W'):
case OldChipID('G', 'Z'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'W'):
case NewChipID('G', 'Z'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264GT2C;
pATI->BusType = ATI_BUS_AGP;
break;
case OldChipID('G', 'I'):
case OldChipID('G', 'P'):
case OldChipID('G', 'Q'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'I'):
case NewChipID('G', 'P'):
case NewChipID('G', 'Q'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264GTPRO;
pATI->BusType = ATI_BUS_PCI;
break;
case OldChipID('G', 'B'):
case OldChipID('G', 'D'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'B'):
case NewChipID('G', 'D'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264GTPRO;
pATI->BusType = ATI_BUS_AGP;
break;
case OldChipID('L', 'I'):
case OldChipID('L', 'P'):
case OldChipID('L', 'Q'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('L', 'I'):
case NewChipID('L', 'P'):
case NewChipID('L', 'Q'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264LTPRO;
pATI->BusType = ATI_BUS_PCI;
pATI->LCDVBlendFIFOSize = 800;
break;
case OldChipID('L', 'B'):
case OldChipID('L', 'D'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('L', 'B'):
case NewChipID('L', 'D'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264LTPRO;
pATI->BusType = ATI_BUS_AGP;
pATI->LCDVBlendFIFOSize = 800;
break;
case OldChipID('G', 'L'):
case OldChipID('G', 'O'):
case OldChipID('G', 'R'):
case OldChipID('G', 'S'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'L'):
case NewChipID('G', 'O'):
case NewChipID('G', 'R'):
case NewChipID('G', 'S'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264XL;
pATI->BusType = ATI_BUS_PCI;
pATI->LCDVBlendFIFOSize = 1024;
break;
case OldChipID('G', 'M'):
case OldChipID('G', 'N'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('G', 'M'):
case NewChipID('G', 'N'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_264XL;
pATI->BusType = ATI_BUS_AGP;
pATI->LCDVBlendFIFOSize = 1024;
break;
case OldChipID('L', 'R'):
case OldChipID('L', 'S'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('L', 'R'):
case NewChipID('L', 'S'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_MOBILITY;
pATI->BusType = ATI_BUS_PCI;
pATI->LCDVBlendFIFOSize = 1024;
break;
case OldChipID('L', 'M'):
case OldChipID('L', 'N'):
pATI->ChipType = OldToNewChipID(pATI->ChipType);
case NewChipID('L', 'M'):
case NewChipID('L', 'N'):
pATI->ChipRevision =
GetBits(pATI->config_chip_id, CFG_CHIP_REVISION);
pATI->Chip = ATI_CHIP_MOBILITY;
pATI->BusType = ATI_BUS_AGP;
pATI->LCDVBlendFIFOSize = 1024;
break;
default:
pATI->Chip = ATI_CHIP_Mach64;
break;
}
}
/*
* ATIChipID --
*
* This returns the ATI_CHIP_* value (generally) associated with a particular
* ChipID/ChipRev combination.
*/
ATIChipType
ATIChipID
(
const CARD16 ChipID,
const CARD8 ChipRev
)
{
switch (ChipID)
{
#ifndef AVOID_CPIO
case OldChipID('A', 'A'): case NewChipID('A', 'A'):
return ATI_CHIP_68800_3;
case OldChipID('X', 'X'): case NewChipID('X', 'X'):
return ATI_CHIP_68800_6;
case OldChipID('L', 'X'): case NewChipID('L', 'X'):
return ATI_CHIP_68800LX;
case OldChipID('A', 'X'): case NewChipID('A', 'X'):
return ATI_CHIP_68800AX;
#endif /* AVOID_CPIO */
case OldChipID('G', 'X'): case NewChipID('G', 'X'):
switch (ChipRev)
{
case 0x00U:
return ATI_CHIP_88800GXC;
case 0x01U:
return ATI_CHIP_88800GXD;
case 0x02U:
return ATI_CHIP_88800GXE;
case 0x03U:
return ATI_CHIP_88800GXF;
default:
return ATI_CHIP_88800GX;
}
case OldChipID('C', 'X'): case NewChipID('C', 'X'):
return ATI_CHIP_88800CX;
case OldChipID('C', 'T'): case NewChipID('C', 'T'):
return ATI_CHIP_264CT;
case OldChipID('E', 'T'): case NewChipID('E', 'T'):
return ATI_CHIP_264ET;
case OldChipID('V', 'T'): case NewChipID('V', 'T'):
/* For simplicity, ignore ChipID discrepancy that can occur here */
if (!(ChipRev & GetBits(CFG_CHIP_VERSION, CFG_CHIP_REV)))
return ATI_CHIP_264VT;
return ATI_CHIP_264VTB;
case OldChipID('G', 'T'): case NewChipID('G', 'T'):
if (!(ChipRev & GetBits(CFG_CHIP_VERSION, CFG_CHIP_REV)))
return ATI_CHIP_264GT;
return ATI_CHIP_264GTB;
case OldChipID('V', 'U'): case NewChipID('V', 'U'):
return ATI_CHIP_264VT3;
case OldChipID('G', 'U'): case NewChipID('G', 'U'):
return ATI_CHIP_264GTDVD;
case OldChipID('L', 'G'): case NewChipID('L', 'G'):
return ATI_CHIP_264LT;
case OldChipID('V', 'V'): case NewChipID('V', 'V'):
return ATI_CHIP_264VT4;
case OldChipID('G', 'V'): case NewChipID('G', 'V'):
case OldChipID('G', 'W'): case NewChipID('G', 'W'):
case OldChipID('G', 'Y'): case NewChipID('G', 'Y'):
case OldChipID('G', 'Z'): case NewChipID('G', 'Z'):
return ATI_CHIP_264GT2C;
case OldChipID('G', 'B'): case NewChipID('G', 'B'):
case OldChipID('G', 'D'): case NewChipID('G', 'D'):
case OldChipID('G', 'I'): case NewChipID('G', 'I'):
case OldChipID('G', 'P'): case NewChipID('G', 'P'):
case OldChipID('G', 'Q'): case NewChipID('G', 'Q'):
return ATI_CHIP_264GTPRO;
case OldChipID('L', 'B'): case NewChipID('L', 'B'):
case OldChipID('L', 'D'): case NewChipID('L', 'D'):
case OldChipID('L', 'I'): case NewChipID('L', 'I'):
case OldChipID('L', 'P'): case NewChipID('L', 'P'):
case OldChipID('L', 'Q'): case NewChipID('L', 'Q'):
return ATI_CHIP_264LTPRO;
case OldChipID('G', 'L'): case NewChipID('G', 'L'):
case OldChipID('G', 'M'): case NewChipID('G', 'M'):
case OldChipID('G', 'N'): case NewChipID('G', 'N'):
case OldChipID('G', 'O'): case NewChipID('G', 'O'):
case OldChipID('G', 'R'): case NewChipID('G', 'R'):
case OldChipID('G', 'S'): case NewChipID('G', 'S'):
return ATI_CHIP_264XL;
case OldChipID('L', 'M'): case NewChipID('L', 'M'):
case OldChipID('L', 'N'): case NewChipID('L', 'N'):
case OldChipID('L', 'R'): case NewChipID('L', 'R'):
case OldChipID('L', 'S'): case NewChipID('L', 'S'):
return ATI_CHIP_MOBILITY;
case OldChipID('R', 'E'): case NewChipID('R', 'E'):
case OldChipID('R', 'F'): case NewChipID('R', 'F'):
case OldChipID('S', 'K'): case NewChipID('S', 'K'):
case OldChipID('S', 'L'): case NewChipID('S', 'L'):
case OldChipID('S', 'M'): case NewChipID('S', 'M'):
return ATI_CHIP_RAGE128GL;
case OldChipID('R', 'K'): case NewChipID('R', 'K'):
case OldChipID('R', 'L'): case NewChipID('R', 'L'):
case OldChipID('S', 'E'): case NewChipID('S', 'E'):
case OldChipID('S', 'F'): case NewChipID('S', 'F'):
case OldChipID('S', 'G'): case NewChipID('S', 'G'):
return ATI_CHIP_RAGE128VR;
case OldChipID('P', 'A'): case NewChipID('P', 'A'):
case OldChipID('P', 'B'): case NewChipID('P', 'B'):
case OldChipID('P', 'C'): case NewChipID('P', 'C'):
case OldChipID('P', 'D'): case NewChipID('P', 'D'):
case OldChipID('P', 'E'): case NewChipID('P', 'E'):
case OldChipID('P', 'F'): case NewChipID('P', 'F'):
return ATI_CHIP_RAGE128PROGL;
case OldChipID('P', 'G'): case NewChipID('P', 'G'):
case OldChipID('P', 'H'): case NewChipID('P', 'H'):
case OldChipID('P', 'I'): case NewChipID('P', 'I'):
case OldChipID('P', 'J'): case NewChipID('P', 'J'):
case OldChipID('P', 'K'): case NewChipID('P', 'K'):
case OldChipID('P', 'L'): case NewChipID('P', 'L'):
case OldChipID('P', 'M'): case NewChipID('P', 'M'):
case OldChipID('P', 'N'): case NewChipID('P', 'N'):
case OldChipID('P', 'O'): case NewChipID('P', 'O'):
case OldChipID('P', 'P'): case NewChipID('P', 'P'):
case OldChipID('P', 'Q'): case NewChipID('P', 'Q'):
case OldChipID('P', 'R'): case NewChipID('P', 'R'):
case OldChipID('P', 'S'): case NewChipID('P', 'S'):
case OldChipID('P', 'T'): case NewChipID('P', 'T'):
case OldChipID('P', 'U'): case NewChipID('P', 'U'):
case OldChipID('P', 'V'): case NewChipID('P', 'V'):
case OldChipID('P', 'W'): case NewChipID('P', 'W'):
case OldChipID('P', 'X'): case NewChipID('P', 'X'):
return ATI_CHIP_RAGE128PROVR;
case OldChipID('L', 'E'): case NewChipID('L', 'E'):
case OldChipID('L', 'F'): case NewChipID('L', 'F'):
case OldChipID('L', 'K'): case NewChipID('L', 'K'):
case OldChipID('L', 'L'): case NewChipID('L', 'L'):
return ATI_CHIP_RAGE128MOBILITY3;
case OldChipID('M', 'F'): case NewChipID('M', 'F'):
case OldChipID('M', 'L'): case NewChipID('M', 'L'):
return ATI_CHIP_RAGE128MOBILITY4;
case OldChipID('Q', 'D'): case NewChipID('Q', 'D'):
case OldChipID('Q', 'E'): case NewChipID('Q', 'E'):
case OldChipID('Q', 'F'): case NewChipID('Q', 'F'):
case OldChipID('Q', 'G'): case NewChipID('Q', 'G'):
case OldChipID('Q', 'Y'): case NewChipID('Q', 'Y'):
return ATI_CHIP_RADEON;
case OldChipID('H', 'D'): case NewChipID('H', 'D'):
return ATI_CHIP_HDTV;
default:
/*
* I'd say it's a Rage128 or a Radeon here, except that I don't
* support them.
*/
return ATI_CHIP_Mach64;
}
}
|