]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Common/Capsule.h
automagically convert ELF to PE/COFF (i386 only)
[mirror_edk2.git] / MdePkg / Include / Common / Capsule.h
CommitLineData
878ddf1f 1/** @file\r
2 Defines for the EFI Capsule functionality.\r
3\r
4 Copyright (c) 2006, Intel Corporation \r
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
13 Module Name: Capsule.h\r
14\r
15 @par Revision Reference:\r
16 These definitions are from Capsule Spec Version 0.9.\r
17\r
18**/\r
19\r
20#ifndef _EFI_CAPSULE_H_\r
21#define _EFI_CAPSULE_H_\r
22\r
23//\r
24// Bits in the flags field of the capsule header\r
25//\r
26#define EFI_CAPSULE_HEADER_FLAG_SETUP 0x00000001 // supports setup changes\r
27\r
28\r
29#define CAPSULE_BLOCK_DESCRIPTOR_SIGNATURE EFI_SIGNATURE_32 ('C', 'B', 'D', 'S')\r
30\r
31//\r
32// An array of these describe the blocks that make up a capsule for\r
33// a capsule update.\r
34//\r
35typedef struct {\r
36 UINT64 Length; // length of the data block\r
37 EFI_PHYSICAL_ADDRESS Data; // physical address of the data block\r
38 UINT32 Signature; // CBDS\r
39 UINT32 CheckSum; // to sum this structure to 0\r
40} EFI_CAPSULE_BLOCK_DESCRIPTOR;\r
41\r
42typedef struct {\r
43 EFI_GUID OemGuid;\r
44 UINT32 HeaderSize;\r
45 //\r
46 // UINT8 OemHdrData[];\r
47 //\r
48} EFI_CAPSULE_OEM_HEADER;\r
49\r
50typedef struct {\r
51 EFI_GUID CapsuleGuid;\r
52 UINT32 HeaderSize;\r
53 UINT32 Flags;\r
54 UINT32 CapsuleImageSize;\r
55 UINT32 SequenceNumber;\r
56 EFI_GUID InstanceId;\r
57 UINT32 OffsetToSplitInformation;\r
58 UINT32 OffsetToCapsuleBody;\r
59 UINT32 OffsetToOemDefinedHeader;\r
60 UINT32 OffsetToAuthorInformation;\r
61 UINT32 OffsetToRevisionInformation;\r
62 UINT32 OffsetToShortDescription;\r
63 UINT32 OffsetToLongDescription;\r
64 UINT32 OffsetToApplicableDevices;\r
65} EFI_CAPSULE_HEADER;\r
66\r
67#endif // #ifndef _EFI_CAPSULE_H_\r