TianoCore EDK2 master
Loading...
Searching...
No Matches
Reset.c File Reference
#include "Snp.h"

Go to the source code of this file.

Functions

EFI_STATUS PxeReset (SNP_DRIVER *Snp)
 
EFI_STATUS EFIAPI SnpUndi32Reset (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
 

Detailed Description

Implementation of resetting a network adapter.

Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Reset.c.

Function Documentation

◆ PxeReset()

EFI_STATUS PxeReset ( SNP_DRIVER Snp)

Call UNDI to reset the NIC.

Parameters
SnpPointer to the snp driver structure.
Returns
EFI_SUCCESSFUL The NIC was reset.
Return values
EFI_DEVICE_ERRORThe NIC cannot be reset.

Definition at line 22 of file Reset.c.

◆ SnpUndi32Reset()

EFI_STATUS EFIAPI SnpUndi32Reset ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN BOOLEAN  ExtendedVerification 
)

Resets a network adapter and reinitializes it with the parameters that were provided in the previous call to Initialize().

This function resets a network adapter and reinitializes it with the parameters that were provided in the previous call to Initialize(). The transmit and receive queues are emptied and all pending interrupts are cleared. Receive filters, the station address, the statistics, and the multicast-IP-to-HW MAC addresses are not reset by this call. If the network interface was successfully reset, then EFI_SUCCESS will be returned. If the driver has not been initialized, EFI_DEVICE_ERROR will be returned.

Parameters
ThisA pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.
ExtendedVerificationIndicates that the driver may perform a more exhaustive verification operation of the device during reset.
Return values
EFI_SUCCESSThe network interface was reset.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_INVALID_PARAMETEROne or more of the parameters has an unsupported value.
EFI_DEVICE_ERRORThe command could not be sent to the network interface.
EFI_UNSUPPORTEDThis function is not supported by the network interface.

Definition at line 87 of file Reset.c.