summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/SnpDxe/Stop.c
diff options
context:
space:
mode:
authorniry <niry@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-29 01:16:13 +0000
committerniry <niry@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-29 01:16:13 +0000
commitf381602727922e793de5826ee390344cb907e07a (patch)
tree0804df82e8a43fe1f140991338a69fc9bdf547fb /MdeModulePkg/Universal/Network/SnpDxe/Stop.c
parent99fd60317fbbef0ca2be2f86992db6a552885fdb (diff)
downloadedk2-platforms-f381602727922e793de5826ee390344cb907e07a.tar.xz
1). Fix the debug level for DEBUG macro
2). Uniform the function description comments git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7143 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/SnpDxe/Stop.c')
-rw-r--r--MdeModulePkg/Universal/Network/SnpDxe/Stop.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Stop.c b/MdeModulePkg/Universal/Network/SnpDxe/Stop.c
index 2eedfcd726..f707ed4fa1 100644
--- a/MdeModulePkg/Universal/Network/SnpDxe/Stop.c
+++ b/MdeModulePkg/Universal/Network/SnpDxe/Stop.c
@@ -16,14 +16,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
/**
- this routine calls undi to stop the interface and changes the snp state.
+ Call UNDI to stop the interface and changes the snp state.
- @param Snp pointer to snp driver structure
-
- @retval EFI_INVALID_PARAMETER invalid parameter
- @retval EFI_NOT_STARTED SNP is not started
- @retval EFI_DEVICE_ERROR SNP is not initialized
- @retval EFI_UNSUPPORTED operation unsupported
+ @param Snp Pointer to snp driver structure
+
+ @retval EFI_SUCCESS The network interface was stopped.
+ @retval EFI_DEVICE_ERROR SNP is not initialized.
**/
EFI_STATUS
@@ -45,13 +43,13 @@ PxeStop (
//
// Issue UNDI command
//
- DEBUG ((EFI_D_NET, "\nsnp->undi.stop() "));
+ DEBUG ((EFI_D_INFO | EFI_D_NET, "\nsnp->undi.stop() "));
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
DEBUG (
- (EFI_D_WARN,
+ (EFI_D_ERROR,
"\nsnp->undi.stop() %xh:%xh\n",
Snp->Cdb.StatCode,
Snp->Cdb.StatFlags)
@@ -74,15 +72,18 @@ PxeStop (
interface is in the started state. If the network interface was successfully
stopped, then EFI_SUCCESS will be returned.
- @param This A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.
+ @param This A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL
+ instance.
@retval EFI_SUCCESS The network interface was stopped.
@retval EFI_NOT_STARTED The network interface has not been started.
- @retval EFI_INVALID_PARAMETER This parameter was NULL or did not point to a valid
- EFI_SIMPLE_NETWORK_PROTOCOL structure.
- @retval EFI_DEVICE_ERROR The command could not be sent to the network interface.
- @retval EFI_UNSUPPORTED This function is not supported by the network interface.
+ @retval EFI_INVALID_PARAMETER This parameter was NULL or did not point to a
+ valid EFI_SIMPLE_NETWORK_PROTOCOL structure.
+ @retval EFI_DEVICE_ERROR The command could not be sent to the network
+ interface.
+ @retval EFI_UNSUPPORTED This function is not supported by the network
+ interface.
**/
EFI_STATUS