TianoCore EDK2 master
Loading...
Searching...
No Matches
SnpGetStatus.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI VirtioNetGetStatus (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, OUT UINT32 *InterruptStatus OPTIONAL, OUT VOID **TxBuf OPTIONAL)
 

Detailed Description

Implementation of the SNP.GetStatus() function and its private helpers if any.

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

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

Definition in file SnpGetStatus.c.

Function Documentation

◆ VirtioNetGetStatus()

EFI_STATUS EFIAPI VirtioNetGetStatus ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
OUT UINT32 *InterruptStatus  OPTIONAL,
OUT VOID **TxBuf  OPTIONAL 
)

Reads the current interrupt status and recycled transmit buffer status from a network interface.

Parameters
ThisThe protocol instance pointer.
InterruptStatusA pointer to the bit mask of the currently active interrupts If this is NULL, the interrupt status will not be read from the device. If this is not NULL, the interrupt status will be read from the device. When the interrupt status is read, it will also be cleared. Clearing the transmit interrupt does not empty the recycled transmit buffer array.
TxBufRecycled transmit buffer address. The network interface will not transmit if its internal recycled transmit buffer array is full. Reading the transmit buffer does not clear the transmit interrupt. If this is NULL, then the transmit buffer status will not be read. If there are no transmit buffers to recycle and TxBuf is not NULL, * TxBuf will be set to NULL.
Return values
EFI_SUCCESSThe status of the network interface was retrieved.
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 51 of file SnpGetStatus.c.