From nobody Sun May 5 03:02:11 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1506580649916534.609655043222; Wed, 27 Sep 2017 23:37:29 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 30AED21F322A9; Wed, 27 Sep 2017 23:34:11 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C8E5021EC8D1A for ; Wed, 27 Sep 2017 23:34:09 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 27 Sep 2017 23:37:24 -0700 Received: from ray-dev.ccr.corp.intel.com ([10.239.9.7]) by orsmga004.jf.intel.com with ESMTP; 27 Sep 2017 23:37:23 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,448,1500966000"; d="scan'208";a="133096554" From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Thu, 28 Sep 2017 14:37:19 +0800 Message-Id: <20170928063720.141148-2-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 In-Reply-To: <20170928063720.141148-1-ruiyu.ni@intel.com> References: <20170928063720.141148-1-ruiyu.ni@intel.com> Subject: [edk2] [PATCH 1/2] ShellPkg/dh: Add mapping of new UEFI/PI protocols X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaben Carsey , Huajing Li MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Huajing Li Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Huajing Li Reviewed-by: Ruiyu Ni Cc: Jaben Carsey Reviewed-by: Jaben Carsey --- .../UefiHandleParsingLib/UefiHandleParsingLib.c | 56 ++++++++++++++++++= ++++ .../UefiHandleParsingLib/UefiHandleParsingLib.inf | 40 ++++++++++++++++ .../UefiHandleParsingLib/UefiHandleParsingLib.uni | 44 +++++++++++++++++ 3 files changed, 140 insertions(+) diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b= /ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index d12466c7b0..06f9d26e5f 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -2147,6 +2147,37 @@ STATIC CONST GUID_INFO_BLOCK mGuidStringList[] =3D { {STRING_TOKEN(STR_ADAPTER_INFO), &gEfiAdapterInformationProtoco= lGuid, AdapterInformationDumpInformation}, =20 // +// UEFI2.5 +// + {STRING_TOKEN(STR_TLS_SB), &gEfiTlsServiceBindingProtocol= Guid, NULL}, + {STRING_TOKEN(STR_TLS), &gEfiTlsProtocolGuid, = NULL}, + {STRING_TOKEN(STR_TLS_CONFIG), &gEfiTlsConfigurationProtocolG= uid, NULL}, + {STRING_TOKEN(STR_SUPPLICANT_SB), &gEfiSupplicantServiceBindingP= rotocolGuid, NULL}, + {STRING_TOKEN(STR_SUPPLICANT), &gEfiSupplicantProtocolGuid, = NULL}, + +// +// UEFI2.6 +// + {STRING_TOKEN(STR_WIFI2), &gEfiWiFi2ProtocolGuid, = NULL}, + {STRING_TOKEN(STR_RAMDISK), &gEfiRamDiskProtocolGuid, = NULL}, + {STRING_TOKEN(STR_HII_ID), &gEfiHiiImageDecoderProtocolGu= id, NULL}, + {STRING_TOKEN(STR_HII_IE), &gEfiHiiImageExProtocolGuid, = NULL}, + {STRING_TOKEN(STR_SD_MPT), &gEfiSdMmcPassThruProtocolGuid= , NULL}, + {STRING_TOKEN(STR_ERASE_BLOCK), &gEfiEraseBlockProtocolGuid, = NULL}, + +// +// UEFI2.7 +// + {STRING_TOKEN(STR_BLUETOOTH_ATTR), &gEfiBluetoothAttributeProtoco= lGuid, NULL}, + {STRING_TOKEN(STR_BLUETOOTH_ATTR_SB), &gEfiBluetoothAttributeService= BindingProtocolGuid, NULL}, + {STRING_TOKEN(STR_BLUETOOTH_LE_CONFIG), &gEfiBluetoothLeConfigProtocol= Guid, NULL}, + {STRING_TOKEN(STR_UFS_DEV_CONFIG), &gEfiUfsDeviceConfigProtocolGu= id, NULL}, + {STRING_TOKEN(STR_HTTP_BOOT_CALL), &gEfiHttpBootCallbackProtocolG= uid, NULL}, + {STRING_TOKEN(STR_RESET_NOTI), &gEfiResetNotificationProtocol= Guid, NULL}, + {STRING_TOKEN(STR_PARTITION_INFO), &gEfiPartitionInfoProtocolGuid= , NULL}, + {STRING_TOKEN(STR_HII_POPUP), &gEfiHiiPopupProtocolGuid, = NULL}, + +// // PI Spec ones // {STRING_TOKEN(STR_IDE_CONT_INIT), &gEfiIdeControllerInitProtocol= Guid, NULL}, @@ -2271,6 +2302,31 @@ STATIC CONST GUID_INFO_BLOCK mGuidStringList[] =3D { {STRING_TOKEN(STR_REST), &gEfiRestProtocolGuid, = NULL}, =20 // +// PI 1.5 +// + {STRING_TOKEN(STR_MM_EOD), &gEfiMmEndOfDxeProtocolGuid, = NULL}, + {STRING_TOKEN(STR_MM_ITD), &gEfiMmIoTrapDispatchProtocolG= uid, NULL}, + {STRING_TOKEN(STR_MM_PBD), &gEfiMmPowerButtonDispatchProt= ocolGuid, NULL}, + {STRING_TOKEN(STR_MM_SBD), &gEfiMmStandbyButtonDispatchPr= otocolGuid, NULL}, + {STRING_TOKEN(STR_MM_GD), &gEfiMmGpiDispatchProtocolGuid= , NULL}, + {STRING_TOKEN(STR_MM_UD), &gEfiMmUsbDispatchProtocolGuid= , NULL}, + {STRING_TOKEN(STR_MM_PTD), &gEfiMmPeriodicTimerDispatchPr= otocolGuid, NULL}, + {STRING_TOKEN(STR_MM_SXD), &gEfiMmSxDispatchProtocolGuid,= NULL}, + {STRING_TOKEN(STR_MM_SWD), &gEfiMmSwDispatchProtocolGuid,= NULL}, + {STRING_TOKEN(STR_MM_PRBI), &gEfiMmPciRootBridgeIoProtocol= Guid, NULL}, + {STRING_TOKEN(STR_MM_CPU), &gEfiMmCpuProtocolGuid, = NULL}, + {STRING_TOKEN(STR_MM_STACODE), &gEfiMmStatusCodeProtocolGuid,= NULL}, + {STRING_TOKEN(STR_DXEMM_RTL), &gEfiDxeMmReadyToLockProtocolG= uid, NULL}, + {STRING_TOKEN(STR_MM_CONFIG), &gEfiMmConfigurationProtocolGu= id, NULL}, + {STRING_TOKEN(STR_MM_RTL), &gEfiMmReadyToLockProtocolGuid= , NULL}, + {STRING_TOKEN(STR_MM_CONTROL), &gEfiMmControlProtocolGuid, = NULL}, + {STRING_TOKEN(STR_MM_ACCESS), &gEfiMmAccessProtocolGuid, = NULL}, + {STRING_TOKEN(STR_MM_BASE), &gEfiMmBaseProtocolGuid, = NULL}, + {STRING_TOKEN(STR_MM_CPUIO), &gEfiMmCpuIoProtocolGuid, = NULL}, + {STRING_TOKEN(STR_MM_RH), &gEfiMmRscHandlerProtocolGuid,= NULL}, + {STRING_TOKEN(STR_MM_COM), &gEfiMmCommunicationProtocolGu= id, NULL}, + +// // UEFI Shell Spec 2.0 // {STRING_TOKEN(STR_SHELL_PARAMETERS), &gEfiShellParametersProtocolGu= id, NULL}, diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf= b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf index 4c1c3d3846..1ab208e328 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf @@ -292,6 +292,46 @@ [Protocols] gEfiHttpProtocolGuid ## UNDEFINED gEfiHttpUtilitiesProtocolGuid ## UNDEFINED gEfiRestProtocolGuid ## UNDEFINED + gEfiMmEndOfDxeProtocolGuid ## UNDEFINED + gEfiMmIoTrapDispatchProtocolGuid ## UNDEFINED + gEfiMmPowerButtonDispatchProtocolGuid ## UNDEFINED + gEfiMmStandbyButtonDispatchProtocolGuid ## UNDEFINED + gEfiMmGpiDispatchProtocolGuid ## UNDEFINED + gEfiMmUsbDispatchProtocolGuid ## UNDEFINED + gEfiMmPeriodicTimerDispatchProtocolGuid ## UNDEFINED + gEfiMmSxDispatchProtocolGuid ## UNDEFINED + gEfiMmSwDispatchProtocolGuid ## UNDEFINED + gEfiMmPciRootBridgeIoProtocolGuid ## UNDEFINED + gEfiMmCpuProtocolGuid ## UNDEFINED + gEfiMmStatusCodeProtocolGuid ## UNDEFINED + gEfiDxeMmReadyToLockProtocolGuid ## UNDEFINED + gEfiMmConfigurationProtocolGuid ## UNDEFINED + gEfiMmReadyToLockProtocolGuid ## UNDEFINED + gEfiMmControlProtocolGuid ## UNDEFINED + gEfiMmAccessProtocolGuid ## UNDEFINED + gEfiMmBaseProtocolGuid ## UNDEFINED + gEfiMmCpuIoProtocolGuid ## UNDEFINED + gEfiMmRscHandlerProtocolGuid ## UNDEFINED + gEfiMmCommunicationProtocolGuid ## UNDEFINED + gEfiTlsServiceBindingProtocolGuid ## UNDEFINED + gEfiTlsProtocolGuid ## UNDEFINED + gEfiTlsConfigurationProtocolGuid ## UNDEFINED + gEfiSupplicantServiceBindingProtocolGuid ## UNDEFINED + gEfiSupplicantProtocolGuid ## UNDEFINED + gEfiWiFi2ProtocolGuid ## UNDEFINED + gEfiRamDiskProtocolGuid ## UNDEFINED + gEfiHiiImageDecoderProtocolGuid ## UNDEFINED + gEfiHiiImageExProtocolGuid ## UNDEFINED + gEfiSdMmcPassThruProtocolGuid ## UNDEFINED + gEfiEraseBlockProtocolGuid ## UNDEFINED + gEfiBluetoothAttributeProtocolGuid ## UNDEFINED + gEfiBluetoothAttributeServiceBindingProtocolGuid ## UNDEFINED + gEfiBluetoothLeConfigProtocolGuid ## UNDEFINED + gEfiUfsDeviceConfigProtocolGuid ## UNDEFINED + gEfiHttpBootCallbackProtocolGuid ## UNDEFINED + gEfiResetNotificationProtocolGuid ## UNDEFINED + gEfiPartitionInfoProtocolGuid ## UNDEFINED + gEfiHiiPopupProtocolGuid ## UNDEFINED =20 [Guids] gEfiFileInfoGuid ## UNDEFINED diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni= b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni index f49ca94623..d5e0c79f3f 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.uni @@ -333,6 +333,50 @@ #string STR_NET_HTTP_U #language en-US "HttpUtilities" #string STR_REST #language en-US "Rest" =20 +#string STR_MM_EOD #language en-US "MmEndOfDxe" +#string STR_MM_ITD #language en-US "MmIoTrapDispatch" +#string STR_MM_PBD #language en-US "MmPowerButtonDispatch" +#string STR_MM_SBD #language en-US "MmStandbyButtonDispatch" +#string STR_MM_GD #language en-US "MmGpiDispatch" +#string STR_MM_UD #language en-US "MmUsbDispatch" +#string STR_MM_PTD #language en-US "MmPeriodicTimerDispatch" +#string STR_MM_SXD #language en-US "MmSxDispatch" +#string STR_MM_SWD #language en-US "MmSwDispatch" +#string STR_MM_PRBI #language en-US "MmPciRootBridgeIo" +#string STR_MM_CPU #language en-US "MmCpu" +#string STR_MM_STACODE #language en-US "MmStatusCode" +#string STR_DXEMM_RTL #language en-US "DxeMmReadyToLock" +#string STR_MM_CONFIG #language en-US "MmConfiguration" +#string STR_MM_RTL #language en-US "MmReadyToLock" +#string STR_MM_CONTROL #language en-US "MmControl" +#string STR_MM_ACCESS #language en-US "MmAccess" +#string STR_MM_BASE #language en-US "MmBase" +#string STR_MM_CPUIO #language en-US "MmCpuIo" +#string STR_MM_RH #language en-US "MmRscHandler" +#string STR_MM_COM #language en-US "MmCommunication" + +#string STR_TLS_SB #language en-US "TlsServiceBinding" +#string STR_TLS #language en-US "Tls" +#string STR_TLS_CONFIG #language en-US "TlsConfiguration" +#string STR_SUPPLICANT_SB #language en-US "SupplicantServiceBindin= g" +#string STR_SUPPLICANT #language en-US "Supplicant" + +#string STR_WIFI2 #language en-US "WiFi2" +#string STR_RAMDISK #language en-US "RamDisk" +#string STR_HII_ID #language en-US "HiiImageDecoder" +#string STR_HII_IE #language en-US "HiiImageEx" +#string STR_SD_MPT #language en-US "SdMmcPassThru" +#string STR_ERASE_BLOCK #language en-US "EraseBlock" + +#string STR_BLUETOOTH_ATTR #language en-US "BluetoothAttribute" +#string STR_BLUETOOTH_ATTR_SB #language en-US "BluetoothAttributeServi= ceBinding" +#string STR_BLUETOOTH_LE_CONFIG #language en-US "BluetoothLeConfig" +#string STR_UFS_DEV_CONFIG #language en-US "UfsDeviceConfig" +#string STR_HTTP_BOOT_CALL #language en-US "HttpBootCallback" +#string STR_RESET_NOTI #language en-US "ResetNotification" +#string STR_PARTITION_INFO #language en-US "PartitionInfo" +#string STR_HII_POPUP #language en-US "HiiPopup" + #string STR_IDE_CONT_INIT #language en-US "IdeControllerInit" #string STR_DISK_INFO #language en-US "DiskInfo" #string STR_BLOCKIO_INFO #language en-US " %s%sMId:%%H%x%%N bsiz= e %%H%x%%N, lblock %lx (%,ld), %s %s %s" --=20 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Sun May 5 03:02:11 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1506580650364585.27347597991; Wed, 27 Sep 2017 23:37:30 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6E41D21EC8D1C; Wed, 27 Sep 2017 23:34:14 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id CFA4F21EC8D1B for ; Wed, 27 Sep 2017 23:34:10 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 27 Sep 2017 23:37:25 -0700 Received: from ray-dev.ccr.corp.intel.com ([10.239.9.7]) by orsmga004.jf.intel.com with ESMTP; 27 Sep 2017 23:37:24 -0700 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,448,1500966000"; d="scan'208";a="133096564" From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Thu, 28 Sep 2017 14:37:20 +0800 Message-Id: <20170928063720.141148-3-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 In-Reply-To: <20170928063720.141148-1-ruiyu.ni@intel.com> References: <20170928063720.141148-1-ruiyu.ni@intel.com> Subject: [edk2] [PATCH 2/2] ShellPkg/UefiHandleParsingLib.c: Map SmmPciRootBridgeIo correctly X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaben Carsey , Huajing Li MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: Huajing Li The current implementation has a typo that maps SmmPciRootBridgeIo to "PciRootBridgeIo". Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Huajing Li Reviewed-by: Ruiyu Ni Cc: Jaben Carsey Reviewed-by: Jaben Carsey --- ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b= /ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index 06f9d26e5f..489decfaf8 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -2229,7 +2229,7 @@ STATIC CONST GUID_INFO_BLOCK mGuidStringList[] =3D { {STRING_TOKEN(STR_S_COMM), &gEfiSmmCommunicationProtocolG= uid, NULL}, {STRING_TOKEN(STR_S_STAT), &gEfiSmmStatusCodeProtocolGuid= , NULL}, {STRING_TOKEN(STR_S_CPU), &gEfiSmmCpuProtocolGuid, = NULL}, - {STRING_TOKEN(STR_S_PCIRBIO), &gEfiPciRootBridgeIoProtocolGu= id, NULL}, + {STRING_TOKEN(STR_S_PCIRBIO), &gEfiSmmPciRootBridgeIoProtoco= lGuid, NULL}, {STRING_TOKEN(STR_S_SWD), &gEfiSmmSwDispatch2ProtocolGui= d, NULL}, {STRING_TOKEN(STR_S_SXD), &gEfiSmmSxDispatch2ProtocolGui= d, NULL}, {STRING_TOKEN(STR_S_PTD2), &gEfiSmmPeriodicTimerDispatch2= ProtocolGuid, NULL}, --=20 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel