2 Main file for NULL named library for Profile1 shell command functions.
4 Copyright (c) 2010 - 2016, 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_
20 #include <Guid/GlobalVariable.h>
21 #include <Guid/ConsoleInDevice.h>
22 #include <Guid/ConsoleOutDevice.h>
23 #include <Guid/ShellLibHiiGuid.h>
25 #include <IndustryStandard/Pci.h>
27 #include <Pi/PiFirmwareVolume.h>
28 #include <Pi/PiFirmwareFile.h>
29 #include <Protocol/FirmwareVolume2.h>
31 #include <Protocol/Shell.h>
32 #include <Protocol/ShellParameters.h>
33 #include <Protocol/DevicePath.h>
34 #include <Protocol/LoadedImage.h>
35 #include <Protocol/UnicodeCollation.h>
36 #include <Protocol/DriverDiagnostics2.h>
37 #include <Protocol/DriverDiagnostics.h>
38 #include <Protocol/PlatformDriverOverride.h>
39 #include <Protocol/BusSpecificDriverOverride.h>
40 #include <Protocol/PlatformToDriverConfiguration.h>
41 #include <Protocol/DriverSupportedEfiVersion.h>
42 #include <Protocol/DriverFamilyOverride.h>
43 #include <Protocol/DriverHealth.h>
44 #include <Protocol/PciIo.h>
45 #include <Protocol/PciRootBridgeIo.h>
47 #include <Library/BaseLib.h>
48 #include <Library/BaseMemoryLib.h>
49 #include <Library/DebugLib.h>
50 #include <Library/MemoryAllocationLib.h>
51 #include <Library/PcdLib.h>
52 #include <Library/ShellCommandLib.h>
53 #include <Library/ShellLib.h>
54 #include <Library/SortLib.h>
55 #include <Library/UefiLib.h>
56 #include <Library/UefiRuntimeServicesTableLib.h>
57 #include <Library/UefiBootServicesTableLib.h>
58 #include <Library/HiiLib.h>
59 #include <Library/FileHandleLib.h>
60 #include <Library/DevicePathLib.h>
61 #include <Library/PrintLib.h>
62 #include <Library/HandleParsingLib.h>
63 #include <Library/PeCoffGetEntryPointLib.h>
64 #include <Library/HandleParsingLib.h>
67 extern EFI_HANDLE gShellDriver1HiiHandle
;
68 extern BOOLEAN gInReconnect
;
71 Function for 'connect' command.
73 @param[in] ImageHandle Handle to the Image (NULL if Internal).
74 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
78 ShellCommandRunConnect (
79 IN EFI_HANDLE ImageHandle
,
80 IN EFI_SYSTEM_TABLE
*SystemTable
84 Function for 'devices' command.
86 @param[in] ImageHandle Handle to the Image (NULL if Internal).
87 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
91 ShellCommandRunDevices (
92 IN EFI_HANDLE ImageHandle
,
93 IN EFI_SYSTEM_TABLE
*SystemTable
97 Function for 'openinfo' command.
99 @param[in] ImageHandle Handle to the Image (NULL if Internal).
100 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
104 ShellCommandRunOpenInfo (
105 IN EFI_HANDLE ImageHandle
,
106 IN EFI_SYSTEM_TABLE
*SystemTable
110 Function for 'devtree' command.
112 @param[in] ImageHandle Handle to the Image (NULL if Internal).
113 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
117 ShellCommandRunDevTree (
118 IN EFI_HANDLE ImageHandle
,
119 IN EFI_SYSTEM_TABLE
*SystemTable
123 Function for 'dh' command.
125 @param[in] ImageHandle Handle to the Image (NULL if Internal).
126 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
131 IN EFI_HANDLE ImageHandle
,
132 IN EFI_SYSTEM_TABLE
*SystemTable
136 Function for 'disconnect' command.
138 @param[in] ImageHandle Handle to the Image (NULL if Internal).
139 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
143 ShellCommandRunDisconnect (
144 IN EFI_HANDLE ImageHandle
,
145 IN EFI_SYSTEM_TABLE
*SystemTable
149 Function for 'drivers' command.
151 @param[in] ImageHandle Handle to the Image (NULL if Internal).
152 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
156 ShellCommandRunDrivers (
157 IN EFI_HANDLE ImageHandle
,
158 IN EFI_SYSTEM_TABLE
*SystemTable
162 Function for 'drvcfg' command.
164 @param[in] ImageHandle Handle to the Image (NULL if Internal).
165 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
169 ShellCommandRunDrvCfg (
170 IN EFI_HANDLE ImageHandle
,
171 IN EFI_SYSTEM_TABLE
*SystemTable
175 Function for 'drvdiag' command.
177 @param[in] ImageHandle Handle to the Image (NULL if Internal).
178 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
182 ShellCommandRunDrvDiag (
183 IN EFI_HANDLE ImageHandle
,
184 IN EFI_SYSTEM_TABLE
*SystemTable
188 Function for 'reconnect' command.
190 @param[in] ImageHandle Handle to the Image (NULL if Internal).
191 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
195 ShellCommandRunReconnect (
196 IN EFI_HANDLE ImageHandle
,
197 IN EFI_SYSTEM_TABLE
*SystemTable
201 Function for 'unload' command.
203 @param[in] ImageHandle Handle to the Image (NULL if Internal).
204 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
208 ShellCommandRunUnload (
209 IN EFI_HANDLE ImageHandle
,
210 IN EFI_SYSTEM_TABLE
*SystemTable
214 Do a connect from an EFI variable via it's key name.
216 @param[in] Key The name of the EFI Variable.
218 @retval EFI_SUCCESS The operation was successful.
221 ShellConnectFromDevPaths (