From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.36366.1679464740334915198 for ; Tue, 21 Mar 2023 22:59:00 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=WZjk/oe/; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: subash.lakkimsetti@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679464740; x=1711000740; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uW8I9M0DLb/IVfPxIrlpunrWTWRKWf51u6Ywztvef2w=; b=WZjk/oe/by+k/EJk0L+7FT+W3OjKo/hS4BYihDCkif7LYN34ce8hSGGj wQj36yj3u2rhPbBLQEBAk8msKqDZC3x+oSdFez6mlsC4WkMKh3YI1Wabz BRSmHc3kBCYBRNZkkrXy0DOG04tjNalGYUHuWm0lTBPl4e8K0jgH7eBtZ QzopLs4Vn4vK8vX+Fi29lIU70gHyHkZnwvTwsZtq8utaf1U9qtN0AP6/t pRrWJD4Y0cDvvn4U7JbxbjyBqaFdAdegV/a6C5wkcLoegJbAVqWeNmGgM saKFjvObZaYd3JKbSNE4WoRgrLOzxWx+byYTAd/HywJkDOQ23Z1xcYDEl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10656"; a="340671528" X-IronPort-AV: E=Sophos;i="5.98,280,1673942400"; d="scan'208";a="340671528" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2023 22:59:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10656"; a="714294380" X-IronPort-AV: E=Sophos;i="5.98,280,1673942400"; d="scan'208";a="714294380" Received: from slakkim-mobl.amr.corp.intel.com ([10.213.186.211]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2023 22:58:59 -0700 From: "Subash Lakkimsetti" To: devel@edk2.groups.io Cc: Subash Lakkimsetti , Zhiguang Liu , Ray Ni , Gua Guo Subject: [PATCH v1 1/6] MdeModulePkg: universal payload HOB for secure boot info Date: Tue, 21 Mar 2023 22:58:41 -0700 Message-Id: X-Mailer: git-send-email 2.39.1.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: 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 Cc: Ray Ni Cc: Gua Guo Signed-off-by: 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.
=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 =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