Sync EDKII BaseTools to BaseTools project r1971
[mirror_edk2.git] / BaseTools / Source / C / Include / Common / UefiCapsule.h
1 /** @file
2 Defines for the EFI Capsule functionality.
3
4 Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials are licensed and made available
7 under the terms and conditions of the BSD License which accompanies this
8 distribution. The full text of the license may be found at:
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 File Name: Capsule.h
15
16 @par Revision Reference:
17 These definitions are from Uefi Spec.
18
19 **/
20
21 #ifndef _EFI_CAPSULE_H_
22 #define _EFI_CAPSULE_H_
23
24 typedef struct {
25 EFI_GUID CapsuleGuid;
26 UINT32 HeaderSize;
27 UINT32 Flags;
28 UINT32 CapsuleImageSize;
29 } EFI_CAPSULE_HEADER;
30
31 #define CAPSULE_FLAGS_PERSIST_ACROSS_RESET 0x00010000
32 #define CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE 0x00020000
33 #define CAPSULE_FLAGS_INITIATE_RESET 0x00040000
34
35 #endif // #ifndef _EFI_CAPSULE_H_