/** @file\r
The driver binding and service binding protocol for IP6 driver.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2016, 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
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\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
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#ifndef __EFI_IP6_DRIVER_H__\r
#define __EFI_IP6_DRIVER_H__\r
\r
-extern EFI_DRIVER_BINDING_PROTOCOL gIp6DriverBinding;\r
-extern EFI_COMPONENT_NAME_PROTOCOL gIp6ComponentName;\r
-extern EFI_COMPONENT_NAME2_PROTOCOL gIp6ComponentName2;\r
+extern EFI_DRIVER_BINDING_PROTOCOL gIp6DriverBinding;\r
+extern EFI_COMPONENT_NAME_PROTOCOL gIp6ComponentName;\r
+extern EFI_COMPONENT_NAME2_PROTOCOL gIp6ComponentName2;\r
+extern EFI_UNICODE_STRING_TABLE *gIp6ControllerNameTable;\r
+\r
+typedef struct {\r
+ EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;\r
+ UINTN NumberOfChildren;\r
+ EFI_HANDLE *ChildHandleBuffer;\r
+} IP6_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT;\r
\r
/**\r
Clean up an IP6 service binding instance. It releases 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 IP6 service binding instance to clean up.\r
**/\r
EFI_STATUS\r
Ip6CleanService (\r
- IN IP6_SERVICE *IpSb\r
+ IN IP6_SERVICE *IpSb\r
);\r
\r
//\r
EFI_STATUS\r
EFIAPI\r
Ip6DriverEntryPoint (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN EFI_SYSTEM_TABLE *SystemTable\r
);\r
\r
//\r
-// Function prototypes for the Drivr Binding Protocol\r
+// Function prototypes for the Driver Binding Protocol\r
//\r
\r
/**\r
@param[in] RemainingDevicePath Optional parameter used to pick a specific child\r
device to start.\r
\r
- @retval EFI_SUCCES This driver is added to ControllerHandle.\r
+ @retval EFI_SUCCESS This driver is added to ControllerHandle.\r
@retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle.\r
@retval other This driver does not support this device.\r
\r
);\r
\r
//\r
-// Function ptototypes for the ServiceBinding Prococol\r
+// Function prototypes for the ServiceBinding Protocol\r
//\r
\r
/**\r
is not NULL, then the I/O services are added to\r
the existing child handle.\r
\r
- @retval EFI_SUCCES The child handle was created with the I/O services.\r
- @retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create\r
+ @retval EFI_SUCCESS The child handle was created with the I/O services.\r
+ @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create\r
the child.\r
@retval other The child handle was not created.\r
\r
@param[in] This Protocol instance pointer.\r
@param[in] ChildHandle Handle of the child to destroy.\r
\r
- @retval EFI_SUCCES The I/O services were removed from the child\r
+ @retval EFI_SUCCESS The I/O services were removed from the child\r
handle.\r
@retval EFI_UNSUPPORTED The child handle does not support the I/O services\r
that are being removed.\r