/** @file\r
Implementation of starting a network adapter.\r
- \r
-Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed \r
-and made available under the terms and conditions of the BSD License which \r
-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
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
\r
@retval EFI_SUCCESS UNDI is started successfully.\r
@retval EFI_DEVICE_ERROR UNDI could not be started.\r
- \r
+\r
**/\r
EFI_STATUS\r
PxeStart (\r
// a S/W UNDI.\r
//\r
if (Snp->IsSwUndi) {\r
- Snp->Cdb.CPBsize = sizeof (PXE_CPB_START_31);\r
+ Snp->Cdb.CPBsize = (UINT16) sizeof (PXE_CPB_START_31);\r
Snp->Cdb.CPBaddr = (UINT64)(UINTN) Cpb31;\r
\r
Cpb31->Delay = (UINT64)(UINTN) &SnpUndi32CallbackDelay;\r
\r
/**\r
Change the state of a network interface from "stopped" to "started."\r
- \r
+\r
This function starts a network interface. If the network interface successfully\r
starts, then EFI_SUCCESS will be returned.\r
\r
\r
@retval EFI_SUCCESS The network interface was started.\r
@retval EFI_ALREADY_STARTED The network interface is already in the started state.\r
- @retval EFI_INVALID_PARAMETER This parameter was NULL or did not point to a valid \r
+ @retval EFI_INVALID_PARAMETER This parameter was NULL or did not point to a valid\r
EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
@retval EFI_DEVICE_ERROR The command could not be sent to the network interface.\r
@retval EFI_UNSUPPORTED This function is not supported by the network interface.\r