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