2 Driver Binding functions and Service Binding functions
3 declaration for Dhcp6 Driver.
5 Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __EFI_DHCP6_DRIVER_H__
12 #define __EFI_DHCP6_DRIVER_H__
14 #include <Protocol/ServiceBinding.h>
16 extern EFI_COMPONENT_NAME_PROTOCOL gDhcp6ComponentName
;
17 extern EFI_COMPONENT_NAME2_PROTOCOL gDhcp6ComponentName2
;
18 extern EFI_UNICODE_STRING_TABLE
*gDhcp6ControllerNameTable
;
21 Test to see if this driver supports ControllerHandle. This service
22 is called by the EFI boot service ConnectController(). In
23 order to make drivers as small as possible, there are a few calling
24 restrictions for this service. ConnectController() must
25 follow these calling restrictions. If any other agent wishes to call
26 Supported(), it must also follow these calling restrictions.
28 @param[in] This Protocol instance pointer.
29 @param[in] ControllerHandle Handle of device to test.
30 @param[in] RemainingDevicePath Optional parameter use to pick a specific child
33 @retval EFI_SUCCESS This driver supports this device.
34 @retval EFI_ALREADY_STARTED This driver is already running on this device.
35 @retval other This driver does not support this device.
40 Dhcp6DriverBindingSupported (
41 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
42 IN EFI_HANDLE ControllerHandle
,
43 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath OPTIONAL
47 Start this driver on ControllerHandle. This service is called by the
48 EFI boot service ConnectController(). In order to make
49 drivers as small as possible, there are a few calling restrictions for
50 this service. ConnectController() must follow these
51 calling restrictions. If any other agent wishes to call Start(), it
52 must also follow these calling restrictions.
54 @param[in] This Protocol instance pointer.
55 @param[in] ControllerHandle Handle of device to bind driver to.
56 @param[in] RemainingDevicePath Optional parameter use to pick a specific child
59 @retval EFI_SUCCESS This driver is added to ControllerHandle.
60 @retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle.
61 @retval other This driver does not support this device.
66 Dhcp6DriverBindingStart (
67 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
68 IN EFI_HANDLE ControllerHandle
,
69 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath OPTIONAL
73 Stop this driver on ControllerHandle. This service is called by the
74 EFI boot service DisconnectController(). In order to
75 make drivers as small as possible, there are a few calling
76 restrictions for this service. DisconnectController()
77 must follow these calling restrictions. If any other agent wishes
78 to call Stop() it must also follow these calling restrictions.
80 @param[in] This Protocol instance pointer.
81 @param[in] ControllerHandle Handle of device to stop driver on.
82 @param[in] NumberOfChildren Number of Handles in ChildHandleBuffer. If the number of
83 children is zero, stop the entire bus driver.
84 @param[in] ChildHandleBuffer List of Child Handles to Stop.
86 @retval EFI_SUCCESS This driver is removed ControllerHandle.
87 @retval other This driver was not removed from this device.
92 Dhcp6DriverBindingStop (
93 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
94 IN EFI_HANDLE ControllerHandle
,
95 IN UINTN NumberOfChildren
,
96 IN EFI_HANDLE
*ChildHandleBuffer OPTIONAL
100 Creates a child handle and installs a protocol.
102 The CreateChild() function installs a protocol on ChildHandle.
103 If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle.
104 If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.
106 @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
107 @param ChildHandle Pointer to the handle of the child to create. If it is NULL,
108 then a new handle is created. If it is a pointer to an existing UEFI handle,
109 then the protocol is added to the existing UEFI handle.
111 @retval EFI_SUCCESS The protocol was added to ChildHandle.
112 @retval EFI_INVALID_PARAMETER ChildHandle is NULL.
113 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
115 @retval other The child handle was not created.
120 Dhcp6ServiceBindingCreateChild (
121 IN EFI_SERVICE_BINDING_PROTOCOL
*This
,
122 IN OUT EFI_HANDLE
*ChildHandle
126 Destroys a child handle with a protocol installed on it.
128 The DestroyChild() function does the opposite of CreateChild(). It removes a protocol
129 that was installed by CreateChild() from ChildHandle. If the removed protocol is the
130 last protocol on ChildHandle, then ChildHandle is destroyed.
132 @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
133 @param ChildHandle Handle of the child to destroy.
135 @retval EFI_SUCCESS The protocol was removed from ChildHandle.
136 @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed.
137 @retval EFI_INVALID_PARAMETER Child handle is NULL.
138 @retval EFI_ACCESS_DENIED The protocol could not be removed from the ChildHandle
139 because its services are being used.
140 @retval other The child handle was not destroyed
145 Dhcp6ServiceBindingDestroyChild (
146 IN EFI_SERVICE_BINDING_PROTOCOL
*This
,
147 IN EFI_HANDLE ChildHandle