-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
+are licensed and made available under the terms and conditions\r
+of the BSD License which accompanies this distribution. The full\r
+text of the license may be found at<BR>\r
http://opensource.org/licenses/bsd-license.php\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
http://opensource.org/licenses/bsd-license.php\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[out] MnpConfigData Pointer to storage for MNP operational parameters. Type\r
\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[out] MnpConfigData Pointer to storage for MNP operational parameters. Type\r
@param[out] SnpModeData Pointer to storage for SNP operational parameters. This\r
feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE\r
is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.\r
@param[out] SnpModeData Pointer to storage for SNP operational parameters. This\r
feature may be unsupported. Type EFI_SIMPLE_NETWORK_MODE\r
is defined in the EFI_SIMPLE_NETWORK_PROTOCOL.\r
@retval EFI_SUCCESS The operation completed successfully.\r
@retval EFI_INVALID_PARAMETER This is NULL.\r
@retval EFI_UNSUPPORTED The requested feature is unsupported in this\r
@retval EFI_SUCCESS The operation completed successfully.\r
@retval EFI_INVALID_PARAMETER This is NULL.\r
@retval EFI_UNSUPPORTED The requested feature is unsupported in this\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData, OPTIONAL\r
- OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL,\r
+ OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL\r
- Sets or clears the operational parameters for the MNP child driver. \r
- \r
- The Configure() function is used to set, change, or reset the operational \r
+ Sets or clears the operational parameters for the MNP child driver.\r
+\r
+ The Configure() function is used to set, change, or reset the operational\r
parameters for the MNP child driver instance. Until the operational parameters\r
have been set, no network traffic can be sent or received by this MNP child\r
driver instance. Once the operational parameters have been reset, no more\r
parameters for the MNP child driver instance. Until the operational parameters\r
have been set, no network traffic can be sent or received by this MNP child\r
driver instance. Once the operational parameters have been reset, no more\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- IN EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ IN EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL\r
- ((MnpConfigData != NULL) &&\r
- (MnpConfigData->ProtocolTypeFilter > 0) &&\r
- (MnpConfigData->ProtocolTypeFilter <= 1500))) {\r
-\r
+ ((MnpConfigData != NULL) &&\r
+ (MnpConfigData->ProtocolTypeFilter > 0) &&\r
+ (MnpConfigData->ProtocolTypeFilter <= 1500))\r
+ ) {\r
- Translates an IP multicast address to a hardware (MAC) multicast address. This \r
- function may be unsupported in some MNP implementations. \r
- \r
+ Translates an IP multicast address to a hardware (MAC) multicast address. This\r
+ function may be unsupported in some MNP implementations.\r
+\r
The McastIpToMac() function translates an IP multicast address to a hardware\r
(MAC) multicast address. This function may be implemented by calling the\r
underlying EFI_SIMPLE_NETWORK. MCastIpToMac() function, which may also be\r
The McastIpToMac() function translates an IP multicast address to a hardware\r
(MAC) multicast address. This function may be implemented by calling the\r
underlying EFI_SIMPLE_NETWORK. MCastIpToMac() function, which may also be\r
Set to FALSE if IpAddress is an IPv4 multicast address.\r
@param[in] IpAddress Pointer to the multicast IP address (in network byte\r
order) to convert.\r
Set to FALSE if IpAddress is an IPv4 multicast address.\r
@param[in] IpAddress Pointer to the multicast IP address (in network byte\r
order) to convert.\r
\r
@retval EFI_SUCCESS The operation completed successfully.\r
@retval EFI_INVALID_PARAMETER One of the following conditions is TRUE:\r
\r
@retval EFI_SUCCESS The operation completed successfully.\r
@retval EFI_INVALID_PARAMETER One of the following conditions is TRUE:\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- IN BOOLEAN Ipv6Flag,\r
- IN EFI_IP_ADDRESS *IpAddress,\r
- OUT EFI_MAC_ADDRESS *MacAddress\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ IN BOOLEAN Ipv6Flag,\r
+ IN EFI_IP_ADDRESS *IpAddress,\r
+ OUT EFI_MAC_ADDRESS *MacAddress\r
EFI_IPv6_ADDRESS *Ip6Address;\r
\r
if ((This == NULL) || (IpAddress == NULL) || (MacAddress == NULL)) {\r
EFI_IPv6_ADDRESS *Ip6Address;\r
\r
if ((This == NULL) || (IpAddress == NULL) || (MacAddress == NULL)) {\r
MacAddress->Addr[0] = 0x33;\r
MacAddress->Addr[1] = 0x33;\r
MacAddress->Addr[2] = Ip6Address->Addr[12];\r
MacAddress->Addr[0] = 0x33;\r
MacAddress->Addr[1] = 0x33;\r
MacAddress->Addr[2] = Ip6Address->Addr[12];\r
filter list. The MNP driver does not transmit or process Internet Group\r
Management Protocol (IGMP) packets. If JoinFlag is FALSE and MacAddress is\r
NULL, then all joined groups are left.\r
filter list. The MNP driver does not transmit or process Internet Group\r
Management Protocol (IGMP) packets. If JoinFlag is FALSE and MacAddress is\r
NULL, then all joined groups are left.\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] JoinFlag Set to TRUE to join this multicast group.\r
Set to FALSE to leave this multicast group.\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] JoinFlag Set to TRUE to join this multicast group.\r
Set to FALSE to leave this multicast group.\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- IN BOOLEAN JoinFlag,\r
- IN EFI_MAC_ADDRESS *MacAddress OPTIONAL\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ IN BOOLEAN JoinFlag,\r
+ IN EFI_MAC_ADDRESS *MacAddress OPTIONAL\r
queue. This function is always asynchronous.\r
The caller must fill in the Token.Event and Token.TxData fields in the\r
completion token, and these fields cannot be NULL. When the transmit operation\r
queue. This function is always asynchronous.\r
The caller must fill in the Token.Event and Token.TxData fields in the\r
completion token, and these fields cannot be NULL. When the transmit operation\r
defragmented before it can be transmitted by the network device. Systems in\r
which performance is critical should review the requirements and features of\r
the underlying communications device and drivers.\r
defragmented before it can be transmitted by the network device. Systems in\r
which performance is critical should review the requirements and features of\r
the underlying communications device and drivers.\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] Token Pointer to a token associated with the transmit data\r
descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] Token Pointer to a token associated with the transmit data\r
descriptor. Type EFI_MANAGED_NETWORK_COMPLETION_TOKEN\r
@retval EFI_ACCESS_DENIED The transmit completion token is already in the\r
transmit queue.\r
@retval EFI_OUT_OF_RESOURCES The transmit data could not be queued due to a\r
@retval EFI_ACCESS_DENIED The transmit completion token is already in the\r
transmit queue.\r
@retval EFI_OUT_OF_RESOURCES The transmit data could not be queued due to a\r
@retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
The MNP child driver instance has been reset to\r
startup defaults.\r
@retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
The MNP child driver instance has been reset to\r
startup defaults.\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN *Token\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN *Token\r
queue. This function is always asynchronous.\r
The caller must fill in the Token.Event field in the completion token, and\r
this field cannot be NULL. When the receive operation completes, the MNP\r
updates the Token.Status and Token.RxData fields and the Token.Event is\r
signaled.\r
queue. This function is always asynchronous.\r
The caller must fill in the Token.Event field in the completion token, and\r
this field cannot be NULL. When the receive operation completes, the MNP\r
updates the Token.Status and Token.RxData fields and the Token.Event is\r
signaled.\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] Token Pointer to a token associated with the receive\r
data descriptor. Type\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] Token Pointer to a token associated with the receive\r
data descriptor. Type\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN *Token\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN *Token\r
//\r
Status = NetMapIterate (&Instance->RxTokenMap, MnpTokenExist, (VOID *) Token);\r
if (EFI_ERROR (Status)) {\r
//\r
Status = NetMapIterate (&Instance->RxTokenMap, MnpTokenExist, (VOID *) Token);\r
if (EFI_ERROR (Status)) {\r
// Insert the Token into the RxTokenMap.\r
//\r
Status = NetMapInsertTail (&Instance->RxTokenMap, (VOID *) Token, NULL);\r
// Insert the Token into the RxTokenMap.\r
//\r
Status = NetMapInsertTail (&Instance->RxTokenMap, (VOID *) Token, NULL);\r
The Cancel() function is used to abort a pending transmit or receive request.\r
If the token is in the transmit or receive request queues, after calling this\r
function, Token.Status will be set to EFI_ABORTED and then Token.Event will be\r
The Cancel() function is used to abort a pending transmit or receive request.\r
If the token is in the transmit or receive request queues, after calling this\r
function, Token.Status will be set to EFI_ABORTED and then Token.Event will be\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] Token Pointer to a token that has been issued by\r
EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or\r
@param[in] This Pointer to the EFI_MANAGED_NETWORK_PROTOCOL instance.\r
@param[in] Token Pointer to a token that has been issued by\r
EFI_MANAGED_NETWORK_PROTOCOL.Transmit() or\r
- IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
- IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN *Token OPTIONAL\r
+ IN EFI_MANAGED_NETWORK_PROTOCOL *This,\r
+ IN EFI_MANAGED_NETWORK_COMPLETION_TOKEN *Token OPTIONAL\r
// Iterate the RxTokenMap to cancel the specified Token.\r
//\r
Status = NetMapIterate (&Instance->RxTokenMap, MnpCancelTokens, (VOID *) Token);\r
// Iterate the RxTokenMap to cancel the specified Token.\r
//\r
Status = NetMapIterate (&Instance->RxTokenMap, MnpCancelTokens, (VOID *) Token);\r
- Polls for incoming data packets and processes outgoing data packets. \r
- \r
- The Poll() function can be used by network drivers and applications to \r
+ Polls for incoming data packets and processes outgoing data packets.\r
+\r
+ The Poll() function can be used by network drivers and applications to\r
increase the rate that data packets are moved between the communications\r
device and the transmit and receive queues.\r
Normally, a periodic timer event internally calls the Poll() function. But, in\r
increase the rate that data packets are moved between the communications\r
device and the transmit and receive queues.\r
Normally, a periodic timer event internally calls the Poll() function. But, in\r