EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions | Variables

IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/BiosSnp16.c File Reference

#include "BiosSnp16.h"

Go to the source code of this file.

Functions

EFI_STATUS Undi16SimpleNetworkStartUndi (EFI_SIMPLE_NETWORK_DEV *SimpleNetworkDevice, UINT16 Ax)
EFI_STATUS Undi16SimpleNetworkStopUndi (EFI_SIMPLE_NETWORK_DEV *SimpleNetworkDevice)
EFI_STATUS Undi16SimpleNetworkCleanupUndi (EFI_SIMPLE_NETWORK_DEV *SimpleNetworkDevice)
EFI_STATUS Undi16SimpleNetworkGetInformation (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
EFI_STATUS Undi16SimpleNetworkGetNicType (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
EFI_STATUS Undi16SimpleNetworkGetNdisInfo (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
VOID EFIAPI Undi16SimpleNetworkEvent (IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS Undi16SimpleNetworkLoadUndi (EFI_SIMPLE_NETWORK_DEV *SimpleNetworkDevice)
EFI_STATUS Undi16SimpleNetworkUnloadUndi (EFI_SIMPLE_NETWORK_DEV *SimpleNetworkDevice)
EFI_STATUS EFIAPI BiosSnp16DriverEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI BiosSnp16DriverBindingSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EFIAPI BiosSnp16DriverBindingStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EFIAPI BiosSnp16DriverBindingStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
BOOLEAN SimpleNetworkTransmitFifoFull (EFI_SIMPLE_NETWORK_DEV_FIFO *Fifo)
BOOLEAN SimpleNetworkTransmitFifoEmpty (EFI_SIMPLE_NETWORK_DEV_FIFO *Fifo)
EFI_STATUS SimpleNetworkTransmitFifoAdd (EFI_SIMPLE_NETWORK_DEV_FIFO *Fifo, VOID *Data)
EFI_STATUS SimpleNetworkTransmitFifoRemove (EFI_SIMPLE_NETWORK_DEV_FIFO *Fifo, VOID **Data)
UINT16 Undi16GetPacketFilterSetting (UINTN ReceiveFilterSetting)
VOID Undi16GetMCastFilters (IN EFI_SIMPLE_NETWORK_MODE *Mode, IN OUT PXENV_UNDI_MCAST_ADDR_T *McastBuffer, IN UINTN HwAddressSize)
EFI_STATUS Undi16SimpleNetworkIsr (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN UINTN *FrameLength, IN UINTN *FrameHeaderLength, OPTIONAL IN UINT8 *Frame, OPTIONAL IN UINT8 *ProtType, OPTIONAL IN UINT8 *PktType OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkStart (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
EFI_STATUS EFIAPI Undi16SimpleNetworkStop (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
EFI_STATUS EFIAPI Undi16SimpleNetworkInitialize (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN UINTN ExtraRxBufferSize OPTIONAL, IN UINTN ExtraTxBufferSize OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkReset (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
EFI_STATUS EFIAPI Undi16SimpleNetworkShutdown (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
EFI_STATUS EFIAPI Undi16SimpleNetworkReceiveFilters (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN UINT32 Enable, IN UINT32 Disable, IN BOOLEAN ResetMCastFilter, IN UINTN MCastFilterCnt OPTIONAL, IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkStationAddress (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN Reset, IN EFI_MAC_ADDRESS *New OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkStatistics (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN Reset, IN OUT UINTN *StatisticsSize OPTIONAL, OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkMCastIpToMac (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN IPv6, IN EFI_IP_ADDRESS *IP, OUT EFI_MAC_ADDRESS *MAC)
EFI_STATUS EFIAPI Undi16SimpleNetworkNvData (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN BOOLEAN ReadWrite, IN UINTN Offset, IN UINTN BufferSize, IN OUT VOID *Buffer)
EFI_STATUS EFIAPI Undi16SimpleNetworkGetStatus (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, OUT UINT32 *InterruptStatus OPTIONAL, OUT VOID **TxBuf OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkTransmit (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, IN UINTN HeaderSize, IN UINTN BufferSize, IN VOID *Buffer, IN EFI_MAC_ADDRESS *SrcAddr OPTIONAL, IN EFI_MAC_ADDRESS *DestAddr OPTIONAL, IN UINT16 *Protocol OPTIONAL)
EFI_STATUS EFIAPI Undi16SimpleNetworkReceive (IN EFI_SIMPLE_NETWORK_PROTOCOL *This, OUT UINTN *HeaderSize OPTIONAL, IN OUT UINTN *BufferSize, OUT VOID *Buffer, OUT EFI_MAC_ADDRESS *SrcAddr OPTIONAL, OUT EFI_MAC_ADDRESS *DestAddr OPTIONAL, OUT UINT16 *Protocol OPTIONAL)
VOID EFIAPI Undi16SimpleNetworkWaitForPacket (IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS Undi16SimpleNetworkCheckForPacket (IN EFI_SIMPLE_NETWORK_PROTOCOL *This)
EFI_STATUS BiosSnp16AllocatePagesBelowOneMb (UINTN NumPages, VOID **Buffer)

Variables

EFI_DRIVER_BINDING_PROTOCOL gBiosSnp16DriverBinding
BOOLEAN mCachedInt1A = FALSE

Detailed Description

Copyright (c) 1999 - 2010, Intel Corporation. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file BiosSnp16.c.


Function Documentation

EFI_STATUS BiosSnp16AllocatePagesBelowOneMb ( UINTN  NumPages,
VOID **  Buffer 
)

Allocate buffer below 1M for real mode.

Parameters:
NumPagesThe number pages want to be allocated.
BufferOn return, allocated buffer.
Returns:
Status of allocating pages.

Definition at line 3486 of file BiosSnp16.c.

EFI_STATUS EFIAPI BiosSnp16DriverBindingStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Starts the Snp device controller

Parameters:
ThisA pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
ControllerThe handle of the controller to test.
RemainingDevicePathA pointer to the remaining portion of a device path.
Return values:
EFI_SUCCESS- The device was started.
EFI_DEVICE_ERROR- The device could not be started due to a device error.
EFI_OUT_OF_RESOURCES- The request could not be completed due to a lack of resources.

Definition at line 296 of file BiosSnp16.c.

EFI_STATUS EFIAPI BiosSnp16DriverBindingStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

Stops the device by given device controller.

Parameters:
ThisA pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
ControllerThe handle of the controller to test.
NumberOfChildrenThe number of child device handles in ChildHandleBuffer.
ChildHandleBufferAn array of child handles to be freed. May be NULL if NumberOfChildren is 0.
Return values:
EFI_SUCCESS- The device was stopped.
EFI_DEVICE_ERROR- The device could not be stopped due to a device error.

Definition at line 840 of file BiosSnp16.c.

EFI_STATUS EFIAPI BiosSnp16DriverBindingSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Tests to see if this driver supports a given controller.

Parameters:
ThisA pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
ControllerThe handle of the controller to test.
RemainingDevicePathA pointer to the remaining portion of a device path.
Return values:
EFI_SUCCESSThe driver supports given controller.
EFI_UNSUPPORTThe driver doesn't support given controller.
OtherOther errors prevent driver finishing to test if the driver supports given controller.

Definition at line 202 of file BiosSnp16.c.

EFI_STATUS EFIAPI BiosSnp16DriverEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entry point for EFI drivers.

Parameters:
ImageHandleHandle that identifies the loaded image.
SystemTableSystem Table for this image.
Returns:
EFI_STATUS Return status from EfiLibInstallAllDriverProtocols.

Definition at line 170 of file BiosSnp16.c.

EFI_STATUS SimpleNetworkTransmitFifoAdd ( EFI_SIMPLE_NETWORK_DEV_FIFO Fifo,
VOID *  Data 
)

Add data into transmit buffer.

Parameters:
FifoPoint to trasmit FIFO structure.
DataThe data point want to be added.
Return values:
EFI_OUT_OF_RESOURCESFIFO is full
EFI_SUCCESSSuccess operation.

Definition at line 1069 of file BiosSnp16.c.

BOOLEAN SimpleNetworkTransmitFifoEmpty ( EFI_SIMPLE_NETWORK_DEV_FIFO Fifo)

Judge whether transmit FIFO is empty.

Parameters:
FifoPoint to trasmit FIFO structure.
Returns:
BOOLEAN whether transmit FIFO is empty.

Definition at line 1047 of file BiosSnp16.c.

BOOLEAN SimpleNetworkTransmitFifoFull ( EFI_SIMPLE_NETWORK_DEV_FIFO Fifo)

Judge whether transmit FIFO is full.

Parameters:
FifoPoint to trasmit FIFO structure.
Returns:
BOOLEAN whether transmit FIFO is full.

Definition at line 1028 of file BiosSnp16.c.

EFI_STATUS SimpleNetworkTransmitFifoRemove ( EFI_SIMPLE_NETWORK_DEV_FIFO Fifo,
VOID **  Data 
)

Get a data and remove it from network transmit FIFO.

Parameters:
FifoPoint to trasmit FIFO structure.
DataOn return, point to the data point want to be got and removed.
Return values:
EFI_OUT_OF_RESOURCESnetwork transmit buffer is empty.
EFI_SUCCESSSuccess operation.

Definition at line 1093 of file BiosSnp16.c.

VOID Undi16GetMCastFilters ( IN EFI_SIMPLE_NETWORK_MODE Mode,
IN OUT PXENV_UNDI_MCAST_ADDR_T McastBuffer,
IN UINTN  HwAddressSize 
)

Get filter setting from multi cast buffer .

Parameters:
ModePoint to mode structure.
McastBufferThe multi cast buffer
HwAddressSizeSize of filter value.

Definition at line 1159 of file BiosSnp16.c.

UINT16 Undi16GetPacketFilterSetting ( UINTN  ReceiveFilterSetting)

Get recive filter setting according to EFI mask value.

Parameters:
ReceiveFilterSettingfilter setting EFI mask value.
Returns:
UINT16 Undi filter setting value.

Definition at line 1115 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkCheckForPacket ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Check whether packet is ready for receive.

Parameters:
ThisThe protocol instance pointer.
Return values:
EFI_SUCCESSReceive data is ready.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_NOT_READYThe network interface is too busy to accept this transmit request.
EFI_BUFFER_TOO_SMALLThe BufferSize parameter is too small.
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 3400 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkCleanupUndi ( EFI_SIMPLE_NETWORK_DEV SimpleNetworkDevice)

Stop the UNDI interface

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
Return values:
EFI_DEVICE_ERRORFail to stop 16 bit UNDI ROM.
OthersStatus of stop 16 bit UNDI ROM.

Cleanup Unid network interface

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
Return values:
EFI_DEVICE_ERRORFail to cleanup 16 bit UNDI ROM.
OthersStatus of cleanup 16 bit UNDI ROM.

Definition at line 1404 of file BiosSnp16.c.

VOID EFIAPI Undi16SimpleNetworkEvent ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Signal handlers for ExitBootServices event.

Clean up any Real-mode UNDI residue from the system

Parameters:
EventExitBootServices event
Context

Definition at line 3462 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkGetInformation ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Get runtime information for Undi network interface

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
Return values:
EFI_SUCCESSSucess operation.
OthersFail to get runtime information for Undi network interface.

Definition at line 1439 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkGetNdisInfo ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Get NDIS information

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
Return values:
EFI_SUCCESSSucess operation.
OthersFail to get NDIS information.

Definition at line 1621 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkGetNicType ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Get NIC type

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
Return values:
EFI_SUCCESSSucess operation.
OthersFail to get NIC type.

Definition at line 1570 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkGetStatus ( 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 2986 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkInitialize ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN UINTN ExtraRxBufferSize  OPTIONAL,
IN UINTN ExtraTxBufferSize  OPTIONAL 
)

Initialize network interface

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
ExtraRxBufferSizeThe size of extra request receive buffer.
ExtraTxBufferSizeThe size of extra request transmit buffer.
Return values:
EFI_DEVICE_ERRORFail to execute 16 bit ROM call.
EFI_SUCESSSuccess operation.

Definition at line 2023 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkIsr ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN UINTN FrameLength,
IN UINTN FrameHeaderLength,
OPTIONAL IN UINT8 Frame,
OPTIONAL IN UINT8 ProtType,
OPTIONAL IN UINT8 *PktType  OPTIONAL 
)

Call Undi ROM 16bit ISR() to check interrupt cause.

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
FrameLengthThe length of frame buffer.
FrameHeaderLengthThe length of frame buffer's header if has.
FrameThe frame buffer to process network interrupt.
ProtTypeThe type network transmit protocol
PktTypeThe type of package.
Return values:
EFI_DEVICE_ERRORFail to execute 16 bit ROM's ISR, or status is invalid.
EFI_SUCCESSSuccess operation.

Definition at line 1680 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkLoadUndi ( EFI_SIMPLE_NETWORK_DEV SimpleNetworkDevice)

Loads the undi driver.

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
Return values:
EFI_SUCCESS- Successfully loads undi driver.
EFI_NOT_FOUND- Doesn't find undi driver or undi driver load failure.

Definition at line 1191 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkMCastIpToMac ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN BOOLEAN  IPv6,
IN EFI_IP_ADDRESS IP,
OUT EFI_MAC_ADDRESS MAC 
)

Translate IP address to MAC address.

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
IPv6IPv6 or IPv4
IPA pointer to given Ip address.
MACOn return, translated MAC address.
Return values:
EFI_INVALID_PARAMETERInvalid This paramter.
EFI_INVALID_PARAMETERInvalid IP address.
EFI_INVALID_PARAMETERInvalid return buffer for holding MAC address.
EFI_UNSUPPORTEDDo not support IPv6
EFI_DEVICE_ERRORNetwork device has not been initialized.
EFI_NOT_STARTEDNetwork device has been stopped.
EFI_DEVICE_ERRORInvalid status for network device
EFI_SUCCESSSuccess operation.

Definition at line 2852 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkNvData ( 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 2946 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkReceive ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
OUT UINTN *HeaderSize  OPTIONAL,
IN OUT UINTN BufferSize,
OUT VOID *  Buffer,
OUT EFI_MAC_ADDRESS *SrcAddr  OPTIONAL,
OUT EFI_MAC_ADDRESS *DestAddr  OPTIONAL,
OUT UINT16 *Protocol  OPTIONAL 
)

Receives a packet from a network interface.

Parameters:
ThisThe protocol instance pointer.
HeaderSizeThe size, in bytes, of the media header received on the network interface. If this parameter is NULL, then the media header size will not be returned.
BufferSizeOn entry, the size, in bytes, of Buffer. On exit, the size, in bytes, of the packet that was received on the network interface.
BufferA pointer to the data buffer to receive both the media header and the data.
SrcAddrThe source HW MAC address. If this parameter is NULL, the HW MAC source address will not be extracted from the media header.
DestAddrThe destination HW MAC address. If this parameter is NULL, the HW MAC destination address will not be extracted from the media header.
ProtocolThe media header type. If this parameter is NULL, then the protocol will not be extracted from the media header. See RFC 1700 section "Ether Types" for examples.
Return values:
EFI_SUCCESSThe received data was stored in Buffer, and BufferSize has been updated to the number of bytes received.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_NOT_READYThe network interface is too busy to accept this transmit request.
EFI_BUFFER_TOO_SMALLThe BufferSize parameter is too small.
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 3277 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkReceiveFilters ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN UINT32  Enable,
IN UINT32  Disable,
IN BOOLEAN  ResetMCastFilter,
IN UINTN MCastFilterCnt  OPTIONAL,
IN EFI_MAC_ADDRESS *MCastFilter  OPTIONAL 
)

Reset network interface.

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
EnableEnable mask value
DisableDisable mask value
ResetMCastFilterWhether reset multi cast filter or not
MCastFilterCntCount of mutli cast filter for different MAC address
MCastFilterBuffer for mustli cast filter for different MAC address.
Return values:
EFI_INVALID_PARAMETERInvalid This paramter.
EFI_DEVICE_ERRORNetwork device has not been initialized.
EFI_NOT_STARTEDNetwork device has been stopped.
EFI_DEVICE_ERRORInvalid status for network device
EFI_SUCCESSSuccess operation.

Definition at line 2338 of file BiosSnp16.c.

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

Reset network interface.

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
ExtendedVerificationNeed extended verfication.
Return values:
EFI_INVALID_PARAMETERInvalid This paramter.
EFI_DEVICE_ERRORNetwork device has not been initialized.
EFI_NOT_STARTEDNetwork device has been stopped.
EFI_DEVICE_ERRORInvalid status for network device
EFI_SUCCESSSuccess operation.

Definition at line 2144 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkShutdown ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Shutdown network interface.

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
Return values:
EFI_INVALID_PARAMETERInvalid This paramter.
EFI_DEVICE_ERRORNetwork device has not been initialized.
EFI_NOT_STARTEDNetwork device has been stopped.
EFI_DEVICE_ERRORInvalid status for network device
EFI_SUCCESSSuccess operation.

Definition at line 2225 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkStart ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Call 16 bit UNDI ROM to start the network interface

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
Return values:
EFI_DEVICE_ERRORNetwork interface has not be initialized.
EFI_DEVICE_ERRORFail to execute 16 bit ROM call.
EFI_SUCESSSuccess operation.

Definition at line 1897 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkStartUndi ( EFI_SIMPLE_NETWORK_DEV SimpleNetworkDevice,
UINT16  Ax 
)

Start the UNDI interface.

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
AxPCI address of Undi device.
Return values:
EFI_DEVICE_ERRORFail to start 16 bit UNDI ROM.
OthersStatus of start 16 bit UNDI ROM.

Definition at line 1324 of file BiosSnp16.c.

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

Set new MAC address.

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
ResetWhether reset station MAC address to permenent address
NewA pointer to New address
Return values:
EFI_INVALID_PARAMETERInvalid This paramter.
EFI_DEVICE_ERRORNetwork device has not been initialized.
EFI_NOT_STARTEDNetwork device has been stopped.
EFI_DEVICE_ERRORInvalid status for network device
EFI_SUCCESSSuccess operation.

Definition at line 2495 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkStatistics ( 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 2696 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkStop ( IN EFI_SIMPLE_NETWORK_PROTOCOL This)

Call 16 bit UNDI ROM to stop the network interface

Parameters:
ThisA pointer to EFI_SIMPLE_NETWORK_PROTOCOL structure.
Return values:
EFI_DEVICE_ERRORNetwork interface has not be initialized.
EFI_DEVICE_ERRORFail to execute 16 bit ROM call.
EFI_SUCESSSuccess operation.

Definition at line 1971 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkStopUndi ( EFI_SIMPLE_NETWORK_DEV SimpleNetworkDevice)

Start the UNDI interface

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
Return values:
EFI_DEVICE_ERRORFail to start 16 bit UNDI ROM.
OthersStatus of start 16 bit UNDI ROM.

Stop the UNDI interface

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
Return values:
EFI_DEVICE_ERRORFail to stop 16 bit UNDI ROM.
OthersStatus of stop 16 bit UNDI ROM.

Definition at line 1369 of file BiosSnp16.c.

EFI_STATUS EFIAPI Undi16SimpleNetworkTransmit ( IN EFI_SIMPLE_NETWORK_PROTOCOL This,
IN UINTN  HeaderSize,
IN UINTN  BufferSize,
IN VOID *  Buffer,
IN EFI_MAC_ADDRESS *SrcAddr  OPTIONAL,
IN EFI_MAC_ADDRESS *DestAddr  OPTIONAL,
IN UINT16 *Protocol  OPTIONAL 
)

Places a packet in the transmit queue of a network interface.

Parameters:
ThisThe protocol instance pointer.
HeaderSizeThe size, in bytes, of the media header to be filled in by the Transmit() function. If HeaderSize is non-zero, then it must be equal to This->Mode->MediaHeaderSize and the DestAddr and Protocol parameters must not be NULL.
BufferSizeThe size, in bytes, of the entire packet (media header and data) to be transmitted through the network interface.
BufferA pointer to the packet (media header followed by data) to be transmitted. This parameter cannot be NULL. If HeaderSize is zero, then the media header in Buffer must already be filled in by the caller. If HeaderSize is non-zero, then the media header will be filled in by the Transmit() function.
SrcAddrThe source HW MAC address. If HeaderSize is zero, then this parameter is ignored. If HeaderSize is non-zero and SrcAddr is NULL, then This->Mode->CurrentAddress is used for the source HW MAC address.
DestAddrThe destination HW MAC address. If HeaderSize is zero, then this parameter is ignored.
ProtocolThe type of header to build. If HeaderSize is zero, then this parameter is ignored. See RFC 1700, section "Ether Types", for examples.
Return values:
EFI_SUCCESSThe packet was placed on the transmit queue.
EFI_NOT_STARTEDThe network interface has not been started.
EFI_NOT_READYThe network interface is too busy to accept this transmit request.
EFI_BUFFER_TOO_SMALLThe BufferSize parameter is too small.
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 3086 of file BiosSnp16.c.

EFI_STATUS Undi16SimpleNetworkUnloadUndi ( EFI_SIMPLE_NETWORK_DEV SimpleNetworkDevice)

Unload 16 bit UNDI Option ROM from memory

Parameters:
SimpleNetworkDeviceA pointer to EFI_SIMPLE_NETWORK_DEV data structure.
Returns:
EFI_STATUS

Definition at line 1266 of file BiosSnp16.c.

VOID EFIAPI Undi16SimpleNetworkWaitForPacket ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

wait for a packet to be received.

Parameters:
EventEvent used with WaitForEvent() to wait for a packet to be received.
ContextEvent Context

Definition at line 3369 of file BiosSnp16.c.


Variable Documentation

Initial value:

EFI Driver Binding Protocol Instance

Definition at line 22 of file BiosSnp16.c.

This boolean is used to determine if we should release the cached vector during an error condition.

Definition at line 34 of file BiosSnp16.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines