Acked-by: Michael D Kinney <michael.d.kin...@intel.com> > -----Original Message----- > From: Wu, Hao A <hao.a...@intel.com> > Sent: Sunday, February 5, 2023 9:18 PM > To: Zhu, Weipu <weipu....@intel.com>; devel@edk2.groups.io > Cc: Kinney, Michael D <michael.d.kin...@intel.com>; Gao, Liming > <gaolim...@byosoft.com.cn>; Liu, Zhiguang <zhiguang....@intel.com> > Subject: RE: [PATCH v2 2/2] MdePkg: Add NVMe boot partition header definition > > Reviewed-by: Hao A Wu <hao.a...@intel.com> > > Best Regards, > Hao Wu > > > -----Original Message----- > > From: Zhu, Weipu <weipu....@intel.com> > > Sent: Thursday, February 2, 2023 2:42 PM > > To: devel@edk2.groups.io > > Cc: Zhu, Weipu <weipu....@intel.com>; Wu, Hao A <hao.a...@intel.com>; > > Kinney, Michael D <michael.d.kin...@intel.com>; Gao, Liming > > <gaolim...@byosoft.com.cn>; Liu, Zhiguang <zhiguang....@intel.com> > > Subject: [PATCH v2 2/2] 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. > > > > Signed-off-by: Weipu Zhu <weipu....@intel.com> > > Cc: Hao Wu <hao.a...@intel.com> > > Cc: Michael D Kinney <michael.d.kin...@intel.com> > > Cc: Liming Gao <gaolim...@byosoft.com.cn> > > Cc: Zhiguang Liu <zhiguang....@intel.com> > > --- > > MdePkg/Include/IndustryStandard/Nvme.h | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > 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 > > @@ -546,6 +546,19 @@ typedef struct { > > #define NVME_RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED 0x07 > > #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 > > // > > -- > > 2.37.1.windows.1
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99935): https://edk2.groups.io/g/devel/message/99935 Mute This Topic: https://groups.io/mt/96695516/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/9847357/21656/1706620634/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-