TianoCore EDK2 master
|
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) |
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.
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.
This | The protocol instance pointer. |
InterruptStatus | A 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. |
TxBuf | Recycled 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. |
EFI_SUCCESS | The status of the network interface was retrieved. |
EFI_NOT_STARTED | The network interface has not been started. |
EFI_INVALID_PARAMETER | One or more of the parameters has an unsupported value. |
EFI_DEVICE_ERROR | The command could not be sent to the network interface. |
EFI_UNSUPPORTED | This function is not supported by the network interface. |
Definition at line 51 of file SnpGetStatus.c.