]>
Commit | Line | Data |
---|---|---|
a3bcde70 HT |
1 | /** @file\r |
2 | Driver Binding functions and Service Binding functions\r | |
3 | declaration for Mtftp6 Driver.\r | |
4 | \r | |
5 | Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r | |
6 | \r | |
7 | This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php.\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __EFI_MTFTP6_DRIVER_H__\r | |
18 | #define __EFI_MTFTP6_DRIVER_H__\r | |
19 | \r | |
20 | #include <Protocol/ServiceBinding.h>\r | |
21 | \r | |
22 | extern EFI_COMPONENT_NAME_PROTOCOL gMtftp6ComponentName;\r | |
23 | extern EFI_COMPONENT_NAME2_PROTOCOL gMtftp6ComponentName2;\r | |
24 | \r | |
25 | /**\r | |
26 | Test to see if this driver supports ControllerHandle. This service\r | |
27 | is called by the EFI boot service ConnectController(). In\r | |
28 | order to make drivers as small as possible, there are a few calling\r | |
29 | restrictions for this service. ConnectController() must\r | |
30 | follow these calling restrictions. If any other agent wishes to call\r | |
31 | Supported(), it must also follow these calling restrictions.\r | |
32 | \r | |
33 | @param[in] This Protocol instance pointer.\r | |
34 | @param[in] ControllerHandle Handle of device to test.\r | |
35 | @param[in] RemainingDevicePath Optional parameter use to pick a specific child\r | |
36 | device to start.\r | |
37 | \r | |
38 | @retval EFI_SUCCESS This driver supports this device.\r | |
39 | @retval Others This driver does not support this device.\r | |
40 | \r | |
41 | **/\r | |
42 | EFI_STATUS\r | |
43 | EFIAPI\r | |
44 | Mtftp6DriverBindingSupported (\r | |
45 | IN EFI_DRIVER_BINDING_PROTOCOL *This,\r | |
46 | IN EFI_HANDLE Controller,\r | |
47 | IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r | |
48 | );\r | |
49 | \r | |
50 | /**\r | |
51 | Start this driver on ControllerHandle. This service is called by the\r | |
52 | EFI boot service ConnectController(). In order to make\r | |
53 | drivers as small as possible, there are calling restrictions for\r | |
54 | this service. ConnectController() must follow these\r | |
55 | calling restrictions. If any other agent wishes to call Start() it\r | |
56 | must also follow these calling restrictions.\r | |
57 | \r | |
58 | @param[in] This Protocol instance pointer.\r | |
59 | @param[in] ControllerHandle Handle of device to bind driver to.\r | |
60 | @param[in] RemainingDevicePath Optional parameter use to pick a specific child\r | |
61 | device to start.\r | |
62 | \r | |
63 | @retval EFI_SUCCESS This driver is added to ControllerHandle.\r | |
64 | @retval EFI_ALREADY_STARTED This driver is already running on ControllerHandle.\r | |
65 | @retval Others This driver does not support this device.\r | |
66 | \r | |
67 | **/\r | |
68 | EFI_STATUS\r | |
69 | EFIAPI\r | |
70 | Mtftp6DriverBindingStart (\r | |
71 | IN EFI_DRIVER_BINDING_PROTOCOL *This,\r | |
72 | IN EFI_HANDLE Controller,\r | |
73 | IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath\r | |
74 | );\r | |
75 | \r | |
76 | /**\r | |
77 | Stop this driver on ControllerHandle. This service is called by the\r | |
78 | EFI boot service DisconnectController(). In order to\r | |
79 | make drivers as small as possible, there are calling\r | |
80 | restrictions for this service. DisconnectController()\r | |
81 | must follow these calling restrictions. If any other agent wishes\r | |
82 | to call Stop(), it must also follow these calling restrictions.\r | |
83 | \r | |
84 | @param[in] This Protocol instance pointer.\r | |
85 | @param[in] ControllerHandle Handle of device to stop driver on\r | |
86 | @param[in] NumberOfChildren Number of Handles in ChildHandleBuffer. If number of\r | |
87 | children is zero, stop the entire bus driver.\r | |
88 | @param[in] ChildHandleBuffer List of Child Handles to Stop.\r | |
89 | \r | |
90 | @retval EFI_SUCCESS This driver is removed ControllerHandle.\r | |
91 | @retval EFI_DEVICE_ERROR An unexpected error.\r | |
92 | @retval Others This driver was not removed from this device.\r | |
93 | \r | |
94 | **/\r | |
95 | EFI_STATUS\r | |
96 | EFIAPI\r | |
97 | Mtftp6DriverBindingStop (\r | |
98 | IN EFI_DRIVER_BINDING_PROTOCOL *This,\r | |
99 | IN EFI_HANDLE Controller,\r | |
100 | IN UINTN NumberOfChildren,\r | |
101 | IN EFI_HANDLE *ChildHandleBuffer\r | |
102 | );\r | |
103 | \r | |
104 | /**\r | |
105 | Creates a child handle and installs a protocol.\r | |
106 | \r | |
107 | The CreateChild() function installs a protocol on ChildHandle.\r | |
108 | If ChildHandle is a pointer to NULL, then a new handle is created and returned in ChildHandle.\r | |
109 | If ChildHandle is not a pointer to NULL, then the protocol installs on the existing ChildHandle.\r | |
110 | \r | |
111 | @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r | |
112 | @param[in, out] ChildHandle Pointer to the handle of the child to create. If it is NULL,\r | |
113 | then a new handle is created. If it is a pointer to an existing\r | |
114 | UEFI handle, then the protocol is added to the existing UEFI handle.\r | |
115 | \r | |
116 | @retval EFI_SUCCES The protocol was added to ChildHandle.\r | |
117 | @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r | |
118 | @retval Others The child handle was not created.\r | |
119 | \r | |
120 | **/\r | |
121 | EFI_STATUS\r | |
122 | EFIAPI\r | |
123 | Mtftp6ServiceBindingCreateChild (\r | |
124 | IN EFI_SERVICE_BINDING_PROTOCOL *This,\r | |
125 | IN OUT EFI_HANDLE *ChildHandle\r | |
126 | );\r | |
127 | \r | |
128 | /**\r | |
129 | Destroys a child handle with a protocol installed on it.\r | |
130 | \r | |
131 | The DestroyChild() function does the opposite of CreateChild(). It removes a protocol\r | |
132 | that was installed by CreateChild() from ChildHandle. If the removed protocol is the\r | |
133 | last protocol on ChildHandle, then ChildHandle is destroyed.\r | |
134 | \r | |
135 | @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r | |
136 | @param[in] ChildHandle Handle of the child to destroy.\r | |
137 | \r | |
138 | @retval EFI_SUCCES The protocol was removed from ChildHandle.\r | |
139 | @retval EFI_UNSUPPORTED ChildHandle does not support the protocol that is being removed.\r | |
140 | @retval EFI_INVALID_PARAMETER Child handle is not a valid UEFI Handle.\r | |
141 | @retval Others The child handle was not destroyed\r | |
142 | \r | |
143 | **/\r | |
144 | EFI_STATUS\r | |
145 | EFIAPI\r | |
146 | Mtftp6ServiceBindingDestroyChild (\r | |
147 | IN EFI_SERVICE_BINDING_PROTOCOL *This,\r | |
148 | IN EFI_HANDLE ChildHandle\r | |
149 | );\r | |
150 | \r | |
151 | #endif\r |