]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/DriverConfiguration.h
add a error macro to prevent this file from included for now #error "UEFI 2.1 HII...
[mirror_edk2.git] / MdePkg / Include / Protocol / DriverConfiguration.h
CommitLineData
d1f95000 1/** @file\r
2 EFI Driver Configuration Protocol\r
3\r
4 Copyright (c) 2006, Intel Corporation \r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
d1f95000 13**/\r
14\r
15#ifndef __EFI_DRIVER_CONFIGURATION_H__\r
16#define __EFI_DRIVER_CONFIGURATION_H__\r
17\r
f22a5f43 18#include <Protocol/DriverConfiguration2.h>\r
19\r
d1f95000 20//\r
21// Global ID for the Driver Configuration Protocol defined in EFI 1.10\r
22//\r
23#define EFI_DRIVER_CONFIGURATION_PROTOCOL_GUID \\r
24 { \\r
25 0x107a772b, 0xd5e1, 0x11d4, {0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } \\r
26 }\r
27\r
f22a5f43 28 \r
d1f95000 29typedef struct _EFI_DRIVER_CONFIGURATION_PROTOCOL EFI_DRIVER_CONFIGURATION_PROTOCOL;\r
30\r
d1f95000 31/**\r
32 Allows the user to set controller specific options for a controller that a \r
33 driver is currently managing.\r
34\r
35 @param This A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
36 @param ControllerHandle The handle of the controller to set options on.\r
37 @param ChildHandle The handle of the child controller to set options on. This\r
38 is an optional parameter that may be NULL. It will be NULL\r
39 for device drivers, and for a bus drivers that wish to set\r
40 options for the bus controller. It will not be NULL for a\r
41 bus driver that wishes to set options for one of its child\r
42 controllers.\r
43 @param Language A pointer to a three character ISO 639-2 language identifier.\r
44 This is the language of the user interface that should be\r
45 presented to the user, and it must match one of the languages\r
46 specified in SupportedLanguages. The number of languages\r
47 supported by a driver is up to the driver writer.\r
48 @param ActionRequired A pointer to the action that the calling agent is required\r
49 to perform when this function returns. See "Related\r
50 Definitions" for a list of the actions that the calling\r
51 agent is required to perform prior to accessing\r
52 ControllerHandle again.\r
53\r
54 @retval EFI_SUCCESS The driver specified by This successfully set the\r
55 configuration options for the controller specified\r
56 by ControllerHandle..\r
57 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
58 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
59 @retval EFI_INVALID_PARAMETER ActionRequired is NULL.\r
60 @retval EFI_UNSUPPORTED The driver specified by This does not support setting\r
61 configuration options for the controller specified by\r
62 ControllerHandle and ChildHandle.\r
63 @retval EFI_UNSUPPORTED The driver specified by This does not support the\r
64 language specified by Language.\r
65 @retval EFI_DEVICE_ERROR A device error occurred while attempt to set the\r
66 configuration options for the controller specified\r
67 by ControllerHandle and ChildHandle.\r
68 @retval EFI_OUT_RESOURCES There are not enough resources available to set the\r
69 configuration options for the controller specified\r
70 by ControllerHandle and ChildHandle.\r
71\r
72**/\r
73typedef\r
74EFI_STATUS\r
75(EFIAPI *EFI_DRIVER_CONFIGURATION_SET_OPTIONS) (\r
76 IN EFI_DRIVER_CONFIGURATION_PROTOCOL *This,\r
77 IN EFI_HANDLE ControllerHandle,\r
78 IN EFI_HANDLE ChildHandle OPTIONAL,\r
79 IN CHAR8 *Language,\r
80 OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED *ActionRequired\r
81 );\r
82\r
83/**\r
84 Tests to see if a controller's current configuration options are valid.\r
85\r
86 @param This A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
87 @param ControllerHandle The handle of the controller to test if it's current\r
88 configuration options are valid.\r
89 @param ChildHandle The handle of the child controller to test if it's current\r
90 configuration options are valid. This is an optional\r
91 parameter that may be NULL. It will be NULL for device\r
92 drivers. It will also be NULL for a bus drivers that wish\r
93 to test the configuration options for the bus controller.\r
94 It will not be NULL for a bus driver that wishes to test\r
95 configuration options for one of its child controllers.\r
96\r
97 @retval EFI_SUCCESS The controller specified by ControllerHandle and\r
98 ChildHandle that is being managed by the driver\r
99 specified by This has a valid set of configuration\r
100 options.\r
101 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
102 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
103 @retval EFI_UNSUPPORTED The driver specified by This is not currently\r
104 managing the controller specified by ControllerHandle\r
105 and ChildHandle.\r
106 @retval EFI_DEVICE_ERROR The controller specified by ControllerHandle and\r
107 ChildHandle that is being managed by the driver\r
108 specified by This has an invalid set of configuration\r
109 options.\r
110\r
111**/\r
112typedef\r
113EFI_STATUS\r
114(EFIAPI *EFI_DRIVER_CONFIGURATION_OPTIONS_VALID) (\r
115 IN EFI_DRIVER_CONFIGURATION_PROTOCOL *This,\r
116 IN EFI_HANDLE ControllerHandle,\r
117 IN EFI_HANDLE ChildHandle OPTIONAL\r
118 );\r
119\r
120/**\r
121 Forces a driver to set the default configuration options for a controller.\r
122\r
123 @param This A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.\r
124 @param ControllerHandle The handle of the controller to force default configuration options on.\r
125 @param ChildHandle The handle of the child controller to force default configuration options on This is an optional parameter that may be NULL. It will be NULL for device drivers. It will also be NULL for a bus drivers that wish to force default configuration options for the bus controller. It will not be NULL for a bus driver that wishes to force default configuration options for one of its child controllers.\r
126 @param DefaultType The type of default configuration options to force on the controller specified by ControllerHandle and ChildHandle. See Table 9-1 for legal values. A DefaultType of 0x00000000 must be supported by this protocol.\r
127 @param ActionRequired A pointer to the action that the calling agent is required to perform when this function returns. See "Related Definitions" in Section 9.1for a list of the actions that the calling agent is required to perform prior to accessing ControllerHandle again.\r
128\r
129 @retval EFI_SUCCESS The driver specified by This successfully forced the default configuration options on the controller specified by ControllerHandle and ChildHandle.\r
130 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
131 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
132 @retval EFI_INVALID_PARAMETER ActionRequired is NULL.\r
133 @retval EFI_UNSUPPORTED The driver specified by This does not support forcing the default configuration options on the controller specified by ControllerHandle and ChildHandle.\r
134 @retval EFI_UNSUPPORTED The driver specified by This does not support the configuration type specified by DefaultType.\r
135 @retval EFI_DEVICE_ERROR A device error occurred while attempt to force the default configuration options on the controller specified by ControllerHandle and ChildHandle.\r
136 @retval EFI_OUT_RESOURCES There are not enough resources available to force the default configuration options on the controller specified by ControllerHandle and ChildHandle.\r
137\r
138**/\r
139typedef\r
140EFI_STATUS\r
141(EFIAPI *EFI_DRIVER_CONFIGURATION_FORCE_DEFAULTS) (\r
142 IN EFI_DRIVER_CONFIGURATION_PROTOCOL *This,\r
143 IN EFI_HANDLE ControllerHandle,\r
144 IN EFI_HANDLE ChildHandle OPTIONAL,\r
145 IN UINT32 DefaultType,\r
146 OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED *ActionRequired\r
147 );\r
148\r
149\r
150//\r
151//\r
152struct _EFI_DRIVER_CONFIGURATION_PROTOCOL {\r
153 EFI_DRIVER_CONFIGURATION_SET_OPTIONS SetOptions;\r
154 EFI_DRIVER_CONFIGURATION_OPTIONS_VALID OptionsValid;\r
155 EFI_DRIVER_CONFIGURATION_FORCE_DEFAULTS ForceDefaults;\r
156 CHAR8 *SupportedLanguages;\r
157};\r
158\r
159/**\r
160 Interface structure for the Driver Configuration Protocol.\r
161\r
162 @par Protocol Description: \r
163 Used to set configuration options for a controller that an EFI Driver is managing.\r
164\r
165 @param SetOptions Allows the use to set drivers specific configuration \r
166 options for a controller that the driver is currently managing.\r
167 \r
168 @param OptionsValid Tests to see if a controller's current configuration \r
169 options are valid. \r
170 \r
171 @param ForceDefaults Forces a driver to set the default configuration options \r
172 for a controller.\r
173\r
174 @param SupportedLanguages A Null-terminated ASCII string that contains one or more \r
175 ISO 639-2 language codes. This is the list of language \r
176 codes that this protocol supports.\r
177\r
178**/\r
179\r
180extern EFI_GUID gEfiDriverConfigurationProtocolGuid;\r
d1f95000 181\r
182#endif\r