EmulatorPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the EmulatorPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
e7108d0e96
commit
a550d468a6
@@ -17,11 +17,9 @@
|
||||
#include <Library/SmbiosLib.h>
|
||||
#include <Library/HobLib.h>
|
||||
|
||||
extern SMBIOS_TEMPLATE_ENTRY gSmbiosTemplate[];
|
||||
extern SMBIOS_TEMPLATE_ENTRY gSmbiosTemplate[];
|
||||
|
||||
|
||||
|
||||
SMBIOS_TABLE_TYPE19 gSmbiosType19Template = {
|
||||
SMBIOS_TABLE_TYPE19 gSmbiosType19Template = {
|
||||
{ EFI_SMBIOS_TYPE_MEMORY_ARRAY_MAPPED_ADDRESS, sizeof (SMBIOS_TABLE_TYPE19), 0 },
|
||||
0xffffffff, // StartingAddress;
|
||||
0xffffffff, // EndingAddress;
|
||||
@@ -36,11 +34,11 @@ CreatePlatformSmbiosMemoryRecords (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_PEI_HOB_POINTERS HobPtr;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios16;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios17;
|
||||
EFI_SMBIOS_HANDLE PhyscialMemoryArrayHandle;
|
||||
EFI_SMBIOS_HANDLE SmbiosHandle;
|
||||
EFI_PEI_HOB_POINTERS HobPtr;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios16;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios17;
|
||||
EFI_SMBIOS_HANDLE PhyscialMemoryArrayHandle;
|
||||
EFI_SMBIOS_HANDLE SmbiosHandle;
|
||||
|
||||
Smbios16.Hdr = SmbiosLibGetRecord (EFI_SMBIOS_TYPE_PHYSICAL_MEMORY_ARRAY, 0, &PhyscialMemoryArrayHandle);
|
||||
if (Smbios16.Hdr == NULL) {
|
||||
@@ -56,21 +54,21 @@ CreatePlatformSmbiosMemoryRecords (
|
||||
|
||||
// Generate Type16 records
|
||||
gSmbiosType19Template.MemoryArrayHandle = PhyscialMemoryArrayHandle;
|
||||
HobPtr.Raw = GetHobList ();
|
||||
HobPtr.Raw = GetHobList ();
|
||||
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 =
|
||||
gSmbiosType19Template.ExtendedEndingAddress =
|
||||
HobPtr.ResourceDescriptor->PhysicalStart +
|
||||
HobPtr.ResourceDescriptor->ResourceLength - 1;
|
||||
|
||||
SmbiosLibCreateEntry ((SMBIOS_STRUCTURE *)&gSmbiosType19Template, NULL);
|
||||
}
|
||||
|
||||
HobPtr.Raw = GET_NEXT_HOB (HobPtr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Main entry for this driver.
|
||||
|
||||
@@ -83,13 +81,13 @@ CreatePlatformSmbiosMemoryRecords (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PlatformSmbiosDriverEntryPoint (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_SMBIOS_HANDLE SmbiosHandle;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios;
|
||||
EFI_STATUS Status;
|
||||
EFI_SMBIOS_HANDLE SmbiosHandle;
|
||||
SMBIOS_STRUCTURE_POINTER Smbios;
|
||||
|
||||
// Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform
|
||||
// to an early version of the specification.
|
||||
@@ -108,12 +106,12 @@ PlatformSmbiosDriverEntryPoint (
|
||||
SmbiosLibUpdateUnicodeString (
|
||||
SmbiosHandle,
|
||||
Smbios.Type0->BiosVersion,
|
||||
(CHAR16 *) PcdGetPtr (PcdFirmwareVersionString)
|
||||
(CHAR16 *)PcdGetPtr (PcdFirmwareVersionString)
|
||||
);
|
||||
SmbiosLibUpdateUnicodeString (
|
||||
SmbiosHandle,
|
||||
Smbios.Type0->BiosReleaseDate,
|
||||
(CHAR16 *) PcdGetPtr (PcdFirmwareReleaseDateString)
|
||||
(CHAR16 *)PcdGetPtr (PcdFirmwareReleaseDateString)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user