2007-06-15 12:02:42 +02:00
|
|
|
/** @file
|
|
|
|
GUIDs used for EFI Capsule
|
|
|
|
|
|
|
|
Copyright (c) 2007, Intel Corporation
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which 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.
|
|
|
|
|
|
|
|
Module Name: Capsule.h
|
|
|
|
|
|
|
|
@par Revision Reference:
|
|
|
|
GUIDs defined in Capsule Spec Version 0.9
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _CAPSULE_GUID_H__
|
|
|
|
#define _CAPSULE_GUID_H__
|
|
|
|
|
2007-06-28 14:23:11 +02:00
|
|
|
#include <PiPei.h>
|
|
|
|
|
2007-06-15 12:02:42 +02:00
|
|
|
//
|
|
|
|
// 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 } \
|
|
|
|
}
|
|
|
|
|
2007-08-10 08:56:22 +02:00
|
|
|
//
|
|
|
|
// Bits in the flags field of the capsule header
|
|
|
|
//
|
|
|
|
#define EFI_CAPSULE_HEADER_FLAG_SETUP 0x00000001 // supports setup changes
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
//
|
|
|
|
// An array of these describe the blocks that make up a capsule for
|
|
|
|
// a capsule update.
|
|
|
|
//
|
|
|
|
typedef struct {
|
|
|
|
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
|
|
|
|
} FRAMEWORK_EFI_CAPSULE_BLOCK_DESCRIPTOR;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EFI_GUID OemGuid;
|
|
|
|
UINT32 HeaderSize;
|
|
|
|
//
|
|
|
|
// UINT8 OemHdrData[];
|
|
|
|
//
|
|
|
|
} EFI_CAPSULE_OEM_HEADER;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
EFI_GUID CapsuleGuid;
|
|
|
|
UINT32 HeaderSize;
|
|
|
|
UINT32 Flags;
|
|
|
|
UINT32 CapsuleImageSize;
|
|
|
|
UINT32 SequenceNumber;
|
|
|
|
EFI_GUID InstanceId;
|
|
|
|
UINT32 OffsetToSplitInformation;
|
|
|
|
UINT32 OffsetToCapsuleBody;
|
|
|
|
UINT32 OffsetToOemDefinedHeader;
|
|
|
|
UINT32 OffsetToAuthorInformation;
|
|
|
|
UINT32 OffsetToRevisionInformation;
|
|
|
|
UINT32 OffsetToShortDescription;
|
|
|
|
UINT32 OffsetToLongDescription;
|
|
|
|
UINT32 OffsetToApplicableDevices;
|
|
|
|
} FRAMEWORK_EFI_CAPSULE_HEADER;
|
|
|
|
|
2007-06-15 12:02:42 +02:00
|
|
|
extern EFI_GUID gEfiCapsuleGuid;
|
|
|
|
extern EFI_GUID gEfiConfigFileNameGuid;
|
|
|
|
|
|
|
|
#endif
|