/** @file\r
- Driver Binding functions implementationfor for UefiPxeBc Driver.\r
+ Driver Binding functions implementation for UefiPxeBc Driver.\r
\r
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>\r
\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
}\r
\r
//\r
- // Set IPv6 avaiable flag and set default configure data for\r
+ // Set IPv6 available flag and set default configure data for\r
// Udp6Read and Ip6 instance.\r
//\r
Status = PxeBcCheckIpv6Support (ControllerHandle, Private, &Private->Mode.Ipv6Available);\r
{\r
EFI_STATUS Status;\r
\r
+ if ((PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) && (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED)) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
+\r
Status = EfiLibInstallDriverBindingComponentName2 (\r
ImageHandle,\r
SystemTable,\r
EFI_GUID *MtftpServiceBindingGuid;\r
\r
if (IpVersion == IP_VERSION_4) {\r
+ if (PcdGet8(PcdIPv4PXESupport) == PXE_DISABLED) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
DhcpServiceBindingGuid = &gEfiDhcp4ServiceBindingProtocolGuid;\r
MtftpServiceBindingGuid = &gEfiMtftp4ServiceBindingProtocolGuid;\r
} else {\r
+ if (PcdGet8(PcdIPv6PXESupport) == PXE_DISABLED) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
DhcpServiceBindingGuid = &gEfiDhcp6ServiceBindingProtocolGuid;\r
MtftpServiceBindingGuid = &gEfiMtftp6ServiceBindingProtocolGuid;\r
}\r