blob: 1948ab3496e9647cfbd423334558b616bd05895f [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/** @file
2 Provides interface to advanced shell functionality for parsing both handle and protocol database.
3
4 (C) Copyright 2013-2014 Hewlett-Packard Development Company, L.P.<BR>
5 Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14**/
15
16#ifndef _UEFI_HANDLE_PARSING_LIB_INTERNAL_H_
17#define _UEFI_HANDLE_PARSING_LIB_INTERNAL_H_
18
19#include <Uefi.h>
20
21#include <Guid/FileInfo.h>
22#include <Guid/ConsoleInDevice.h>
23#include <Guid/ConsoleOutDevice.h>
24#include <Guid/StandardErrorDevice.h>
25#include <Guid/GlobalVariable.h>
26#include <Guid/Gpt.h>
27#include <Guid/FileSystemInfo.h>
28#include <Guid/ShellLibHiiGuid.h>
29
30#include <Protocol/SimpleFileSystem.h>
31#include <Protocol/LoadedImage.h>
32#include <Protocol/EfiShellInterface.h>
33#include <Protocol/EfiShellEnvironment2.h>
34#include <Protocol/EfiShell.h>
35#include <Protocol/EfiShellParameters.h>
36#include <Protocol/DevicePathToText.h>
37#include <Protocol/DriverBinding.h>
38#include <Protocol/DriverConfiguration2.h>
39#include <Protocol/DriverConfiguration.h>
40#include <Protocol/DriverDiagnostics2.h>
41#include <Protocol/DriverDiagnostics.h>
42#include <Protocol/ComponentName2.h>
43#include <Protocol/ComponentName.h>
44#include <Protocol/PlatformDriverOverride.h>
45#include <Protocol/DevicePathUtilities.h>
46#include <Protocol/DevicePathFromText.h>
47#include <Protocol/BusSpecificDriverOverride.h>
48#include <Protocol/PlatformToDriverConfiguration.h>
49#include <Protocol/DriverSupportedEfiVersion.h>
50#include <Protocol/SimpleTextInEx.h>
51#include <Protocol/SimplePointer.h>
52#include <Protocol/SerialIo.h>
53#include <Protocol/AbsolutePointer.h>
54#include <Protocol/GraphicsOutput.h>
55#include <Protocol/EdidDiscovered.h>
56#include <Protocol/EdidActive.h>
57#include <Protocol/EdidOverride.h>
58#include <Protocol/LoadFile.h>
59#include <Protocol/LoadFile2.h>
60#include <Protocol/TapeIo.h>
61#include <Protocol/DiskIo.h>
62#include <Protocol/BlockIo.h>
63#include <Protocol/UnicodeCollation.h>
64#include <Protocol/PciRootBridgeIo.h>
65#include <Protocol/PciIo.h>
66#include <Protocol/ScsiPassThru.h>
67#include <Protocol/ScsiPassThruExt.h>
68#include <Protocol/ScsiIo.h>
69#include <Protocol/IScsiInitiatorName.h>
70#include <Protocol/UsbIo.h>
71#include <Protocol/UsbHostController.h>
72#include <Protocol/Usb2HostController.h>
73#include <Protocol/DebugSupport.h>
74#include <Protocol/DebugPort.h>
75#include <Protocol/Decompress.h>
76#include <Protocol/AcpiTable.h>
77#include <Protocol/Ebc.h>
78#include <Protocol/SimpleNetwork.h>
79#include <Protocol/NetworkInterfaceIdentifier.h>
80#include <Protocol/PxeBaseCode.h>
81#include <Protocol/PxeBaseCodeCallBack.h>
82#include <Protocol/Bis.h>
83#include <Protocol/ManagedNetwork.h>
84#include <Protocol/Arp.h>
85#include <Protocol/Dhcp4.h>
86#include <Protocol/Tcp4.h>
87#include <Protocol/Ip4.h>
88#include <Protocol/Ip4Config.h>
89#include <Protocol/Udp4.h>
90#include <Protocol/Mtftp4.h>
91#include <Protocol/AuthenticationInfo.h>
92#include <Protocol/Hash.h>
93#include <Protocol/HiiFont.h>
94#include <Protocol/HiiString.h>
95#include <Protocol/HiiImage.h>
96#include <Protocol/HiiDatabase.h>
97#include <Protocol/HiiConfigRouting.h>
98#include <Protocol/HiiConfigAccess.h>
99#include <Protocol/FormBrowser2.h>
100#include <Protocol/DeviceIo.h>
101#include <Protocol/UgaDraw.h>
102#include <Protocol/UgaIo.h>
103#include <Protocol/DriverConfiguration.h>
104#include <Protocol/DriverConfiguration2.h>
105#include <Protocol/DevicePathUtilities.h>
106//#include <Protocol/FirmwareVolume.h>
107//#include <Protocol/FirmwareVolume2.h>
108#include <Protocol/DriverFamilyOverride.h>
109#include <Protocol/Pcd.h>
110#include <Protocol/TcgService.h>
111#include <Protocol/HiiPackageList.h>
112#include <Protocol/Ip6.h>
113#include <Protocol/Ip6Config.h>
114#include <Protocol/Mtftp6.h>
115#include <Protocol/Dhcp6.h>
116#include <Protocol/Udp6.h>
117#include <Protocol/Tcp6.h>
118#include <Protocol/VlanConfig.h>
119#include <Protocol/Eap.h>
120#include <Protocol/EapManagement.h>
121#include <Protocol/Ftp4.h>
122#include <Protocol/IpSecConfig.h>
123#include <Protocol/DriverHealth.h>
124#include <Protocol/DeferredImageLoad.h>
125#include <Protocol/UserCredential.h>
126#include <Protocol/UserManager.h>
127#include <Protocol/AtaPassThru.h>
128#include <Protocol/FirmwareManagement.h>
129#include <Protocol/IpSec.h>
130#include <Protocol/Kms.h>
131#include <Protocol/BlockIo2.h>
132#include <Protocol/StorageSecurityCommand.h>
133#include <Protocol/UserCredential2.h>
134#include <Protocol/IdeControllerInit.h>
135#include <Protocol/DiskIo2.h>
136#include <Protocol/AdapterInformation.h>
137#include <Protocol/EfiShellDynamicCommand.h>
138
139#include <Library/HandleParsingLib.h>
140#include <Library/UefiBootServicesTableLib.h>
141#include <Library/BaseLib.h>
142#include <Library/BaseMemoryLib.h>
143#include <Library/DebugLib.h>
144#include <Library/MemoryAllocationLib.h>
145#include <Library/DevicePathLib.h>
146#include <Library/PcdLib.h>
147#include <Library/PrintLib.h>
148#include <Library/UefiLib.h>
149#include <Library/HiiLib.h>
150#include <Library/ShellLib.h>
151#include <Library/SortLib.h>
152
153typedef struct {
154 LIST_ENTRY Link;
155 EFI_HANDLE TheHandle;
156 UINTN TheIndex;
157}HANDLE_LIST;
158
159typedef struct {
160 HANDLE_LIST List;
161 UINTN NextIndex;
162} HANDLE_INDEX_LIST;
163
164typedef
165CHAR16 *
166(EFIAPI *DUMP_PROTOCOL_INFO)(
167 IN CONST EFI_HANDLE TheHandle,
168 IN CONST BOOLEAN Verbose
169 );
170
171typedef struct _GUID_INFO_BLOCK{
172 EFI_STRING_ID StringId;
173 EFI_GUID *GuidId;
174 DUMP_PROTOCOL_INFO DumpInfo;
175} GUID_INFO_BLOCK;
176
177#endif
178