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