]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/UniversalPayload/UniversalPayload.h
MdeModulePkg: Add new structure for the Universal Payload ACPI Table Hob
[mirror_edk2.git] / MdeModulePkg / Include / UniversalPayload / UniversalPayload.h
CommitLineData
d8c18ba3
ZL
1/** @file\r
2 Universal Payload general definitions.\r
3\r
4Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7 @par Revision Reference:\r
8 - Universal Payload Specification 0.75 (https://universalpayload.github.io/documentation/)\r
9**/\r
10\r
11#ifndef UNIVERSAL_PAYLOAD_H_\r
12#define UNIVERSAL_PAYLOAD_H_\r
13\r
14#pragma pack(1)\r
15\r
16typedef struct {\r
17 UINT8 Revision;\r
18 UINT8 Reserved;\r
19 UINT16 Length;\r
20} UNIVERSAL_PAYLOAD_GENERIC_HEADER;\r
21\r
22#pragma pack()\r
23\r
24/**\r
25 Returns the size of a structure of known type, up through and including a specified field.\r
26\r
27 @param TYPE The name of the data structure that contains the field specified by Field.\r
28 @param Field The name of the field in the data structure.\r
29\r
30 @return size, in bytes.\r
31\r
32**/\r
33#define UNIVERSAL_PAYLOAD_SIZEOF_THROUGH_FIELD(TYPE, Field) (OFFSET_OF(TYPE, Field) + sizeof (((TYPE *) 0)->Field))\r
34\r
35#endif // UNIVERSAL_PAYLOAD_H_\r