TianoCore EDK2 master
Loading...
Searching...
No Matches
Shutdown.c File Reference
#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)
 

Detailed Description

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.

Function Documentation

◆ PxeShutdown()

EFI_STATUS PxeShutdown ( IN SNP_DRIVER Snp)

Call UNDI to shut down the interface.

Parameters
SnpPointer to snp driver structure.
Return values
EFI_SUCCESSUNDI is shut down successfully.
EFI_DEVICE_ERRORUNDI could not be shut down.

Definition at line 21 of file Shutdown.c.

◆ SnpUndi32Shutdown()

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.

Parameters
ThisA pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.
Return values
EFI_SUCCESSThe network interface was shutdown.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_INVALID_PARAMETERThis parameter was NULL or did not point to a valid EFI_SIMPLE_NETWORK_PROTOCOL structure.
EFI_DEVICE_ERRORThe command could not be sent to the network interface.

Definition at line 90 of file Shutdown.c.