summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/SnpDxe/Get_status.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/Get_status.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/Get_status.c')
-rw-r--r--MdeModulePkg/Universal/Network/SnpDxe/Get_status.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c b/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
index 17078c81cf..e2c911dfd2 100644
--- a/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
+++ b/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c
@@ -16,15 +16,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "Snp.h"
/**
- this routine calls undi to get the status of the interrupts, get the list of
- transmit buffers that completed transmitting!
-
- @param Snp pointer to snp driver structure
- @param InterruptStatusPtr a non null pointer gets the interrupt status
- @param TransmitBufferListPtrs a non null ointer gets the list of pointers of
- previously transmitted buffers whose
- transmission was completed asynchrnously.
-
+ Call undi to get the status of the interrupts, get the list of transmit
+ buffers that completed transmitting.
+
+ @param Snp Pointer to snp driver structure.
+ @param InterruptStatusPtr A non null pointer to contain the interrupt
+ status.
+ @param TransmitBufferListPtrs A non null pointer to contain the list of
+ pointers of previous transmitted buffers whose
+ transmission was completed asynchrnously.
+
+ @retval EFI_SUCCESS The status of the network interface was retrieved.
+ @retval EFI_DEVICE_ERROR The command could not be sent to the network
+ interface.
**/
EFI_STATUS
@@ -68,13 +72,13 @@ PxeGetStatus (
//
// Issue UNDI command and check result.
//
- DEBUG ((EFI_D_NET, "\nSnp->undi.get_status() "));
+ DEBUG ((EFI_D_INFO | EFI_D_NET, "\nSnp->undi.get_status() "));
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
if (Snp->Cdb.StatCode != EFI_SUCCESS) {
DEBUG (
- (EFI_D_NET,
+ (EFI_D_ERROR | EFI_D_NET,
"\nSnp->undi.get_status() %xh:%xh\n",
Snp->Cdb.StatFlags,
Snp->Cdb.StatFlags)