#include <Protocol/Smbios.h>\r
#include <Library/SmbiosLib.h>\r
\r
-\r
-SMBIOS_TABLE_TYPE0 gSmbiosType0Template = {\r
+SMBIOS_TABLE_TYPE0 gSmbiosType0Template = {\r
{ EFI_SMBIOS_TYPE_BIOS_INFORMATION, sizeof (SMBIOS_TABLE_TYPE0), 0 },\r
1, // Vendor String\r
2, // BiosVersion String\r
0xE000, // BiosSegment\r
3, // BiosReleaseDate String\r
0x7F, // BiosSize\r
- { // BiosCharacteristics\r
+ { // BiosCharacteristics\r
0, // Reserved :2; ///< Bits 0-1.\r
0, // Unknown :1;\r
0, // BiosCharacteristicsNotSupported :1;\r
0, // CgaMonoIsSupported :1;\r
0, // NecPc98 :1;\r
0 // ReservedForVendor :32; ///< Bits 32-63. Bits 32-47 reserved for BIOS vendor\r
- ///< and bits 48-63 reserved for System Vendor.\r
+ ///< and bits 48-63 reserved for System Vendor.\r
},\r
{ // BIOSCharacteristicsExtensionBytes[]\r
0x81, // AcpiIsSupported :1;\r
// AtapiZipDriveBootIsSupported :1;\r
// Boot1394IsSupported :1;\r
// SmartBatteryIsSupported :1;\r
- // BIOSCharacteristicsExtensionBytes[1]\r
+ // BIOSCharacteristicsExtensionBytes[1]\r
0x0a, // BiosBootSpecIsSupported :1;\r
// FunctionKeyNetworkBootIsSupported :1;\r
// TargetContentDistributionEnabled :1;\r
0xFF, // EmbeddedControllerFirmwareMajorRelease\r
0xFF, // EmbeddedControllerFirmwareMinorRelease\r
};\r
-CHAR8 *gSmbiosType0Strings[] = {\r
- "http://www.tianocore.org/edk2/", // Vendor String\r
- __TIME__, // BiosVersion String\r
- __DATE__, // BiosReleaseDate String\r
+CHAR8 *gSmbiosType0Strings[] = {\r
+ "http://www.tianocore.org/edk2/", // Vendor String\r
+ __TIME__, // BiosVersion String\r
+ __DATE__, // BiosReleaseDate String\r
NULL\r
};\r
\r
-SMBIOS_TABLE_TYPE1 gSmbiosType1Template = {\r
- { EFI_SMBIOS_TYPE_SYSTEM_INFORMATION, sizeof (SMBIOS_TABLE_TYPE1), 0 },\r
+SMBIOS_TABLE_TYPE1 gSmbiosType1Template = {\r
+ { EFI_SMBIOS_TYPE_SYSTEM_INFORMATION, sizeof (SMBIOS_TABLE_TYPE1), 0 },\r
1, // Manufacturer String\r
2, // ProductName String\r
3, // Version String\r
4, // SerialNumber String\r
- { 0x25EF0280, 0xEC82, 0x42B0, { 0x8F, 0xB6, 0x10, 0xAD, 0xCC, 0xC6, 0x7C, 0x02 } },\r
+ { 0x25EF0280, 0xEC82, 0x42B0, { 0x8F, 0xB6, 0x10, 0xAD, 0xCC, 0xC6, 0x7C, 0x02}\r
+ },\r
SystemWakeupTypePowerSwitch,\r
5, // SKUNumber String\r
6, // Family String\r
};\r
-CHAR8 *gSmbiosType1Strings[] = {\r
+CHAR8 *gSmbiosType1Strings[] = {\r
"http://www.tianocore.org/edk2/",\r
"EmulatorPkg",\r
"1.0",\r
4, // SerialNumber String\r
5, // AssetTag String\r
{ // FeatureFlag\r
- 1, // Motherboard :1;\r
- 0, // RequiresDaughterCard :1;\r
- 0, // Removable :1;\r
- 0, // Replaceable :1;\r
- 0, // HotSwappable :1;\r
- 0, // Reserved :3;\r
+ 1, // Motherboard :1;\r
+ 0, // RequiresDaughterCard :1;\r
+ 0, // Removable :1;\r
+ 0, // Replaceable :1;\r
+ 0, // HotSwappable :1;\r
+ 0, // Reserved :3;\r
},\r
- 6, // LocationInChassis String\r
+ 6, // LocationInChassis String\r
0, // ChassisHandle;\r
BaseBoardTypeMotherBoard, // BoardType;\r
0, // NumberOfContainedObjectHandles;\r
{ 0 } // ContainedObjectHandles[1];\r
};\r
-CHAR8 *gSmbiosType2Strings[] = {\r
+CHAR8 *gSmbiosType2Strings[] = {\r
"http://www.tianocore.org/edk2/",\r
"EmulatorPkg",\r
"1.0",\r
\r
SMBIOS_TABLE_TYPE3 gSmbiosType3Template = {\r
{ EFI_SMBIOS_TYPE_SYSTEM_ENCLOSURE, sizeof (SMBIOS_TABLE_TYPE3), 0 },\r
- 1, // Manufacturer String\r
- MiscChassisTypeLapTop, // Type;\r
- 2, // Version String\r
- 3, // SerialNumber String\r
- 4, // AssetTag String\r
- ChassisStateSafe, // BootupState;\r
- ChassisStateSafe, // PowerSupplyState;\r
- ChassisStateSafe, // ThermalState;\r
- ChassisSecurityStatusNone,// SecurityStatus;\r
- { 0, 0, 0, 0 }, // OemDefined[4];\r
- 0, // Height;\r
- 0, // NumberofPowerCords;\r
- 0, // ContainedElementCount;\r
- 0, // ContainedElementRecordLength;\r
- { { 0 } }, // ContainedElements[1];\r
-};\r
-CHAR8 *gSmbiosType3Strings[] = {\r
+ 1, // Manufacturer String\r
+ MiscChassisTypeLapTop, // Type;\r
+ 2, // Version String\r
+ 3, // SerialNumber String\r
+ 4, // AssetTag String\r
+ ChassisStateSafe, // BootupState;\r
+ ChassisStateSafe, // PowerSupplyState;\r
+ ChassisStateSafe, // ThermalState;\r
+ ChassisSecurityStatusNone, // SecurityStatus;\r
+ { 0, 0, 0, 0}, // OemDefined[4];\r
+ 0, // Height;\r
+ 0, // NumberofPowerCords;\r
+ 0, // ContainedElementCount;\r
+ 0, // ContainedElementRecordLength;\r
+ {\r
+ { 0 }\r
+ }, // ContainedElements[1];\r
+};\r
+CHAR8 *gSmbiosType3Strings[] = {\r
"http://www.tianocore.org/edk2/",\r
"EmulatorPkg",\r
"Chassis Board Serial#",\r
PortConnectorTypeNone, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeOther, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings1[] = {\r
+CHAR8 *gSmbiosType8Strings1[] = {\r
"Mini DisplayPort",\r
NULL\r
};\r
PortConnectorTypeNone, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeFireWire, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings2[] = {\r
+CHAR8 *gSmbiosType8Strings2[] = {\r
"FireWire 800",\r
NULL\r
};\r
\r
-\r
SMBIOS_TABLE_TYPE8 gSmbiosType8Template3 = {\r
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },\r
0, // InternalReferenceDesignator String\r
PortConnectorTypeRJ45, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeNetworkPort, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings3[] = {\r
+CHAR8 *gSmbiosType8Strings3[] = {\r
"Ethernet",\r
NULL\r
};\r
PortConnectorTypeUsb, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeUsb, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings4[] = {\r
+CHAR8 *gSmbiosType8Strings4[] = {\r
"USB0",\r
NULL\r
};\r
PortConnectorTypeUsb, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeUsb, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings5[] = {\r
+CHAR8 *gSmbiosType8Strings5[] = {\r
"USB1",\r
NULL\r
};\r
PortConnectorTypeUsb, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeUsb, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings6[] = {\r
+CHAR8 *gSmbiosType8Strings6[] = {\r
"USB2",\r
NULL\r
};\r
PortConnectorTypeUsb, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeUsb, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings7[] = {\r
+CHAR8 *gSmbiosType8Strings7[] = {\r
"USB3",\r
NULL\r
};\r
\r
SMBIOS_TABLE_TYPE8 gSmbiosType8Template8 = {\r
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },\r
- 0, // InternalReferenceDesignator String\r
- PortConnectorTypeNone, // InternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
- 1, // ExternalReferenceDesignator String\r
+ 0, // InternalReferenceDesignator String\r
+ PortConnectorTypeNone, // InternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
+ 1, // ExternalReferenceDesignator String\r
PortConnectorTypeHeadPhoneMiniJack, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeAudioPort, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings8[] = {\r
+CHAR8 *gSmbiosType8Strings8[] = {\r
"Audio Line In",\r
NULL\r
};\r
\r
SMBIOS_TABLE_TYPE8 gSmbiosType8Template9 = {\r
{ EFI_SMBIOS_TYPE_PORT_CONNECTOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE8), 0 },\r
- 0, // InternalReferenceDesignator String\r
- PortConnectorTypeNone, // InternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
- 1, // ExternalReferenceDesignator String\r
+ 0, // InternalReferenceDesignator String\r
+ PortConnectorTypeNone, // InternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
+ 1, // ExternalReferenceDesignator String\r
PortConnectorTypeHeadPhoneMiniJack, // ExternalConnectorType; ///< The enumeration value from MISC_PORT_CONNECTOR_TYPE.\r
PortTypeAudioPort, // PortType; ///< The enumeration value from MISC_PORT_TYPE.\r
};\r
-CHAR8 *gSmbiosType8Strings9[] = {\r
+CHAR8 *gSmbiosType8Strings9[] = {\r
"Audio Line Out",\r
NULL\r
};\r
\r
SMBIOS_TABLE_TYPE9 gSmbiosType9Template = {\r
{ EFI_SMBIOS_TYPE_SYSTEM_SLOTS, sizeof (SMBIOS_TABLE_TYPE9), 0 },\r
- 1, // SlotDesignation String\r
- SlotTypeOther, // SlotType; ///< The enumeration value from MISC_SLOT_TYPE.\r
- SlotDataBusWidthOther, // SlotDataBusWidth; ///< The enumeration value from MISC_SLOT_DATA_BUS_WIDTH.\r
+ 1, // SlotDesignation String\r
+ SlotTypeOther, // SlotType; ///< The enumeration value from MISC_SLOT_TYPE.\r
+ SlotDataBusWidthOther, // SlotDataBusWidth; ///< The enumeration value from MISC_SLOT_DATA_BUS_WIDTH.\r
SlotUsageAvailable, // CurrentUsage; ///< The enumeration value from MISC_SLOT_USAGE.\r
- SlotLengthOther, // SlotLength; ///< The enumeration value from MISC_SLOT_LENGTH.\r
- 0, // SlotID;\r
+ SlotLengthOther, // SlotLength; ///< The enumeration value from MISC_SLOT_LENGTH.\r
+ 0, // SlotID;\r
{ // SlotCharacteristics1;\r
- 1, // CharacteristicsUnknown :1;\r
- 0, // Provides50Volts :1;\r
- 0, // Provides33Volts :1;\r
- 0, // SharedSlot :1;\r
- 0, // PcCard16Supported :1;\r
- 0, // CardBusSupported :1;\r
- 0, // ZoomVideoSupported :1;\r
- 0, // ModemRingResumeSupported:1;\r
+ 1, // CharacteristicsUnknown :1;\r
+ 0, // Provides50Volts :1;\r
+ 0, // Provides33Volts :1;\r
+ 0, // SharedSlot :1;\r
+ 0, // PcCard16Supported :1;\r
+ 0, // CardBusSupported :1;\r
+ 0, // ZoomVideoSupported :1;\r
+ 0, // ModemRingResumeSupported:1;\r
},\r
{ // SlotCharacteristics2;\r
0, // PmeSignalSupported :1;\r
0, // BusNum;\r
0, // DevFuncNum;\r
};\r
-CHAR8 *gSmbiosType9Strings[] = {\r
+CHAR8 *gSmbiosType9Strings[] = {\r
"SD Card",\r
NULL\r
};\r
\r
-SMBIOS_TABLE_TYPE11 gSmbiosType11Template = {\r
+SMBIOS_TABLE_TYPE11 gSmbiosType11Template = {\r
{ EFI_SMBIOS_TYPE_OEM_STRINGS, sizeof (SMBIOS_TABLE_TYPE11), 0 },\r
1 // StringCount\r
};\r
-CHAR8 *gSmbiosType11Strings[] = {\r
+CHAR8 *gSmbiosType11Strings[] = {\r
"https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmulatorPkg/",\r
NULL\r
};\r
\r
-\r
-SMBIOS_TABLE_TYPE12 gSmbiosType12Template = {\r
+SMBIOS_TABLE_TYPE12 gSmbiosType12Template = {\r
{ EFI_SMBIOS_TYPE_SYSTEM_CONFIGURATION_OPTIONS, sizeof (SMBIOS_TABLE_TYPE12), 0 },\r
1 // StringCount\r
};\r
-CHAR8 *gSmbiosType12Strings[] = {\r
+CHAR8 *gSmbiosType12Strings[] = {\r
"https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmulatorPkg/EmulatorPkg.dsc",\r
NULL\r
};\r
\r
-SMBIOS_TABLE_TYPE16 gSmbiosType16Template = {\r
+SMBIOS_TABLE_TYPE16 gSmbiosType16Template = {\r
{ EFI_SMBIOS_TYPE_PHYSICAL_MEMORY_ARRAY, sizeof (SMBIOS_TABLE_TYPE16), 0 },\r
MemoryArrayLocationSystemBoard, // Location; ///< The enumeration value from MEMORY_ARRAY_LOCATION.\r
MemoryArrayUseSystemMemory, // Use; ///< The enumeration value from MEMORY_ARRAY_USE.\r
0x3fffffffffffffffULL, // ExtendedMaximumCapacity;\r
};\r
\r
-SMBIOS_TABLE_TYPE17 gSmbiosType17Template = {\r
+SMBIOS_TABLE_TYPE17 gSmbiosType17Template = {\r
{ EFI_SMBIOS_TYPE_MEMORY_DEVICE, sizeof (SMBIOS_TABLE_TYPE17), 0 },\r
- 0, // MemoryArrayHandle;\r
- 0xFFFE, // MemoryErrorInformationHandle;\r
- 0xFFFF, // TotalWidth;\r
- 0xFFFF, // DataWidth;\r
- 0xFFFF, // Size;\r
+ 0, // MemoryArrayHandle;\r
+ 0xFFFE, // MemoryErrorInformationHandle;\r
+ 0xFFFF, // TotalWidth;\r
+ 0xFFFF, // DataWidth;\r
+ 0xFFFF, // Size;\r
MemoryFormFactorUnknown, // FormFactor; ///< The enumeration value from MEMORY_FORM_FACTOR.\r
- 0xff, // DeviceSet;\r
- 1, // DeviceLocator String\r
- 2, // BankLocator String\r
- MemoryTypeDram, // MemoryType; ///< The enumeration value from MEMORY_DEVICE_TYPE.\r
- { // TypeDetail;\r
+ 0xff, // DeviceSet;\r
+ 1, // DeviceLocator String\r
+ 2, // BankLocator String\r
+ MemoryTypeDram, // MemoryType; ///< The enumeration value from MEMORY_DEVICE_TYPE.\r
+ { // TypeDetail;\r
0, // Reserved :1;\r
0, // Other :1;\r
1, // Unknown :1;\r
0, // ExtendedSize;\r
0, // ConfiguredMemoryClockSpeed;\r
};\r
-CHAR8 *gSmbiosType17Strings[] = {\r
+CHAR8 *gSmbiosType17Strings[] = {\r
"OS Virtual Memory",\r
"malloc",\r
"OSV",\r
NULL\r
};\r
\r
-SMBIOS_TABLE_TYPE23 gSmbiosType23Template = {\r
+SMBIOS_TABLE_TYPE23 gSmbiosType23Template = {\r
{ EFI_SMBIOS_TYPE_SYSTEM_BOOT_INFORMATION, sizeof (SMBIOS_TABLE_TYPE23), 0 },\r
0, // Capabilities;\r
0, // ResetCount;\r
0 // Timeout;\r
};\r
\r
-SMBIOS_TABLE_TYPE32 gSmbiosType32Template = {\r
+SMBIOS_TABLE_TYPE32 gSmbiosType32Template = {\r
{ EFI_SMBIOS_TYPE_SYSTEM_BOOT_INFORMATION, sizeof (SMBIOS_TABLE_TYPE32), 0 },\r
- { 0, 0, 0, 0, 0, 0 }, // Reserved[6];\r
- BootInformationStatusNoError // BootStatus\r
+ { 0, 0, 0, 0, 0, 0}, // Reserved[6];\r
+ BootInformationStatusNoError // BootStatus\r
};\r
\r
-\r
-\r
-SMBIOS_TEMPLATE_ENTRY gSmbiosTemplate[] = {\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType0Template, gSmbiosType0Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType1Template, gSmbiosType1Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType2Template, gSmbiosType2Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType3Template, gSmbiosType3Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template1, gSmbiosType8Strings1 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template2, gSmbiosType8Strings2 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template3, gSmbiosType8Strings3 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template4, gSmbiosType8Strings4 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template5, gSmbiosType8Strings5 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template6, gSmbiosType8Strings6 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template7, gSmbiosType8Strings7 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template8, gSmbiosType8Strings8 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType8Template9, gSmbiosType8Strings9 },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType9Template, gSmbiosType9Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType11Template, gSmbiosType11Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType12Template, gSmbiosType12Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType16Template, NULL },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType17Template, gSmbiosType17Strings },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType23Template, NULL },\r
- { (SMBIOS_STRUCTURE *)&gSmbiosType32Template, NULL },\r
- { NULL, NULL }\r
+SMBIOS_TEMPLATE_ENTRY gSmbiosTemplate[] = {\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType0Template, gSmbiosType0Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType1Template, gSmbiosType1Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType2Template, gSmbiosType2Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType3Template, gSmbiosType3Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template1, gSmbiosType8Strings1 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template2, gSmbiosType8Strings2 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template3, gSmbiosType8Strings3 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template4, gSmbiosType8Strings4 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template5, gSmbiosType8Strings5 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template6, gSmbiosType8Strings6 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template7, gSmbiosType8Strings7 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template8, gSmbiosType8Strings8 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType8Template9, gSmbiosType8Strings9 },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType9Template, gSmbiosType9Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType11Template, gSmbiosType11Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType12Template, gSmbiosType12Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType16Template, NULL },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType17Template, gSmbiosType17Strings },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType23Template, NULL },\r
+ { (SMBIOS_STRUCTURE *)&gSmbiosType32Template, NULL },\r
+ { NULL, NULL }\r
};\r