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