2 Main file for NULL named library for Profile1 shell command functions.
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
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.
16 #include <ShellBase.h>
18 #include <Guid/GlobalVariable.h>
19 #include <Guid/ConsoleInDevice.h>
20 #include <Guid/ConsoleOutDevice.h>
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>
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>
56 extern EFI_HANDLE gShellDriver1HiiHandle
;
57 extern CONST EFI_GUID gShellDriver1HiiGuid
;
60 Function for 'connect' command.
62 @param[in] ImageHandle Handle to the Image (NULL if Internal).
63 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
67 ShellCommandRunConnect (
68 IN EFI_HANDLE ImageHandle
,
69 IN EFI_SYSTEM_TABLE
*SystemTable
73 Function for 'devices' command.
75 @param[in] ImageHandle Handle to the Image (NULL if Internal).
76 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
80 ShellCommandRunDevices (
81 IN EFI_HANDLE ImageHandle
,
82 IN EFI_SYSTEM_TABLE
*SystemTable
86 Function for 'openinfo' command.
88 @param[in] ImageHandle Handle to the Image (NULL if Internal).
89 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
93 ShellCommandRunOpenInfo (
94 IN EFI_HANDLE ImageHandle
,
95 IN EFI_SYSTEM_TABLE
*SystemTable
99 Function for 'devtree' command.
101 @param[in] ImageHandle Handle to the Image (NULL if Internal).
102 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
106 ShellCommandRunDevTree (
107 IN EFI_HANDLE ImageHandle
,
108 IN EFI_SYSTEM_TABLE
*SystemTable
112 Function for 'dh' command.
114 @param[in] ImageHandle Handle to the Image (NULL if Internal).
115 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
120 IN EFI_HANDLE ImageHandle
,
121 IN EFI_SYSTEM_TABLE
*SystemTable
125 Function for 'disconnect' command.
127 @param[in] ImageHandle Handle to the Image (NULL if Internal).
128 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
132 ShellCommandRunDisconnect (
133 IN EFI_HANDLE ImageHandle
,
134 IN EFI_SYSTEM_TABLE
*SystemTable
138 Function for 'drivers' command.
140 @param[in] ImageHandle Handle to the Image (NULL if Internal).
141 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
145 ShellCommandRunDrivers (
146 IN EFI_HANDLE ImageHandle
,
147 IN EFI_SYSTEM_TABLE
*SystemTable
151 Function for 'drvcfg' command.
153 @param[in] ImageHandle Handle to the Image (NULL if Internal).
154 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
158 ShellCommandRunDrvCfg (
159 IN EFI_HANDLE ImageHandle
,
160 IN EFI_SYSTEM_TABLE
*SystemTable
164 Function for 'drvdiag' command.
166 @param[in] ImageHandle Handle to the Image (NULL if Internal).
167 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
171 ShellCommandRunDrvDiag (
172 IN EFI_HANDLE ImageHandle
,
173 IN EFI_SYSTEM_TABLE
*SystemTable
177 Function for 'reconnect' command.
179 @param[in] ImageHandle Handle to the Image (NULL if Internal).
180 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
184 ShellCommandRunReconnect (
185 IN EFI_HANDLE ImageHandle
,
186 IN EFI_SYSTEM_TABLE
*SystemTable
190 Function for 'unload' command.
192 @param[in] ImageHandle Handle to the Image (NULL if Internal).
193 @param[in] SystemTable Pointer to the System Table (NULL if Internal).
197 ShellCommandRunUnload (
198 IN EFI_HANDLE ImageHandle
,
199 IN EFI_SYSTEM_TABLE
*SystemTable