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 134A8740034 for ; Tue, 2 Apr 2024 04:19:15 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/iFAADHO+CSy0mUmg+izsu/mIWcYz/zXwSzGH1BKAo0=; 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=1712031554; v=1; b=N0TMmFcMCw/eosBkrm9hVtt9vGVCExe+ABmFj4IxB9KzJyYq1CqQopp6UhVDMX0Znv6EaBLU Qr7Z13rRFtXeXDPfFTSRIbUmulzkDkEJ5hnkqfstYdQWFvbVTR/YLdRiqfJpssw6YWTEtbD1UA/ DNl5BtbsoLp+zm8M2UpZXBmYlh8yt7fjYfinSVE2X8cpctDaoft+4eFIVjCJkYcPQPw/5LlD10K yHyt9SmGVdlcBHZrDyQGhmd3KVygatf97onVro3jRWVfXIyic3aurwamPkZzfNBCCiwsHG6z6PN MnaLpw/3KYtjo+vaz1MxyLB/NPzQcS0nNbAad9mEwy4Hg== X-Received: by 127.0.0.2 with SMTP id UX6wYY7687511x5dnf6prFdC; Mon, 01 Apr 2024 21:19:14 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.110]) by mx.groups.io with SMTP id smtpd.web10.5813.1712011252711619511 for ; Mon, 01 Apr 2024 15:40:57 -0700 X-Received: from BL3PR10MB6161.namprd10.prod.outlook.com (2603:10b6:208:3bc::16) by SN4PR10MB5558.namprd10.prod.outlook.com (2603:10b6:806:201::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 22:40:51 +0000 X-Received: from BL3PR10MB6161.namprd10.prod.outlook.com ([fe80::eba0:e25a:464b:436b]) by BL3PR10MB6161.namprd10.prod.outlook.com ([fe80::eba0:e25a:464b:436b%3]) with mapi id 15.20.7409.042; Mon, 1 Apr 2024 22:40:51 +0000 From: "Sachin Ganesh via groups.io" To: "devel@edk2.groups.io" CC: Liming Gao , Felix Polyudov , Dhanaraj V 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: AQHahIWlXYgJcNcYoEWJM6EJutz6Iw== Date: Mon, 1 Apr 2024 22:40:50 +0000 Message-ID: <20240401224002.254-5-sachinganesh@ami.com> References: <20240401224002.254-1-sachinganesh@ami.com> In-Reply-To: <20240401224002.254-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_|SN4PR10MB5558:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: XwJR0K8wFQS+00y9Qnhs6Aqoi2BKxctN4P2uKP9rvi1Ze4h7e+YR2GOOZVEuK2P/GRi7wUlDBXDZM5wWMeU168M9etq0hfeVcCSeJEy/vpcAtt6cEv65ibqNXb6RIypBA2+oRgvfRxGLfA6BxBzQ7JYXaD+83VzXatl2F5qk+MbqkHSeLG55tv4qBcx3xQ/iSEoknla4SOwQH7YvPG2PiZaC8pESpiLJYnMulQ56npwwz7E8VmU2l2mFa7xFCVzymu8r+piWnqhVJLqYOXi4HeS8hi0f+lQEjd/vques79SdchLeksYXDlROrwcMjZTVQ0nk5Cm3G4MjsPHfD0q6AJGZ1jaGYifhpwS7Ds3RntXUBdR+JSFL3rku8Kuv+oskecK67PRaoBTZ0ujuZZrygVVLGmkzEcOR3hByyilBYnW7lXkiwT8mzQuP7PSXdzjZE7cNHR4qk8ue/uLxbO5ojSqTb0od3RuC8haIbmfNPkLrgUw69XIeO26h9gYE3cGw74iGc/3VSLiY0/rJ/lkKYV3CRLWnb29W6DV/v9Nkg2TSPT7Iu1wb9YU7PAbBBk46rQuclXX07yWt9op3Xo7G52TyLokNeMFl0Wdxd5NNBvWaxzIl5rdXDaPYueHwxBWXYXLBx3ImFGMr/XjZO7MP3P4b9PlX2gZtu6fAuMYH6fk= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Oebgiw0rh8L8c9S7ATg/8utaJ72rV2DqwRMGhTILb2NuVCqKc0zEQJoQ3E?= =?iso-8859-1?Q?6e0EGjB7/VOGDwW8XYY/ocCRDOfY1XR/h/+QvdgkXqFgqwdMVmf72lXjcV?= =?iso-8859-1?Q?doiBSJ4C8Z8M6m4f3oINKfOxjtRc1YuBay7004/PIk3R3rcJxysBpFz0Q4?= =?iso-8859-1?Q?JhE/9RISB4oTzoCwPNvCZEaEgYvzqqUAhCXmoagYRD1xIDh43GBLs4q9jL?= =?iso-8859-1?Q?9FiwSjb3aETmBCS5bDp5mthmhf8q+lRfPxx5FdiAnazY6xKhAGTQWP69fx?= =?iso-8859-1?Q?hRAfo3bKyQ1yxyRcod2bONZGz1FS/SvX2pzdiu8aAI3a3mjg8BjC6ZAarH?= =?iso-8859-1?Q?ndNTQrslG1klNJDKfCGuIGN7XDlY5LDOcZ+d/vdV6+hxXsC8A6SBI2IJGj?= =?iso-8859-1?Q?WNaEsn3lFZfidHm4fQUo9hY1duGgaad65KNXNpOaPV2GbR/r1ch5bXv6JQ?= =?iso-8859-1?Q?XxQl2o4yrWYIsAfwEdNaKiTDJOS6EMtdP9gEj8RehTw2RGP91XvqyOrmvy?= =?iso-8859-1?Q?2WAWMGYLGTkruqDdnFaaxx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PUXE9wQH3ee3SffNkUSikGuAisfFi1Bl+lvck2qsLPz8Sr/XMH8wcQPOX?= =?iso-8859-1?Q?nKIjZGk/Zk9QSL+aOPnS8s8HOKnkZdZm/azzheX4Ac3PPdUMFqWcT6noPW?= =?iso-8859-1?Q?wAZgNFyKsqtEjUV2TUG4k2TRZARZyQUZXaUJ64wLtY2RCFqf8SgkzUG6/E?= =?iso-8859-1?Q?iqyNB1/y//x2ArfoQZkAeh9SeCLwGyj2lr?= 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: 6e5d8eeb-3bcd-42f2-54ea-08dc529cc8a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2024 22:40:50.7556 (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: ttIrxX9MmcQgHU+PDZd4sA7Ag/7wnStkrbMle4RNqlfYajpAd05gqBSske2rBpzqgAcKFBGwdjuhutZ4Xgqlpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR10MB5558 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, 01 Apr 2024 21:19:10 -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: iy2hUb9W3HVK19p6oEM9Gwt0x7686176AA= 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=N0TMmFcM; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Added WaitOnEvent() function to EFI_DELAYTED_DISPATCH_PPI. Modified DispatchRegister() parameter list. Cc: Liming Gao 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 (#117322): https://edk2.groups.io/g/devel/message/117322 Mute This Topic: https://groups.io/mt/105282242/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-