]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Include/Protocol/DriverConfiguration.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / Protocol / DriverConfiguration.h
... / ...
CommitLineData
1/** @file\r
2 EFI Driver Configuration Protocol\r
3\r
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#ifndef __EFI_DRIVER_CONFIGURATION_H__\r
10#define __EFI_DRIVER_CONFIGURATION_H__\r
11\r
12#include <Protocol/DriverConfiguration2.h>\r
13\r
14///\r
15/// Global ID for the Driver Configuration Protocol defined in EFI 1.1\r
16///\r
17#define EFI_DRIVER_CONFIGURATION_PROTOCOL_GUID \\r
18 { \\r
19 0x107a772b, 0xd5e1, 0x11d4, {0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } \\r
20 }\r
21\r
22typedef struct _EFI_DRIVER_CONFIGURATION_PROTOCOL EFI_DRIVER_CONFIGURATION_PROTOCOL;\r
23\r
24/**\r
25 Allows the user to set controller specific options for a controller that a\r
26 driver is currently managing.\r
27\r
28 @param This A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
29 @param ControllerHandle The handle of the controller to set options on.\r
30 @param ChildHandle The handle of the child controller to set options on. This\r
31 is an optional parameter that may be NULL. It will be NULL\r
32 for device drivers, and for bus drivers that wish to set\r
33 options for the bus controller. It will not be NULL for a\r
34 bus driver that wishes to set options for one of its child\r
35 controllers.\r
36 @param Language A pointer to a three character ISO 639-2 language identifier.\r
37 This is the language of the user interface that should be\r
38 presented to the user, and it must match one of the languages\r
39 specified in SupportedLanguages. The number of languages\r
40 supported by a driver is up to the driver writer.\r
41 @param ActionRequired A pointer to the action that the calling agent is required\r
42 to perform when this function returns. See "Related\r
43 Definitions" for a list of the actions that the calling\r
44 agent is required to perform prior to accessing\r
45 ControllerHandle again.\r
46\r
47 @retval EFI_SUCCESS The driver specified by This successfully set the\r
48 configuration options for the controller specified\r
49 by ControllerHandle..\r
50 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
51 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
52 @retval EFI_INVALID_PARAMETER ActionRequired is NULL.\r
53 @retval EFI_UNSUPPORTED The driver specified by This does not support setting\r
54 configuration options for the controller specified by\r
55 ControllerHandle and ChildHandle.\r
56 @retval EFI_UNSUPPORTED The driver specified by This does not support the\r
57 language specified by Language.\r
58 @retval EFI_DEVICE_ERROR A device error occurred while attempt to set the\r
59 configuration options for the controller specified\r
60 by ControllerHandle and ChildHandle.\r
61 @retval EFI_OUT_RESOURCES There are not enough resources available to set the\r
62 configuration options for the controller specified\r
63 by ControllerHandle and ChildHandle.\r
64\r
65**/\r
66typedef\r
67EFI_STATUS\r
68(EFIAPI *EFI_DRIVER_CONFIGURATION_SET_OPTIONS)(\r
69 IN EFI_DRIVER_CONFIGURATION_PROTOCOL *This,\r
70 IN EFI_HANDLE ControllerHandle,\r
71 IN EFI_HANDLE ChildHandle OPTIONAL,\r
72 IN CHAR8 *Language,\r
73 OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED *ActionRequired\r
74 );\r
75\r
76/**\r
77 Tests to see if a controller's current configuration options are valid.\r
78\r
79 @param This A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
80 @param ControllerHandle The handle of the controller to test if it's current\r
81 configuration options are valid.\r
82 @param ChildHandle The handle of the child controller to test if it's current\r
83 configuration options are valid. This is an optional\r
84 parameter that may be NULL. It will be NULL for device\r
85 drivers. It will also be NULL for bus drivers that wish\r
86 to test the configuration options for the bus controller.\r
87 It will not be NULL for a bus driver that wishes to test\r
88 configuration options for one of its child controllers.\r
89\r
90 @retval EFI_SUCCESS The controller specified by ControllerHandle and\r
91 ChildHandle that is being managed by the driver\r
92 specified by This has a valid set of configuration\r
93 options.\r
94 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
95 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
96 @retval EFI_UNSUPPORTED The driver specified by This is not currently\r
97 managing the controller specified by ControllerHandle\r
98 and ChildHandle.\r
99 @retval EFI_DEVICE_ERROR The controller specified by ControllerHandle and\r
100 ChildHandle that is being managed by the driver\r
101 specified by This has an invalid set of configuration\r
102 options.\r
103\r
104**/\r
105typedef\r
106EFI_STATUS\r
107(EFIAPI *EFI_DRIVER_CONFIGURATION_OPTIONS_VALID)(\r
108 IN EFI_DRIVER_CONFIGURATION_PROTOCOL *This,\r
109 IN EFI_HANDLE ControllerHandle,\r
110 IN EFI_HANDLE ChildHandle OPTIONAL\r
111 );\r
112\r
113/**\r
114 Forces a driver to set the default configuration options for a controller.\r
115\r
116 @param This A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.\r
117 @param ControllerHandle The handle of the controller to force default configuration options on.\r
118 @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 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
119 @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
120 @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.1 for a list of the actions that the calling agent is required to perform prior to accessing ControllerHandle again.\r
121\r
122 @retval EFI_SUCCESS The driver specified by This successfully forced the default configuration options on the controller specified by ControllerHandle and ChildHandle.\r
123 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
124 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
125 @retval EFI_INVALID_PARAMETER ActionRequired is NULL.\r
126 @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
127 @retval EFI_UNSUPPORTED The driver specified by This does not support the configuration type specified by DefaultType.\r
128 @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
129 @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
130\r
131**/\r
132typedef\r
133EFI_STATUS\r
134(EFIAPI *EFI_DRIVER_CONFIGURATION_FORCE_DEFAULTS)(\r
135 IN EFI_DRIVER_CONFIGURATION_PROTOCOL *This,\r
136 IN EFI_HANDLE ControllerHandle,\r
137 IN EFI_HANDLE ChildHandle OPTIONAL,\r
138 IN UINT32 DefaultType,\r
139 OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED *ActionRequired\r
140 );\r
141\r
142///\r
143/// Used to set configuration options for a controller that an EFI Driver is managing.\r
144///\r
145struct _EFI_DRIVER_CONFIGURATION_PROTOCOL {\r
146 EFI_DRIVER_CONFIGURATION_SET_OPTIONS SetOptions;\r
147 EFI_DRIVER_CONFIGURATION_OPTIONS_VALID OptionsValid;\r
148 EFI_DRIVER_CONFIGURATION_FORCE_DEFAULTS ForceDefaults;\r
149 ///\r
150 /// A Null-terminated ASCII string that contains one or more\r
151 /// ISO 639-2 language codes. This is the list of language\r
152 /// codes that this protocol supports.\r
153 ///\r
154 CHAR8 *SupportedLanguages;\r
155};\r
156\r
157extern EFI_GUID gEfiDriverConfigurationProtocolGuid;\r
158\r
159#endif\r