VirtualBox

Ignore:
Timestamp:
Mar 12, 2019 12:40:12 PM (6 years ago)
Author:
vboxsync
Message:

EFI: First step in UDK2018 merge. Does not build yet.

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c

    r58466 r77662  
    11/**@file
    22
    3 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
    4 This program and the accompanying materials
    5 are licensed and made available under the terms and conditions of the BSD License
    6 which accompanies this distribution.  The full text of the license may be found at
    7 http://opensource.org/licenses/bsd-license.php
     3  Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
    84
    9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     5  This program and the accompanying materials are licensed and made available
     6  under the terms and conditions of the BSD License which accompanies this
     7  distribution.  The full text of the license may be found at
     8  http://opensource.org/licenses/bsd-license.php
    119
    12 Module Name:
     10  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     11  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    1312
    14   FvbInfo.c
     13  Module Name:
    1514
    16 Abstract:
     15    FvbInfo.c
    1716
    18   Defines data structure that is the volume header found.These data is intent
    19   to decouple FVB driver with FV header.
     17  Abstract:
     18
     19    Defines data structure that is the volume header found.These data is intent
     20    to decouple FVB driver with FV header.
    2021
    2122**/
     
    2425// The package level header files this module uses
    2526//
    26 #include <PiDxe.h>
     27#include <Pi/PiFirmwareVolume.h>
     28
    2729//
    2830// The protocols, PPI and GUID defintions for this module
    2931//
    30 #include <Guid/EventGroup.h>
    31 #include <Guid/FirmwareFileSystem2.h>
    3232#include <Guid/SystemNvDataGuid.h>
    33 #include <Protocol/FirmwareVolumeBlock.h>
    34 #include <Protocol/DevicePath.h>
    3533//
    3634// The Library classes this module consumes
    3735//
    38 #include <Library/UefiLib.h>
    39 #include <Library/UefiDriverEntryPoint.h>
    4036#include <Library/BaseLib.h>
    41 #include <Library/DxeServicesTableLib.h>
    42 #include <Library/UefiRuntimeLib.h>
    43 #include <Library/DebugLib.h>
    44 #include <Library/HobLib.h>
    45 #include <Library/BaseMemoryLib.h>
    46 #include <Library/MemoryAllocationLib.h>
    47 #include <Library/UefiBootServicesTableLib.h>
    4837#include <Library/PcdLib.h>
    4938
     
    9584           FixedPcdGet32 (PcdFlashNvStorageFtwWorkingSize) +
    9685           FixedPcdGet32 (PcdFlashNvStorageFtwSpareSize) +
    97            FixedPcdGet32 (PcdOvmfFlashNvStorageEventLogSize)) / FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
     86           FixedPcdGet32 (PcdOvmfFlashNvStorageEventLogSize)) /
     87          FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
    9888          FixedPcdGet32 (PcdOvmfFirmwareBlockSize),
    9989        }
     
    119109
    120110  if (!Checksummed) {
    121     for (Index = 0; Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO); Index += 1) {
     111    for (Index = 0;
     112         Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO);
     113         Index += 1) {
    122114      UINT16 Checksum;
    123115      mPlatformFvbMediaInfo[Index].FvbInfo.Checksum = 0;
     
    131123  }
    132124
    133   for (Index = 0; Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO); Index += 1) {
     125  for (Index = 0;
     126       Index < sizeof (mPlatformFvbMediaInfo) / sizeof (EFI_FVB_MEDIA_INFO);
     127       Index += 1) {
    134128    if (mPlatformFvbMediaInfo[Index].FvLength == FvLength) {
    135129      *FvbInfo = &mPlatformFvbMediaInfo[Index].FvbInfo;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette