mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-27 12:15:19 +01:00
7c0aa811ec
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
60 lines
2.0 KiB
C
60 lines
2.0 KiB
C
/** @file
|
|
This file defines:
|
|
* the capsule vendor GUID for capsule variables and the HOB.
|
|
* the capsule variable name.
|
|
* the capsule GUID HOB data structure.
|
|
The capsule HOB and variable can be used to store the capsule image start address and length.
|
|
They are used by EDKII implementation of capsule update across a system reset.
|
|
|
|
@par Note: EDKII implementation of capsule updating has discarded this capsule GUID HOB data
|
|
structure and used one UEFI Capsule HOB (defined in PI Specification 1.2) instead.
|
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef __EFI_CAPSULE_VENDOR_GUID_H__
|
|
#define __EFI_CAPSULE_VENDOR_GUID_H__
|
|
|
|
///
|
|
/// This guid is used as a variable GUID for the capsule variable
|
|
/// if the capsule pointer is passed through reset via a variable.
|
|
///
|
|
/// This guid is also used as a hob GUID for the capsule data
|
|
/// when the capsule pointer is passed from PEI phase to DXE phase.
|
|
///
|
|
#define EFI_CAPSULE_VENDOR_GUID \
|
|
{ 0x711C703F, 0xC285, 0x4B10, { 0xA3, 0xB0, 0x36, 0xEC, 0xBD, 0x3C, 0x8B, 0xE2 } }
|
|
|
|
///
|
|
/// Name of capsule variable.
|
|
///
|
|
#define EFI_CAPSULE_VARIABLE_NAME L"CapsuleUpdateData"
|
|
|
|
///
|
|
/// The data structure of the capsule guid hob entry.
|
|
/// Note: EDKII implementation has discarded this structure and used
|
|
/// UEFI_CAPSULE_HOB instead.
|
|
///
|
|
typedef struct {
|
|
EFI_PHYSICAL_ADDRESS BaseAddress; ///< Capsule data start address.
|
|
UINT32 Length; ///< Length of capsule data.
|
|
} CAPSULE_HOB_INFO;
|
|
|
|
//
|
|
// The variable describes the long mode buffer used by IA32 Capsule PEIM
|
|
// to call X64 CapsuleCoalesce code to handle >4GB capsule blocks.
|
|
//
|
|
#define EFI_CAPSULE_LONG_MODE_BUFFER_NAME L"CapsuleLongModeBuffer"
|
|
|
|
typedef struct {
|
|
EFI_PHYSICAL_ADDRESS PageTableAddress;
|
|
EFI_PHYSICAL_ADDRESS StackBaseAddress;
|
|
UINT64 StackSize;
|
|
} EFI_CAPSULE_LONG_MODE_BUFFER;
|
|
|
|
extern EFI_GUID gEfiCapsuleVendorGuid;
|
|
|
|
#endif // #ifndef _EFI_CAPSULE_VENDOR_GUID_H_
|