]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/Dhcp6Dxe/Dhcp6Driver.h
NetworkPkg/Dhcp6Dxe: Fix various typos
[mirror_edk2.git] / NetworkPkg / Dhcp6Dxe / Dhcp6Driver.h
CommitLineData
a3bcde70
HT
1/** @file\r
2 Driver Binding functions and Service Binding functions\r
3 declaration for Dhcp6 Driver.\r
4\r
c2adf51f 5 Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
a3bcde70 6\r
ecf98fbc 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
a3bcde70
HT
8\r
9**/\r
10\r
11#ifndef __EFI_DHCP6_DRIVER_H__\r
12#define __EFI_DHCP6_DRIVER_H__\r
13\r
14#include <Protocol/ServiceBinding.h>\r
15\r
16extern EFI_COMPONENT_NAME_PROTOCOL gDhcp6ComponentName;\r
17extern EFI_COMPONENT_NAME2_PROTOCOL gDhcp6ComponentName2;\r
216f7970 18extern EFI_UNICODE_STRING_TABLE *gDhcp6ControllerNameTable;\r
a3bcde70
HT
19\r
20/**\r
21 Test to see if this driver supports ControllerHandle. This service\r
22 is called by the EFI boot service ConnectController(). In\r
23 order to make drivers as small as possible, there are a few calling\r
24 restrictions for this service. ConnectController() must\r
25 follow these calling restrictions. If any other agent wishes to call\r
26 Supported(), it must also follow these calling restrictions.\r
27\r
28 @param[in] This Protocol instance pointer.\r
29 @param[in] ControllerHandle Handle of device to test.\r
30 @param[in] RemainingDevicePath Optional parameter use to pick a specific child\r
31 device to start.\r
32\r
33 @retval EFI_SUCCESS This driver supports this device.\r
34 @retval EFI_ALREADY_STARTED This driver is already running on this device.\r
35 @retval other This driver does not support this device.\r
36\r
37**/\r
38EFI_STATUS\r
39EFIAPI\r
40Dhcp6DriverBindingSupported (\r
41 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
42 IN EFI_HANDLE ControllerHandle,\r
43 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL\r
44 );\r
45\r
46/**\r
47 Start this driver on ControllerHandle. This service is called by the\r
48 EFI boot service ConnectController(). In order to make\r
49 drivers as small as possible, there are a few calling restrictions for\r
50 this service. ConnectController() must follow these\r
51 calling restrictions. If any other agent wishes to call Start(), it\r
52 must also follow these calling restrictions.\r
53\r
54 @param[in] This Protocol instance pointer.\r
55 @param[in] ControllerHandle Handle of device to bind driver to.\r
56 @param[in] RemainingDevicePath Optional parameter use to pick a specific child\r
57 device to start.\r
58\r
59 @retval EFI_SUCCESS This driver is added to ControllerHandle.\r
60 @retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle.\r
61 @retval other This driver does not support this device.\r
62\r
63**/\r
64EFI_STATUS\r
65EFIAPI\r
66Dhcp6DriverBindingStart (\r
67 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
68 IN EFI_HANDLE ControllerHandle,\r
69 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL\r
70 );\r
71\r
72/**\r
73 Stop this driver on ControllerHandle. This service is called by the\r
74 EFI boot service DisconnectController(). In order to\r
75 make drivers as small as possible, there are a few calling\r
76 restrictions for this service. DisconnectController()\r
77 must follow these calling restrictions. If any other agent wishes\r
78 to call Stop() it must also follow these calling restrictions.\r
79\r
80 @param[in] This Protocol instance pointer.\r
81 @param[in] ControllerHandle Handle of device to stop driver on.\r
82 @param[in] NumberOfChildren Number of Handles in ChildHandleBuffer. If the number of\r
83 children is zero, stop the entire bus driver.\r
84 @param[in] ChildHandleBuffer List of Child Handles to Stop.\r
85\r
86 @retval EFI_SUCCESS This driver is removed ControllerHandle.\r
87 @retval other This driver was not removed from this device.\r
88\r
89**/\r
90EFI_STATUS\r
91EFIAPI\r
92Dhcp6DriverBindingStop (\r
93 IN EFI_DRIVER_BINDING_PROTOCOL *This,\r
94 IN EFI_HANDLE ControllerHandle,\r
95 IN UINTN NumberOfChildren,\r
96 IN EFI_HANDLE *ChildHandleBuffer OPTIONAL\r
97 );\r
98\r
99/**\r
100 Creates a child handle and installs a protocol.\r
101\r
102 The CreateChild() function installs a protocol on ChildHandle.\r
103 If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle.\r
104 If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r
105\r
106 @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
107 @param ChildHandle Pointer to the handle of the child to create. If it is NULL,\r
108 then a new handle is created. If it is a pointer to an existing UEFI handle,\r
109 then the protocol is added to the existing UEFI handle.\r
110\r
f97117ba 111 @retval EFI_SUCCESS The protocol was added to ChildHandle.\r
a3bcde70 112 @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
c2adf51f 113 @retval EFI_OUT_OF_RESOURCES There are not enough resources available to create\r
a3bcde70
HT
114 the child.\r
115 @retval other The child handle was not created.\r
116\r
117**/\r
118EFI_STATUS\r
119EFIAPI\r
120Dhcp6ServiceBindingCreateChild (\r
121 IN EFI_SERVICE_BINDING_PROTOCOL *This,\r
122 IN OUT EFI_HANDLE *ChildHandle\r
123 );\r
124\r
125/**\r
126 Destroys a child handle with a protocol installed on it.\r
127\r
128 The DestroyChild() function does the opposite of CreateChild(). It removes a protocol\r
129 that was installed by CreateChild() from ChildHandle. If the removed protocol is the\r
130 last protocol on ChildHandle, then ChildHandle is destroyed.\r
131\r
132 @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
133 @param ChildHandle Handle of the child to destroy.\r
134\r
f97117ba 135 @retval EFI_SUCCESS The protocol was removed from ChildHandle.\r
a3bcde70 136 @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed.\r
15ee13fc 137 @retval EFI_INVALID_PARAMETER Child handle is NULL.\r
a3bcde70
HT
138 @retval EFI_ACCESS_DENIED The protocol could not be removed from the ChildHandle\r
139 because its services are being used.\r
140 @retval other The child handle was not destroyed\r
141\r
142**/\r
143EFI_STATUS\r
144EFIAPI\r
145Dhcp6ServiceBindingDestroyChild (\r
146 IN EFI_SERVICE_BINDING_PROTOCOL *This,\r
147 IN EFI_HANDLE ChildHandle\r
148 );\r
149\r
150#endif\r