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

Go to the source code of this file.

Functions

EFI_STATUS PxeStop (SNP_DRIVER *Snp)
 
EFI_STATUS EFIAPI SnpUndi32Stop (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
 

Detailed Description

Implementation of stopping a network interface.

Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Stop.c.

Function Documentation

◆ PxeStop()

EFI_STATUS PxeStop ( SNP_DRIVER Snp)

Call UNDI to stop the interface and changes the snp state.

Parameters
SnpPointer to snp driver structure
Return values
EFI_SUCCESSThe network interface was stopped.
EFI_DEVICE_ERRORSNP is not initialized.

Definition at line 21 of file Stop.c.

◆ SnpUndi32Stop()

EFI_STATUS EFIAPI SnpUndi32Stop ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Changes the state of a network interface from "started" to "stopped."

This function stops a network interface. This call is only valid if the network interface is in the started state. If the network interface was successfully stopped, then EFI_SUCCESS will be returned.

Parameters
ThisA pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.
Return values
EFI_SUCCESSThe network interface was stopped.
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.
EFI_UNSUPPORTEDThis function is not supported by the network interface.

Definition at line 84 of file Stop.c.