TianoCore EDK2 master
|
#include "Snp.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | PxeShutdown (IN SNP_DRIVER *Snp) |
EFI_STATUS EFIAPI | SnpUndi32Shutdown (IN EFI_SIMPLE_NETWORK_PROTOCOL *This) |
Implementation of shutting down a network adapter.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Shutdown.c.
EFI_STATUS PxeShutdown | ( | IN SNP_DRIVER * | Snp | ) |
Call UNDI to shut down the interface.
Snp | Pointer to snp driver structure. |
EFI_SUCCESS | UNDI is shut down successfully. |
EFI_DEVICE_ERROR | UNDI could not be shut down. |
Definition at line 21 of file Shutdown.c.
EFI_STATUS EFIAPI SnpUndi32Shutdown | ( | IN EFI_SIMPLE_NETWORK_PROTOCOL * | This | ) |
Resets a network adapter and leaves it in a state that is safe for another driver to initialize.
This function releases the memory buffers assigned in the Initialize() call. Pending transmits and receives are lost, and interrupts are cleared and disabled. After this call, only the Initialize() and Stop() calls may be used. If the network interface was successfully shutdown, then EFI_SUCCESS will be returned. If the driver has not been initialized, EFI_DEVICE_ERROR will be returned.
This | A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance. |
EFI_SUCCESS | The network interface was shutdown. |
EFI_NOT_STARTED | The network interface has not been started. |
EFI_INVALID_PARAMETER | This parameter was NULL or did not point to a valid EFI_SIMPLE_NETWORK_PROTOCOL structure. |
EFI_DEVICE_ERROR | The command could not be sent to the network interface. |
Definition at line 90 of file Shutdown.c.