//\r
MnpServiceData = AllocateZeroPool (sizeof (MNP_SERVICE_DATA));\r
if (MnpServiceData == NULL) {\r
- DEBUG ((EFI_D_ERROR, "MnpCreateServiceData: Faild to allocate memory for the new Mnp Service Data.\n"));\r
+ DEBUG ((DEBUG_ERROR, "MnpCreateServiceData: Failed to allocate memory for the new Mnp Service Data.\n"));\r
\r
return NULL;\r
}\r
&MnpServiceData->DevicePath\r
);\r
if (MnpServiceHandle == NULL) {\r
- DEBUG ((EFI_D_ERROR, "MnpCreateServiceData: Faild to create child handle.\n"));\r
+ DEBUG ((DEBUG_ERROR, "MnpCreateServiceData: Failed to create child handle.\n"));\r
\r
return NULL;\r
}\r
\r
if (MnpDeviceData->ConfiguredChildrenNumber > 0) {\r
//\r
- // If there are other configured chilren, return and keep the timers and\r
+ // If there are other configured children, return and keep the timers and\r
// simple network unchanged.\r
//\r
return EFI_SUCCESS;\r
\r
@param[in, out] Instance Pointer to the mnp instance context data.\r
@param[in] ConfigData Pointer to the configuration data used to configure\r
- the isntance.\r
+ the instance.\r
\r
@retval EFI_SUCCESS The Instance is configured.\r
@retval EFI_UNSUPPORTED EnableReceiveTimestamps is on and the\r
EnableFilterBits |= EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST;\r
\r
//\r
- // Allocate pool for the mulicast addresses.\r
+ // Allocate pool for the multicast addresses.\r
//\r
MCastFilterCnt = MnpDeviceData->GroupAddressCount;\r
MCastFilter = AllocatePool (sizeof (EFI_MAC_ADDRESS) * MCastFilterCnt);\r
\r
@param[in, out] Instance Pointer to the mnp instance context data.\r
@param[in, out] CtrlBlk Pointer to the group address control block.\r
- @param[in, out] GroupAddress Pointer to the group adress.\r
+ @param[in, out] GroupAddress Pointer to the group address.\r
@param[in] MacAddress Pointer to the mac address.\r
@param[in] HwAddressSize The hardware address size.\r
\r
\r
if (JoinFlag) {\r
//\r
- // A new gropu address is to be added.\r
+ // A new group address is to be added.\r
//\r
GroupAddress = NULL;\r
AddressExist = FALSE;\r
}\r
\r
//\r
- // Close the openned SNP protocol.\r
+ // Close the opened SNP protocol.\r
//\r
gBS->CloseProtocol (\r
ControllerHandle,\r
it is not NULL, then the I/O services are added\r
to the existing child handle.\r
\r
- @retval EFI_SUCCES The protocol was added to ChildHandle.\r
+ @retval EFI_SUCCESS The protocol was added to ChildHandle.\r
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to\r
create the child.\r
//\r
Instance = AllocateZeroPool (sizeof (MNP_INSTANCE_DATA));\r
if (Instance == NULL) {\r
- DEBUG ((EFI_D_ERROR, "MnpServiceBindingCreateChild: Faild to allocate memory for the new instance.\n"));\r
+ DEBUG ((DEBUG_ERROR, "MnpServiceBindingCreateChild: Failed to allocate memory for the new instance.\n"));\r
\r
return EFI_OUT_OF_RESOURCES;\r
}\r
instance.\r
@param[in] ChildHandle Handle of the child to destroy.\r
\r
- @retval EFI_SUCCES The protocol was removed from ChildHandle.\r
+ @retval EFI_SUCCESS The protocol was removed from ChildHandle.\r
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that\r
is being removed.\r
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
@param[in] ImageHandle The image handle of the driver.\r
@param[in] SystemTable The system table.\r
\r
- @retval EFI_SUCCES The driver binding and component name protocols are\r
+ @retval EFI_SUCCESS The driver binding and component name protocols are\r
successfully installed.\r
@retval Others Other errors as indicated.\r
\r
/** @file\r
- Declaration of strctures and functions for MnpDxe driver.\r
+ Declaration of structures and functions for MnpDxe driver.\r
\r
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
it is not NULL, then the I/O services are added\r
to the existing child handle.\r
\r
- @retval EFI_SUCCES The protocol was added to ChildHandle.\r
+ @retval EFI_SUCCESS The protocol was added to ChildHandle.\r
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to\r
create the child.\r
instance.\r
@param[in] ChildHandle Handle of the child to destroy.\r
\r
- @retval EFI_SUCCES The protocol was removed from ChildHandle.\r
+ @retval EFI_SUCCESS The protocol was removed from ChildHandle.\r
@retval EFI_UNSUPPORTED ChildHandle does not support the protocol that\r
is being removed.\r
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
## @file\r
-# This module produces EFI MNP Protocol, EFI MNP Servie Binding Protocol and EFI VLAN Protocol.\r
+# This module produces EFI MNP Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol.\r
#\r
# This module produces EFI Managed Network Protocol upon EFI Simple Network Protocol,\r
# to provide raw asynchronous network I/O services. It also produces EFI VLAN Protocol\r
// /** @file\r
-// This module produces EFI MNP Protocol, EFI MNP Servie Binding Protocol and EFI VLAN Protocol.\r
+// This module produces EFI MNP Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol.\r
//\r
// This module produces EFI Managed Network Protocol upon EFI Simple Network Protocol,\r
// to provide raw asynchronous network I/O services. It also produces EFI VLAN Protocol\r
// **/\r
\r
\r
-#string STR_MODULE_ABSTRACT #language en-US "Produces EFI MNP Protocol, EFI MNP Servie Binding Protocol and EFI VLAN Protocol"\r
+#string STR_MODULE_ABSTRACT #language en-US "Produces EFI MNP Protocol, EFI MNP Service Binding Protocol and EFI VLAN Protocol"\r
\r
#string STR_MODULE_DESCRIPTION #language en-US "This module produces EFI Managed Network Protocol upon EFI Simple Network Protocol to provide raw asynchronous network I/O services. It also produces EFI VLAN Protocol to provide manageability interface for VLAN configuration."\r
\r
\r
@param[in, out] Instance Pointer to the mnp instance context data.\r
@param[in] ConfigData Pointer to the configuration data used to configure\r
- the isntance.\r
+ the instance.\r
\r
@retval EFI_SUCCESS The Instance is configured.\r
@retval EFI_UNSUPPORTED EnableReceiveTimestamps is on and the\r
/**\r
Synchronously send out the packet.\r
\r
- This functon places the packet buffer to SNP driver's tansmit queue. The packet\r
- can be considered successfully sent out once SNP acccetp the packet, while the\r
+ This function places the packet buffer to SNP driver's tansmit queue. The packet\r
+ can be considered successfully sent out once SNP accept the packet, while the\r
packet buffer recycle is deferred for better performance.\r
\r
@param[in] MnpServiceData Pointer to the mnp service context data.\r
- @param[in] Packet Pointer to the pakcet buffer.\r
+ @param[in] Packet Pointer to the packet buffer.\r
@param[in] Length The length of the packet.\r
@param[in, out] Token Pointer to the token the packet generated from.\r
\r
packet.\r
\r
@param[in] Event The event this notify function registered to.\r
- @param[in] Context Pointer to the context data registerd to the Event.\r
+ @param[in] Context Pointer to the context data registered to the Event.\r
\r
**/\r
VOID\r
\r
@param[in, out] MnpDeviceData Pointer to the mnp device context data.\r
\r
- @retval EFI_SUCCESS Successed to recyclethe transmitted buffer address.\r
- @retval Others Failed to recyclethe transmitted buffer address.\r
+ @retval EFI_SUCCESS Successed to recycle the transmitted buffer address.\r
+ @retval Others Failed to recycle the transmitted buffer address.\r
\r
**/\r
EFI_STATUS\r
/**\r
Synchronously send out the packet.\r
\r
- This functon places the packet buffer to SNP driver's tansmit queue. The packet\r
- can be considered successfully sent out once SNP acccetp the packet, while the\r
+ This function places the packet buffer to SNP driver's tansmit queue. The packet\r
+ can be considered successfully sent out once SNP accept the packet, while the\r
packet buffer recycle is deferred for better performance.\r
\r
@param[in] MnpServiceData Pointer to the mnp service context data.\r
- @param[in] Packet Pointer to the pakcet buffer.\r
+ @param[in] Packet Pointer to the packet buffer.\r
@param[in] Length The length of the packet.\r
@param[in, out] Token Pointer to the token the packet generated from.\r
\r
packet.\r
\r
@param[in] Event The event this notify function registered to.\r
- @param[in] Context Pointer to the context data registerd to the Event.\r
+ @param[in] Context Pointer to the context data registered to the Event.\r
\r
**/\r
VOID\r
if ((!Instance->ConfigData.EnableMulticastReceive) ||\r
((MacAddress != NULL) && !NET_MAC_IS_MULTICAST (MacAddress, &SnpMode->BroadcastAddress, SnpMode->HwAddressSize))) {\r
//\r
- // The instance isn't configured to do mulitcast receive. OR\r
- // the passed in MacAddress is not a mutlticast mac address.\r
+ // The instance isn't configured to do multicast receive. OR\r
+ // the passed in MacAddress is not a multicast mac address.\r
//\r
Status = EFI_INVALID_PARAMETER;\r
goto ON_EXIT;\r
}\r
\r
//\r
- // Dispatch the DPC queued by the NotifyFunction of the cancled token's events.\r
+ // Dispatch the DPC queued by the NotifyFunction of the canceled token's events.\r
//\r
DispatchDpc ();\r
\r