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