EFI SIMPLE NETWORK MODE

From PhoenixWiki

Jump to: navigation, search

Prototype

#define MAX_MCAST_FILTER_CNT 16
typedef struct {
  UINT32          State;
  UINT32          HwAddressSize;
  UINT32          MediaHeaderSize;
  UINT32          MaxPacketSize;
  UINT32          NvRamSize;
  UINT32          NvRamAccessSize;
  UINT32          ReceiveFilterMask;
  UINT32          ReceiveFilterSetting;
  UINT32          MaxMCastFilterCount;
  UINT32          MCastFilterCount;
  EFI_MAC_ADDRESS MCastFilter[MAX_MCAST_FILTER_CNT];
  EFI_MAC_ADDRESS CurrentAddress;
  EFI_MAC_ADDRESS BroadcastAddress;
  EFI_MAC_ADDRESS PermanentAddress;
  UINT8           IfType;
  BOOLEAN         MacAddressChangeable;
  BOOLEAN         MultipleTxSupported;
  BOOLEAN         MediaPresentSupported;
  BOOLEAN         MediaPresent;
} EFI_SIMPLE_NETWORK_MODE;

Members

Member Description
State Reports the current state of the network interface. See EFI_SIMPLE_NETWORK_STATE for the enumerated values. When a driver initializes a network interface, the network interface is left in the EfiSimpleNetworkStopped state.
HwAddressSize The size, in bytes, of the network interface’s HW address.
MediaHeaderSize The size, in bytes, of the network interface’s media header.
MaxPacketSize The maximum size, in bytes, of the packets supported by the network interface.
NvRamSize The size, in bytes, of the NVRAM device attached to the network interface. If an NVRAM device is not attached to the network interface, then this field will be zero. This value must be a multiple of NvramAccessSize.
NvRamAccessSize The size that must be used for all NVRAM reads and writes. The start address for NVRAM read and write operations and the total length of those operations, must be a multiple of this value. The legal values for this field are 0, 1, 2, 4, and 8. If the value is zero, then no NVRAM devices are attached to the network interface.
ReceiveFilterMask The multicast receive filter settings supported by the network interface.
ReceiveFilterSetting The current multicast receive filter settings. See “Bit Mask Values for ReceiveFilterSetting” below.
MaxMCastFilterCount The maximum number of multicast address receive filters supported by the driver. If this value is zero, then ReceiveFilters() cannot modify the multicast address receive filters. This field may be less than MAX_MCAST_FILTER_CNT (see below).
MCastFilterCount The current number of multicast address receive filters.
MCastFilter Array containing the addresses of the current multicast address receive filters.
CurrentAddress The current HW MAC address for the network interface.
BroadcastAddress The current HW MAC address for broadcast packets.
PermanentAddress The permanent HW MAC address for the network interface.
IfType The interface type of the network interface. See RFC 1700, section “Number Hardware Type.”
MacAddressChangeable TRUE if the HW MAC address can be changed.
MultipleTxSupported TRUE if the network interface can transmit more than one packet at a time.
MediaPresentSupported TRUE if the presence of media can be determined; otherwise FALSE. If FALSE, MediaPresent cannot be used.
MediaPresent TRUE if media are connected to the network interface; otherwise FALSE. This field is only valid immediately after calling Initialize().

Copyright (C) 2008 Phoenix Technologies Ltd. All Rights Reserved. Portions copyright (C) 2008 UEFI Forum, Inc. Used with permission

Personal tools