/** @file\r
The driver binding and service binding protocol for IP4 driver.\r
\r
-Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>\r
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
Clean up a IP4 service binding instance. It will release all\r
the resource allocated by the instance. The instance may be\r
partly initialized, or partly destroyed. If a resource is\r
- destroyed, it is marked as that in case the destory failed and\r
+ destroyed, it is marked as that in case the destroy failed and\r
being called again later.\r
\r
@param[in] IpSb The IP4 serviceing binding instance to clean up\r
IpSb->ServiceBinding.CreateChild = Ip4ServiceBindingCreateChild;\r
IpSb->ServiceBinding.DestroyChild = Ip4ServiceBindingDestroyChild;\r
IpSb->State = IP4_SERVICE_UNSTARTED;\r
- IpSb->InDestory = FALSE;\r
+ IpSb->InDestroy = FALSE;\r
\r
IpSb->NumChildren = 0;\r
InitializeListHead (&IpSb->Children);\r
Clean up a IP4 service binding instance. It will release all\r
the resource allocated by the instance. The instance may be\r
partly initialized, or partly destroyed. If a resource is\r
- destroyed, it is marked as that in case the destory failed and\r
+ destroyed, it is marked as that in case the destroy failed and\r
being called again later.\r
\r
@param[in] IpSb The IP4 serviceing binding instance to clean up\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
- if (IpSb->Ip4Config != NULL && (IpSb->State != IP4_SERVICE_DESTORY)) {\r
+ if (IpSb->Ip4Config != NULL && (IpSb->State != IP4_SERVICE_DESTROY)) {\r
\r
IpSb->Ip4Config->Stop (IpSb->Ip4Config);\r
\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
- if (IpSb->InDestory) {\r
+ if (IpSb->InDestroy) {\r
gBS->RestoreTPL (OldTpl);\r
return EFI_SUCCESS;\r
}\r
goto ON_ERROR;\r
}\r
\r
- IpSb->InDestory = TRUE;\r
+ IpSb->InDestroy = TRUE;\r
\r
State = IpSb->State;\r
- IpSb->State = IP4_SERVICE_DESTORY;\r
+ IpSb->State = IP4_SERVICE_DESTROY;\r
\r
//\r
// Clear the variable data.\r
\r
FreePool (IpSb);\r
} else if (NumberOfChildren == 0) {\r
- IpSb->InDestory = TRUE;\r
+ IpSb->InDestroy = TRUE;\r
\r
State = IpSb->State;\r
- IpSb->State = IP4_SERVICE_DESTORY;\r
+ IpSb->State = IP4_SERVICE_DESTROY;\r
\r
//\r
// Clear the variable data.\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
//\r
- // A child can be destoried more than once. For example,\r
- // Ip4DriverBindingStop will destory all of its children.\r
- // when UDP driver is being stopped, it will destory all\r
+ // A child can be destroyed more than once. For example,\r
+ // Ip4DriverBindingStop will destroy all of its children.\r
+ // when UDP driver is being stopped, it will destroy all\r
// the IP child it opens.\r
//\r
- if (IpInstance->State == IP4_STATE_DESTORY) {\r
+ if (IpInstance->State == IP4_STATE_DESTROY) {\r
gBS->RestoreTPL (OldTpl);\r
return EFI_SUCCESS;\r
}\r
\r
State = IpInstance->State;\r
- IpInstance->State = IP4_STATE_DESTORY;\r
+ IpInstance->State = IP4_STATE_DESTROY;\r
\r
//\r
// Close the Managed Network protocol.\r