Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c
r77662 r80721 3 3 4 4 (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR> 5 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> 6 7 This program and the accompanying materials 8 are licensed and made available under the terms and conditions of the BSD License 9 which accompanies this distribution. The full text of the license may be found at 10 http://opensource.org/licenses/bsd-license.php. 11 12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 5 Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR> 6 7 SPDX-License-Identifier: BSD-2-Clause-Patent 14 8 15 9 **/ … … 815 809 816 810 // 817 // Open SNP on the child handle BY_DRIVER . It will prevent any additionally811 // Open SNP on the child handle BY_DRIVER|EXCLUSIVE. It will prevent any additionally 818 812 // layering to perform the experiment. 819 813 // … … 824 818 This->DriverBindingHandle, 825 819 Private->Ip4Nic->Controller, 826 EFI_OPEN_PROTOCOL_BY_DRIVER 820 EFI_OPEN_PROTOCOL_BY_DRIVER|EFI_OPEN_PROTOCOL_EXCLUSIVE 827 821 ); 828 822 if (EFI_ERROR (Status)) { … … 1158 1152 1159 1153 // 1160 // Open SNP on the child handle BY_DRIVER . It will prevent any additionally1154 // Open SNP on the child handle BY_DRIVER|EXCLUSIVE. It will prevent any additionally 1161 1155 // layering to perform the experiment. 1162 1156 // … … 1167 1161 This->DriverBindingHandle, 1168 1162 Private->Ip6Nic->Controller, 1169 EFI_OPEN_PROTOCOL_BY_DRIVER 1163 EFI_OPEN_PROTOCOL_BY_DRIVER|EFI_OPEN_PROTOCOL_EXCLUSIVE 1170 1164 ); 1171 1165 if (EFI_ERROR (Status)) { … … 1249 1243 EFI_STATUS Status; 1250 1244 1245 if ((PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) && (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED)) { 1246 return EFI_UNSUPPORTED; 1247 } 1248 1251 1249 Status = EfiLibInstallDriverBindingComponentName2 ( 1252 1250 ImageHandle, … … 1270 1268 ); 1271 1269 if (EFI_ERROR (Status)) { 1272 gBS->UninstallMultipleProtocolInterfaces ( 1273 ImageHandle, 1274 &gEfiDriverBindingProtocolGuid, 1275 &gPxeBcIp4DriverBinding, 1276 &gEfiComponentName2ProtocolGuid, 1277 &gPxeBcComponentName2, 1278 &gEfiComponentNameProtocolGuid, 1279 &gPxeBcComponentName, 1280 NULL 1281 ); 1270 EfiLibUninstallDriverBindingComponentName2 ( 1271 &gPxeBcIp4DriverBinding, 1272 &gPxeBcComponentName, 1273 &gPxeBcComponentName2 1274 ); 1282 1275 } 1283 1276 … … 1313 1306 1314 1307 if (IpVersion == IP_VERSION_4) { 1308 if (PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) { 1309 return EFI_UNSUPPORTED; 1310 } 1315 1311 DhcpServiceBindingGuid = &gEfiDhcp4ServiceBindingProtocolGuid; 1316 1312 MtftpServiceBindingGuid = &gEfiMtftp4ServiceBindingProtocolGuid; 1317 1313 } else { 1314 if (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED) { 1315 return EFI_UNSUPPORTED; 1316 } 1318 1317 DhcpServiceBindingGuid = &gEfiDhcp6ServiceBindingProtocolGuid; 1319 1318 MtftpServiceBindingGuid = &gEfiMtftp6ServiceBindingProtocolGuid;
Note:
See TracChangeset
for help on using the changeset viewer.