EmulatorPkg: formalize line endings
The patch is the result of running "BaseTools/Scripts/FormatDosFiles.py EmulatorPkg/" No functionality impact. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Cc: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -66,10 +66,10 @@ CreatePlatformSmbiosMemoryRecords (
|
||||
while ((HobPtr.Raw = GetNextHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, HobPtr.Raw)) != NULL) {
|
||||
if (HobPtr.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) {
|
||||
gSmbiosType19Template.ExtendedStartingAddress = HobPtr.ResourceDescriptor->PhysicalStart;
|
||||
gSmbiosType19Template.ExtendedEndingAddress =
|
||||
HobPtr.ResourceDescriptor->PhysicalStart +
|
||||
gSmbiosType19Template.ExtendedEndingAddress =
|
||||
HobPtr.ResourceDescriptor->PhysicalStart +
|
||||
HobPtr.ResourceDescriptor->ResourceLength - 1;
|
||||
|
||||
|
||||
SmbiosLibCreateEntry ((SMBIOS_STRUCTURE *)&gSmbiosType19Template, NULL);
|
||||
}
|
||||
HobPtr.Raw = GET_NEXT_HOB (HobPtr);
|
||||
@@ -97,7 +97,7 @@ PlatfomrSmbiosDriverEntryPoint (
|
||||
EFI_SMBIOS_HANDLE SmbiosHandle;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios;
|
||||
|
||||
// Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform
|
||||
// Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform
|
||||
// to an early version of the specification.
|
||||
|
||||
// Phase 1 - Initialize SMBIOS tables from template
|
||||
@@ -112,18 +112,18 @@ PlatfomrSmbiosDriverEntryPoint (
|
||||
Smbios.Type0->BiosSize = (UINT8)DivU64x32 (FixedPcdGet64 (PcdEmuFirmwareFdSize), 64*1024) - 1;
|
||||
|
||||
SmbiosLibUpdateUnicodeString (
|
||||
SmbiosHandle,
|
||||
Smbios.Type0->BiosVersion,
|
||||
SmbiosHandle,
|
||||
Smbios.Type0->BiosVersion,
|
||||
(CHAR16 *) PcdGetPtr (PcdFirmwareVersionString)
|
||||
);
|
||||
SmbiosLibUpdateUnicodeString (
|
||||
SmbiosHandle,
|
||||
Smbios.Type0->BiosReleaseDate,
|
||||
SmbiosHandle,
|
||||
Smbios.Type0->BiosReleaseDate,
|
||||
(CHAR16 *) PcdGetPtr (PcdFirmwareReleaseDateString)
|
||||
);
|
||||
}
|
||||
|
||||
// Phase 3 - Create tables from scratch
|
||||
// Phase 3 - Create tables from scratch
|
||||
|
||||
// Create Type 13 record from EFI Variables
|
||||
// Do we need this record for EFI as the info is available from EFI varaibles
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# Platform SMBIOS driver that fills in SMBIOS table entries.
|
||||
#
|
||||
# Copyright (c) 2012, Apple Inc. All rights reserved.
|
||||
# Copyright (c) 2012, Apple Inc. All rights reserved.
|
||||
# Portions copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
@@ -52,4 +52,4 @@
|
||||
gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
TRUE
|
||||
|
@@ -8,7 +8,7 @@
|
||||
Processor Information (Type 4) - CPU Driver
|
||||
Cache Information (Type 7) - For cache that is external to processor
|
||||
System Slots (Type 9) - If system has slots
|
||||
Physical Memory Array (Type 16)
|
||||
Physical Memory Array (Type 16)
|
||||
Memory Device (Type 17) - For each socketed system-memory Device
|
||||
Memory Array Mapped Address (Type 19) - One per contiguous block per Physical Memroy Array
|
||||
System Boot Information (Type 32)
|
||||
@@ -69,9 +69,9 @@ SMBIOS_TABLE_TYPE0 gSmbiosType0Template = {
|
||||
0, // PrinterIsSupported :1;
|
||||
0, // CgaMonoIsSupported :1;
|
||||
0, // NecPc98 :1;
|
||||
0 // ReservedForVendor :32; ///< Bits 32-63. Bits 32-47 reserved for BIOS vendor
|
||||
///< and bits 48-63 reserved for System Vendor.
|
||||
},
|
||||
0 // ReservedForVendor :32; ///< Bits 32-63. Bits 32-47 reserved for BIOS vendor
|
||||
///< and bits 48-63 reserved for System Vendor.
|
||||
},
|
||||
{ // BIOSCharacteristicsExtensionBytes[]
|
||||
0x81, // AcpiIsSupported :1;
|
||||
// UsbLegacyIsSupported :1;
|
||||
@@ -108,7 +108,7 @@ SMBIOS_TABLE_TYPE1 gSmbiosType1Template = {
|
||||
3, // Version String
|
||||
4, // SerialNumber String
|
||||
{ 0x25EF0280, 0xEC82, 0x42B0, { 0x8F, 0xB6, 0x10, 0xAD, 0xCC, 0xC6, 0x7C, 0x02 } },
|
||||
SystemWakeupTypePowerSwitch,
|
||||
SystemWakeupTypePowerSwitch,
|
||||
5, // SKUNumber String
|
||||
6, // Family String
|
||||
};
|
||||
@@ -119,7 +119,7 @@ CHAR8 *gSmbiosType1Strings[] = {
|
||||
"System Serial#",
|
||||
"System SKU#",
|
||||
"edk2",
|
||||
NULL
|
||||
NULL
|
||||
};
|
||||
|
||||
SMBIOS_TABLE_TYPE2 gSmbiosType2Template = {
|
||||
@@ -139,7 +139,7 @@ SMBIOS_TABLE_TYPE2 gSmbiosType2Template = {
|
||||
},
|
||||
6, // LocationInChassis String
|
||||
0, // ChassisHandle;
|
||||
BaseBoardTypeMotherBoard, // BoardType;
|
||||
BaseBoardTypeMotherBoard, // BoardType;
|
||||
0, // NumberOfContainedObjectHandles;
|
||||
{ 0 } // ContainedObjectHandles[1];
|
||||
};
|
||||
@@ -150,7 +150,7 @@ CHAR8 *gSmbiosType2Strings[] = {
|
||||
"Base Board Serial#",
|
||||
"Base Board Asset Tag#",
|
||||
"Part Component",
|
||||
NULL
|
||||
NULL
|
||||
};
|
||||
|
||||
SMBIOS_TABLE_TYPE3 gSmbiosType3Template = {
|
||||
@@ -160,10 +160,10 @@ SMBIOS_TABLE_TYPE3 gSmbiosType3Template = {
|
||||
2, // Version String
|
||||
3, // SerialNumber String
|
||||
4, // AssetTag String
|
||||
ChassisStateSafe, // BootupState;
|
||||
ChassisStateSafe, // PowerSupplyState;
|
||||
ChassisStateSafe, // ThermalState;
|
||||
ChassisSecurityStatusNone,// SecurityStatus;
|
||||
ChassisStateSafe, // BootupState;
|
||||
ChassisStateSafe, // PowerSupplyState;
|
||||
ChassisStateSafe, // ThermalState;
|
||||
ChassisSecurityStatusNone,// SecurityStatus;
|
||||
{ 0, 0, 0, 0 }, // OemDefined[4];
|
||||
0, // Height;
|
||||
0, // NumberofPowerCords;
|
||||
@@ -176,7 +176,7 @@ CHAR8 *gSmbiosType3Strings[] = {
|
||||
"EmulatorPkg",
|
||||
"Chassis Board Serial#",
|
||||
"Chassis Board Asset Tag#",
|
||||
NULL
|
||||
NULL
|
||||
};
|
||||
|
||||
SMBIOS_TABLE_TYPE8 gSmbiosType8Template1 = {
|
||||
|
Reference in New Issue
Block a user