Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/DevicePathDxe/DevicePath.c
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/DevicePathDxe/DevicePath.c
r48674 r58459 3 3 and DevPathToText Protocol. 4 4 5 Copyright (c) 2006 - 20 08, Intel Corporation. All rights reserved.<BR>5 Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> 6 6 This program and the accompanying materials 7 7 are licensed and made available under the terms and conditions of the BSD License … … 14 14 **/ 15 15 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> 19 24 20 25 GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_UTILITIES_PROTOCOL mDevicePathUtilities = { 21 GetDevicePathSize ProtocolInterface,22 DuplicateDevicePath ProtocolInterface,23 AppendDevicePath ProtocolInterface,24 AppendDevice NodeProtocolInterface,25 AppendDevicePathInstance ProtocolInterface,26 GetNextDevicePathInstance ProtocolInterface,27 IsDevicePathMultiInstance ProtocolInterface,28 CreateDeviceNode ProtocolInterface26 GetDevicePathSize, 27 DuplicateDevicePath, 28 AppendDevicePath, 29 AppendDevicePathNode, 30 AppendDevicePathInstance, 31 GetNextDevicePathInstance, 32 IsDevicePathMultiInstance, 33 CreateDeviceNode 29 34 }; 30 35 … … 38 43 ConvertTextToDevicePath 39 44 }; 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 45 45 46 46 /** … … 65 65 { 66 66 EFI_STATUS Status; 67 EFI_HANDLE Handle; 67 68 69 Handle = NULL; 68 70 Status = EFI_UNSUPPORTED; 69 71 if (FeaturePcdGet (PcdDevicePathSupportDevicePathToText)) { 70 72 if (FeaturePcdGet (PcdDevicePathSupportDevicePathFromText)) { 71 73 Status = gBS->InstallMultipleProtocolInterfaces ( 72 & mDevicePathHandle,74 &Handle, 73 75 &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities, 74 76 &gEfiDevicePathToTextProtocolGuid, &mDevicePathToText, … … 78 80 } else { 79 81 Status = gBS->InstallMultipleProtocolInterfaces ( 80 & mDevicePathHandle,82 &Handle, 81 83 &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities, 82 84 &gEfiDevicePathToTextProtocolGuid, &mDevicePathToText, … … 87 89 if (FeaturePcdGet (PcdDevicePathSupportDevicePathFromText)) { 88 90 Status = gBS->InstallMultipleProtocolInterfaces ( 89 & mDevicePathHandle,91 &Handle, 90 92 &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities, 91 93 &gEfiDevicePathFromTextProtocolGuid, &mDevicePathFromText, … … 94 96 } else { 95 97 Status = gBS->InstallMultipleProtocolInterfaces ( 96 & mDevicePathHandle,98 &Handle, 97 99 &gEfiDevicePathUtilitiesProtocolGuid, &mDevicePathUtilities, 98 100 NULL
Note:
See TracChangeset
for help on using the changeset viewer.