2 Main file for NULL named library for Profile1 shell command functions.
4 Copyright (c) 2010 - 2011, 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
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.
15 #ifndef _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_
16 #define _UEFI_SHELL_DRIVER1_COMMANDS_LIB_H_
19 #include <ShellBase.h>
21 #include <Guid/GlobalVariable.h>
22 #include <Guid/ConsoleInDevice.h>
23 #include <Guid/ConsoleOutDevice.h>
24 #include <Guid/ShellLibHiiGuid.h>
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/DevicePathToText.h>
32 #include <Protocol/DriverDiagnostics2.h>
33 #include <Protocol/DriverDiagnostics.h>
34 #include <Protocol/PlatformDriverOverride.h>
35 #include <Protocol/BusSpecificDriverOverride.h>
36 #include <Protocol/PlatformToDriverConfiguration.h>
37 #include <Protocol/DriverSupportedEfiVersion.h>
38 #include <Protocol/DriverFamilyOverride.h>
39 #include <Protocol/DriverHealth.h>
41 #include <Library/BaseLib.h>
42 #include <Library/BaseMemoryLib.h>
43 #include <Library/DebugLib.h>
44 #include <Library/MemoryAllocationLib.h>
45 #include <Library/PcdLib.h>
46 #include <Library/ShellCommandLib.h>
47 #include <Library/ShellLib.h>
48 #include <Library/SortLib.h>
49 #include <Library/UefiLib.h>
50 #include <Library/UefiRuntimeServicesTableLib.h>
51 #include <Library/UefiBootServicesTableLib.h>
52 #include <Library/HiiLib.h>
53 #include <Library/FileHandleLib.h>
54 #include <Library/DevicePathLib.h>
55 #include <Library/PrintLib.h>
56 #include <Library/HandleParsingLib.h>
57 #include <Library/PeCoffGetEntryPointLib.h>
60 extern EFI_HANDLE gShellDriver1HiiHandle
;
61 extern BOOLEAN gInReconnect
;
64 Function for 'connect' command.
66 @param[in] ImageHandle Handle to the Image (NULL if Internal).
67 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
71 ShellCommandRunConnect (
72 IN EFI_HANDLE ImageHandle
,
73 IN EFI_SYSTEM_TABLE
*SystemTable
77 Function for 'devices' command.
79 @param[in] ImageHandle Handle to the Image (NULL if Internal).
80 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
84 ShellCommandRunDevices (
85 IN EFI_HANDLE ImageHandle
,
86 IN EFI_SYSTEM_TABLE
*SystemTable
90 Function for 'openinfo' command.
92 @param[in] ImageHandle Handle to the Image (NULL if Internal).
93 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
97 ShellCommandRunOpenInfo (
98 IN EFI_HANDLE ImageHandle
,
99 IN EFI_SYSTEM_TABLE
*SystemTable
103 Function for 'devtree' command.
105 @param[in] ImageHandle Handle to the Image (NULL if Internal).
106 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
110 ShellCommandRunDevTree (
111 IN EFI_HANDLE ImageHandle
,
112 IN EFI_SYSTEM_TABLE
*SystemTable
116 Function for 'dh' command.
118 @param[in] ImageHandle Handle to the Image (NULL if Internal).
119 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
124 IN EFI_HANDLE ImageHandle
,
125 IN EFI_SYSTEM_TABLE
*SystemTable
129 Function for 'disconnect' command.
131 @param[in] ImageHandle Handle to the Image (NULL if Internal).
132 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
136 ShellCommandRunDisconnect (
137 IN EFI_HANDLE ImageHandle
,
138 IN EFI_SYSTEM_TABLE
*SystemTable
142 Function for 'drivers' command.
144 @param[in] ImageHandle Handle to the Image (NULL if Internal).
145 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
149 ShellCommandRunDrivers (
150 IN EFI_HANDLE ImageHandle
,
151 IN EFI_SYSTEM_TABLE
*SystemTable
155 Function for 'drvcfg' command.
157 @param[in] ImageHandle Handle to the Image (NULL if Internal).
158 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
162 ShellCommandRunDrvCfg (
163 IN EFI_HANDLE ImageHandle
,
164 IN EFI_SYSTEM_TABLE
*SystemTable
168 Function for 'drvdiag' command.
170 @param[in] ImageHandle Handle to the Image (NULL if Internal).
171 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
175 ShellCommandRunDrvDiag (
176 IN EFI_HANDLE ImageHandle
,
177 IN EFI_SYSTEM_TABLE
*SystemTable
181 Function for 'reconnect' command.
183 @param[in] ImageHandle Handle to the Image (NULL if Internal).
184 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
188 ShellCommandRunReconnect (
189 IN EFI_HANDLE ImageHandle
,
190 IN EFI_SYSTEM_TABLE
*SystemTable
194 Function for 'unload' command.
196 @param[in] ImageHandle Handle to the Image (NULL if Internal).
197 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
201 ShellCommandRunUnload (
202 IN EFI_HANDLE ImageHandle
,
203 IN EFI_SYSTEM_TABLE
*SystemTable