]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Framework/Include/EfiCapsule.h
1. Update FFS_FIXED_CHECKSUM to 0xAA to match PI FV image generated by EDKII build...
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Include / EfiCapsule.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 EfiCapsule.h\r
15\r
16Abstract:\r
17\r
18 Defines for the EFI Capsule functionality\r
19 \r
20--*/\r
21\r
22#ifndef _EFI_CAPSULE_H_\r
23#define _EFI_CAPSULE_H_\r
24\r
25\r
26#define CAPSULE_BLOCK_DESCRIPTOR_SIGNATURE EFI_SIGNATURE_32 ('C', 'B', 'D', 'S')\r
27\r
28typedef struct {\r
29 EFI_GUID OemGuid;\r
30 UINT32 HeaderSize;\r
31 //\r
32 // UINT8 OemHdrData[];\r
33 //\r
34} EFI_CAPSULE_OEM_HEADER;\r
35\r
36#if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r
37\r
38#define MAX_SUPPORT_CAPSULE_NUM 50\r
39#define CAPSULE_FLAGS_PERSIST_ACROSS_RESET 0x00010000\r
40#define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE 0x00020000 \r
41\r
42typedef struct {\r
43 UINT64 Length; \r
44 union { \r
45 EFI_PHYSICAL_ADDRESS DataBlock; \r
46 EFI_PHYSICAL_ADDRESS ContinuationPointer; \r
47 } Union;\r
48} EFI_CAPSULE_BLOCK_DESCRIPTOR;\r
49\r
50typedef struct {\r
51 EFI_GUID CapsuleGuid;\r
52 UINT32 HeaderSize;\r
53 UINT32 Flags;\r
54 UINT32 CapsuleImageSize;\r
55} EFI_CAPSULE_HEADER;\r
56\r
57typedef struct {\r
58 UINT32 CapsuleArrayNumber;\r
59 VOID* CapsulePtr[1];\r
60} EFI_CAPSULE_TABLE;\r
61\r
62typedef struct {\r
63 UINT32 CapsuleGuidNumber;\r
64 EFI_GUID CapsuleGuidPtr[1];\r
65} EFI_CAPSULE_INFO_TABLE;\r
66\r
67//\r
68// This GUID is used for collecting all capsules' Guids who install in ConfigTable.\r
69//\r
70#define EFI_CAPSULE_INFO_GUID \\r
71 { \\r
7ccf38a3 72 0x8B34EAC7, 0x2690, 0x460B, {0x8B, 0xA5, 0xD5, 0xCF, 0x32, 0x83, 0x17, 0x35} \\r
3eb9473e 73 }\r
74\r
75#else\r
76\r
77typedef struct {\r
78 EFI_GUID CapsuleGuid;\r
79 UINT32 HeaderSize;\r
80 UINT32 Flags;\r
81 UINT32 CapsuleImageSize;\r
82 UINT32 SequenceNumber;\r
83 EFI_GUID InstanceId;\r
84 UINT32 OffsetToSplitInformation;\r
85 UINT32 OffsetToCapsuleBody;\r
86 UINT32 OffsetToOemDefinedHeader;\r
87 UINT32 OffsetToAuthorInformation;\r
88 UINT32 OffsetToRevisionInformation;\r
89 UINT32 OffsetToShortDescription;\r
90 UINT32 OffsetToLongDescription;\r
91 UINT32 OffsetToApplicableDevices;\r
92} EFI_CAPSULE_HEADER;\r
93\r
94//\r
95// An array of these describe the blocks that make up a capsule for\r
96// a capsule update.\r
97//\r
98typedef struct {\r
99 UINT64 Length; // length of the data block\r
100 EFI_PHYSICAL_ADDRESS Data; // physical address of the data block\r
101 UINT32 Signature; // CBDS\r
102 UINT32 CheckSum; // to sum this structure to 0\r
103} EFI_CAPSULE_BLOCK_DESCRIPTOR;\r
104\r
105#endif\r
106\r
107//\r
108// Bits in the flags field of the capsule header\r
109//\r
110#define EFI_CAPSULE_HEADER_FLAG_SETUP 0x00000001 // supports setup changes\r
111//\r
112// This is the GUID of the capsule header of the image on disk.\r
113//\r
114#define EFI_CAPSULE_GUID \\r
115 { \\r
7ccf38a3 116 0x3B6686BD, 0x0D76, 0x4030, {0xB7, 0x0E, 0xB5, 0x51, 0x9E, 0x2F, 0xC5, 0xA0} \\r
3eb9473e 117 }\r
118\r
119//\r
120// This is the GUID of the file created by the capsule application that contains\r
121// the path to the device(s) to update.\r
122//\r
123#define EFI_PATH_FILE_NAME_GUID \\r
124 { \\r
7ccf38a3 125 0x7644C181, 0xFA6E, 0x46DA, {0x80, 0xCB, 0x04, 0xB9, 0x90, 0x40, 0x62, 0xE8} \\r
3eb9473e 126 }\r
127//\r
128// This is the GUID of the configuration results file created by the capsule\r
129// application.\r
130//\r
131#define EFI_CONFIG_FILE_NAME_GUID \\r
132 { \\r
7ccf38a3 133 0x98B8D59B, 0xE8BA, 0x48EE, {0x98, 0xDD, 0xC2, 0x95, 0x39, 0x2F, 0x1E, 0xDB} \\r
3eb9473e 134 }\r
135\r
136#endif // #ifndef _EFI_CAPSULE_H_\r