--- /dev/null
+/** @file\r
+ Defines for the EFI Capsule functionality.\r
+\r
+ Copyright (c) 2006, Intel Corporation \r
+ All rights reserved. This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php \r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+ Module Name: Capsule.h\r
+\r
+ @par Revision Reference:\r
+ These definitions are from Capsule Spec Version 0.9.\r
+\r
+**/\r
+\r
+#ifndef _EFI_CAPSULE_H_\r
+#define _EFI_CAPSULE_H_\r
+\r
+//\r
+// Bits in the flags field of the capsule header\r
+//\r
+#define EFI_CAPSULE_HEADER_FLAG_SETUP 0x00000001 // supports setup changes\r
+\r
+\r
+#define CAPSULE_BLOCK_DESCRIPTOR_SIGNATURE EFI_SIGNATURE_32 ('C', 'B', 'D', 'S')\r
+\r
+//\r
+// An array of these describe the blocks that make up a capsule for\r
+// a capsule update.\r
+//\r
+typedef struct {\r
+ UINT64 Length; // length of the data block\r
+ EFI_PHYSICAL_ADDRESS Data; // physical address of the data block\r
+ UINT32 Signature; // CBDS\r
+ UINT32 CheckSum; // to sum this structure to 0\r
+} EFI_CAPSULE_BLOCK_DESCRIPTOR;\r
+\r
+typedef struct {\r
+ EFI_GUID OemGuid;\r
+ UINT32 HeaderSize;\r
+ //\r
+ // UINT8 OemHdrData[];\r
+ //\r
+} EFI_CAPSULE_OEM_HEADER;\r
+\r
+typedef struct {\r
+ EFI_GUID CapsuleGuid;\r
+ UINT32 HeaderSize;\r
+ UINT32 Flags;\r
+ UINT32 CapsuleImageSize;\r
+ UINT32 SequenceNumber;\r
+ EFI_GUID InstanceId;\r
+ UINT32 OffsetToSplitInformation;\r
+ UINT32 OffsetToCapsuleBody;\r
+ UINT32 OffsetToOemDefinedHeader;\r
+ UINT32 OffsetToAuthorInformation;\r
+ UINT32 OffsetToRevisionInformation;\r
+ UINT32 OffsetToShortDescription;\r
+ UINT32 OffsetToLongDescription;\r
+ UINT32 OffsetToApplicableDevices;\r
+} EFI_CAPSULE_HEADER;\r
+\r
+#endif // #ifndef _EFI_CAPSULE_H_\r