Chameleon

Chameleon Commit Details

Date:2015-07-04 16:42:51 (8 years 8 months ago)
Author:ErmaC
Commit:2728
Parents: 2727
Message:Port from Clover Broadwell data (Credits to TheRacerMaster)
Changes:
M/trunk/i386/libsaio/smbios_getters.c
M/trunk/i386/libsaio/smbios.c

File differences

trunk/i386/libsaio/smbios.c
368368
369369
370370
371
372
373
371
372
373
374
374375
375376
376377
{kSMBTypeMemoryDevice,kSMBString,getFieldOffset(SMBMemoryDevice, partNumber),
kSMBMemoryDevicePartNumberKey, getSMBMemoryDevicePartNumber, NULL},
//-------------------------------------------------------------------------------------------------------------------------
// Apple Specific
//-------------------------------------------------------------------------------------------------------------------------
/* ============
Apple Specific
============== */
// OEM Processor Type (Apple Specific - Type 131)
{kSMBTypeOemProcessorType,kSMBWord,getFieldOffset(SMBOemProcessorType, ProcessorType),kSMBOemProcessorTypeKey,
getSMBOemProcessorType,NULL},
trunk/i386/libsaio/smbios_getters.c
1919
2020
2121
22
2223
2324
2425
......
384385
385386
386387
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
388419
389420
390421
#endif
#define XEON "Xeon"
#define CORE_M "Core(TM) M"
#define CORE_I3 "Core(TM) i3"
#define CORE_I5 "Core(TM) i5"
#define CORE_I7 "Core(TM) i7"
case CPUID_MODEL_HASWELL_U5:// 0x3D -
value->word = 0x606;// 1542
if (strstr(Platform.CPU.BrandString, CORE_M))
{
value->word = 0xB06;// 2822
return true;
}
if (strstr(Platform.CPU.BrandString, CORE_I3))
{
value->word = 0x906;// 2310 - Apple doesn't use it
return true;
}
if (strstr(Platform.CPU.BrandString, CORE_I5))
{
value->word = 0x606;// 1542
return true;
}
if (strstr(Platform.CPU.BrandString, CORE_I7))
{
value->word = 0x706;// 1798
return true;
}
if (Platform.CPU.NoCores <= 2)
{
value->word = 0x606;// 1542
return true;
}
//value->word = 0x706;// 1798
return true;
case CPUID_MODEL_IVYBRIDGE_XEON:// 0x3E - Mac Pro 6,1

Archive Download the corresponding diff file

Revision: 2728