From nobody Tue Feb 10 15:45:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+59194+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+59194+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1589228696; cv=none; d=zohomail.com; s=zohoarc; b=Ri/ZNceCmBLKE1Q14gz/u89AZbhYgmTWQ6O1UsWba/HdUkrsPDcpUbrX68C5ksMpibINpwOCzHHC8GjrFkklonBvR6UsoaZel5/nFqqqm//FA1/8VcsBYaIPYMfBGxXtM8fc6MPhd0ZODPQS4O3pmNUNl+KEspGTSeCBf/iH3x4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589228696; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=PYHblxhFfb2qo4FvRHxmtPwF1BZzczxt4YLdtRFaokQ=; b=clVe94BP6Iis4TrDFxVuDRihmjfdTP5+AQVLfCu2SyxhB8yeQ7mryhMF10GjJO4oAhlKtMP1zeu8CVyZZJ6ZcSNwHH0xT0qZmsBRbjwJqAbzyZnjwl/B3TemwqzqoXN2mAIC/oDOFLJkE7o+7iqhsMh13FlX2VCzQq0riZQm6g0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+59194+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1589228696772456.19795375962224; Mon, 11 May 2020 13:24:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4MVbYY1788612xQ4i16QLQda; Mon, 11 May 2020 13:24:56 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web11.990.1589228691539924417 for ; Mon, 11 May 2020 13:24:56 -0700 X-AuditID: ac1060b2-0e1ff700000018d4-96-5eb9b4971dc7 X-Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id B7.31.06356.794B9BE5; Mon, 11 May 2020 16:24:55 -0400 (EDT) X-Received: from Oleksiy77.us.megatrends.com (172.16.97.158) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server id 14.3.468.0; Mon, 11 May 2020 16:24:18 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH v2 4/5] MdePkg: Added header file for Delayed Dispatch PPI Date: Mon, 11 May 2020 16:24:12 -0400 Message-ID: <20200511202413.18140-5-oleksiyy@ami.com> In-Reply-To: <20200511202413.18140-1-oleksiyy@ami.com> References: <20200511202413.18140-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWyRiBhgu70LTvjDOb0qlq0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZvye+IqxYLpcxZLpbg2MN8W7GDk5JARMJP49 3cvUxcjFISSwi0nidvtCFghnC6PEj9XLmUCq2AQ0JQ4cm8IIYosISElMOTATLM4sUCRx++hr FhBbWMBL4u/DRawgNouAqsS3811gcV4BU4k3uy4yQmzTkJi25i5YL6eAmcTuRW+A4hxAy0wl lv8IgygXlDg58wkLxHgJiYMvXjCD2EICshJtx5+zT2Dkn4WkbBaSsgWMTKsYhRJLcnITM3PS yw31EnMz9ZLzczcxQiJr0w7GlovmhxiZOBgPMUpwMCuJ8LZk7owT4k1JrKxKLcqPLyrNSS0+ xOgEdP9EZiluUPgBIyTe2MBAShTGMTQxMzE3Mje0NDE3NlYS5528dk2ckEA6MGKzU1MLUotg hjBxcEo1MLJoes3nqprwu3m183LtdDal5Xlpt6qyzBvWz7XYxdT798OuEPetWXP0967qz8z5 IZmV2bxwkf2q1+dPdr9M+al3i+lA0vE5URmLbnErVHKuFbDX+HAwYmGkTddzFql4DZ0T+UE7 63QYGjKm5sy5te5pwLNzXElLp6TwhfeFRs88FC28ZYrnHyWW4oxEQy3mouJEAO08qNLBAgAA Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: Xkenm2y38E6Tm7k4IszeTVKIx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1589228696; bh=FvfXkk2DZg/Pv1aPzpCITeb5ua8vAZAVyee9ZzX4qJM=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=lJKWXWFJaty+sruOmr3p+DKA2BYotvt27ckkvgIzfAlokfnvCxSydnu1WGcOneN8rk5 rrIMZZcCMbLAb5rbhia++vhloRUpBBk7q5lvKnCKSH7GB8TVr4XmP9tJ1b/EiTusrt+eq xsqfIIvuWrRC2KBfYQA92Lr0G4RWEeGX308= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Robert Phelps Created new header file for the new EFI_DELAYED_DISPATCH_PPI PPI (PI 1.7 Mantis 1891) Signed-off-by: Robert Phelps Reviewed-by: Zhiguang Liu --- MdePkg/Include/Ppi/DelayedDispatch.h | 85 ++++++++++++++++++++++++++++ MdePkg/MdePkg.dec | 3 + 2 files changed, 88 insertions(+) create mode 100644 MdePkg/Include/Ppi/DelayedDispatch.h diff --git a/MdePkg/Include/Ppi/DelayedDispatch.h b/MdePkg/Include/Ppi/Dela= yedDispatch.h new file mode 100644 index 0000000000..195c5a36a4 --- /dev/null +++ b/MdePkg/Include/Ppi/DelayedDispatch.h @@ -0,0 +1,85 @@ +/** @file + EFI Delayed Dispatch PPI as defined in the PI 1.7 Specification + + Provide timed event service in PEI + + Copyright (c) 2020, American Megatrends International LLC. All rights = reserved. + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef __DELAYED_DISPATCH_PPI_H__ +#define __DELAYED_DISPATCH_PPI_H__ + +/// +/// Global ID for EFI_DELAYED_DISPATCH_PPI_GUID +/// +#define EFI_DELAYED_DISPATCH_PPI_GUID \ + { \ + 0x869c711d, 0x649c, 0x44fe, { 0x8b, 0x9e, 0x2c, 0xbb, 0x29, 0x11, 0xc3= , 0xe6} } \ + } + + +/** + Delayed Dispatch function. This routine is called sometime after the re= quired + delay. Upon return, if NewDelay is 0, the function is unregistered. If= NewDelay + is not zero, this routine will be called again after the new delay perio= d. + + @param[in,out] Context Pointer to Context. Can be updated by rou= tine. + @param[out] NewDelay The new delay in us. Leave at 0 to unreg= ister callback. + +**/ + +typedef +VOID +(EFIAPI *EFI_DELAYED_DISPATCH_FUNCTION) ( + IN OUT UINT64 *Context, + OUT UINT32 *NewDelay + ); + + +/// +/// The forward declaration for EFI_DELAYED_DISPATCH_PPI +/// + +typedef struct _EFI_DELAYED_DISPATCH_PPI EFI_DELAYED_DISPATCH_PPI; + + +/** +Register a callback to be called after a minimum delay has occurred. + +This service is the single member function of the EFI_DELAYED_DISPATCH_PPI + + @param This Pointer to the EFI_DELAYED_DISPATCH_PPI instance + @param Function Function to call back + @param Context Context data + @param Delay Delay interval + + @retval EFI_SUCCESS Function successfully loaded + @retval EFI_INVALID_PARAMETER One of the Arguments is not supported + @retval EFI_OUT_OF_RESOURCES No more entries + +**/ +typedef +EFI_STATUS +(EFIAPI *EFI_DELAYED_DISPATCH_REGISTER)( + IN EFI_DELAYED_DISPATCH_PPI *This, + IN EFI_DELAYED_DISPATCH_FUNCTION Function, + IN UINT64 Context, + OUT UINT32 Delay + ); + + +/// +/// This PPI is a pointer to the Delayed Dispatch Service. +/// This service will be published by the Pei Foundation. The PEI Foundati= on +/// will use this service to relaunch a known function that requests a del= ayed +/// execution. +/// +struct _EFI_DELAYED_DISPATCH_PPI { + EFI_DELAYED_DISPATCH_REGISTER Register; +}; + + +extern EFI_GUID gEfiPeiDelayedDispatchPpiGuid; + +#endif diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 2591b8e135..4c05a46a3c 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -945,6 +945,9 @@ ## Include/Ppi/PeiCoreFvLocation.h gEfiPeiCoreFvLocationPpiGuid =3D { 0x52888eae, 0x5b10, 0x47d0, { 0xa8,= 0x7f, 0xb8, 0x22, 0xab, 0xa0, 0xca, 0xf4 }} =20 + ## Include/Ppi/DelayedDispatch.h + gEfiPeiDelayedDispatchPpiGuid =3D { 0x869c711d, 0x649c, 0x44fe, { 0x8b,= 0x9e, 0x2c, 0xbb, 0x29, 0x11, 0xc3, 0xe6 }} + [Protocols] ## Include/Protocol/Pcd.h gPcdProtocolGuid =3D { 0x11B34006, 0xD85B, 0x4D0A, { 0xA2,= 0x90, 0xD5, 0xA5, 0x71, 0x31, 0x0E, 0xF7 }} --=20 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry 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 telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#59194): https://edk2.groups.io/g/devel/message/59194 Mute This Topic: https://groups.io/mt/74145025/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-