89 lines
3.2 KiB
C
89 lines
3.2 KiB
C
/** @file
|
|
Type definitions for Capsule Processor Dxe module
|
|
|
|
;******************************************************************************
|
|
;* Copyright (c) 2012 - 2021, Insyde Software Corp. All Rights Reserved.
|
|
;*
|
|
;* You may not reproduce, distribute, publish, display, perform, modify, adapt,
|
|
;* transmit, broadcast, present, recite, release, license or otherwise exploit
|
|
;* any part of this publication in any form, by any means, without the prior
|
|
;* written permission of Insyde Software Corporation.
|
|
;*
|
|
;******************************************************************************
|
|
*/
|
|
|
|
#ifndef _TBT_RETIMER_CAPSULE_1_DXE_H_
|
|
#define _TBT_RETIMER_CAPSULE_1_DXE_H_
|
|
|
|
#include <Uefi.h>
|
|
|
|
#include <Library/BaseLib.h>
|
|
#include <Library/UefiLib.h>
|
|
#include <Library/PcdLib.h>
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
|
#include <Library/BaseMemoryLib.h>
|
|
#include <Library/MemoryAllocationLib.h>
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/VariableLib.h>
|
|
#include <Library/PrintLib.h>
|
|
#include <Library/DevicePathLib.h>
|
|
#include <Library/ChipsetCapsuleLib.h>
|
|
#include <Library/ChipsetSignatureLib.h>
|
|
#include <Library/OemGraphicsLib.h>
|
|
#include <Library/BvdtLib.h>
|
|
#include <Library/HobLib.h>
|
|
#include <Library/IoLib.h>
|
|
#include <Library/BdsCpLib.h>
|
|
#include <Library/MmPciLib.h>
|
|
#include <Protocol/Spi.h>
|
|
#include <Protocol/FirmwareVolume2.h>
|
|
#include <Protocol/FirmwareManagement.h>
|
|
#include <Protocol/SimpleTextOut.h>
|
|
#include <Guid/EfiSystemResourceTable.h>
|
|
#include <Guid/FmpCapsule.h>
|
|
#include <Guid/ImageAuthentication.h>
|
|
#include <Guid/H2OBdsCheckPoint.h>
|
|
#include <SecureFlash.h>
|
|
#include <MeBiosPayloadHob.h>
|
|
#include <Register/PchRegs.h>
|
|
#include <Guid/EventGroup.h>
|
|
#include <Library/FdSupportLib.h>
|
|
#include <Library/SpiAccessLib.h>
|
|
#include <Protocol/RetimerCapsuleUpdate.h>
|
|
#include <Library/TcssTbtRetimerNvmUpdateLib.h>
|
|
#include <Library/H2OCpLib.h>
|
|
#include <Guid/H2OBdsCheckPoint.h>
|
|
#include <Library/TimerLib.h>
|
|
|
|
#define ESRT_LAST_ATTEMPT_VERSION L"EsrtLastAttemptVersion"
|
|
#define ESRT_LAST_ATTEMPT_STATUS L"EsrtLastAttemptStatus"
|
|
#define CAPSULE_RESULT_VARIABLE L"Capsule0000"
|
|
#define CAPSULE_RESULT_MAX_VARIABLE L"CapsuleMax"
|
|
#define CAPSULE_RESULT_LAST_VARIABLE L"CapsuleLast"
|
|
#define EFI_CAPSULE_REPORT_GUID { 0x39b68c46, 0xf7fb, 0x441b, { 0xb6, 0xec, 0x16, 0xb0, 0xf6, 0x98, 0x21, 0xf3 }}
|
|
|
|
#define CAPSULE_FMP_SIGNATURE SIGNATURE_32('C','F','M','P')
|
|
#define CAPSULE_FMP_INSTANCE_FROM_THIS(a) CR (a, CAPSULE_FMP_INSTANCE, Fmp, CAPSULE_FMP_SIGNATURE)
|
|
#define R_PCH_SPI_STRP_DSCR_121 0xC0 ///< PCH Soft Strap 121
|
|
#define B_PCH_SPI_STRP_DSCR_121_ISH_SUPP BIT7 ///< Integrated Sensor Hub Supported
|
|
#define ME_ISH_ENABLE 1
|
|
|
|
#define TBT_RETIMER_PORT_1 0x0
|
|
#define RETIMER_INDEX 0x1
|
|
|
|
typedef struct {
|
|
EFI_SIGNATURE_LIST SignatureListHeader;
|
|
EFI_SIGNATURE_DATA SignatureData;
|
|
} CERTIFICATE_DATA;
|
|
|
|
typedef struct {
|
|
UINT32 VariableTotalSize;
|
|
UINT32 Reserved; //for alignment
|
|
EFI_GUID CapsuleGuid;
|
|
EFI_TIME CapsuleProcessed;
|
|
EFI_STATUS CapsuleStatus;
|
|
} EFI_CAPSULE_RESULT_VARIABLE_HEADER;
|
|
|
|
#endif
|