From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id CA7A2D80860 for ; Wed, 13 Dec 2023 01:09:55 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=JWS7AO9r4muCb6cdFrMSIhJ+1lXg/3N6Dsey76b0gvQ=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1702429794; v=1; b=mWnzlSOQ5BsHJP9u7r50UUWoraGDoskXyDWIJ4JbQ1z9mPq6djU7448rAkJugu2Q+2cwjQH5 Bbg2zpVLeAAIeAWWYdQcBHwSoN7Vefvi7csHrmSVrnLoKwrfDpuzGuIpnTWT63UO7SX2PEi65tL dfPFqDOgwK/QTRerxEYGriSQ= X-Received: by 127.0.0.2 with SMTP id w17rYY7687511xbq13awDWiT; Tue, 12 Dec 2023 17:09:54 -0800 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.77]) by mx.groups.io with SMTP id smtpd.web10.13468.1702429793133966113 for ; Tue, 12 Dec 2023 17:09:53 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mCev4zVFTjIdt58juduDJ2qOTXY0cjwnPPrl+rFcTdvrmBKt/gHL6WpeD38L1XB+SeW3oeq+NXblp4aBFmFuWqD4opRBUxqmZ3KmOXpzqXD2f2x+svLwyU8zAKpNiqE6YygHwgGnxdOA7eegPHXUOA3KKgV+FDYUg94kuP34CCr0Wbifc23kkVNCovN0WNRGi9fHfhizKnlwz0hRfJD2MfWt4pR0ODrkX0WhyuGSK0lB5JrPgoHlLTpTFWLN8Ut8UAZFOErV3V9IaBI7Disw1V+T+XiKcNNl6hAGM68tDdyuvZ8bAnX4fF9X8HjJqwpnRboYRzQgESP3SNZBpMJd6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OXHmLPmWQeRFtELfRCJO5gLpjGPmAVQuBa0SovMLOA0=; b=K0KeLA3PJGgFLVNd9KSE3eKbXVQsoklOViUKMaeNV5IIfzyDjj3rRXRgpYvswp/B7tJChHuTXP+j9+siv+k20iaP6pHu0nWUwaesfMUm5NZtFrQNPmFiHKxVnh3S5lyJmwMUrdDvTTxDzmdc7kbL454ntcD+6m3EiPkmK/m9cbW9e2ICOuuKbkGLCq/S8Q9R0wRyUHOlwp6VMJlxYiAYcGRI1DZSn5HOPdCA95FPm6Itw296273BDG7edqwYpVU+kYAEYoa+NVTIBXYxkRJ6fppPEp2BfaKdQzlQ1n4+ABp9Xh5xMyHn4eBv859t3FiFoqLZ2rz1wfSMPVTdFD6XLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none X-Received: from BLAPR10MB5185.namprd10.prod.outlook.com (2603:10b6:208:328::16) by DM4PR10MB6694.namprd10.prod.outlook.com (2603:10b6:8:112::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Wed, 13 Dec 2023 01:09:48 +0000 X-Received: from BLAPR10MB5185.namprd10.prod.outlook.com ([fe80::9dc0:d4e1:1d40:3e33]) by BLAPR10MB5185.namprd10.prod.outlook.com ([fe80::9dc0:d4e1:1d40:3e33%5]) with mapi id 15.20.7091.022; Wed, 13 Dec 2023 01:09:46 +0000 From: "Igor Kulchytskyy via groups.io" To: Mike Maslenkin , "devel@edk2.groups.io" CC: "abner.chang@amd.com" , "nicklew@nvidia.com" Subject: Re: [edk2-devel] [PATCH 6/9] RedfishPkg: add Component Name protocols to RedfishConfigHandler driver Thread-Topic: [EXTERNAL] [PATCH 6/9] RedfishPkg: add Component Name protocols to RedfishConfigHandler driver Thread-Index: AQHaLQsfwkp2VkfyYEy3wMSOwUTDqrCmZ1VQ Date: Wed, 13 Dec 2023 01:09:46 +0000 Message-ID: References: <20231212145412.50434-1-mike.maslenkin@gmail.com> <20231212145412.50434-7-mike.maslenkin@gmail.com> In-Reply-To: <20231212145412.50434-7-mike.maslenkin@gmail.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BLAPR10MB5185:EE_|DM4PR10MB6694:EE_ x-ms-office365-filtering-correlation-id: 3084187c-67c2-4e81-fe72-08dbfb783287 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: +hzDBIpRtD0XuWnhjNDJ1U4N4me98F2vPZiXg6venB2NhnqExriBVEPFaCgdG6hwI2Pu98hfGJV1C1xnQKM53aUmRB3mWLV3CqtPKt2V0LxwF8CVIoQiUmAHcexwQEJv1KjBKcWNqzRL/H1ya5cmmQnapstIwu0E1F2bPBh4PBGsIn3c/hVOHj7lkLbxZsnlbd6PYtAzIq01cDmI/HFLno0Zk07hX1qAZ7P4tS8SBqZ6cgVMyvi1yOCcxZTryb1cYB8OocoLXS9VlZ8Bm3lGXdRVVsVzo3ET++i99Aea3hXO9polRTGze4hh3g7VasyvCx90/dbw2MftnAgFMzMsgnVgBUixrWeypDguH1o8jT3j22y2s+34E7VoSh0K+uzQrASpyIrnflH9ap2QgXUnrOXakrZ558Ghk06qmkcKrXud55vHOMW2snUEvx09QcINmfvdHOhGcDT5mTNEWeLDKOlFt1LvId+JCgpTwtt7f7t9VtO1YZs6vCvTa2QAJWPz3yvvNHvEczWzPkYkynRZjJZYb8vodgVXACiKPOd6mpxzHn+fxFWfhbPKbuoCPMx3zQ3t4gvS/nAl0oqqFLFwfkFjTJk4LtspXCHOwmFbaDqu/IhyDaTuNhfx60VJC7L4Bv9QkEMoSvjafmu2S6kMVhh0m3oyS1tEHqRLNfnSZ8E= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+Bteq2fzbNJFII5TtgffrbbTjPqp7eW1bSaoe1lM9dKyqeJyA3DXRIRymSLu?= =?us-ascii?Q?egDpEzh0tlO0BQg8tNz0hgDa+cwCgVzLrOfzZTGqW3q9ECOLKcqOIAFvrcQw?= =?us-ascii?Q?jmP0DnwVyaAgxQQJ2WumxemtlXyauOYYt1ZHxuysVigCNxSOHSR5bQcJ+0Tf?= =?us-ascii?Q?w1LAevTFFTHMBXy+PXE9xrJNtV6zxtDRI07iWQzHyINUrla5OvxK9GsciEXR?= =?us-ascii?Q?YoP4VpigszXqYFGmI0gtmRWh2AlPo3ElFlshRe6+5WNAu6RkHOg/Lr/SJ6GS?= =?us-ascii?Q?bZg/Zn6mxJeym7DKEBFNFUz2zweHPOLezm+5a0blpMkBFjrSl6yv1mnsplU1?= =?us-ascii?Q?JA3KbooFQpy8ZwQUzudKZzQY/x0AzICvGPFhLCHx/yLzI9io6/IU6djWJKGI?= =?us-ascii?Q?XgzUjX1rNVKGzFBGG+vnIaaIxd7svMIkz0p0BrNWY7lJ8QoLu4TjtVPJUMdD?= =?us-ascii?Q?11i1Nje2KeoacbKF5Z7Eyy3CfWwUmb+cmwk8RB8R69hHd59qKmUqLcpfNuAG?= =?us-ascii?Q?Pvu+jVkcOcwQ0Lijp6UOverzo5KVMEKYjwhwBjwcCcVn+Ph5i2Z6TIWNHATL?= =?us-ascii?Q?UezBUnQYfunmq2mYegRbQKOSiWVC3624RVH/iMSIA8yekFEqa68HyYFoETxu?= =?us-ascii?Q?HJxPIribYkzft45t5S9RuPMk2RCIpA3eb1d189llNO7qkECVRSBePudfx3i1?= =?us-ascii?Q?GHlspeVlJbiZkkiHNrY8xvX4oXbCjH7F82LG2hwDSRezDFkobmaoaTwb16jz?= =?us-ascii?Q?I5krCQUFjFZmGA6yZK/JY7m7ctgQ9zbv6JJH/NxfrirWtuIFVJ+EwbrjwMK5?= =?us-ascii?Q?qJaAjUsPDZSmUbgEz1ZTJhyWMWIm8JdKeDujRoOTNAwe2Paw35UmlwiGbAvG?= =?us-ascii?Q?FJ7Fnst9UwAoHimKIMtt4DUVEjBlF5EvgSXrT67MKVENBE9GFV4uES7OzrlO?= =?us-ascii?Q?DGV7OwGQ5MKGiSsAIfP1d1e5LnOGcjtrDS9bREuyT14LL5Gim/1yc4/tGObc?= =?us-ascii?Q?8SPxNR4lwStOkrTAj3RGI88gdMsoY6sQviqOoKS7TOspady2eLl3699P5MR+?= =?us-ascii?Q?60bXaMjZo33O+AsBsd0oF36wYFa+vnhzbSYB/6Bp59Eq4TJM5hubmuMUEAHV?= =?us-ascii?Q?Cuu8YBaBUt+Z6Y5dWHw3S+cas/vlPzR4YV2LN1y9NnlXiegA0cVbeRDi+ltM?= =?us-ascii?Q?FS17SMTtPXs1Rt0D9zpUtohx7TbsTeFidoWlNQvaJPkXBwVDXu2gz1Q1syiy?= =?us-ascii?Q?WtqH81fN6U86imQ7xvr5pQ6ltam3jmRjE66oezzjTuj/+bSUg3Vz1+N8mhMI?= =?us-ascii?Q?6Kf2ZznH1tHsme0DTybb0fVz3HJcFpCPj3vBxf7dY4EL8jNZ2LCKNksSvAwx?= =?us-ascii?Q?SBZiYabFURBFXTwO4lN3Pyqx3MI+eA2TuA1BE9CD5rMRT44fEGufHA+2x2sx?= =?us-ascii?Q?8GnYg/CobyS0Mlvn9K94KTddU/DvX+RclTYZVTlczNaUpq87lMLn9qS9csHU?= =?us-ascii?Q?20KgqdUNCABu+fRTemkpyEj0ya8TvbDnwyJNYJBJWsoyzz2GxKOZeerJLcA4?= =?us-ascii?Q?EgQeFW3iWJTbjE937xM=3D?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5185.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3084187c-67c2-4e81-fe72-08dbfb783287 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2023 01:09:46.5040 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sloKdkGrL2JgJJGGQ16tYKLaEKx8uLSiYm2ktTtkYGoEXQcUVb1Zj2ORU69iJSo+ X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6694 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,igork@ami.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: o7qUlQXCnVMHeya2ho7LOsPUx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=mWnzlSOQ; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Just mistype I guess (see below) -----Original Message----- From: Mike Maslenkin Sent: Tuesday, December 12, 2023 9:54 AM To: devel@edk2.groups.io Cc: abner.chang@amd.com; nicklew@nvidia.com; Igor Kulchytskyy ; Mike Maslenkin Subject: [EXTERNAL] [PATCH 6/9] RedfishPkg: add Component Name protocols to= RedfishConfigHandler driver **CAUTION: The e-mail below is from an external source. Please exercise cau= tion before opening attachments, clicking links, or following guidance.** Currently there is no description for RedfishConfigHandler driver. This leads to in the "DRIVER NAME" column of a `drivers` command for example. Cc: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Signed-off-by: Mike Maslenkin --- .../RedfishConfigHandler/ComponentName.c | 216 ++++++++++++++++++ .../RedfishConfigHandlerDriver.c | 10 +- .../RedfishConfigHandlerDriver.h | 4 +- .../RedfishConfigHandlerDriver.inf | 1 + 4 files changed, 228 insertions(+), 3 deletions(-) create mode 100644 RedfishPkg/RedfishConfigHandler/ComponentName.c diff --git a/RedfishPkg/RedfishConfigHandler/ComponentName.c b/RedfishPkg/R= edfishConfigHandler/ComponentName.c new file mode 100644 index 000000000000..e85d42ebdccd --- /dev/null +++ b/RedfishPkg/RedfishConfigHandler/ComponentName.c @@ -0,0 +1,216 @@ +/** @file + Implementation of EFI_COMPONENT_NAME_PROTOCOL and EFI_COMPONENT_NAME2_PR= OTOCOL protocol + for EFI Refish Config Handler Protocol + + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include "RedfishConfigHandlerCommon.h" + +// +// EFI Component Name Functions +// + +/** + Retrieves a Unicode string that is the user-readable name of the EFI Dri= ver. + + @param[in] This A pointer to the EFI_COMPONENT_NAME_PROTOCOL inst= ance. + @param[in] Language A pointer to a three-character ISO 639-2 language= identifier. + This is the language of the driver name that that= the caller double "that that" should be only one "that" + is requesting, and it must match one of the langu= ages specified + in SupportedLanguages. The number of languages s= upported by a + driver is up to the driver writer. + @param[out] DriverName A pointer to the Unicode string to return. This = Unicode string + is the name of the driver specified by This in th= e language + specified by Language. + + @retval EFI_SUCCESS The Unicode string for the Driver specifie= d by This + and the language specified by Language was= returned + in DriverName. + @retval EFI_INVALID_PARAMETER Language is NULL. + @retval EFI_INVALID_PARAMETER DriverName is NULL. + @retval EFI_UNSUPPORTED The driver specified by This does not supp= ort the + language specified by Language. + +**/ +EFI_STATUS +EFIAPI +RedfishConfigHandlerComponentNameGetDriverName ( + IN EFI_COMPONENT_NAME_PROTOCOL *This, + IN CHAR8 *Language, + OUT CHAR16 **DriverName + ); + +/** + Retrieves a Unicode string that is the user readable name of the control= ler + that is being managed by an EFI Driver. + + @param[in] This A pointer to the EFI_COMPONENT_NAME_PROTOCO= L instance. + @param[in] ControllerHandle The handle of a controller that the driver = specified by + This is managing. This handle specifies th= e controller + whose name is to be returned. + @param[in] ChildHandle The handle of the child controller to retri= eve the name + of. This is an optional parameter that may= be NULL. It + will be NULL for device drivers. It will a= lso be NULL + for a bus drivers that wish to retrieve the= name of the + bus controller. It will not be NULL for a = bus driver + that wishes to retrieve the name of a child= controller. + @param[in] Language A pointer to a three character ISO 639-2 la= nguage + identifier. This is the language of the co= ntroller name + that the caller is requesting, and it must = match one + of the languages specified in SupportedLang= uages. The + number of languages supported by a driver i= s up to the + driver writer. + @param[out] ControllerName A pointer to the Unicode string to return. = This Unicode + string is the name of the controller specif= ied by + ControllerHandle and ChildHandle in the lan= guage specified + by Language, from the point of view of the = driver specified + by This. + + @retval EFI_SUCCESS The Unicode string for the user-readable n= ame in the + language specified by Language for the dri= ver + specified by This was returned in DriverNa= me. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. + @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a va= lid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER Language is NULL. + @retval EFI_INVALID_PARAMETER ControllerName is NULL. + @retval EFI_UNSUPPORTED The driver specified by This is not curren= tly managing + the controller specified by ControllerHand= le and + ChildHandle. + @retval EFI_UNSUPPORTED The driver specified by This does not supp= ort the + language specified by Language. + +**/ +EFI_STATUS +EFIAPI +RedfishConfigHandlerComponentNameGetControllerName ( + IN EFI_COMPONENT_NAME_PROTOCOL *This, + IN EFI_HANDLE ControllerHandle, + IN EFI_HANDLE ChildHandle OPTIONAL, + IN CHAR8 *Language, + OUT CHAR16 **ControllerName + ); + +/// +/// Component Name Protocol instance +/// +GLOBAL_REMOVE_IF_UNREFERENCED +EFI_COMPONENT_NAME_PROTOCOL gRedfishConfigHandlerComponentName =3D { + RedfishConfigHandlerComponentNameGetDriverName, + RedfishConfigHandlerComponentNameGetControllerName, + "eng" +}; + +/// +/// Component Name 2 Protocol instance +/// +GLOBAL_REMOVE_IF_UNREFERENCED +EFI_COMPONENT_NAME2_PROTOCOL gRedfishConfigHandlerComponentName2 =3D { + (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)RedfishConfigHandlerComponentNameGe= tDriverName, + (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)RedfishConfigHandlerComponentNa= meGetControllerName, + "en" +}; + +/// +/// Table of driver names +/// +GLOBAL_REMOVE_IF_UNREFERENCED +EFI_UNICODE_STRING_TABLE mRedfishConfigHandlerDriverNameTable[] =3D { + { "eng;en", (CHAR16 *)L"Redfish Configuration UEFI Driver" }, + { NULL, NULL } +}; + +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE *gRedfishConfigHan= dlerControllerNameTable =3D NULL; + +/** + Retrieves a Unicode string that is the user-readable name of the EFI Dri= ver. + + @param[in] This A pointer to the EFI_COMPONENT_NAME_PROTOCOL ins= tance. + @param[in] Language A pointer to a three-character ISO 639-2 languag= e identifier. + This is the language of the driver name that tha= t the caller double "that that" should be only one "that" + is requesting, and it must match one of the lang= uages specified + in SupportedLanguages. The number of languages = supported by a + driver is up to the driver writer. + @param[out] DriverName A pointer to the Unicode string to return. This= Unicode string + is the name of the driver specified by This in t= he language + specified by Language. + + @retval EFI_SUCCESS The Unicode string for the Driver specifie= d by This + and the language specified by Language was= returned + in DriverName. + @retval EFI_INVALID_PARAMETER Language is NULL. + @retval EFI_INVALID_PARAMETER DriverName is NULL. + @retval EFI_UNSUPPORTED The driver specified by This does not supp= ort the + language specified by Language. + +**/ +EFI_STATUS +EFIAPI +RedfishConfigHandlerComponentNameGetDriverName ( + IN EFI_COMPONENT_NAME_PROTOCOL *This, + IN CHAR8 *Language, + OUT CHAR16 **DriverName + ) +{ + return LookupUnicodeString2 ( + Language, + This->SupportedLanguages, + mRedfishConfigHandlerDriverNameTable, + DriverName, + (BOOLEAN)(This =3D=3D &gRedfishConfigHandlerComponentName) + ); +} + +/** + Retrieves a Unicode string that is the user readable name of the control= ler + that is being managed by an EFI Driver. + + @param[in] This A pointer to the EFI_COMPONENT_NAME_PROTOCO= L instance. + @param[in] ControllerHandle The handle of a controller that the driver = specified by + This is managing. This handle specifies th= e controller + whose name is to be returned. + @param[in] ChildHandle The handle of the child controller to retri= eve the name + of. This is an optional parameter that may= be NULL. It + will be NULL for device drivers. It will a= lso be NULL + for a bus drivers that wish to retrieve the= name of the + bus controller. It will not be NULL for a = bus driver + that wishes to retrieve the name of a child= controller. + @param[in] Language A pointer to a three character ISO 639-2 la= nguage + identifier. This is the language of the co= ntroller name + that the caller is requesting, and it must = match one + of the languages specified in SupportedLang= uages. The + number of languages supported by a driver i= s up to the + driver writer. + @param[out] ControllerName A pointer to the Unicode string to return. = This Unicode + string is the name of the controller specif= ied by + ControllerHandle and ChildHandle in the lan= guage specified + by Language, from the point of view of the = driver specified + by This. + + @retval EFI_SUCCESS The Unicode string for the user-readable n= ame in the + language specified by Language for the dri= ver + specified by This was returned in DriverNa= me. + @retval EFI_INVALID_PARAMETER ControllerHandle is NULL. + @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a va= lid EFI_HANDLE. + @retval EFI_INVALID_PARAMETER Language is NULL. + @retval EFI_INVALID_PARAMETER ControllerName is NULL. + @retval EFI_UNSUPPORTED The driver specified by This is not curren= tly managing + the controller specified by ControllerHand= le and + ChildHandle. + @retval EFI_UNSUPPORTED The driver specified by This does not supp= ort the + language specified by Language. + +**/ +EFI_STATUS +EFIAPI +RedfishConfigHandlerComponentNameGetControllerName ( + IN EFI_COMPONENT_NAME_PROTOCOL *This, + IN EFI_HANDLE ControllerHandle, + IN EFI_HANDLE ChildHandle OPTIONAL, + IN CHAR8 *Language, + OUT CHAR16 **ControllerName + ) +{ + return EFI_UNSUPPORTED; +} diff --git a/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.c b= /RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.c index 2d0170d88614..5e03132695d6 100644 --- a/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.c +++ b/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.c @@ -601,11 +601,17 @@ RedfishConfigHandlerDriverEntryPoint ( // // Install UEFI Driver Model protocol(s). // - Status =3D EfiLibInstallDriverBinding ( + Status =3D EfiLibInstallAllDriverProtocols2 ( ImageHandle, SystemTable, &gRedfishConfigDriverBinding, - ImageHandle + ImageHandle, + &gRedfishConfigHandlerComponentName, + &gRedfishConfigHandlerComponentName2, + NULL, + NULL, + NULL, + NULL ); if (EFI_ERROR (Status)) { gBS->CloseEvent (gEndOfDxeEvent); diff --git a/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.h b= /RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.h index 07214875bd5a..51701c05c697 100644 --- a/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.h +++ b/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.h @@ -24,7 +24,9 @@ // // Protocol instances // -extern EFI_DRIVER_BINDING_PROTOCOL gRedfishConfigDriverBinding; +extern EFI_DRIVER_BINDING_PROTOCOL gRedfishConfigDriverBinding; +extern EFI_COMPONENT_NAME_PROTOCOL gRedfishConfigHandlerComponentName; +extern EFI_COMPONENT_NAME2_PROTOCOL gRedfishConfigHandlerComponentName2; extern REDFISH_CONFIG_DRIVER_DATA gRedfishConfigData; extern EDKII_REDFISH_CREDENTIAL_PROTOCOL *gCredential; diff --git a/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.inf= b/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.inf index aed93f570cf9..40ce0561379f 100644 --- a/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.inf +++ b/RedfishPkg/RedfishConfigHandler/RedfishConfigHandlerDriver.inf @@ -30,6 +30,7 @@ RedfishPkg/RedfishPkg.dec [Sources] + ComponentName.c RedfishConfigHandlerDriver.h RedfishConfigHandlerDriver.c RedfishConfigHandlerCommon.h -- 2.32.0 (Apple Git-132) -The information contained in this message may be confidential and propriet= ary to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephone= at 770-246-8600, and then delete or destroy all copies of the transmission= . -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112462): https://edk2.groups.io/g/devel/message/112462 Mute This Topic: https://groups.io/mt/103130784/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-