TianoCore EDK2 master
Loading...
Searching...
No Matches
SnpUnsupported.c File Reference
#include "VirtioNet.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI VirtioNetReset (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
 
EFI_STATUS EFIAPI VirtioNetStationAddress (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN Reset, IN EFI_MAC_ADDRESS *New OPTIONAL)
 
EFI_STATUS EFIAPI VirtioNetStatistics (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN Reset, IN OUT UINTN *StatisticsSize OPTIONAL, OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL)
 
EFI_STATUS EFIAPI VirtioNetNvData (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN ReadWrite, IN UINTN Offset, IN UINTN BufferSize, IN OUT VOID *Buffer)
 

Detailed Description

Empty implementation of the SNP methods that dependent protocols don't absolutely need and the UEFI-2.3.1+errC specification allows us not to support.

Copyright (C) 2013, Red Hat, Inc. Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file SnpUnsupported.c.

Function Documentation

◆ VirtioNetNvData()

EFI_STATUS EFIAPI VirtioNetNvData ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN BOOLEAN  ReadWrite,
IN UINTN  Offset,
IN UINTN  BufferSize,
IN OUT VOID *  Buffer 
)

Performs read and write operations on the NVRAM device attached to a network interface.

Parameters
ThisThe protocol instance pointer.
ReadWriteTRUE for read operations, FALSE for write operations.
OffsetByte offset in the NVRAM device at which to start the read or write operation. This must be a multiple of NvRamAccessSize and less than NvRamSize.
BufferSizeThe number of bytes to read or write from the NVRAM device. This must also be a multiple of NvramAccessSize.
BufferA pointer to the data buffer.
Return values
EFI_SUCCESSThe NVRAM access was performed.
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 138 of file SnpUnsupported.c.

◆ VirtioNetReset()

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

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

Parameters
ThisThe protocol instance pointer.
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 37 of file SnpUnsupported.c.

◆ VirtioNetStationAddress()

EFI_STATUS EFIAPI VirtioNetStationAddress ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN BOOLEAN  Reset,
IN EFI_MAC_ADDRESS *New  OPTIONAL 
)

Modifies or resets the current station address, if supported.

Parameters
ThisThe protocol instance pointer.
ResetFlag used to reset the station address to the network interfaces permanent address.
NewThe new station address to be used for the network interface.
Return values
EFI_SUCCESSThe network interfaces station address was updated.
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 66 of file SnpUnsupported.c.

◆ VirtioNetStatistics()

EFI_STATUS EFIAPI VirtioNetStatistics ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN BOOLEAN  Reset,
IN OUT UINTN *StatisticsSize  OPTIONAL,
OUT EFI_NETWORK_STATISTICS *StatisticsTable  OPTIONAL 
)

Resets or collects the statistics on a network interface.

Parameters
ThisProtocol instance pointer.
ResetSet to TRUE to reset the statistics for the network interface.
StatisticsSizeOn input the size, in bytes, of StatisticsTable. On output the size, in bytes, of the resulting table of statistics.
StatisticsTableA pointer to the EFI_NETWORK_STATISTICS structure that contains the statistics.
Return values
EFI_SUCCESSThe statistics were collected from the network interface.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_BUFFER_TOO_SMALLThe Statistics buffer was too small. The current buffer size needed to hold the statistics is returned in StatisticsSize.
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 103 of file SnpUnsupported.c.