ShellPkg: Add a support to query AdapterInfo protocol for Shell ‘dh’ command.

This patch adds support to display driver handles which has AdapterInfo protocol installed using ‘dh’ command.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com>
Reviewed-by: Jaben carsey <Jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15499 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Tapan Shah 2014-05-07 22:38:16 +00:00 committed by jcarsey
parent 62c058ca9f
commit 0fb7e718a8
4 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Provides interface to advanced shell functionality for parsing both handle and protocol database. Provides interface to advanced shell functionality for parsing both handle and protocol database.
Copyright (c) 2013 Hewlett-Packard Development Company, L.P. Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR> Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -742,6 +742,7 @@ STATIC CONST GUID_INFO_BLOCK mGuidStringList[] = {
// UEFI 2.4 // UEFI 2.4
// //
{STRING_TOKEN(STR_DISK_IO2), &gEfiDiskIo2ProtocolGuid, NULL}, {STRING_TOKEN(STR_DISK_IO2), &gEfiDiskIo2ProtocolGuid, NULL},
{STRING_TOKEN(STR_ADAPTER_INFO), &gEfiAdapterInformationProtocolGuid, NULL},
// //
// PI Spec ones // PI Spec ones

View File

@ -1,7 +1,7 @@
/** @file /** @file
Provides interface to advanced shell functionality for parsing both handle and protocol database. Provides interface to advanced shell functionality for parsing both handle and protocol database.
Copyright (c) 2013 Hewlett-Packard Development Company, L.P. Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -133,6 +133,7 @@
#include <Protocol/UserCredential2.h> #include <Protocol/UserCredential2.h>
#include <Protocol/IdeControllerInit.h> #include <Protocol/IdeControllerInit.h>
#include <Protocol/DiskIo2.h> #include <Protocol/DiskIo2.h>
#include <Protocol/AdapterInformation.h>
#include <Library/HandleParsingLib.h> #include <Library/HandleParsingLib.h>
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>

View File

@ -1,6 +1,6 @@
## @file ## @file
# Provides interface to advanced shell functionality for parsing both handle and protocol database. # Provides interface to advanced shell functionality for parsing both handle and protocol database.
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.
# Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved. <BR> # Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved. <BR>
# #
# This program and the accompanying materials # This program and the accompanying materials
@ -171,6 +171,7 @@
gEfiDriverFamilyOverrideProtocolGuid ##UNDEFINED gEfiDriverFamilyOverrideProtocolGuid ##UNDEFINED
gEfiIdeControllerInitProtocolGuid ##UNDEFINED gEfiIdeControllerInitProtocolGuid ##UNDEFINED
gEfiDiskIo2ProtocolGuid ##UNDEFINED gEfiDiskIo2ProtocolGuid ##UNDEFINED
gEfiAdapterInformationProtocolGuid ##UNDEFINED
[Guids] [Guids]
gEfiFileInfoGuid ##CONSUMES gEfiFileInfoGuid ##CONSUMES