2 Main file for NULL named library for Profile1 shell command functions.
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
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/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>
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>
59 extern EFI_HANDLE gShellDriver1HiiHandle
;
60 extern BOOLEAN gInReconnect
;
63 Function for 'connect' command.
65 @param[in] ImageHandle Handle to the Image (NULL if Internal).
66 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
70 ShellCommandRunConnect (
71 IN EFI_HANDLE ImageHandle
,
72 IN EFI_SYSTEM_TABLE
*SystemTable
76 Function for 'devices' command.
78 @param[in] ImageHandle Handle to the Image (NULL if Internal).
79 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
83 ShellCommandRunDevices (
84 IN EFI_HANDLE ImageHandle
,
85 IN EFI_SYSTEM_TABLE
*SystemTable
89 Function for 'openinfo' command.
91 @param[in] ImageHandle Handle to the Image (NULL if Internal).
92 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
96 ShellCommandRunOpenInfo (
97 IN EFI_HANDLE ImageHandle
,
98 IN EFI_SYSTEM_TABLE
*SystemTable
102 Function for 'devtree' command.
104 @param[in] ImageHandle Handle to the Image (NULL if Internal).
105 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
109 ShellCommandRunDevTree (
110 IN EFI_HANDLE ImageHandle
,
111 IN EFI_SYSTEM_TABLE
*SystemTable
115 Function for 'dh' command.
117 @param[in] ImageHandle Handle to the Image (NULL if Internal).
118 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
123 IN EFI_HANDLE ImageHandle
,
124 IN EFI_SYSTEM_TABLE
*SystemTable
128 Function for 'disconnect' command.
130 @param[in] ImageHandle Handle to the Image (NULL if Internal).
131 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
135 ShellCommandRunDisconnect (
136 IN EFI_HANDLE ImageHandle
,
137 IN EFI_SYSTEM_TABLE
*SystemTable
141 Function for 'drivers' command.
143 @param[in] ImageHandle Handle to the Image (NULL if Internal).
144 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
148 ShellCommandRunDrivers (
149 IN EFI_HANDLE ImageHandle
,
150 IN EFI_SYSTEM_TABLE
*SystemTable
154 Function for 'drvcfg' command.
156 @param[in] ImageHandle Handle to the Image (NULL if Internal).
157 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
161 ShellCommandRunDrvCfg (
162 IN EFI_HANDLE ImageHandle
,
163 IN EFI_SYSTEM_TABLE
*SystemTable
167 Function for 'drvdiag' command.
169 @param[in] ImageHandle Handle to the Image (NULL if Internal).
170 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
174 ShellCommandRunDrvDiag (
175 IN EFI_HANDLE ImageHandle
,
176 IN EFI_SYSTEM_TABLE
*SystemTable
180 Function for 'reconnect' command.
182 @param[in] ImageHandle Handle to the Image (NULL if Internal).
183 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
187 ShellCommandRunReconnect (
188 IN EFI_HANDLE ImageHandle
,
189 IN EFI_SYSTEM_TABLE
*SystemTable
193 Function for 'unload' command.
195 @param[in] ImageHandle Handle to the Image (NULL if Internal).
196 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
200 ShellCommandRunUnload (
201 IN EFI_HANDLE ImageHandle
,
202 IN EFI_SYSTEM_TABLE
*SystemTable