]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h
ShellPkg: Add NetworkPkg/NetworkPkg.dec as the package dependency
[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
56ba3746 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
4ba49616 6\r
7**/\r
8\r
a1d4bfcc 9#ifndef _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_\r
361a8267 10#define _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_\r
11\r
4ba49616 12#include <Uefi.h>\r
4ba49616 13\r
14#include <Guid/GlobalVariable.h>\r
15#include <Guid/ConsoleInDevice.h>\r
16#include <Guid/ConsoleOutDevice.h>\r
bca163ff 17#include <Guid/ShellLibHiiGuid.h>\r
4ba49616 18\r
0ff81081
QS
19#include <IndustryStandard/Pci.h>\r
20\r
416d48f7
HL
21#include <Pi/PiFirmwareVolume.h>\r
22#include <Pi/PiFirmwareFile.h>\r
23#include <Protocol/FirmwareVolume2.h>\r
24\r
28165f24
RN
25#include <Protocol/Shell.h>\r
26#include <Protocol/ShellParameters.h>\r
4ba49616 27#include <Protocol/DevicePath.h>\r
28#include <Protocol/LoadedImage.h>\r
29#include <Protocol/UnicodeCollation.h>\r
4ba49616 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
0ff81081
QS
38#include <Protocol/PciIo.h>\r
39#include <Protocol/PciRootBridgeIo.h>\r
4ba49616 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
a71003f2 58#include <Library/HandleParsingLib.h>\r
4ba49616 59\r
60\r
61extern EFI_HANDLE gShellDriver1HiiHandle;\r
6878e7a7 62extern BOOLEAN gInReconnect;\r
4ba49616 63\r
64/**\r
65 Function for 'connect' command.\r
66\r
67 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
68 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
69**/\r
70SHELL_STATUS\r
71EFIAPI\r
72ShellCommandRunConnect (\r
73 IN EFI_HANDLE ImageHandle,\r
74 IN EFI_SYSTEM_TABLE *SystemTable\r
75 );\r
76\r
77/**\r
78 Function for 'devices' command.\r
79\r
80 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
81 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
82**/\r
83SHELL_STATUS\r
84EFIAPI\r
85ShellCommandRunDevices (\r
86 IN EFI_HANDLE ImageHandle,\r
87 IN EFI_SYSTEM_TABLE *SystemTable\r
88 );\r
89\r
90/**\r
91 Function for 'openinfo' command.\r
92\r
93 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
94 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
95**/\r
96SHELL_STATUS\r
97EFIAPI\r
98ShellCommandRunOpenInfo (\r
99 IN EFI_HANDLE ImageHandle,\r
100 IN EFI_SYSTEM_TABLE *SystemTable\r
101 );\r
102\r
103/**\r
104 Function for 'devtree' command.\r
105\r
106 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
107 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
108**/\r
109SHELL_STATUS\r
110EFIAPI\r
111ShellCommandRunDevTree (\r
112 IN EFI_HANDLE ImageHandle,\r
113 IN EFI_SYSTEM_TABLE *SystemTable\r
114 );\r
115\r
116/**\r
117 Function for 'dh' command.\r
118\r
119 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
120 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
121**/\r
122SHELL_STATUS\r
123EFIAPI\r
124ShellCommandRunDh (\r
125 IN EFI_HANDLE ImageHandle,\r
126 IN EFI_SYSTEM_TABLE *SystemTable\r
127 );\r
128\r
129/**\r
130 Function for 'disconnect' command.\r
131\r
132 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
133 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
134**/\r
135SHELL_STATUS\r
136EFIAPI\r
137ShellCommandRunDisconnect (\r
138 IN EFI_HANDLE ImageHandle,\r
139 IN EFI_SYSTEM_TABLE *SystemTable\r
140 );\r
141\r
142/**\r
143 Function for 'drivers' command.\r
144\r
145 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
146 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
147**/\r
148SHELL_STATUS\r
149EFIAPI\r
150ShellCommandRunDrivers (\r
151 IN EFI_HANDLE ImageHandle,\r
152 IN EFI_SYSTEM_TABLE *SystemTable\r
153 );\r
154\r
155/**\r
156 Function for 'drvcfg' command.\r
157\r
158 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
159 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
160**/\r
161SHELL_STATUS\r
162EFIAPI\r
163ShellCommandRunDrvCfg (\r
164 IN EFI_HANDLE ImageHandle,\r
165 IN EFI_SYSTEM_TABLE *SystemTable\r
166 );\r
167\r
168/**\r
169 Function for 'drvdiag' command.\r
170\r
171 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
172 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
173**/\r
174SHELL_STATUS\r
175EFIAPI\r
176ShellCommandRunDrvDiag (\r
177 IN EFI_HANDLE ImageHandle,\r
178 IN EFI_SYSTEM_TABLE *SystemTable\r
179 );\r
180\r
181/**\r
182 Function for 'reconnect' command.\r
183\r
184 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
185 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
186**/\r
187SHELL_STATUS\r
188EFIAPI\r
189ShellCommandRunReconnect (\r
190 IN EFI_HANDLE ImageHandle,\r
191 IN EFI_SYSTEM_TABLE *SystemTable\r
192 );\r
193\r
194/**\r
195 Function for 'unload' command.\r
196\r
197 @param[in] ImageHandle Handle to the Image (NULL if Internal).\r
198 @param[in] SystemTable Pointer to the System Table (NULL if Internal).\r
199**/\r
200SHELL_STATUS\r
201EFIAPI\r
202ShellCommandRunUnload (\r
203 IN EFI_HANDLE ImageHandle,\r
204 IN EFI_SYSTEM_TABLE *SystemTable\r
205 );\r
206\r
d86b04fb
QS
207/**\r
208 Do a connect from an EFI variable via it's key name.\r
209\r
210 @param[in] Key The name of the EFI Variable.\r
211\r
212 @retval EFI_SUCCESS The operation was successful.\r
213**/\r
214EFI_STATUS\r
d86b04fb
QS
215ShellConnectFromDevPaths (\r
216 IN CONST CHAR16 *Key\r
217 );\r
218\r
219\r
220\r
361a8267 221#endif\r
222\r