From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.groups.io (mail04.groups.io [45.79.224.9]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6C041AC10C7 for ; Mon, 15 Apr 2024 16:59:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=PierNPkmzeOLR3loAEpXT8ZyH6vsWUrZpnH7jRALyyU=; c=relaxed/simple; d=groups.io; h=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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1713200369; v=1; b=1bj9u65XDeozs9gpDiJc3OWeNNTO2mGmcPEliPaKTxI3Ngcvwv0sWgZhTjCW0IAq82NAplZs RVo828ruCMXQIaS36WfvCoaZPmIWahVWfKDyr1zpnE5QCGf7r9nPao56Zqyoqbmiq2ul54rkX8B c811duy5ty2d1fYLZYWTKFFA2OewnY09+CsJgYYO9t8p90JAufzepiyk9em4Vl8tQBWRX9j/7C+ OCrM4U/Dz5zFEo0twXyi22ve0amHlZUYswNetNs2z0AXXD9ZSTJOLWPohPpTk0aucXcDMMMx+gC 7ElHvCON0f83fbj9/pdER4LCIJEv26XQOF+43ZJ+xYNSA== X-Received: by 127.0.0.2 with SMTP id cbVRYY7687511xSLVwgLepWG; Mon, 15 Apr 2024 09:59:29 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.121]) by mx.groups.io with SMTP id smtpd.web10.286.1713199648568985905 for ; Mon, 15 Apr 2024 09:47:29 -0700 X-Received: from BL3PR10MB6161.namprd10.prod.outlook.com (2603:10b6:208:3bc::16) by BN0PR10MB5144.namprd10.prod.outlook.com (2603:10b6:408:127::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.56; Mon, 15 Apr 2024 16:47:27 +0000 X-Received: from BL3PR10MB6161.namprd10.prod.outlook.com ([fe80::78e5:e1a1:9770:f20a]) by BL3PR10MB6161.namprd10.prod.outlook.com ([fe80::78e5:e1a1:9770:f20a%5]) with mapi id 15.20.7452.049; Mon, 15 Apr 2024 16:47:27 +0000 From: "Sachin Ganesh via groups.io" To: "devel@edk2.groups.io" CC: "gaoliming@byosoft.com.cn" , "michael.d.kinney@intel.com" , "zhiguang.liu@intel.com" , Felix Polyudov , Dhanaraj V , Sachin Ganesh Subject: [edk2-devel] [PATCH 4/5] MdePkg: Update Delayed Dispatch PPI as per PI 1.8 Spec Thread-Topic: [PATCH 4/5] MdePkg: Update Delayed Dispatch PPI as per PI 1.8 Spec Thread-Index: AQHaj1SZp71cjSZJpECb7922IlmcjQ== Date: Mon, 15 Apr 2024 16:47:27 +0000 Message-ID: <20240415164627.2464-5-sachinganesh@ami.com> References: <20240415164627.2464-1-sachinganesh@ami.com> In-Reply-To: <20240415164627.2464-1-sachinganesh@ami.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL3PR10MB6161:EE_|BN0PR10MB5144:EE_ x-ms-office365-filtering-correlation-id: 142edd51-dbc7-4d4f-6072-08dc5d6bbc07 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: c6vbKnobCb6noZHOQCJmorH2ExKS7RhTrHHxjL9a1bf4yZaqqwivLdk1sefqIjIDpekvFk1ffPBFEebUdsnhrVte9zVaK30TExPZHGJe3plgTLjZNwYI3ZuKbLoSpvaxGtnsPYeIMCnWsVB5r718FIhb29mC0eQp+Wrl0zz3CHMVgpJnAYGvNA/PgaSflnxc55ceqh/lzjIeO8NSxTRg3YXAHfD4ZOxi+W6KDImJj4WCW9kqZ7sSKcEBoQfydIp+47wRczeZtWnkE3GOzTTl0ZuGAMMPpa9pgR29vruFJ8Ed53badQHWQddxbV4rrz6hV77B0S5DV9fVOcxNLk9ot/qgd0iEW9hNytUtCCOiM1sitsaIzvnTV9prIwcEP+on0M8qL49H3/5cdCzoCPeXm9xAUeYfoWg3EPMKHPBNIQBLspH0WobA0fqLCqmbL9VeCT8OKcJZsEAKDK13tj2xoMxf76q1jJXoGYoe6Rp3nLNC1lA03Y7IQUXy1/+P8BunEgqVHR+Cwcc75/a2TERuzTErFo6msLrplSTZq7UgEU4wtAwucy7hr1Ib4BybZKL0Lx8ehj3BjTnh9edd4G1ILOxj9ZIN1rVHc2PagHCz5e0uRRjAZN+rama42SnZfFf5ks6D7nid5Wz5/az6hU/4nTL6WIyzUSOD7KdHaPsXnyDb142Vh5rcRegeNOyFrtN71yh2WUQ2mR6e4ax0K9Oh+zJ9qwxJnRjVh8rXV50R7U8= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ur8ycmDcC8vma9hscPertPS6998fRxKFRg4phHuKIlW03MCXVDetLR1z2C?= =?iso-8859-1?Q?evWDa7hCsDwA3Np4nYFvoz9MwqhfXsHQbeKBNwZ58hnDlIyLHk/nVAT2VH?= =?iso-8859-1?Q?Rtg/z/oOTtBwd8Z9Emy8cNqKiPTi0iUuXKAqCVuMpXZ/+QlSyic1tdNlp8?= =?iso-8859-1?Q?+masvKH0Ej2DHgTQubhL8Q04nOri1ijWdtZA0HmJtJhCXkIZV5VMnXmek+?= =?iso-8859-1?Q?IsZWIEhcxKJMpUGiLfvX9LiqxKC6VjHrzSUFatmaefN01ue2yzdAIGr1f3?= =?iso-8859-1?Q?UGGXoND7mmLqDihmDfTTw/x9SSkeHabRvPMdy2tUV1q3+iZjBnUIPTA9qt?= =?iso-8859-1?Q?9fDBkzqYU1Fe5TJg4V95TEyGawzjJLnUBPG1uCwzFFpyjAt18yTHEFUcDC?= =?iso-8859-1?Q?5CvWEzuxi9DMk7L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1?Q?xyrwfs9UhaiBUOMk6zBCYvTyWSB5dQbQDpRPtqP4cFtYnPHuIiUKA0Me1D?= =?iso-8859-1?Q?5HV4Bg47bOPJIsQ30gqQZ6RjL9r1b+JbkOPKSVX/lAyS2bKeHACU+TrM85?= =?iso-8859-1?Q?JsfWtoehLEFDE8r+DPbPAKnsbeRegwPs/dZWpvdMUPL3vPq3sYJ0r0MWrS?= =?iso-8859-1?Q?7drNpDFtl3acetGv0w4z9vnNt2SVsCHQLzX2OfUoqVDSEi2t8f/pAwwIou?= =?iso-8859-1?Q?3PWrwwWKmACE1UwSmKGp71gLTwjGFKlJ3tGTRW7PRqSd3SwzEERlQd8xA+?= =?iso-8859-1?Q?EA10yc6gnd1DQky2bIlYVx+5rmWZ4rpZ1/QY9Ckj6N44MaWbOHFOaX2A?= =?iso-8859-1?Q?=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL3PR10MB6161.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 142edd51-dbc7-4d4f-6072-08dc5d6bbc07 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2024 16:47:27.7011 (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: JudBkT1MNKW9/uSIycgCOn9D5WxBzxwHvdnmjbnS276utojPJwsszSbO92OBn51z6kAj9gIbP5Oa4bg7EmVNbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5144 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 Resent-Date: Mon, 15 Apr 2024 09:59:24 -0700 Resent-From: sachinganesh@ami.com Reply-To: devel@edk2.groups.io,sachinganesh@ami.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: INOtkBhIg8pQn1hsO8P5EGkCx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=1bj9u65X; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.9 as permitted sender) smtp.mailfrom=bounce@groups.io Added WaitOnEvent() function to EFI_DELAYTED_DISPATCH_PPI. Modified DispatchRegister() parameter list. Cc: Liming Gao Cc: Michael D Kinney Cc: Zhiguang Liu Cc: Felix Polyudov Cc: Dhanaraj V Signed-off-by: Sachin Ganesh --- MdePkg/Include/Ppi/DelayedDispatch.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Ppi/DelayedDispatch.h b/MdePkg/Include/Ppi/Dela= yedDispatch.h index f9b4fed30f..1c2068404c 100644 --- a/MdePkg/Include/Ppi/DelayedDispatch.h +++ b/MdePkg/Include/Ppi/DelayedDispatch.h @@ -49,6 +49,7 @@ This service is the single member function of the EFI_DEL= AYED_DISPATCH_PPI @param This Pointer to the EFI_DELAYED_DISPATCH_PPI instance @param Function Function to call back @param Context Context data + @param UniqueId UniqueId @param Delay Delay interval @retval EFI_SUCCESS Function successfully loaded @@ -62,9 +63,29 @@ EFI_STATUS IN EFI_DELAYED_DISPATCH_PPI *This, IN EFI_DELAYED_DISPATCH_FUNCTION Function, IN UINT64 Context, + IN EFI_GUID *UniqueId OPTIONAL, OUT UINT32 Delay ); +/** +Function invoked by a PEIM to wait until all specified UniqueId events hav= e been dispatched. The other events +will continue to dispatch while this process is being paused + + @param This Pointer to the EFI_DELAYED_DISPATCH_PPI instance + @param UniqueId Delayed dispatch request ID the caller will wait o= n + + @retval EFI_SUCCESS Function successfully invoked + @retval EFI_INVALID_PARAMETER One of the Arguments is not supported + +**/ + +typedef +EFI_STATUS +(EFIAPI *EFI_DELAYED_DISPATCH_WAIT_ON_EVENT)( + IN EFI_DELAYED_DISPATCH_PPI *This, + IN EFI_GUID UniqueId + ); + /// /// This PPI is a pointer to the Delayed Dispatch Service. /// This service will be published by the Pei Foundation. The PEI Foundati= on @@ -72,7 +93,8 @@ EFI_STATUS /// execution. /// struct _EFI_DELAYED_DISPATCH_PPI { - EFI_DELAYED_DISPATCH_REGISTER Register; + EFI_DELAYED_DISPATCH_REGISTER Register; + EFI_DELAYED_DISPATCH_WAIT_ON_EVENT WaitOnEvent; }; extern EFI_GUID gEfiPeiDelayedDispatchPpiGuid; -- 2.24.1.windows.2 -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 (#117798): https://edk2.groups.io/g/devel/message/117798 Mute This Topic: https://groups.io/mt/105540406/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-