]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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
47d20b54
MK
60extern EFI_HII_HANDLE gShellDriver1HiiHandle;\r
61extern BOOLEAN gInReconnect;\r
4ba49616 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
69SHELL_STATUS\r
70EFIAPI\r
71ShellCommandRunConnect (\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
82SHELL_STATUS\r
83EFIAPI\r
84ShellCommandRunDevices (\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
95SHELL_STATUS\r
96EFIAPI\r
97ShellCommandRunOpenInfo (\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
108SHELL_STATUS\r
109EFIAPI\r
110ShellCommandRunDevTree (\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
121SHELL_STATUS\r
122EFIAPI\r
123ShellCommandRunDh (\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
134SHELL_STATUS\r
135EFIAPI\r
136ShellCommandRunDisconnect (\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
147SHELL_STATUS\r
148EFIAPI\r
149ShellCommandRunDrivers (\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
160SHELL_STATUS\r
161EFIAPI\r
162ShellCommandRunDrvCfg (\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
173SHELL_STATUS\r
174EFIAPI\r
175ShellCommandRunDrvDiag (\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
186SHELL_STATUS\r
187EFIAPI\r
188ShellCommandRunReconnect (\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
199SHELL_STATUS\r
200EFIAPI\r
201ShellCommandRunUnload (\r
202 IN EFI_HANDLE ImageHandle,\r
203 IN EFI_SYSTEM_TABLE *SystemTable\r
204 );\r
205\r
d86b04fb
QS
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
213EFI_STATUS\r
d86b04fb 214ShellConnectFromDevPaths (\r
47d20b54 215 IN CONST CHAR16 *Key\r
d86b04fb
QS
216 );\r
217\r
361a8267 218#endif\r