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