Chameleon

Chameleon Commit Details

Date:2017-07-03 19:28:40 (2 years 4 months ago)
Author:ErmaC
Commit:2886
Parents: 2885
Message:minor update
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/smbios.c
M/branches/ErmaC/Enoch/i386/libsaio/ati.c
M/branches/ErmaC/Enoch/i386/boot2/options.c
M/branches/ErmaC/Enoch/i386/libsaio/smbios_decode.c
M/branches/ErmaC/Enoch/i386/boot2/drivers.c
M/branches/ErmaC/Enoch/i386/libsaio/fake_efi.c
M/branches/ErmaC/Enoch/i386/libsaio/nvidia.c

File differences

branches/ErmaC/Enoch/i386/libsaio/nvidia.c
16211621
16221622
16231623
1624
1625
1624
1625
16261626
16271627
16281628
{ 0x10DE1140,0x10280565,"Dell GeForce GT 630M" },
{ 0x10DE1140,0x10280568,"Dell GeForce GT 630M" },
{ 0x10DE1140,0x144DC0D5,"Samsung GeForce GT 630M" },
{ 0x10DE1140,0x17AA2200,"NVS 5200M" },
{ 0x10DE1140,0x17AA2213,"GeForce GT 720M" },
{ 0x10DE1140,0x17AA2200,"nVidia NVS 5200M" },
{ 0x10DE1140,0x17AA2213,"nVidia GeForce GT 720M" },
{ 0x10DE1140,0x17AA500D,"Lenovo GeForce GT 620M" },
{ 0x10DE1140,0x1B0A20DD,"Pegatron GeForce GT 620M" },
{ 0x10DE1140,0x1B0A20FD,"Pegatron GeForce GT 620M" },
branches/ErmaC/Enoch/i386/libsaio/ati.c
270270
271271
272272
273
273
274274
275275
276276
277277
278278
279279
280
280
281281
282282
283283
......
299299
300300
301301
302
302
303303
304304
305305
......
327327
328328
329329
330
330
331331
332332
333333
......
336336
337337
338338
339
339
340340
341341
342342
......
511511
512512
513513
514
514
515515
516516
517517
......
636636
637637
638638
639
639
640640
641641
642642
{ 0x6770,0x00000000, CHIP_FAMILY_CAICOS,"AMD Radeon HD 6400 Series",kBulrushes},
{ 0x6771,0x00000000, CHIP_FAMILY_CAICOS, "AMD Radeon HD 8490",kBulrushes},
{ 0x6772,0x00000000, CHIP_FAMILY_CAICOS,"AMD Radeon HD 7400A Series",kBulrushes},
{ 0x6778,0x00000000, CHIP_FAMILY_CAICOS,"AMD Radeon HD 7000 Series",kBulrushes},
{ 0x6778,0x00000000, CHIP_FAMILY_CAICOS,"AMD Radeon HD 7470",kBulrushes},
{ 0x6779,0x00000000, CHIP_FAMILY_CAICOS,"AMD Radeon HD 6450/7450/8450/R5 230",kBulrushes},
{ 0x677B,0x00000000, CHIP_FAMILY_CAICOS,"AMD Radeon HD 7400 Series",kBulrushes},
// TAHITI
//Framebuffers: Aji - 4 Desktop, Buri - 4 Mobile, Chutoro - 5 Mobile, Dashimaki - 4, IkuraS - HMDI
// Ebi - 5 Mobile, Gari - 5 M, Futomaki - 4 D, Hamachi - 4 D, OPM - 6 Server, Ikura - 6
{ 0x6780,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kIkuraS},
{ 0x6780,0x00000000, CHIP_FAMILY_TAHITI,"AMD FirePro W9000",kIkuraS},
{ 0x6784,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x6788,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x678A,0x00000000, CHIP_FAMILY_TAHITI,"AMD FirePro W8000",kFutomaki},
//{ 0x67A9,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon", kFutomaki},
//{ 0x67AA,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon", kFutomaki},
{ 0x67B0,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon R9 290X", kBaladi},
{ 0x67B1,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon R9 290", kBaladi},
{ 0x67B1,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon R9 290/390", kBaladi},
//{ 0x67B8,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon", kFutomaki},
{ 0x67B9,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon R9 200", kFutomaki},
//{ 0x67BA,0x00000000, CHIP_FAMILY_HAWAII,"AMD Radeon", kFutomaki},
{ 0x67E9, 0x00000000, CHIP_FAMILY_BAFFIN, "AMD Radeon Polaris 11", kNull },
{ 0x67EB, 0x00000000, CHIP_FAMILY_BAFFIN, "AMD Radeon Polaris 11", kNull },
{ 0x67EF, 0x00000000, CHIP_FAMILY_BAFFIN, "AMD Radeon RX460", kAcre },
{ 0x67FF, 0x00000000, CHIP_FAMILY_BAFFIN, "AMD Radeon Polaris 11", kNull },
{ 0x67FF, 0x00000000, CHIP_FAMILY_BAFFIN, "AMD Radeon RX560", kNull },
// Polaris 12
{ 0x6980, 0x00000000, CHIP_FAMILY_GREENLAND, "AMD Radeon Polaris 12", kNull },
{ 0x6986, 0x00000000, CHIP_FAMILY_GREENLAND, "AMD Radeon Polaris 12", kNull },
{ 0x6987, 0x00000000, CHIP_FAMILY_GREENLAND, "AMD Radeon Polaris 12", kNull },
{ 0x6995, 0x00000000, CHIP_FAMILY_GREENLAND, "AMD Radeon Polaris 12", kNull },
{ 0x699F, 0x00000000, CHIP_FAMILY_GREENLAND, "AMD Radeon Polaris 12", kNull },
{ 0x699F, 0x00000000, CHIP_FAMILY_GREENLAND, "AMD Radeon RX550", kNull },
// Vega 10
{ 0x6860,0x00000000, CHIP_FAMILY_VEGA10,"AMD Radeon Vega 10", kNull },
{ 0x7181, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD Desktop ",kCaretta},
{ 0x7183, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD Desktop ",kCaretta},
{ 0x7186, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD Mobile ",kCaretta},
{ 0x7187, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD Desktop ",kCaretta},
{ 0x7187, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD1900 ",kCaretta},
{ 0x7188, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD2300 Mobile ",kCaretta},
{ 0x718A, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD Mobile ",kCaretta},
{ 0x718B, 0x00000000, CHIP_FAMILY_RV515, "ATI Radeon HD Mobile ",kCaretta},
{ 0x9452,0x00000000, CHIP_FAMILY_RV770,"AMD FireStream 9250",kMotmot},
{ 0x9456,0x00000000, CHIP_FAMILY_RV770,"ATI FirePro V8700 (FireGL)",kMotmot},
{ 0x945A,0x00000000, CHIP_FAMILY_RV770,"ATI Mobility Radeon HD 4870",kMotmot},
{ 0x9460,0x00000000, CHIP_FAMILY_RV770,"ATI Radeon HD 4800 Series",kMotmot},
{ 0x9460,0x00000000, CHIP_FAMILY_RV770,"ATI Radeon HD 4890",kMotmot},
{ 0x9462,0x00000000, CHIP_FAMILY_RV770,"ATI Radeon HD 4800 Series",kMotmot},
//{ 0x946A,0x00000000, CHIP_FAMILY_RV770,"ATI Mobility Radeon",kMotmot},
//{ 0x946B,0x00000000, CHIP_FAMILY_RV770,"ATI Mobility Radeon",kMotmot},
branches/ErmaC/Enoch/i386/libsaio/smbios.c
130130
131131
132132
133
133
134134
135135
136136
/* ==========================================
OEM Platform SMC (Apple Specific - Type 134)
============================================ */
//#define kSMBOemSMCKey "SMoemsmc"
//#define kSMBOemSMCKey"SMoemsmc"
/* ==================================================*/
branches/ErmaC/Enoch/i386/libsaio/smbios_decode.c
655655
656656
657657
658
658
659659
660
660
661661
662662
663663
//break;
/* Skip all Apple Specific Structures */
// case kSMBTypeFirmwareVolume: // Type 128
case kSMBTypeFirmwareVolume: // Type 128
// case kSMBTypeMemorySPD: // Type 130
//break;
break;
case kSMBTypeOemProcessorType: // Type 131
decodeOemProcessorType(structHeader);
branches/ErmaC/Enoch/i386/libsaio/fake_efi.c
835835
836836
837837
838
838839
839
840
841
842
843
844
840845
841846
842847
// booter-build-time (Fri Apr 14 16:21:16 PDT 2017) 10.12.5
DT__AddProperty(chosenNode, "booter-build-time", sizeof(I386BOOT_BUILDDATE), I386BOOT_BUILDDATE);
// booter-name
DT__AddProperty(chosenNode, "booter-name", sizeof("Enoch"), "Enoch");
static EFI_UINT8 const booterName[] =
{
0x45, 0x6E, 0x6F, 0x63, 0x68, 0x00
};
DT__AddProperty(chosenNode, "booter-name", sizeof(booterName), (EFI_UINT8*) &booterName);
// booter-version (version:324.50.13) 10.12.5
DT__AddProperty(chosenNode, "booter-version", sizeof(I386BOOT_CHAMELEONREVISION), I386BOOT_CHAMELEONREVISION);
branches/ErmaC/Enoch/i386/boot2/drivers.c
15371537
15381538
15391539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
15401555
15411556
15421557
default:kernelOSVer = 0xA0C0600; break; //Last known kernel (add here updates)
}
break;
//case 17: /* High Sierra */
//switch (gDarwinMinor)
//{
//case 0: kernelOSVer = 0xA0C0000; break;
//case 1: kernelOSVer = 0xA0C0100; break;
//case 2: kernelOSVer = 0xA0C0200; break;
//case 3: kernelOSVer = 0xA0C0200; break;
//case 4: kernelOSVer = 0xA0C0300; break;
//case 5: kernelOSVer = 0xA0C0400; break;
//case 6: kernelOSVer = 0xA0C0500; break;
//case 7: kernelOSVer = 0xA0C0600; break;
//case 8: kernelOSVer = 0xA0C0700; break;
//default:kernelOSVer = 0xA0C0600; break; //Last known kernel (add here updates)
//}
//break;
default:
kernelOSVer = 0xA0C0600;
break; //Last known kernel is Sierra 10.12.6
branches/ErmaC/Enoch/i386/boot2/options.c
402402
403403
404404
405
406
407
408405
409406
410407
putca(' ', 0x07, 40);
}
//char Item[40];
//strncpy(Item, item->name, sizeof(Item));
//printf(" %s\n", Item);
printf(" %40s\n", item->name);
}

Archive Download the corresponding diff file

Revision: 2886