]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.h
Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToTe...
[mirror_edk2.git] / ShellPkg / Library / UefiShellDriver1CommandsLib / UefiShellDriver1CommandsLib.h
1 /** @file
2 Main file for NULL named library for Profile1 shell command functions.
3
4 Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_
16 #define _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_
17
18 #include <Uefi.h>
19 #include <ShellBase.h>
20
21 #include <Guid/GlobalVariable.h>
22 #include <Guid/ConsoleInDevice.h>
23 #include <Guid/ConsoleOutDevice.h>
24 #include <Guid/ShellLibHiiGuid.h>
25
26 #include <Protocol/EfiShell.h>
27 #include <Protocol/EfiShellParameters.h>
28 #include <Protocol/DevicePath.h>
29 #include <Protocol/LoadedImage.h>
30 #include <Protocol/UnicodeCollation.h>
31 #include <Protocol/DriverDiagnostics2.h>
32 #include <Protocol/DriverDiagnostics.h>
33 #include <Protocol/PlatformDriverOverride.h>
34 #include <Protocol/BusSpecificDriverOverride.h>
35 #include <Protocol/PlatformToDriverConfiguration.h>
36 #include <Protocol/DriverSupportedEfiVersion.h>
37 #include <Protocol/DriverFamilyOverride.h>
38 #include <Protocol/DriverHealth.h>
39
40 #include <Library/BaseLib.h>
41 #include <Library/BaseMemoryLib.h>
42 #include <Library/DebugLib.h>
43 #include <Library/MemoryAllocationLib.h>
44 #include <Library/PcdLib.h>
45 #include <Library/ShellCommandLib.h>
46 #include <Library/ShellLib.h>
47 #include <Library/SortLib.h>
48 #include <Library/UefiLib.h>
49 #include <Library/UefiRuntimeServicesTableLib.h>
50 #include <Library/UefiBootServicesTableLib.h>
51 #include <Library/HiiLib.h>
52 #include <Library/FileHandleLib.h>
53 #include <Library/DevicePathLib.h>
54 #include <Library/PrintLib.h>
55 #include <Library/HandleParsingLib.h>
56 #include <Library/PeCoffGetEntryPointLib.h>
57
58
59 extern EFI_HANDLE gShellDriver1HiiHandle;
60 extern BOOLEAN gInReconnect;
61
62 /**
63 Function for 'connect' command.
64
65 @param[in] ImageHandle Handle to the Image (NULL if Internal).
66 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
67 **/
68 SHELL_STATUS
69 EFIAPI
70 ShellCommandRunConnect (
71 IN EFI_HANDLE ImageHandle,
72 IN EFI_SYSTEM_TABLE *SystemTable
73 );
74
75 /**
76 Function for 'devices' command.
77
78 @param[in] ImageHandle Handle to the Image (NULL if Internal).
79 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
80 **/
81 SHELL_STATUS
82 EFIAPI
83 ShellCommandRunDevices (
84 IN EFI_HANDLE ImageHandle,
85 IN EFI_SYSTEM_TABLE *SystemTable
86 );
87
88 /**
89 Function for 'openinfo' command.
90
91 @param[in] ImageHandle Handle to the Image (NULL if Internal).
92 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
93 **/
94 SHELL_STATUS
95 EFIAPI
96 ShellCommandRunOpenInfo (
97 IN EFI_HANDLE ImageHandle,
98 IN EFI_SYSTEM_TABLE *SystemTable
99 );
100
101 /**
102 Function for 'devtree' command.
103
104 @param[in] ImageHandle Handle to the Image (NULL if Internal).
105 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
106 **/
107 SHELL_STATUS
108 EFIAPI
109 ShellCommandRunDevTree (
110 IN EFI_HANDLE ImageHandle,
111 IN EFI_SYSTEM_TABLE *SystemTable
112 );
113
114 /**
115 Function for 'dh' command.
116
117 @param[in] ImageHandle Handle to the Image (NULL if Internal).
118 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
119 **/
120 SHELL_STATUS
121 EFIAPI
122 ShellCommandRunDh (
123 IN EFI_HANDLE ImageHandle,
124 IN EFI_SYSTEM_TABLE *SystemTable
125 );
126
127 /**
128 Function for 'disconnect' command.
129
130 @param[in] ImageHandle Handle to the Image (NULL if Internal).
131 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
132 **/
133 SHELL_STATUS
134 EFIAPI
135 ShellCommandRunDisconnect (
136 IN EFI_HANDLE ImageHandle,
137 IN EFI_SYSTEM_TABLE *SystemTable
138 );
139
140 /**
141 Function for 'drivers' command.
142
143 @param[in] ImageHandle Handle to the Image (NULL if Internal).
144 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
145 **/
146 SHELL_STATUS
147 EFIAPI
148 ShellCommandRunDrivers (
149 IN EFI_HANDLE ImageHandle,
150 IN EFI_SYSTEM_TABLE *SystemTable
151 );
152
153 /**
154 Function for 'drvcfg' command.
155
156 @param[in] ImageHandle Handle to the Image (NULL if Internal).
157 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
158 **/
159 SHELL_STATUS
160 EFIAPI
161 ShellCommandRunDrvCfg (
162 IN EFI_HANDLE ImageHandle,
163 IN EFI_SYSTEM_TABLE *SystemTable
164 );
165
166 /**
167 Function for 'drvdiag' command.
168
169 @param[in] ImageHandle Handle to the Image (NULL if Internal).
170 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
171 **/
172 SHELL_STATUS
173 EFIAPI
174 ShellCommandRunDrvDiag (
175 IN EFI_HANDLE ImageHandle,
176 IN EFI_SYSTEM_TABLE *SystemTable
177 );
178
179 /**
180 Function for 'reconnect' command.
181
182 @param[in] ImageHandle Handle to the Image (NULL if Internal).
183 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
184 **/
185 SHELL_STATUS
186 EFIAPI
187 ShellCommandRunReconnect (
188 IN EFI_HANDLE ImageHandle,
189 IN EFI_SYSTEM_TABLE *SystemTable
190 );
191
192 /**
193 Function for 'unload' command.
194
195 @param[in] ImageHandle Handle to the Image (NULL if Internal).
196 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
197 **/
198 SHELL_STATUS
199 EFIAPI
200 ShellCommandRunUnload (
201 IN EFI_HANDLE ImageHandle,
202 IN EFI_SYSTEM_TABLE *SystemTable
203 );
204
205 #endif
206