]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkPkg/Include/Guid/Capsule.h
Remove unnecessary FRAMEWORK_ prefix in IntelFrameworkPkg definitions for those defin...
[mirror_edk2.git] / IntelFrameworkPkg / Include / Guid / Capsule.h
CommitLineData
79964ac8 1/** @file\r
aa4a31e3 2 Framework Capule related Definition.\r
79964ac8 3\r
2bbaeb0d 4 Copyright (c) 2007 - 2009, Intel Corporation\r
79964ac8 5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
79964ac8 13 @par Revision Reference:\r
aa4a31e3 14 Capsule Spec Version 0.9\r
79964ac8 15**/\r
16\r
17#ifndef _CAPSULE_GUID_H__\r
18#define _CAPSULE_GUID_H__\r
19\r
20//\r
21// This is the GUID of the capsule header of the image on disk.\r
22//\r
23#define EFI_CAPSULE_GUID \\r
24 { \\r
25 0x3B6686BD, 0x0D76, 0x4030, {0xB7, 0x0E, 0xB5, 0x51, 0x9E, 0x2F, 0xC5, 0xA0 } \\r
26 }\r
27\r
28//\r
29// This is the GUID of the configuration results file created by the capsule\r
30// application.\r
31//\r
32#define EFI_CONFIG_FILE_NAME_GUID \\r
33 { \\r
34 0x98B8D59B, 0xE8BA, 0x48EE, {0x98, 0xDD, 0xC2, 0x95, 0x39, 0x2F, 0x1E, 0xDB } \\r
35 }\r
36\r
aa4a31e3
LG
37///\r
38/// Bits in the flags field of the capsule header\r
39/// This flag is set if the capsule can support setup changes and clear if it cannot.\r
40///\r
41#define EFI_CAPSULE_HEADER_FLAG_SETUP 0x00000001\r
1b144bbf 42\r
e89ec8f6 43#define CAPSULE_BLOCK_DESCRIPTOR_SIGNATURE SIGNATURE_32 ('C', 'B', 'D', 'S')\r
1b144bbf 44\r
45//\r
46// An array of these describe the blocks that make up a capsule for\r
47// a capsule update.\r
48//\r
49typedef struct {\r
2bbaeb0d 50 UINT64 Length; ///< length of the data block\r
51 EFI_PHYSICAL_ADDRESS Data; ///< physical address of the data block\r
52 UINT32 Signature; ///< CBDS\r
53 UINT32 CheckSum; ///< to sum this structure to 0\r
1b144bbf 54} FRAMEWORK_EFI_CAPSULE_BLOCK_DESCRIPTOR;\r
55\r
56typedef struct {\r
57 EFI_GUID OemGuid;\r
58 UINT32 HeaderSize;\r
59 //\r
60 // UINT8 OemHdrData[];\r
61 //\r
62} EFI_CAPSULE_OEM_HEADER;\r
63\r
64typedef struct {\r
aa4a31e3
LG
65 ///\r
66 /// A defined GUID that indicates the start of a capsule.\r
67 ///\r
1b144bbf 68 EFI_GUID CapsuleGuid;\r
aa4a31e3
LG
69 ///\r
70 /// The size of the EFI_CAPSULE_HEADER structure.\r
71 ///\r
1b144bbf 72 UINT32 HeaderSize;\r
aa4a31e3
LG
73 ///\r
74