]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Stop.c
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Stop.c
index 2eedfcd72617f880d4b7f91a5270a3daeb4110b3..f1c1bd847c3bdc92e9b9c9cd30c81c96c888194f 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
     Implementation of stopping a network interface.\r
\r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
-All rights reserved. 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
@@ -16,14 +10,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 /**\r
-  this routine calls undi to stop the interface and changes the snp state.\r
+  Call UNDI to stop 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_INVALID_PARAMETER  invalid parameter\r
-  @retval EFI_NOT_STARTED        SNP is not started\r
-  @retval EFI_DEVICE_ERROR       SNP is not initialized\r
-  @retval EFI_UNSUPPORTED        operation unsupported\r
+  @retval EFI_SUCCESS            The network interface was stopped.\r
+  @retval EFI_DEVICE_ERROR       SNP is not initialized.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -53,8 +45,8 @@ PxeStop (
     DEBUG (\r
       (EFI_D_WARN,\r
       "\nsnp->undi.stop()  %xh:%xh\n",\r
-      Snp->Cdb.StatCode,\r
-      Snp->Cdb.StatFlags)\r
+      Snp->Cdb.StatFlags,\r
+      Snp->Cdb.StatCode)\r
       );\r
 \r
     return EFI_DEVICE_ERROR;\r
@@ -69,20 +61,23 @@ PxeStop (
 \r
 /**\r
   Changes the state of a network interface from "started" to "stopped."\r
-  \r
+\r
   This function stops a network interface. This call is only valid if the network\r
   interface is in the started state. If the network interface was successfully\r
   stopped, then EFI_SUCCESS will be returned.\r
-  \r
-  @param  This                    A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.\r
-  \r
-  \r
+\r
+  @param  This                    A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL\r
+                                  instance.\r
+\r
+\r
   @retval EFI_SUCCESS             The network interface was stopped.\r
   @retval EFI_NOT_STARTED         The network interface has not been started.\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
+  @retval EFI_INVALID_PARAMETER   This parameter was NULL or did not point to a\r
+                                  valid EFI_SIMPLE_NETWORK_PROTOCOL structure.\r
+  @retval EFI_DEVICE_ERROR        The command could not be sent to the network\r
+                                  interface.\r
+  @retval EFI_UNSUPPORTED         This function is not supported by the network\r
+                                  interface.\r
 \r
 **/\r
 EFI_STATUS\r