X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FSnpDxe%2FReset.c;h=057d3b51c5b244be3a3e9313c36de56216c4e38d;hp=f616d43584ccbf974ee5999f31f1a06a8c141ae8;hb=f381602727922e793de5826ee390344cb907e07a;hpb=99fd60317fbbef0ca2be2f86992db6a552885fdb diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Reset.c b/MdeModulePkg/Universal/Network/SnpDxe/Reset.c index f616d43584..057d3b51c5 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Reset.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Reset.c @@ -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.
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)