From nobody Mon Feb 9 16:19:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+76055+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76055+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1622799758; cv=none; d=zohomail.com; s=zohoarc; b=aUgxt8bXr6yG4GhmD5Rb05j/q3PN6NGeTeI3PQ0v29uyPXngk5m43BRzemdDd+d9rjklVrLCFkZE3qDmmcMNJ8rEMNe1A2cA796kEtBO/EGG/6pYLSGy0cKIjK25BxEKyKooAz6+rnDkO1psC4bY3bKjxSjGID6xMp+/6c7x1Zk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622799758; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=XCkGoNl6ltYhhQTTuZtJRGCLuMAPFCT+hB+8P374hTM=; b=RPCjsxdcWOzxFSih0wKVRSHrnk/1HWOUzEkW/wza0l4+8N9UFtw9N3YpwZKIX1Dy3X/ZLMTp6wo7tsrMDmIw6pp7Xn6/F7lNeY5OxrqV9JVevbvJVlnlNiRiAGyv7o/50KF7Rq1rjuOmGketAt166+Ok9RGhnKqqJldL20tXgsM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76055+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1622799758855167.37110672638676; Fri, 4 Jun 2021 02:42:38 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id GZ8IYY1788612xvNEgHJialA; Fri, 04 Jun 2021 02:42:38 -0700 X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.6094.1622799752437525639 for ; Fri, 04 Jun 2021 02:42:33 -0700 IronPort-SDR: 8w73jpf5bba6uNX0qXH48D9+xzOwAM6nTARGzaQmvTMl1i2k5H81SI3Y+GkC4WsNRLmh2UImPg OCWwamfXB2vQ== X-IronPort-AV: E=McAfee;i="6200,9189,10004"; a="202401887" X-IronPort-AV: E=Sophos;i="5.83,248,1616482800"; d="scan'208";a="202401887" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2021 02:42:32 -0700 IronPort-SDR: XXgjqG+zy29YHf+975PW6U93+n3SWWIKl5SF56DM6mgITQ/6wjbtjyhMqzSN633fFGcOUpic+m 43xe5mLdOaiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,248,1616482800"; d="scan'208";a="448203543" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by fmsmga008.fm.intel.com with ESMTP; 04 Jun 2021 02:42:30 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Jian J Wang , Hao A Wu Subject: [edk2-devel] [Patch V3 1/9] MdeModulePkg: Add Universal Payload general defination header file Date: Fri, 4 Jun 2021 17:42:19 +0800 Message-Id: <20210604094227.1890-2-zhiguang.liu@intel.com> In-Reply-To: <20210604094227.1890-1-zhiguang.liu@intel.com> References: <20210604094227.1890-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,zhiguang.liu@intel.com X-Gm-Message-State: LTq9HaggbyVUqKkxcfRvchqMx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1622799758; bh=7T6M0U/1/DdFNbV7oBf/gkKddjr0heoS+10ld0U/mBA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=dbx/GXi6WJhYujFpLq8rByQK5v1PsE2YKZrhQzZUoy7R1KjtdKJDFJd+3LnOVXqe0AM neUHhK33aekJEsMKnnqpB6DB1+d/YM2Rn+gccI4i8IauddxgY4u99tCCLVC5UCpS2Eur2 ZfhqOL5JdaHOa19Xe2wTnYFqt5bNkFZucw4= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" V1: Add Universal Payload general defination header file according to Universal Payload=E2=80=99s documentation V2: Add a macro funtion to check the Revision Cc: Michael D Kinney Cc: Liming Gao Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Zhiguang Liu Reviewed-by: Hao A Wu --- MdeModulePkg/Include/UniversalPayload/UniversalPayload.h | 33 ++++++++++++= +++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/MdeModulePkg/Include/UniversalPayload/UniversalPayload.h b/Mde= ModulePkg/Include/UniversalPayload/UniversalPayload.h new file mode 100644 index 0000000000..627b9e880e --- /dev/null +++ b/MdeModulePkg/Include/UniversalPayload/UniversalPayload.h @@ -0,0 +1,33 @@ +/** @file + Universal Payload general definations. + +Copyright (c) 2021, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef __UNIVERSAL_PAYLOAD_H__ +#define __UNIVERSAL_PAYLOAD_H__ + +#pragma pack(1) + +typedef struct { + UINT8 Revision; + UINT8 Reserved; + UINT16 Length; +} PLD_GENERIC_HEADER; + +#pragma pack() + +/** + Returns the size of a structure of known type, up through and including = a specified field. + + @param TYPE The name of the data structure that contains the field= specified by Field. + @param Field The name of the field in the data structure. + + @return size, in bytes. + +**/ +#define PLD_SIZEOF_THROUGH_FIELD(TYPE, Field) (OFFSET_OF(TYPE, Field) + si= zeof (((TYPE *) 0)->Field)) + +#endif // __UNIVERSAL_PAYLOAD_H__ --=20 2.30.0.windows.2 -=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 (#76055): https://edk2.groups.io/g/devel/message/76055 Mute This Topic: https://groups.io/mt/83304942/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-