]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Start.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Start.c
index 8e48625c9b2ab5bc46f6a7ef04a597f3adb1e00b..033ca22f66660bc557f3f4af6d8f0b48db8f2879 100644 (file)
@@ -1,14 +1,8 @@
 /** @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
@@ -22,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \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
@@ -51,7 +45,7 @@ PxeStart (
   // 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
@@ -100,7 +94,7 @@ PxeStart (
 \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
@@ -108,7 +102,7 @@ PxeStart (
 \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