TianoCore EDK2 master
|
#include "Snp.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | PxeInit (SNP_DRIVER *Snp, UINT16 CableDetectFlag) |
EFI_STATUS EFIAPI | SnpUndi32Initialize (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN UINTN ExtraRxBufferSize OPTIONAL, IN UINTN ExtraTxBufferSize OPTIONAL) |
Implementation of initializing a network adapter.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Initialize.c.
EFI_STATUS PxeInit | ( | SNP_DRIVER * | Snp, |
UINT16 | CableDetectFlag | ||
) |
Call UNDI to initialize the interface.
Snp | Pointer to snp driver structure. |
CableDetectFlag | Do/don't detect the cable (depending on what undi supports). |
EFI_SUCCESS | UNDI is initialized successfully. |
EFI_DEVICE_ERROR | UNDI could not be initialized. |
Other | Other errors as indicated. |
Definition at line 24 of file Initialize.c.
EFI_STATUS EFIAPI SnpUndi32Initialize | ( | IN EFI_SIMPLE_NETWORK_PROTOCOL * | This, |
IN UINTN ExtraRxBufferSize | OPTIONAL, | ||
IN UINTN ExtraTxBufferSize | OPTIONAL | ||
) |
Resets a network adapter and allocates the transmit and receive buffers required by the network interface; optionally, also requests allocation of additional transmit and receive buffers.
This function allocates the transmit and receive buffers required by the network interface. If this allocation fails, then EFI_OUT_OF_RESOURCES is returned. If the allocation succeeds and the network interface is successfully initialized, then EFI_SUCCESS will be returned.
This | A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance. |
ExtraRxBufferSize | The size, in bytes, of the extra receive buffer space that the driver should allocate for the network interface. Some network interfaces will not be able to use the extra buffer, and the caller will not know if it is actually being used. |
ExtraTxBufferSize | The size, in bytes, of the extra transmit buffer space that the driver should allocate for the network interface. Some network interfaces will not be able to use the extra buffer, and the caller will not know if it is actually being used. |
EFI_SUCCESS | The network interface was initialized. |
EFI_NOT_STARTED | The network interface has not been started. |
EFI_OUT_OF_RESOURCES | There was not enough memory for the transmit and receive buffers. |
EFI_INVALID_PARAMETER | This parameter was NULL or did not point to a valid EFI_SIMPLE_NETWORK_PROTOCOL structure. |
EFI_DEVICE_ERROR | The command could not be sent to the network interface. |
EFI_UNSUPPORTED | The increased buffer size feature is not supported. |
Definition at line 181 of file Initialize.c.