]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Start.c
MdeModulePkg: Change the algorithm in SNP to use the first found BAR index.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Start.c
index 5c5daeaa6039bffdfa0b42a4fb5550aa95a3b5f0..210f08107872489ce223c173e31e2e7dd91f609b 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
     Implementation of starting a network adapter.\r
  \r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \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
@@ -16,12 +16,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 /**\r
-  this routine calls undi to start the interface and changes the snp state.\r
+  Call UNDI to start the interface and changes the snp state.\r
 \r
-  @param  Snp                    pointer to snp driver structure\r
+  @param  Snp                    pointer to snp driver structure.\r
 \r
-  @retval EFI_DEVICE_ERROR       UNDI could not be started\r
-  @retval EFI_SUCCESS            UNDI is started successfully\r
+  @retval EFI_SUCCESS            UNDI is started successfully.\r
+  @retval EFI_DEVICE_ERROR       UNDI could not be started.\r
   \r
 **/\r
 EFI_STATUS\r
@@ -51,7 +51,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
@@ -99,7 +99,7 @@ PxeStart (
 \r
 \r
 /**\r
-  Changes the state of a network interface from "stopped" to "started."\r
+  Change the state of a network interface from "stopped" to "started."\r
   \r
   This function starts a network interface. If the network interface successfully\r
   starts, then EFI_SUCCESS will be returned.\r