/** @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
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
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
\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