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

    r80721 r99404  
    99
    1010#include "Dhcp6Impl.h"
    11 
    1211
    1312/**
     
    5857  );
    5958
    60 
    6159/**
    6260  Retrieves a Unicode string that is the user-readable name of the controller
     
    130128EFIAPI
    131129Dhcp6ComponentNameGetControllerName (
    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
     130  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
     131  IN  EFI_HANDLE                   ControllerHandle,
     132  IN  EFI_HANDLE                   ChildHandle        OPTIONAL,
     133  IN  CHAR8                        *Language,
     134  OUT CHAR16                       **ControllerName
    137135  );
    138 
    139136
    140137//
    141138// EFI Component Name Protocol
    142139//
    143 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL    gDhcp6ComponentName = {
     140GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gDhcp6ComponentName = {
    144141  Dhcp6ComponentNameGetDriverName,
    145142  Dhcp6ComponentNameGetControllerName,
     
    150147// EFI Component Name 2 Protocol
    151148//
    152 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL   gDhcp6ComponentName2 = {
    153   (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) Dhcp6ComponentNameGetDriverName,
    154   (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) Dhcp6ComponentNameGetControllerName,
     149GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL  gDhcp6ComponentName2 = {
     150  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)Dhcp6ComponentNameGetDriverName,
     151  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)Dhcp6ComponentNameGetControllerName,
    155152  "en"
    156153};
    157154
    158 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE       mDhcp6DriverNameTable[] = {
     155GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  mDhcp6DriverNameTable[] = {
    159156  {
    160157    "eng;en",
     
    167164};
    168165
    169 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE   *gDhcp6ControllerNameTable = NULL;
    170 
    171 CHAR16 *mDhcp6ControllerName[] = {
     166GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE  *gDhcp6ControllerNameTable = NULL;
     167
     168CHAR16  *mDhcp6ControllerName[] = {
    172169  L"DHCPv6 (State=0, Init)",
    173170  L"DHCPv6 (State=1, Selecting)",
     
    249246EFI_STATUS
    250247UpdateName (
    251   IN   EFI_DHCP6_PROTOCOL             *Dhcp6
     248  IN   EFI_DHCP6_PROTOCOL  *Dhcp6
    252249  )
    253250{
    254   EFI_STATUS                       Status;
    255   EFI_DHCP6_MODE_DATA              Dhcp6ModeData;
    256   CHAR16                           *HandleName;
     251  EFI_STATUS           Status;
     252  EFI_DHCP6_MODE_DATA  Dhcp6ModeData;
     253  CHAR16               *HandleName;
    257254
    258255  if (Dhcp6 == NULL) {
     
    279276      return EFI_DEVICE_ERROR;
    280277    }
     278
    281279    HandleName = mDhcp6ControllerName[Dhcp6ModeData.Ia->State];
    282280  }
     
    285283    FreePool (Dhcp6ModeData.Ia);
    286284  }
     285
    287286  if (Dhcp6ModeData.ClientId != NULL) {
    288287    FreePool (Dhcp6ModeData.ClientId);
     
    380379EFIAPI
    381380Dhcp6ComponentNameGetControllerName (
    382   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
    383   IN  EFI_HANDLE                                      ControllerHandle,
    384   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
    385   IN  CHAR8                                           *Language,
    386   OUT CHAR16                                          **ControllerName
     381  IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
     382  IN  EFI_HANDLE                   ControllerHandle,
     383  IN  EFI_HANDLE                   ChildHandle        OPTIONAL,
     384  IN  CHAR8                        *Language,
     385  OUT CHAR16                       **ControllerName
    387386  )
    388387{
    389   EFI_STATUS                    Status;
    390   EFI_DHCP6_PROTOCOL            *Dhcp6;
     388  EFI_STATUS          Status;
     389  EFI_DHCP6_PROTOCOL  *Dhcp6;
    391390
    392391  //
     
    440439           );
    441440}
    442 
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