2007-06-15 12:02:42 +02:00
|
|
|
/** @file
|
2009-07-02 10:52:18 +02:00
|
|
|
Framework Capule related Definition.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2010-04-23 17:52:13 +02:00
|
|
|
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
2010-03-16 02:53:11 +01:00
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
|
|
|
The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
@par Revision Reference:
|
2009-07-02 10:52:18 +02:00
|
|
|
Capsule Spec Version 0.9
|
2007-06-15 12:02:42 +02:00
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _CAPSULE_GUID_H__
|
|
|
|
#define _CAPSULE_GUID_H__
|
|
|
|
|
|
|
|
//
|
|
|
|
// This is the GUID of the capsule header of the image on disk.
|
|
|
|
//
|
|
|
|
#define EFI_CAPSULE_GUID \
|
|
|
|
{ \
|
|
|
|
0x3B6686BD, 0x0D76, 0x4030, {0xB7, 0x0E, 0xB5, 0x51, 0x9E, 0x2F, 0xC5, 0xA0 } \
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// This is the GUID of the configuration results file created by the capsule
|
|
|
|
// application.
|
|
|
|
//
|
|
|
|
#define EFI_CONFIG_FILE_NAME_GUID \
|
|
|
|
{ \
|
|
|
|
0x98B8D59B, 0xE8BA, 0x48EE, {0x98, 0xDD, 0xC2, 0x95, 0x39, 0x2F, 0x1E, 0xDB } \
|
|
|
|
}
|
|
|
|
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
2010-03-16 02:53:11 +01:00
|
|
|
/// Bits in the flags field of the capsule header.
|
2009-07-28 15:25:37 +02:00
|
|
|
/// This flag is set if the capsule can support setup changes, and cleared if it cannot.
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
#define EFI_CAPSULE_HEADER_FLAG_SETUP 0x00000001
|
2007-08-10 08:56:22 +02:00
|
|
|
|
2008-12-16 16:31:58 +01:00
|
|
|
#define CAPSULE_BLOCK_DESCRIPTOR_SIGNATURE SIGNATURE_32 ('C', 'B', 'D', 'S')
|
2007-08-10 08:56:22 +02:00
|
|
|
|
|
|
|
//
|
2009-07-28 15:25:37 +02:00
|
|
|
// An array of these structs describe the blocks that make up a capsule for
|
2007-08-10 08:56:22 +02:00
|
|
|
// a capsule update.
|
|
|
|
//
|
|
|
|
typedef struct {
|
2010-03-16 02:53:11 +01:00
|
|
|
UINT64 Length; ///< Length of the data block.
|
|
|
|
EFI_PHYSICAL_ADDRESS Data; ///< Physical address of the data block.
|
|
|
|
UINT32 Signature; ///< CBDS.
|
|
|
|
UINT32 CheckSum; ///< To sum this structure to 0.
|
2007-08-10 08:56:22 +02:00
|
|
|
} FRAMEWORK_EFI_CAPSULE_BLOCK_DESCRIPTOR;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EFI_GUID OemGuid;
|
|
|
|
UINT32 HeaderSize;
|
|
|
|
//
|
|
|
|
// UINT8 OemHdrData[];
|
|
|
|
//
|
|
|
|
} EFI_CAPSULE_OEM_HEADER;
|
|
|
|
|
|
|
|
typedef struct {
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// A defined GUID that indicates the start of a capsule.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
EFI_GUID CapsuleGuid;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The size of the EFI_CAPSULE_HEADER structure.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 HeaderSize;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
2009-07-28 15:25:37 +02:00
|
|
|
/// A bit-mapped list describing the capsule's attributes.
|
2010-03-16 02:53:11 +01:00
|
|
|
/// All undefined bits should be written as zero (0).
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 Flags;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The length in bytes (27,415 for an image containing 27,415 bytes) of the entire image
|
2009-07-28 15:25:37 +02:00
|
|
|
/// including all headers. If this value is greater than the size of the data presented in
|
|
|
|
/// the capsule body, the image is separated across multiple media. If this
|
2009-07-02 10:52:18 +02:00
|
|
|
/// value is less than the size of the data, it is an error.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 CapsuleImageSize;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// A zero-based number that enables a capsule to be split into pieces and then
|
|
|
|
/// recombined for easier transfer across media with limited size. The lower the
|
|
|
|
/// SequenceNumber, the earlier in the final image that the part of the capsule is to
|
|
|
|
/// appear. In capsules that are not split, this value shall be zero.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 SequenceNumber;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// Used to group the various pieces of a split capsule to ensure that they comprise the
|
|
|
|
/// same base image. It is valid for this item to be zero, in which case the capsule cannot
|
|
|
|
/// be split into components.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
EFI_GUID InstanceId;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of an EFI string that
|
|
|
|
/// contains a description of the identity of the subcapsules that make up the capsule. If
|
|
|
|
/// the capsule is not split, this value should be zero. The same string should be
|
|
|
|
/// presented for all subcapsules that constitute the same capsule.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToSplitInformation;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of the part of the
|
|
|
|
/// capsule that is to be transferred to DXE.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToCapsuleBody;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of the OEM-defined
|
|
|
|
/// header. This value must be less than OffsetToCapsuleBody.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToOemDefinedHeader;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of human-readable
|
|
|
|
/// text that describes the entity that created the capsule. This value must be less than OffsetToCapsuleBody.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToAuthorInformation;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of human-readable
|
2009-07-28 15:25:37 +02:00
|
|
|
/// text that describes the revision of the capsule and/or the capsule's contents. This
|
2009-07-02 10:52:18 +02:00
|
|
|
/// value must be less than OffsetToCapsuleBody.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToRevisionInformation;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of a one-line (less
|
|
|
|
/// than 40 Unicode characters in any language) description of the capsule. It is intended
|
|
|
|
/// to be used by OS-present applications when providing a list of capsules from which
|
|
|
|
/// the user can choose. This value must be less than OffsetToCapsuleBody.
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToShortDescription;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// The offset in bytes from the beginning of the header to the start of an EFI string
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToLongDescription;
|
2009-07-02 10:52:18 +02:00
|
|
|
///
|
|
|
|
/// This field is reserved for future use by this specification. For future compatibility,
|
|
|
|
/// this field must be set to zero
|
|
|
|
///
|
2007-08-10 08:56:22 +02:00
|
|
|
UINT32 OffsetToApplicableDevices;
|
|
|
|
} FRAMEWORK_EFI_CAPSULE_HEADER;
|
|
|
|
|
2007-06-15 12:02:42 +02:00
|
|
|
extern EFI_GUID gEfiCapsuleGuid;
|
|
|
|
extern EFI_GUID gEfiConfigFileNameGuid;
|
|
|
|
|
|
|
|
#endif
|