Chameleon

Chameleon Commit Details

Date:2011-02-08 16:05:25 (13 years 2 months ago)
Author:Evan Lojewski
Commit:734
Parents: 733
Message:Typo fixes, gma hack, nvidia dev id, more work needed for nvidia
Changes:
M/branches/meklort/i386/modules/GraphicsEnabler/gma.c
M/branches/meklort/i386/modules/GraphicsEnabler/nvidia.c
M/branches/meklort/i386/modules/Resolution/915resolution.c
M/branches/meklort/i386/modules/Resolution/915resolution.h

File differences

branches/meklort/i386/modules/GraphicsEnabler/gma.c
5353
5454
5555
56
56
57
5758
5859
5960
{ 0x8086A012, "Mobile GMA3150" },
{ 0x80862772, "Desktop GMA950" },
{ 0x80862776, "Desktop GMA950" },
{ 0x8086A001, "Desktop GMA3150" },
//{ 0x8086A001, "Desktop GMA3150" },
{ 0x8086A001, "Mobile GMA3150" },
{ 0x8086A002, "Desktop GMA3150" },
{ 0x80862A02, "GMAX3100" },
{ 0x80862A03, "GMAX3100" },
branches/meklort/i386/modules/GraphicsEnabler/nvidia.c
354354
355355
356356
357
357358
358359
359360
{ 0x10DE0A65, "GeForce 210" },
{ 0x10DE0A66, "GeForce 310" },
{ 0x10DE0A74, "GeForce G210M" },
{ 0x10DE0A76, "ION GT218" },
{ 0x10DE0A78, "Quadro FX 380 LP" },
{ 0x10DE0CA3, "GeForce GT 240" },
{ 0x10DE0CA8, "GeForce GTS 260M" },
branches/meklort/i386/modules/Resolution/915resolution.c
2929
3030
3131
32
32
3333
3434
3535
......
184184
185185
186186
187
188
187
188
189189
190190
191
191
192
193
194
192195
193196
194197
......
256259
257260
258261
259
262
260263
261264
262265
263266
264
267
265268
266269
267270
268271
269272
270
273
271274
272275
273276
......
371374
372375
373376
374
377
375378
376379
377380
......
468471
469472
470473
471
474
472475
473476
474477
......
502505
503506
504507
505
508
506509
507510
508511
......
527530
528531
529532
530
533
531534
532535
533536
......
558561
559562
560563
561
564
562565
563566
564567
......
849852
850853
851854
852
855
853856
854857
855858
{
vbios_map * map;
map = open_vbios(CT_UNKWN);
map = open_vbios(CT_UNKNOWN);
if(map)
{
unlock_vbios(map);
{
//printf("Unknown chipset 0x%llX, please email id to meklort@gmail.com", id);
//getc();
//type = CT_UNKWN_INTEL;
type = CT_UNKWN;
type = CT_UNKNOWN_INTEL;
//type = CT_UNKNOWN;
}
type = CT_UNKWN;
else
{
type = CT_UNKNOWN;
}
break;
}
return type;
* Determine chipset
*/
if (forced_chipset == CT_UNKWN)
if (forced_chipset == CT_UNKNOWN)
{
map->chipset_id = get_chipset_id();
map->chipset = get_chipset(map->chipset_id);
}
else if (forced_chipset != CT_UNKWN)
else if (forced_chipset != CT_UNKNOWN)
{
map->chipset = forced_chipset;
}
if (map->chipset == CT_UNKWN)
if (map->chipset == CT_UNKNOWN)
{
//verbose("Unknown chipset type.\n");
//verbose("915resolution only works with Intel 800/900 series graphic chipsets.\n");
* check if we have Intel
*/
/*if (map->chipset == CT_UNKWN && memmem(map->bios_ptr, VBIOS_SIZE, INTEL_SIGNATURE, strlen(INTEL_SIGNATURE))) {
/*if (map->chipset == CT_UNKNOWN && memmem(map->bios_ptr, VBIOS_SIZE, INTEL_SIGNATURE, strlen(INTEL_SIGNATURE))) {
printf( "Intel chipset detected. However, 915resolution was unable to determine the chipset type.\n");
printf("Chipset Id: %x\n", map->chipset_id);
map->unlocked = TRUE;
switch (map->chipset) {
case CT_UNKWN:
case CT_UNKNOWN:
break;
case CT_830:
case CT_855GM:
case CT_G31:
case CT_500:
case CT_3150:
case CT_UNKWN_INTEL:// Assume newer intel chipset is the same as before
case CT_UNKNOWN_INTEL:// Assume newer intel chipset is the same as before
outl(CONFIG_MECH_ONE_ADDR, 0x80000090);
map->b1 = inb(CONFIG_MECH_ONE_DATA + 1);
map->b2 = inb(CONFIG_MECH_ONE_DATA + 2);
switch (map->chipset)
{
case CT_UNKWN:
case CT_UNKNOWN:
break;
case CT_830:
case CT_855GM:
case CT_G31:
case CT_500:
case CT_3150:
case CT_UNKWN_INTEL:
case CT_UNKNOWN_INTEL:
outl(CONFIG_MECH_ONE_ADDR, 0x80000090);
outb(CONFIG_MECH_ONE_DATA + 1, map->b1);
outb(CONFIG_MECH_ONE_DATA + 2, map->b2);
}*/
break;
}
case BT_UNKWN:
case BT_UNKNOWN:
{
break;
}
branches/meklort/i386/modules/Resolution/915resolution.h
105105
106106
107107
108
108
109109
110110
111111
......
115115
116116
117117
118
118
119119
120120
121121
typedef enum {
CT_UNKWN, CT_UNKWN_INTEL, CT_830, CT_845G, CT_855GM, CT_865G,
CT_UNKNOWN, CT_UNKNOWN_INTEL, CT_830, CT_845G, CT_855GM, CT_865G,
CT_915G, CT_915GM, CT_945G, CT_945GM, CT_945GME, CT_946GZ,
CT_955X, CT_G965, CT_Q965, CT_965GM, CT_975X,
CT_P35, CT_X48, CT_B43, CT_Q45, CT_P45,
typedef enum {
BT_UNKWN, BT_1, BT_2, BT_3, BT_ATI_1, BT_ATI_2, BT_NVDA
BT_UNKNOWN, BT_1, BT_2, BT_3, BT_ATI_1, BT_ATI_2, BT_NVDA
} bios_type;

Archive Download the corresponding diff file

Revision: 734