]>
Commit | Line | Data |
---|---|---|
4ba49616 | 1 | /** @file\r |
2 | Main file for NULL named library for Profile1 shell command functions.\r | |
3 | \r | |
28165f24 | 4 | Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>\r |
4ba49616 | 5 | 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 | |
13 | **/\r | |
14 | \r | |
a1d4bfcc | 15 | #ifndef _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_\r |
361a8267 | 16 | #define _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_\r |
17 | \r | |
4ba49616 | 18 | #include <Uefi.h>\r |
4ba49616 | 19 | \r |
20 | #include <Guid/GlobalVariable.h>\r | |
21 | #include <Guid/ConsoleInDevice.h>\r | |
22 | #include <Guid/ConsoleOutDevice.h>\r | |
bca163ff | 23 | #include <Guid/ShellLibHiiGuid.h>\r |
4ba49616 | 24 | \r |
0ff81081 QS |
25 | #include <IndustryStandard/Pci.h>\r |
26 | \r | |
416d48f7 HL |
27 | #include <Pi/PiFirmwareVolume.h>\r |
28 | #include <Pi/PiFirmwareFile.h>\r | |
29 | #include <Protocol/FirmwareVolume2.h>\r | |
30 | \r | |
28165f24 RN |
31 | #include <Protocol/Shell.h>\r |
32 | #include <Protocol/ShellParameters.h>\r | |
4ba49616 | 33 | #include <Protocol/DevicePath.h>\r |
34 | #include <Protocol/LoadedImage.h>\r | |
35 | #include <Protocol/UnicodeCollation.h>\r | |
4ba49616 | 36 | #include <Protocol/DriverDiagnostics2.h>\r |
37 | #include <Protocol/DriverDiagnostics.h>\r | |
38 | #include <Protocol/PlatformDriverOverride.h>\r | |
39 | #include <Protocol/BusSpecificDriverOverride.h>\r | |
40 | #include <Protocol/PlatformToDriverConfiguration.h>\r | |
41 | #include <Protocol/DriverSupportedEfiVersion.h>\r | |
42 | #include <Protocol/DriverFamilyOverride.h>\r | |
43 | #include <Protocol/DriverHealth.h>\r | |
0ff81081 QS |
44 | #include <Protocol/PciIo.h>\r |
45 | #include <Protocol/PciRootBridgeIo.h>\r | |
4ba49616 | 46 | \r |
47 | #include <Library/BaseLib.h>\r | |
48 | #include <Library/BaseMemoryLib.h>\r | |
49 | #include <Library/DebugLib.h>\r | |
50 | #include <Library/MemoryAllocationLib.h>\r | |
51 | #include <Library/PcdLib.h>\r | |
52 | #include <Library/ShellCommandLib.h>\r | |
53 | #include <Library/ShellLib.h>\r | |
54 | #include <Library/SortLib.h>\r | |
55 | #include <Library/UefiLib.h>\r | |
56 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
57 | #include <Library/UefiBootServicesTableLib.h>\r | |
58 | #include <Library/HiiLib.h>\r | |
59 | #include <Library/FileHandleLib.h>\r | |
60 | #include <Library/DevicePathLib.h>\r | |
61 | #include <Library/PrintLib.h>\r | |
62 | #include <Library/HandleParsingLib.h>\r | |
63 | #include <Library/PeCoffGetEntryPointLib.h>\r | |
a71003f2 | 64 | #include <Library/HandleParsingLib.h>\r |
4ba49616 | 65 | \r |
66 | \r | |
67 | extern EFI_HANDLE gShellDriver1HiiHandle;\r | |
6878e7a7 | 68 | extern BOOLEAN gInReconnect;\r |
4ba49616 | 69 | \r |
70 | /**\r | |
71 | Function for 'connect' command.\r | |
72 | \r | |
73 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
74 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
75 | **/\r | |
76 | SHELL_STATUS\r | |
77 | EFIAPI\r | |
78 | ShellCommandRunConnect (\r | |
79 | IN EFI_HANDLE ImageHandle,\r | |
80 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
81 | );\r | |
82 | \r | |
83 | /**\r | |
84 | Function for 'devices' command.\r | |
85 | \r | |
86 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
87 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
88 | **/\r | |
89 | SHELL_STATUS\r | |
90 | EFIAPI\r | |
91 | ShellCommandRunDevices (\r | |
92 | IN EFI_HANDLE ImageHandle,\r | |
93 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
94 | );\r | |
95 | \r | |
96 | /**\r | |
97 | Function for 'openinfo' command.\r | |
98 | \r | |
99 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
100 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
101 | **/\r | |
102 | SHELL_STATUS\r | |
103 | EFIAPI\r | |
104 | ShellCommandRunOpenInfo (\r | |
105 | IN EFI_HANDLE ImageHandle,\r | |
106 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
107 | );\r | |
108 | \r | |
109 | /**\r | |
110 | Function for 'devtree' command.\r | |
111 | \r | |
112 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
113 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
114 | **/\r | |
115 | SHELL_STATUS\r | |
116 | EFIAPI\r | |
117 | ShellCommandRunDevTree (\r | |
118 | IN EFI_HANDLE ImageHandle,\r | |
119 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
120 | );\r | |
121 | \r | |
122 | /**\r | |
123 | Function for 'dh' command.\r | |
124 | \r | |
125 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
126 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
127 | **/\r | |
128 | SHELL_STATUS\r | |
129 | EFIAPI\r | |
130 | ShellCommandRunDh (\r | |
131 | IN EFI_HANDLE ImageHandle,\r | |
132 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
133 | );\r | |
134 | \r | |
135 | /**\r | |
136 | Function for 'disconnect' command.\r | |
137 | \r | |
138 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
139 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
140 | **/\r | |
141 | SHELL_STATUS\r | |
142 | EFIAPI\r | |
143 | ShellCommandRunDisconnect (\r | |
144 | IN EFI_HANDLE ImageHandle,\r | |
145 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
146 | );\r | |
147 | \r | |
148 | /**\r | |
149 | Function for 'drivers' command.\r | |
150 | \r | |
151 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
152 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
153 | **/\r | |
154 | SHELL_STATUS\r | |
155 | EFIAPI\r | |
156 | ShellCommandRunDrivers (\r | |
157 | IN EFI_HANDLE ImageHandle,\r | |
158 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
159 | );\r | |
160 | \r | |
161 | /**\r | |
162 | Function for 'drvcfg' command.\r | |
163 | \r | |
164 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
165 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
166 | **/\r | |
167 | SHELL_STATUS\r | |
168 | EFIAPI\r | |
169 | ShellCommandRunDrvCfg (\r | |
170 | IN EFI_HANDLE ImageHandle,\r | |
171 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
172 | );\r | |
173 | \r | |
174 | /**\r | |
175 | Function for 'drvdiag' command.\r | |
176 | \r | |
177 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
178 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
179 | **/\r | |
180 | SHELL_STATUS\r | |
181 | EFIAPI\r | |
182 | ShellCommandRunDrvDiag (\r | |
183 | IN EFI_HANDLE ImageHandle,\r | |
184 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
185 | );\r | |
186 | \r | |
187 | /**\r | |
188 | Function for 'reconnect' command.\r | |
189 | \r | |
190 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
191 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
192 | **/\r | |
193 | SHELL_STATUS\r | |
194 | EFIAPI\r | |
195 | ShellCommandRunReconnect (\r | |
196 | IN EFI_HANDLE ImageHandle,\r | |
197 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
198 | );\r | |
199 | \r | |
200 | /**\r | |
201 | Function for 'unload' command.\r | |
202 | \r | |
203 | @param[in] ImageHandle Handle to the Image (NULL if Internal).\r | |
204 | @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r | |
205 | **/\r | |
206 | SHELL_STATUS\r | |
207 | EFIAPI\r | |
208 | ShellCommandRunUnload (\r | |
209 | IN EFI_HANDLE ImageHandle,\r | |
210 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
211 | );\r | |
212 | \r | |
d86b04fb QS |
213 | /**\r |
214 | Do a connect from an EFI variable via it's key name.\r | |
215 | \r | |
216 | @param[in] Key The name of the EFI Variable.\r | |
217 | \r | |
218 | @retval EFI_SUCCESS The operation was successful.\r | |
219 | **/\r | |
220 | EFI_STATUS\r | |
d86b04fb QS |
221 | ShellConnectFromDevPaths (\r |
222 | IN CONST CHAR16 *Key\r | |
223 | );\r | |
224 | \r | |
225 | \r | |
226 | \r | |
361a8267 | 227 | #endif\r |
228 | \r |