From 28cdb62bcd32c87d561b5ac1ea4785ad058065b4 Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Fri, 15 Nov 2013 18:44:29 +0000 Subject: [PATCH] =?utf8?q?ShellPkg:=20Add=20DiskIO2,=20and=20fix=20GUID=20?= =?utf8?q?from=20string=20check=20to=20be=20case=20insensitive=20-=20Add?= =?utf8?q?=20DiskIO2=20to=20list=20of=20known=20protocols=20-=20Fix=20stri?= =?utf8?q?ng=20check=20to=20be=20case=20insensitive=20for=20commands=20lik?= =?utf8?q?e=20=E2=80=98dh=20=E2=80=93p=20protocolname=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14851 6f19259b-4bc3-4df7-8a09-765794883524 --- .../UefiHandleParsingLib.c | 10 ++++++++-- .../UefiHandleParsingLib.h | 3 +++ .../UefiHandleParsingLib.inf | 3 +++ .../UefiHandleParsingLib.uni | Bin 24050 -> 24302 bytes 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index 515fab3294..8fd9c4b0bb 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -1,6 +1,7 @@ /** @file Provides interface to advanced shell functionality for parsing both handle and protocol database. + Copyright (c) 2013 Hewlett-Packard Development Company, L.P. Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -620,6 +621,11 @@ STATIC CONST GUID_INFO_BLOCK mGuidStringList[] = { {STRING_TOKEN(STR_SSC), &gEfiStorageSecurityCommandProtocolGuid, NULL}, {STRING_TOKEN(STR_UC2), &gEfiUserCredential2ProtocolGuid, NULL}, +// +// UEFI 2.4 +// + {STRING_TOKEN(STR_DISK_IO2), &gEfiDiskIo2ProtocolGuid, NULL}, + // // terminator // @@ -753,7 +759,7 @@ GetGuidFromStringName( if (PcdGetBool(PcdShellIncludeNtGuids)) { for (ListWalker = mGuidStringListNT ; ListWalker != NULL && ListWalker->GuidId != NULL ; ListWalker++) { String = HiiGetString(mHandleParsingHiiHandle, ListWalker->StringId, Lang); - if (Name != NULL && String != NULL && StrCmp(Name, String)==0) { + if (Name != NULL && String != NULL && StringNoCaseCompare (&Name, &String) == 0) { *Guid = ListWalker->GuidId; } SHELL_FREE_NON_NULL(String); @@ -764,7 +770,7 @@ GetGuidFromStringName( } for (ListWalker = mGuidStringList ; ListWalker != NULL && ListWalker->GuidId != NULL ; ListWalker++) { String = HiiGetString(mHandleParsingHiiHandle, ListWalker->StringId, Lang); - if (Name != NULL && String != NULL && StrCmp(Name, String)==0) { + if (Name != NULL && String != NULL && StringNoCaseCompare (&Name, &String) == 0) { *Guid = ListWalker->GuidId; } SHELL_FREE_NON_NULL(String); diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h index 3b1ad2bac4..767e1e68f1 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.h @@ -1,6 +1,7 @@ /** @file Provides interface to advanced shell functionality for parsing both handle and protocol database. + Copyright (c) 2013 Hewlett-Packard Development Company, L.P. Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -130,6 +131,7 @@ #include #include #include +#include #include #include @@ -143,6 +145,7 @@ #include #include #include +#include typedef struct { LIST_ENTRY Link; diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf index 15226a0b2e..83f8733cde 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf @@ -1,5 +1,6 @@ ## @file # Provides interface to advanced shell functionality for parsing both handle and protocol database. +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.
# # This program and the accompanying materials @@ -47,6 +48,7 @@ PrintLib UefiLib HiiLib + SortLib [Protocols] gEfiSimpleFileSystemProtocolGuid ##CONSUMES @@ -167,6 +169,7 @@ gEfiTcgProtocolGuid ##UNDEFINED gEfiHiiPackageListProtocolGuid ##UNDEFINED gEfiDriverFamilyOverrideProtocolGuid ##UNDEFINED + gEfiDiskIo2ProtocolGuid ##UNDEFINED [Guids] gEfiFileInfoGuid ##CONSUMES diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni index 6a9074eafe6e10599e3e6d65780f3e280287f9fe..eed23c93001253faa8f840ac59643871d6ba1af8 100644 GIT binary patch delta 131 zcmeygoAKRV#tBZL#taG!9t^1rYfn*Uw3Q*n!C{qT+ISly> z1q``BRvu8D0)sPU81oA5xbbum040=G_dK*P=N=+`4;+uRbRBrMGYZdNHhGL+3 To(%pBMw1!U6*qs7VsZum>YX0x delta 17 ZcmaF2m+{kX#tBXvkF1f}{7Ra|830tZ2xkBQ -- 2.39.2