Driver Binding functions and Service Binding functions\r
implementation for Mtftp6 Driver.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
\r
/**\r
- Destory the MTFTP6 service. The MTFTP6 service may be partly initialized,\r
+ Destroy the MTFTP6 service. The MTFTP6 service may be partly initialized,\r
or partly destroyed. If a resource is destroyed, it is marked as such in\r
case the destroy failed and is called again later.\r
\r
)\r
{\r
//\r
- // Make sure all children instances have been already destoryed.\r
+ // Make sure all children instances have been already destroyed.\r
//\r
ASSERT (Service->ChildrenNum == 0);\r
\r
Mtftp6Srv->Signature = MTFTP6_SERVICE_SIGNATURE;\r
Mtftp6Srv->Controller = Controller;\r
Mtftp6Srv->Image = Image;\r
- Mtftp6Srv->InDestory = FALSE;\r
+ Mtftp6Srv->InDestroy = FALSE;\r
Mtftp6Srv->ChildrenNum = 0;\r
\r
CopyMem (\r
}\r
\r
Mtftp6Ins->Signature = MTFTP6_INSTANCE_SIGNATURE;\r
- Mtftp6Ins->InDestory = FALSE;\r
+ Mtftp6Ins->InDestroy = FALSE;\r
Mtftp6Ins->Service = Service;\r
\r
CopyMem (\r
\r
Service = MTFTP6_SERVICE_FROM_THIS (ServiceBinding);\r
\r
- if (Service->InDestory) {\r
+ if (Service->InDestroy) {\r
return EFI_SUCCESS;\r
}\r
\r
\r
if (NumberOfChildren == 0) {\r
//\r
- // Destory the Mtftp6 service if there is no Mtftp6 child instance left.\r
+ // Destroy the Mtftp6 service if there is no Mtftp6 child instance left.\r
//\r
- Service->InDestory = TRUE;\r
+ Service->InDestroy = TRUE;\r
\r
gBS->UninstallProtocolInterface (\r
NicHandle,\r
\r
} else {\r
//\r
- // Destory the Mtftp6 child instance one by one.\r
+ // Destroy the Mtftp6 child instance one by one.\r
//\r
while (!IsListEmpty (&Service->Children)) {\r
Instance = NET_LIST_HEAD (&Service->Children, MTFTP6_INSTANCE, Link);\r
}\r
\r
//\r
- // Check whether the instance already in destory state.\r
+ // Check whether the instance already in Destroy state.\r
//\r
- if (Instance->InDestory) {\r
+ if (Instance->InDestroy) {\r
return EFI_SUCCESS;\r
}\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
- Instance->InDestory = TRUE;\r
+ Instance->InDestroy = TRUE;\r
\r
gBS->CloseProtocol (\r
Service->DummyUdpIo->UdpHandle,\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Instance->InDestory = FALSE;\r
+ Instance->InDestroy = FALSE;\r
gBS->RestoreTPL (OldTpl);\r
return Status;\r
}\r