TianoCore EDK2 master
Loading...
Searching...
No Matches
UniversalPayload.h
Go to the documentation of this file.
1
11#ifndef UNIVERSAL_PAYLOAD_H_
12#define UNIVERSAL_PAYLOAD_H_
13
19typedef VOID (EFIAPI *UNIVERSAL_PAYLOAD_ENTRY)(VOID *HobList);
20
21#define UNIVERSAL_PAYLOAD_IDENTIFIER SIGNATURE_32('P', 'L', 'D', 'H')
22#define UNIVERSAL_PAYLOAD_INFO_SEC_NAME ".upld_info"
23#define UNIVERSAL_PAYLOAD_EXTRA_SEC_NAME_PREFIX ".upld."
24#define UNIVERSAL_PAYLOAD_EXTRA_SEC_NAME_PREFIX_LENGTH (sizeof (UNIVERSAL_PAYLOAD_EXTRA_SEC_NAME_PREFIX) - 1)
25
26#pragma pack(1)
27
28typedef struct {
29 UINT32 Identifier;
30 UINT32 HeaderLength;
31 UINT16 SpecRevision;
32 UINT8 Reserved[2];
33 UINT32 Revision;
34 UINT32 Attribute;
35 UINT32 Capability;
36 CHAR8 ProducerId[16];
37 CHAR8 ImageId[16];
39
40typedef struct {
41 UINT8 Revision;
42 UINT8 Reserved;
43 UINT16 Length;
45
46#pragma pack()
47
57#define UNIVERSAL_PAYLOAD_SIZEOF_THROUGH_FIELD(TYPE, Field) (OFFSET_OF(TYPE, Field) + sizeof (((TYPE *) 0)->Field))
58
59#endif // UNIVERSAL_PAYLOAD_H_
VOID(EFIAPI * UNIVERSAL_PAYLOAD_ENTRY)(VOID *HobList)