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
This commit is contained in:
niry
2008-12-29 01:16:13 +00:00
parent 99fd60317f
commit f381602727
19 changed files with 343 additions and 311 deletions

View File

@@ -1,33 +1,27 @@
/** @file
Copyright (c) 2004 - 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
Implementation of resetting a network adapter.
Copyright (c) 2004 - 2007, Intel Corporation.<BR> All rights reserved. This
program and the accompanying materials are licensed and made available under the
terms and conditions of the BSD License which accompanies this distribution. The
full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module name:
reset.c
Abstract:
Revision history:
2000-Feb-09 M(f)J Genesis.
**/
#include "Snp.h"
/**
This routine calls undi to reset the nic.
Call UNDI to reset the NIC.
@param Snp pointer to the snp driver structure
@param Snp Pointer to the snp driver structure.
@return EFI_SUCCESSFUL for a successful completion
@return other for failed calls
@return EFI_SUCCESSFUL The NIC was reset.
@retval EFI_DEVICE_ERROR The NIC cannot be reset.
**/
EFI_STATUS
@@ -49,13 +43,13 @@ PxeReset (
//
// Issue UNDI command and check result.
//
DEBUG ((EFI_D_NET, "\nsnp->undi.reset() "));
DEBUG ((EFI_D_INFO | EFI_D_NET, "\nsnp->undi.reset() "));
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);
if (Snp->Cdb.StatCode != PXE_STATCODE_SUCCESS) {
DEBUG (
(EFI_D_WARN,
(EFI_D_ERROR | EFI_D_NET,
"\nsnp->undi32.reset() %xh:%xh\n",
Snp->Cdb.StatFlags,
Snp->Cdb.StatCode)