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