udk2010.up2.shell initial release.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10874 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
1420
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
Normal file
1420
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
Normal file
File diff suppressed because it is too large
Load Diff
142
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h
Normal file
142
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h
Normal file
@@ -0,0 +1,142 @@
|
||||
/** @file
|
||||
Provides interface to advanced shell functionality for parsing both handle and protocol database.
|
||||
|
||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#include <Uefi.h>
|
||||
|
||||
#include <Guid/FileInfo.h>
|
||||
#include <Guid/ConsoleInDevice.h>
|
||||
#include <Guid/ConsoleOutDevice.h>
|
||||
#include <Guid/StandardErrorDevice.h>
|
||||
#include <Guid/GlobalVariable.h>
|
||||
#include <Guid/Gpt.h>
|
||||
#include <Guid/FileSystemInfo.h>
|
||||
|
||||
#include <Protocol/SimpleFileSystem.h>
|
||||
#include <Protocol/LoadedImage.h>
|
||||
#include <Protocol/EfiShellInterface.h>
|
||||
#include <Protocol/EfiShellEnvironment2.h>
|
||||
#include <Protocol/EfiShell.h>
|
||||
#include <Protocol/EfiShellParameters.h>
|
||||
#include <Protocol/DevicePathToText.h>
|
||||
#include <Protocol/DriverBinding.h>
|
||||
#include <Protocol/DriverConfiguration2.h>
|
||||
#include <Protocol/DriverConfiguration.h>
|
||||
#include <Protocol/DriverDiagnostics2.h>
|
||||
#include <Protocol/DriverDiagnostics.h>
|
||||
#include <Protocol/ComponentName2.h>
|
||||
#include <Protocol/ComponentName.h>
|
||||
#include <Protocol/PlatformDriverOverride.h>
|
||||
#include <Protocol/DevicePathUtilities.h>
|
||||
#include <Protocol/DevicePathFromText.h>
|
||||
#include <Protocol/BusSpecificDriverOverride.h>
|
||||
#include <Protocol/PlatformToDriverConfiguration.h>
|
||||
#include <Protocol/DriverSupportedEfiVersion.h>
|
||||
#include <Protocol/SimpleTextInEx.h>
|
||||
#include <Protocol/SimplePointer.h>
|
||||
#include <Protocol/SerialIo.h>
|
||||
#include <Protocol/AbsolutePointer.h>
|
||||
#include <Protocol/GraphicsOutput.h>
|
||||
#include <Protocol/EdidDiscovered.h>
|
||||
#include <Protocol/EdidActive.h>
|
||||
#include <Protocol/EdidOverride.h>
|
||||
#include <Protocol/LoadFile.h>
|
||||
#include <Protocol/LoadFile2.h>
|
||||
#include <Protocol/SimpleFilesystem.h>
|
||||
#include <Protocol/TapeIo.h>
|
||||
#include <Protocol/DiskIo.h>
|
||||
#include <Protocol/BlockIo.h>
|
||||
#include <Protocol/UnicodeCollation.h>
|
||||
#include <Protocol/PciRootBridgeIo.h>
|
||||
#include <Protocol/PciIo.h>
|
||||
#include <Protocol/ScsiPassThru.h>
|
||||
#include <Protocol/ScsiPassThruExt.h>
|
||||
#include <Protocol/ScsiIo.h>
|
||||
#include <Protocol/IScsiInitiatorName.h>
|
||||
#include <Protocol/UsbIo.h>
|
||||
#include <Protocol/UsbHostController.h>
|
||||
#include <Protocol/Usb2HostController.h>
|
||||
#include <Protocol/DebugSupport.h>
|
||||
#include <Protocol/DebugPort.h>
|
||||
#include <Protocol/Decompress.h>
|
||||
#include <Protocol/AcpiTable.h>
|
||||
#include <Protocol/Ebc.h>
|
||||
#include <Protocol/SimpleNetwork.h>
|
||||
#include <Protocol/NetworkInterfaceIdentifier.h>
|
||||
#include <Protocol/PxeBaseCode.h>
|
||||
#include <Protocol/PxeBaseCodeCallBack.h>
|
||||
#include <Protocol/Bis.h>
|
||||
#include <Protocol/ManagedNetwork.h>
|
||||
#include <Protocol/Arp.h>
|
||||
#include <Protocol/Dhcp4.h>
|
||||
#include <Protocol/Tcp4.h>
|
||||
#include <Protocol/Ip4.h>
|
||||
#include <Protocol/Ip4Config.h>
|
||||
#include <Protocol/Udp4.h>
|
||||
#include <Protocol/Mtftp4.h>
|
||||
#include <Protocol/AuthenticationInfo.h>
|
||||
#include <Protocol/Hash.h>
|
||||
#include <Protocol/HiiFont.h>
|
||||
#include <Protocol/HiiString.h>
|
||||
#include <Protocol/HiiImage.h>
|
||||
#include <Protocol/HiiDatabase.h>
|
||||
#include <Protocol/HiiConfigRouting.h>
|
||||
#include <Protocol/HiiConfigAccess.h>
|
||||
#include <Protocol/FormBrowser2.h>
|
||||
#include <Protocol/DeviceIo.h>
|
||||
#include <Protocol/UgaDraw.h>
|
||||
#include <Protocol/UgaIo.h>
|
||||
#include <Protocol/DriverConfiguration.h>
|
||||
#include <Protocol/DriverConfiguration2.h>
|
||||
#include <Protocol/DevicePathUtilities.h>
|
||||
//#include <Protocol/FirmwareVolume.h>
|
||||
//#include <Protocol/FirmwareVolume2.h>
|
||||
|
||||
#include <Library/HandleParsingLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/DevicePathLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
#include <Library/UefiLib.h>
|
||||
#include <Library/HiiLib.h>
|
||||
#include <Library/ShellLib.h>
|
||||
|
||||
typedef struct {
|
||||
LIST_ENTRY Link;
|
||||
EFI_HANDLE TheHandle;
|
||||
UINTN TheIndex;
|
||||
}HANDLE_LIST;
|
||||
|
||||
typedef struct {
|
||||
HANDLE_LIST List;
|
||||
UINTN NextIndex;
|
||||
} HANDLE_INDEX_LIST;
|
||||
|
||||
typedef
|
||||
CHAR16 *
|
||||
(EFIAPI *DUMP_PROTOCOL_INFO)(
|
||||
IN CONST EFI_HANDLE TheHandle,
|
||||
IN CONST BOOLEAN Verbose
|
||||
);
|
||||
|
||||
|
||||
typedef struct {
|
||||
EFI_STRING_ID StringId;
|
||||
EFI_GUID *GuidId;
|
||||
DUMP_PROTOCOL_INFO DumpInfo;
|
||||
} PROTOCOL_INFO_BLOCK;
|
||||
|
158
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
Normal file
158
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
Normal file
@@ -0,0 +1,158 @@
|
||||
## @file
|
||||
# Provides interface to advanced shell functionality for parsing both handle and protocol database.
|
||||
# Copyright (c) 2010, Intel Corporation. All rights reserved. <BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010006
|
||||
BASE_NAME = UefiHandleParsingLib
|
||||
FILE_GUID = 3CDC7177-CC2A-4678-BA8F-1A936A093FA4
|
||||
MODULE_TYPE = UEFI_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = HandleParsingLib|UEFI_APPLICATION UEFI_DRIVER
|
||||
CONSTRUCTOR = HandleParsingLibConstructor
|
||||
DESTRUCTOR = HandleParsingLibDestructor
|
||||
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
||||
#
|
||||
|
||||
[Sources.common]
|
||||
UefiHandleParsingLib.c
|
||||
UefiHandleParsingLib.h
|
||||
UefiHandleParsingLib.uni
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
ShellPkg/ShellPkg.dec
|
||||
IntelFrameworkPkg/IntelFrameworkPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
UefiBootServicesTableLib
|
||||
MemoryAllocationLib
|
||||
DevicePathLib
|
||||
BaseLib
|
||||
BaseMemoryLib
|
||||
DebugLib
|
||||
FileHandleLib
|
||||
PrintLib
|
||||
UefiLib
|
||||
HiiLib
|
||||
|
||||
[Protocols]
|
||||
gEfiSimpleFileSystemProtocolGuid # ALWAYS_CONSUMED
|
||||
|
||||
# shell 2.0
|
||||
gEfiShellProtocolGuid # SOMETIMES_CONSUMED
|
||||
gEfiShellParametersProtocolGuid # SOMETIMES_CONSUMED
|
||||
|
||||
# 'old' shell
|
||||
gEfiShellEnvironment2Guid # SOMETIMES_CONSUMED
|
||||
gEfiShellInterfaceGuid # SOMETIMES_CONSUMED
|
||||
|
||||
gEfiUnicodeCollation2ProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiDevicePathToTextProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiBusSpecificDriverOverrideProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiDevicePathUtilitiesProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiDevicePathFromTextProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiPlatformDriverOverrideProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiSimpleTextInProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiPlatformToDriverConfigurationProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiDriverSupportedEfiVersionProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiLoadedImageProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiDevicePathProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiLoadedImageDevicePathProtocolGuid # ALWAYS_CONSUMED
|
||||
gEfiSimpleTextOutProtocolGuid
|
||||
gEfiSimplePointerProtocolGuid
|
||||
gEfiAbsolutePointerProtocolGuid
|
||||
gEfiSerialIoProtocolGuid
|
||||
gEfiEdidDiscoveredProtocolGuid
|
||||
gEfiEdidActiveProtocolGuid
|
||||
gEfiEdidOverrideProtocolGuid
|
||||
gEfiLoadFileProtocolGuid
|
||||
gEfiLoadFile2ProtocolGuid
|
||||
gEfiTapeIoProtocolGuid
|
||||
gEfiDiskIoProtocolGuid
|
||||
gEfiBlockIoProtocolGuid
|
||||
gEfiUnicodeCollationProtocolGuid
|
||||
gEfiUnicodeCollation2ProtocolGuid
|
||||
gEfiPciRootBridgeIoProtocolGuid
|
||||
gEfiPciIoProtocolGuid
|
||||
gEfiScsiPassThruProtocolGuid
|
||||
gEfiScsiIoProtocolGuid
|
||||
gEfiExtScsiPassThruProtocolGuid
|
||||
gEfiIScsiInitiatorNameProtocolGuid
|
||||
gEfiUsbIoProtocolGuid
|
||||
gEfiUsbHcProtocolGuid
|
||||
gEfiUsb2HcProtocolGuid
|
||||
gEfiDebugSupportProtocolGuid
|
||||
gEfiDebugPortProtocolGuid
|
||||
gEfiDecompressProtocolGuid
|
||||
gEfiAcpiTableProtocolGuid
|
||||
gEfiEbcProtocolGuid
|
||||
gEfiSimpleNetworkProtocolGuid
|
||||
gEfiNetworkInterfaceIdentifierProtocolGuid
|
||||
gEfiNetworkInterfaceIdentifierProtocolGuid_31
|
||||
gEfiPxeBaseCodeProtocolGuid
|
||||
gEfiPxeBaseCodeCallbackProtocolGuid
|
||||
gEfiBisProtocolGuid
|
||||
gEfiManagedNetworkServiceBindingProtocolGuid
|
||||
gEfiManagedNetworkProtocolGuid
|
||||
gEfiArpServiceBindingProtocolGuid
|
||||
gEfiArpProtocolGuid
|
||||
gEfiDhcp4ServiceBindingProtocolGuid
|
||||
gEfiDhcp4ProtocolGuid
|
||||
gEfiTcp4ServiceBindingProtocolGuid
|
||||
gEfiTcp4ProtocolGuid
|
||||
gEfiIp4ServiceBindingProtocolGuid
|
||||
gEfiIp4ProtocolGuid
|
||||
gEfiIp4ConfigProtocolGuid
|
||||
gEfiUdp4ServiceBindingProtocolGuid
|
||||
gEfiUdp4ProtocolGuid
|
||||
gEfiMtftp4ServiceBindingProtocolGuid
|
||||
gEfiMtftp4ProtocolGuid
|
||||
gEfiAuthenticationInfoProtocolGuid
|
||||
gEfiHashServiceBindingProtocolGuid
|
||||
gEfiHashProtocolGuid
|
||||
gEfiHiiFontProtocolGuid
|
||||
gEfiHiiStringProtocolGuid
|
||||
gEfiHiiImageProtocolGuid
|
||||
gEfiHiiConfigRoutingProtocolGuid
|
||||
gEfiHiiConfigAccessProtocolGuid
|
||||
gEfiFormBrowser2ProtocolGuid
|
||||
gEfiDeviceIoProtocolGuid
|
||||
gEfiUgaDrawProtocolGuid
|
||||
gEfiUgaIoProtocolGuid
|
||||
gEfiDriverConfigurationProtocolGuid
|
||||
gEfiDriverConfiguration2ProtocolGuid
|
||||
gEfiSimpleTextInputExProtocolGuid
|
||||
|
||||
[Guids]
|
||||
gEfiFileInfoGuid # ALWAYS_CONSUMED
|
||||
gEfiShellEnvironment2ExtGuid # ALWAYS_CONSUMED
|
||||
gEfiPcAnsiGuid
|
||||
gEfiVT100Guid
|
||||
gEfiVT100PlusGuid
|
||||
gEfiVTUTF8Guid
|
||||
gEfiStandardErrorDeviceGuid
|
||||
gEfiConsoleInDeviceGuid
|
||||
gEfiConsoleOutDeviceGuid
|
||||
gEfiFileSystemInfoGuid
|
||||
gEfiGlobalVariableGuid
|
||||
gEfiPartTypeSystemPartGuid
|
||||
gEfiPartTypeLegacyMbrGuid
|
||||
|
||||
[Pcd.common]
|
||||
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize # ALWAYS_CONSUMED
|
||||
gEfiShellPkgTokenSpaceGuid.PcdShellPrintBufferSize # ALWAYS_CONSUMED
|
||||
gEfiShellPkgTokenSpaceGuid.PcdShellIncludeNtGuids # ALWAYS_CONSUMED
|
BIN
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni
Normal file
BIN
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni
Normal file
Binary file not shown.
Reference in New Issue
Block a user