Chameleon

Chameleon Commit Details

Date:2014-01-27 16:34:25 (10 years 5 months ago)
Author:ErmaC
Commit:2351
Parents: 2350
Message:more info from dmi tables
Changes:
M/trunk/i386/libsaio/smbios.h
M/trunk/i386/libsaio/smbios_decode.c

File differences

trunk/i386/libsaio/smbios_decode.c
392392
393393
394394
395
396
395
396
397
398
399
397400
398401
399402
......
469472
470473
471474
472
475
473476
474477
475478
476
479
480
481
482
483
477484
478485
479486
......
482489
483490
484491
492
485493
486494
487495
......
498506
499507
500508
509
510
501511
502512
503513
DBG("Memory Device:\n");
DBG("\tDevice Locator: %s\n", SMBStringForField((SMBStructHeader *)structHeader, structHeader->deviceLocator, neverMask));
DBG("\tBank Locator: %s\n", SMBStringForField((SMBStructHeader *)structHeader, structHeader->bankLocator, neverMask));
DBG("\tMemory Type: %s\n", SMBMemoryDeviceTypes[structHeader->memoryType]);
if (structHeader->memoryType > kSMBMemoryDeviceTypeCount) {
DBG("\tMemory Type: %s\n", OutOfSpecStr);
} else {
DBG("\tMemory Type: %s\n", SMBMemoryDeviceTypes[structHeader->memoryType]);
}
if (minorVersion < 0x03 || structHeader->header.length < 0x1B) {
return;
}
decodeProcessorInformation((SMBProcessorInformation *)structHeader);
break;
//case 6: // kSMBTypeMemoryModule: // Type 6
//case kSMBTypeMemoryModule: // Type 6
//decodeMemoryModule((SMBMemoryModule *)structHeader);
//break;
//case 11: // kSMBOEMStrings: // Type 11
//case kSMBTypeSystemSlot: // Type 9
//decodeSMBTypeSystemSlot((SMBOEMStrings *)structHeader);
//break;
//case kSMBOEMStrings: // Type 11
//decodeSMBOEMStrings((SMBOEMStrings *)structHeader);
//break;
break;
//kSMBTypeMemoryArrayMappedAddress: // Type 19
//break;
/* Skip all Apple Specific Structures */
case kSMBTypeFirmwareVolume: // Type 128
//kSMBTypeOemPlatformFeature: // Type 133
//break;
case kSMBTypeEndOfTable: // Type 127
/* Skip, to be added at the end */
break;
trunk/i386/libsaio/smbios.h
297297
298298
299299
300
300
301301
302302
303303
304
305
304
305
306306
307307
308308
......
312312
313313
314314
315
316
317
318
319
320
321
322
323
324
325
326
327
315328
316329
317330
......
365378
366379
367380
368
381
369382
370383
371
384
372385
373386
374387
......
449462
450463
451464
452
453
465
466
454467
455468
456469
......
559572
560573
561574
575
576
577
578
579
580
581
582
583
562584
563585
564586
SMBString serialNumber;
SMBString assetTag;
SMBString partNumber;
// 2.5+ spec (38 bytes)
// 2.5+ spec (40 bytes)
//SMBByte coreCount;
//SMBByte coreEnabled;
//SMBByte threadCount;
//SMBWord processorCharacteristics;
// 2.6+ spec
//SMBWord processorFuncSupport;
// 2.6+ spec (42 bytes)
//SMBWord processorFamily2;
} __attribute__((packed)) SMBProcessorInformation;
Memory Controller Information (Type 5) Obsoleted since SMBIOS version 2.1
========================================================================= */
//typedef struct SMBMemoryControllerInfo {
//SMB_STRUCT_HEADER
//SMBByteerrorDetectingMethod;
//SMBByteerrorCorrectingCapability;
//SMBBytesupportedInterleave;
//SMBBytecurrentInterleave;
//SMBBytemaxMemoryModuleSize;
//SMBWordsupportedSpeeds;
//SMBWordsupportedMemoryTypes;
//SMBBytememoryModuleVoltage;
//SMBBytenumberOfMemorySlots;
//} __attribute__((packed)) SMBMemoryControllerInfo;
/* ===================================================================
Memory Module Information (Type 6) Obsoleted since SMBIOS version 2.1
===================================================================== */
SMBByte slotCharacteristics1;
// 2.1+ spec (13 bytes)
SMBByte slotCharacteristics2;
// 2.6+ spec
// 2.6+ spec (17 bytes)
//SMBWordsegmentGroupNumber;
//SMBBytebusNumber;
//SMBBytedevFuncNumber;
//SMBBytedeviceFunctionNumber;
} __attribute__((packed)) SMBSystemSlot;
/* ===================
SMBString serialNumber;
SMBString assetTag;
SMBString partNumber;
// 2.6+ spec
//SMBByte memoryAtributes;
// 2.6+ spec (28 bytes)
//SMBByte attributes;
// 2.7+ spec
//SMBDWord memoryExtSize;
//SMBWord confMemClkSpeed;
SMBWord ProcessorBusSpeed; // MT/s unit
} __attribute__((packed)) SMBOemProcessorBusSpeed;
/* ==============================================
OEM Platform Feature (Apple Specific - Type 133)
================================================ */
struct SMBOemPlatformFeature
{
SMB_STRUCT_HEADER
SMBWord PlatformFeature;
} __attribute__((packed)) SMBOemPlatformFeature;
//----------------------------------------------------------------------------------------------------------
/* From Foundation/Efi/Guid/Smbios/SmBios.h */

Archive Download the corresponding diff file

Revision: 2351