Date
1 - 1 of 1
[PATCH v1 1/6] MdeModulePkg: universal payload HOB for secure boot info
Subash Lakkimsetti
From: Subash Lakkimsetti <subash.lakkimsetti@...>
Add the hob structure header for universal payload for secure boot and measure boot information from bootloaders. Universal payload spec definied at https://universalscalablefirmware.github.io/documentation/2_universal_paylo= ad.html Cc: Zhiguang Liu <zhiguang.liu@...> Cc: Ray Ni <ray.ni@...> Cc: Gua Guo <gua.guo@...> Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@...> --- .../UniversalPayload/SecureBootInfoGuid.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 MdeModulePkg/Include/UniversalPayload/SecureBootInfoGui= d.h diff --git a/MdeModulePkg/Include/UniversalPayload/SecureBootInfoGuid.h b/M= deModulePkg/Include/UniversalPayload/SecureBootInfoGuid.h new file mode 100644 index 0000000000..5f0f75eb3a --- /dev/null +++ b/MdeModulePkg/Include/UniversalPayload/SecureBootInfoGuid.h @@ -0,0 +1,37 @@ +/** @file=0D + This file defines the hob structure for the Secure boot information.=0D +=0D + Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#ifndef SECUREBOOT_INFO_GUID_H_=0D +#define SECUREBOOT_INFO_GUID_H_=0D +=0D +#include <UniversalPayload/UniversalPayload.h>=0D +=0D +/**=0D + Secure Boot info Hob GUID=0D +**/=0D +extern EFI_GUID gUniversalPayloadSecureBootInfoGuid;=0D +=0D +#define PAYLOAD_SECUREBOOT_INFO_HOB_REVISION 0x1=0D +=0D +#define NO_TPM 0x0=0D +#define TPM_TYPE_12 0x1=0D +#define TPM_TYPE_20 0x2=0D +=0D +#pragma pack(1)=0D +typedef struct {=0D + UNIVERSAL_PAYLOAD_GENERIC_HEADER Header;=0D + UINT8 VerifiedBootEnabled;=0D + UINT8 MeasuredBootEnabled;=0D + UINT8 FirmwareDebuggerInitialized;=0D + UINT8 TpmType;=0D + UINT8 Reserved[3];=0D + UINT32 TpmPcrActivePcrBanks;=0D +} UNIVERSAL_SECURE_BOOT_INFO;=0D +#pragma pack()=0D +=0D +#endif // SECUREBOOT_INFO_GUID_H_=0D --=20 2.39.1.windows.1 |
|