EFI_MANAGED_NETWORK_SERVICE_BINDING_PROTOCOL as defined in UEFI 2.0.\r
EFI_MANAGED_NETWORK_PROTOCOL as defined in UEFI 2.0.\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation\r
+ Copyright (c) 2006 - 2009, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
+ @par Revision Reference: \r
+ This Protocol is introduced in UEFI Specification 2.0\r
+\r
**/\r
\r
#ifndef __EFI_MANAGED_NETWORK_PROTOCOL_H__\r
typedef struct _EFI_MANAGED_NETWORK_PROTOCOL EFI_MANAGED_NETWORK_PROTOCOL;\r
\r
typedef struct {\r
+ ///\r
+ /// Timeout value for a UEFI one-shot timer event. A packet that has not been removed\r
+ /// from the MNP receive queue will be dropped if its receive timeout expires.\r
+ ///\r
UINT32 ReceivedQueueTimeoutValue;\r
+ ///\r
+ /// Timeout value for a UEFI one-shot timer event. A packet that has not been removed\r
+ /// from the MNP transmit queue will be dropped if its receive timeout expires.\r
+ ///\r
UINT32 TransmitQueueTimeoutValue;\r
+ ///\r
+ /// Ethernet type II 16-bit protocol type in host byte order. Valid\r
+ /// values are zero and 1,500 to 65,535.\r
+ ///\r
UINT16 ProtocolTypeFilter;\r
+ ///\r
+ /// Set to TRUE to receive packets that are sent to the network\r
+ /// device MAC address. The startup default value is FALSE.\r
+ ///\r
BOOLEAN EnableUnicastReceive;\r
+ ///\r
+ /// Set to TRUE to receive packets that are sent to any of the\r
+ /// active multicast groups. The startup default value is FALSE.\r
+ ///\r
BOOLEAN EnableMulticastReceive;\r
+ ///\r
+ /// Set to TRUE to receive packets that are sent to the network\r
+ /// device broadcast address. The startup default value is FALSE.\r
+ ///\r
BOOLEAN EnableBroadcastReceive;\r
+ ///\r
+ /// Set to TRUE to receive packets that are sent to any MAC address.\r
+ /// The startup default value is FALSE.\r
+ ///\r
BOOLEAN EnablePromiscuousReceive;\r
+ ///\r
+ /// Set to TRUE to drop queued packets when the configuration\r
+ /// is changed. The startup default value is FALSE.\r
+ ///\r
BOOLEAN FlushQueuesOnReset;\r
+ ///\r
+ /// Set to TRUE to timestamp all packets when they are received\r
+ /// by the MNP. Note that timestamps may be unsupported in some\r
+ /// MNP implementations. The startup default value is FALSE.\r
+ ///\r
BOOLEAN EnableReceiveTimestamps;\r
+ ///\r
+ /// Set to TRUE to disable background polling in this MNP\r
+ /// instance. Note that background polling may not be supported in\r
+ /// all MNP implementations. The startup default value is FALSE,\r
+ /// unless background polling is not supported.\r
+ ///\r
BOOLEAN DisableBackgroundPolling;\r
} EFI_MANAGED_NETWORK_CONFIG_DATA;\r
\r
\r
\r
typedef struct {\r
+ ///\r
+ /// This Event will be signaled after the Status field is updated\r
+ /// by the MNP. The type of Event must be\r
+ /// EFI_NOTIFY_SIGNAL. The Task Priority Level (TPL) of\r
+ /// Event must be lower than or equal to TPL_CALLBACK.\r
+ ///\r
EFI_EVENT Event;\r
+ ///\r
+ /// The status that is returned to the caller at the end of the operation\r
+ /// to indicate whether this operation completed successfully.\r
+ ///\r
EFI_STATUS Status;\r
union {\r
+ ///\r
+ /// When this token is used for receiving, RxData is a pointer to the EFI_MANAGED_NETWORK_RECEIVE_DATA.\r
+ ///\r
EFI_MANAGED_NETWORK_RECEIVE_DATA *RxData;\r
+ ///\r
+ /// When this token is used for transmitting, TxData is a pointer to the EFI_MANAGED_NETWORK_TRANSMIT_DATA.\r
+ ///\r
EFI_MANAGED_NETWORK_TRANSMIT_DATA *TxData;\r
} Packet;\r
} EFI_MANAGED_NETWORK_COMPLETION_TOKEN;\r
IN EFI_MANAGED_NETWORK_PROTOCOL *This\r
);\r
\r
-/** \r
- @par Protocol Description:\r
- The MNP is used by network applications (and drivers) to \r
- perform raw (unformatted) asynchronous network packet I/O.\r
- \r
- @param GetModeData\r
- Returns the current MNP child driver operational parameters. \r
- May also support returning underlying Simple Network Protocol (SNP) driver mode data. \r
-\r
- @param Configure\r
- Sets and clears operational parameters for an MNP child driver. \r
-\r
- @param McastIpToMac\r
- Translates a software (IP) multicast address to a hardware (MAC) multicast address. \r
- This function may be unsupported in some MNP implementations. \r
-\r
- @param Groups\r
- Enables and disables receive filters for multicast addresses. \r
- This function may be unsupported in some MNP implementations. \r
-\r
- @param Transmit\r
- Places asynchronous outgoing data packets into the transmit queue. \r
-\r
- @param Receive\r
- Places an asynchronous receiving request into the receiving queue. \r
-\r
- @param Cancel\r
- Aborts a pending transmit or receive request. \r
-\r
- @param Poll\r
- Polls for incoming data packets and processes outgoing data packets. \r
-\r
-**/\r
+///\r
+/// The MNP is used by network applications (and drivers) to \r
+/// perform raw (unformatted) asynchronous network packet I/O.\r
+///\r
struct _EFI_MANAGED_NETWORK_PROTOCOL {\r
EFI_MANAGED_NETWORK_GET_MODE_DATA GetModeData;\r
EFI_MANAGED_NETWORK_CONFIGURE Configure;\r