summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeipu Zhu <weipu.zhu@intel.com>2023-02-01 22:41:54 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-02-10 03:14:12 +0000
commit93a21b465bda44cecdd6347ad481ca6f55286547 (patch)
treeb107b644c2bbb132dbf324256c64957357aeda22
parent069703228cfe6ba128a20e770af831699eae79b7 (diff)
downloadedk2-93a21b465bda44cecdd6347ad481ca6f55286547.tar.gz
edk2-93a21b465bda44cecdd6347ad481ca6f55286547.tar.bz2
edk2-93a21b465bda44cecdd6347ad481ca6f55286547.zip
MdePkg: Add NVMe boot partition header definition
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. Cc: Hao Wu <hao.a.wu@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Weipu Zhu <weipu.zhu@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
-rw-r--r--MdePkg/Include/IndustryStandard/Nvme.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/Nvme.h b/MdePkg/Include/IndustryStandard/Nvme.h
index 3b4e9fe67c..8b8a1bb7f3 100644
--- a/MdePkg/Include/IndustryStandard/Nvme.h
+++ b/MdePkg/Include/IndustryStandard/Nvme.h
@@ -547,6 +547,19 @@ typedef struct {
#define NVME_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];
+ UINT32 Bpsz : 15; /* Boot Partition Size */
+ UINT32 Rsvd2 : 16;
+ UINT32 Abpid : 1; /* Active Boot Partition ID */
+ UINT8 Rsvd3[8];
+} NVME_BOOT_PARTITION_HEADER;
+
+//
// NvmExpress Admin Identify Cmd
//
typedef struct {