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