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.web11.17537.1675232847762621932 for ; Tue, 31 Jan 2023 22:27:28 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=mfd3vvR+; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: weipu.zhu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675232847; x=1706768847; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3kO2Q7rb0nzP6Qn8vUSh0meiuZ+4JZR+wv8Zml2yeEo=; b=mfd3vvR+HJTUVosAeljBA0bV3sQhijETVACQja/+Tv49gmGK1K3f2KRf iey2qcAMGcDY9wBf0yuxZWNmYe48fkYEWEbm3GRHVizOF3hmSiT4NVAqx GdeG/W8KyLTjUGmVbFS5tsfrbOCm67uB03rlllzqnNctr2Z6TPu9sLe7R xvlKtv2lfRTkEB+h1WXJyaDr46pzSVo2P6TAC4aef+IH1sLLxwro119Ou DMnuGwvhN4YNPZyKhhvHd94ZwTV/R9Q3CoWnwUQ31RWkaFNTd7PFJ+hQD RQGzoC2jpdPum8UFxCBdbEdHWXRb/7WpsbqxL1hjzXTBgTVfmU8EwdEF6 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="329354463" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="329354463" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2023 22:27:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="658203707" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="658203707" Received: from weipuzhu.ccr.corp.intel.com ([10.239.49.144]) by orsmga007.jf.intel.com with ESMTP; 31 Jan 2023 22:27:26 -0800 From: "Weipu Zhu" To: devel@edk2.groups.io Cc: Weipu Zhu Subject: [PATCH 2/2] MdePkg: Add NVMe boot partition header definition Date: Wed, 1 Feb 2023 14:27:23 +0800 Message-Id: <16678aa67fac85fd6daf80d63b40a55d9785e517.1673939866.git.weipu.zhu@intel.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <2e4c3646b03b7660b7e6430b202ea01ee3cee0be.1673939866.git.weipu.zhu@intel.com> References: <2e4c3646b03b7660b7e6430b202ea01ee3cee0be.1673939866.git.weipu.zhu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4304 Add NVMe boot partition header definition to NVMe.h according to NVMe spec 2.0. Signed-off-by: Weipu Zhu --- MdePkg/Include/IndustryStandard/Nvme.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/Nvme.h b/MdePkg/Include/IndustryStandard/Nvme.h index c37cd762b9..41d40edbba 100644 --- a/MdePkg/Include/IndustryStandard/Nvme.h +++ b/MdePkg/Include/IndustryStandard/Nvme.h @@ -546,6 +546,17 @@ typedef struct { #define RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED 0x07 #define RPMB_RESULT_INVALID_DCB 0x08 +// +// Get Log Page - Boot Partition Log Header. +// (ref. NVMe Base spec. v2.0 Figure 262). +// +typedef struct { + UINT8 LogIdentifier; /* Log Identifier, shall be set to 15h */ + UINT8 Rsvd1[3]; /* Reserved as of Nvm Express 2.0 Spec */ + NVME_BPINFO BpInfo; /* Boot Partition Information, Brs in NVME_BPINFO is not available here */ + UINT8 Rsvd2[8]; /* Reserved as of Nvm Express 2.0 Spec */ +} NVME_BOOT_PARTITION_HEADER; + // // NvmExpress Admin Identify Cmd // -- 2.37.1.windows.1