VirtualBox

Ignore:
Timestamp:
Oct 28, 2015 8:17:18 PM (9 years ago)
Author:
vboxsync
Message:

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

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

Legend:

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

  • trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/DevicePathDxe/DevicePath.c

    r48674 r58459  
    33  and DevPathToText Protocol.
    44
    5 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
     5Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
    66This program and the accompanying materials
    77are licensed and made available under the terms and conditions of the BSD License
     
    1414**/
    1515
    16 #include "DevicePath.h"
    17 
    18 EFI_HANDLE  mDevicePathHandle = NULL;
     16#include <Uefi.h>
     17#include <Protocol/DevicePathUtilities.h>
     18#include <Protocol/DevicePathToText.h>
     19#include <Protocol/DevicePathFromText.h>
     20#include <Library/UefiDriverEntryPoint.h>
     21#include <Library/UefiBootServicesTableLib.h>
     22#include <Library/DevicePathLib.h>
     23#include <Library/PcdLib.h>
    1924
    2025GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_UTILITIES_PROTOCOL mDevicePathUtilities = {
    21   GetDevicePathSizeProtocolInterface,
    22   DuplicateDevicePathProtocolInterface,
    23   AppendDevicePathProtocolInterface,
    24   AppendDeviceNodeProtocolInterface,
    25   AppendDevicePathInstanceProtocolInterface,
    26   GetNextDevicePathInstanceProtocolInterface,
    27   IsDevicePathMultiInstanceProtocolInterface,
    28   CreateDeviceNodeProtocolInterface
     26  GetDevicePathSize,
     27  DuplicateDevicePath,
     28  AppendDevicePath,
     29  AppendDevicePathNode,
     30  AppendDevicePathInstance,
     31  GetNextDevicePathInstance,
     32  IsDevicePathMultiInstance,
     33  CreateDeviceNode
    2934};
    3035
     
    3843  ConvertTextToDevicePath
    3944};
    40 
    41 GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid = DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL;
    42 GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_GUID mEfiDevicePathMessagingSASGuid             = DEVICE_PATH_MESSAGING_SAS;
    43 
    44 
    4545
    4646/**
     
    6565{
    6666  EFI_STATUS  Status;
     67  EFI_HANDLE  Handle;
    6768
     69  Handle = NULL;
    6870  Status = EFI_UNSUPPORTED;
    6971  if (FeaturePcdGet (PcdDevicePathSupportDevicePathToText)) {
    7072    if (FeaturePcdGet (PcdDevicePathSupportDevicePathFromText)) {
    7173      Status = gBS->InstallMultipleProtocolInterfaces (
    72                       &mDevicePathHandle,
     74                      &Handle,
    7375                      &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities,
    7476                      &gEfiDevicePathToTextProtocolGuid,    &mDevicePathToText,
     
    7880    } else {
    7981      Status = gBS->InstallMultipleProtocolInterfaces (
    80                       &mDevicePathHandle,
     82                      &Handle,
    8183                      &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities,
    8284                      &gEfiDevicePathToTextProtocolGuid,    &mDevicePathToText,
     
    8789    if (FeaturePcdGet (PcdDevicePathSupportDevicePathFromText)) {
    8890      Status = gBS->InstallMultipleProtocolInterfaces (
    89                       &mDevicePathHandle,
     91                      &Handle,
    9092                      &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities,
    9193                      &gEfiDevicePathFromTextProtocolGuid,  &mDevicePathFromText,
     
    9496    } else {
    9597      Status = gBS->InstallMultipleProtocolInterfaces (
    96                       &mDevicePathHandle,
     98                      &Handle,
    9799                      &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities,
    98100                      NULL
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