]> 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 730e3974521532733250ff1db2dd01af9c21c958..f1c1bd847c3bdc92e9b9c9cd30c81c96c888194f 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
     Implementation of stopping a network interface.\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
@@ -19,7 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   Call UNDI to stop the interface and changes the snp state.\r
 \r
   @param  Snp   Pointer to snp driver structure\r
-   \r
+\r
   @retval EFI_SUCCESS            The network interface was stopped.\r
   @retval EFI_DEVICE_ERROR       SNP is not initialized.\r
 \r
@@ -51,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
@@ -67,22 +61,22 @@ 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 \r
+\r
+  @param  This                    A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL\r
                                   instance.\r
-  \r
-  \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 \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
+  @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
+  @retval EFI_UNSUPPORTED         This function is not supported by the network\r
                                   interface.\r
 \r
 **/\r