VirtualBox

Ignore:
Timestamp:
Apr 14, 2023 3:17:44 PM (22 months ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

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/NetworkPkg/Dhcp4Dxe/ComponentName.c

    r80721 r99404  
    66**/
    77
    8 
    98#include "Dhcp4Impl.h"
    109
     
    1211// EFI Component Name Functions
    1312//
     13
    1414/**
    1515  Retrieves a Unicode string that is the user readable name of the driver.
     
    5959  );
    6060
    61 
    6261/**
    6362  Retrieves a Unicode string that is the user readable name of the controller
     
    131130EFIAPI
    132131DhcpComponentNameGetControllerName (
    133   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
    134   IN  EFI_HANDLE                                      ControllerHandle,
    135   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
    136   IN  CHAR8                                           *Language,
    137   OUT CHAR16                                          **ControllerName
     132  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
     133  IN  EFI_HANDLE                   ControllerHandle,
     134  IN  EFI_HANDLE                   ChildHandle        OPTIONAL,
     135  IN  CHAR8                        *Language,
     136  OUT CHAR16                       **ControllerName
    138137  );
    139 
    140138
    141139//
     
    151149// EFI Component Name 2 Protocol
    152150//
    153 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gDhcp4ComponentName2 = {
    154   (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) DhcpComponentNameGetDriverName,
    155   (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) DhcpComponentNameGetControllerName,
     151GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL  gDhcp4ComponentName2 = {
     152  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)DhcpComponentNameGetDriverName,
     153  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)DhcpComponentNameGetControllerName,
    156154  "en"
    157155};
    158156
    159 
    160 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mDhcpDriverNameTable[] = {
     157GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  mDhcpDriverNameTable[] = {
    161158  {
    162159    "eng;en",
     
    169166};
    170167
    171 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE    *gDhcpControllerNameTable = NULL;
    172 
    173 CHAR16 *mDhcp4ControllerName[] = {
     168GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  *gDhcpControllerNameTable = NULL;
     169
     170CHAR16  *mDhcp4ControllerName[] = {
    174171  L"DHCPv4 (State=0, Stopped)",
    175172  L"DHCPv4 (State=1, Init)",
     
    252249EFI_STATUS
    253250UpdateName (
    254   IN     EFI_DHCP4_PROTOCOL             *Dhcp4
     251  IN     EFI_DHCP4_PROTOCOL  *Dhcp4
    255252  )
    256253{
    257   EFI_STATUS                       Status;
    258   EFI_DHCP4_MODE_DATA              Dhcp4ModeData;
     254  EFI_STATUS           Status;
     255  EFI_DHCP4_MODE_DATA  Dhcp4ModeData;
    259256
    260257  if (Dhcp4 == NULL) {
     
    370367EFIAPI
    371368DhcpComponentNameGetControllerName (
    372   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
    373   IN  EFI_HANDLE                                      ControllerHandle,
    374   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
    375   IN  CHAR8                                           *Language,
    376   OUT CHAR16                                          **ControllerName
     369  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
     370  IN  EFI_HANDLE                   ControllerHandle,
     371  IN  EFI_HANDLE                   ChildHandle        OPTIONAL,
     372  IN  CHAR8                        *Language,
     373  OUT CHAR16                       **ControllerName
    377374  )
    378375{
    379   EFI_STATUS                    Status;
    380   EFI_DHCP4_PROTOCOL            *Dhcp4;
     376  EFI_STATUS          Status;
     377  EFI_DHCP4_PROTOCOL  *Dhcp4;
    381378
    382379  //
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