]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Bootable NVDIMM namespaces
authorOleksiy Yakovlev <oleksiyy@ami.com>
Wed, 13 May 2020 19:52:46 +0000 (03:52 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 15 May 2020 05:05:52 +0000 (05:05 +0000)
Provided a mechanism for UEFI FW to identify and hand off bootable
NVDIMM namespaces to the OS by standardizing the EFI device path.
EFI device path for physical NVDIMM devices changed from an ACPI
_ADR device to an ACPI NVDIMM device for correctness.
(UEFI 2.8 mantis 1858)

Signed-off-by: Oleksiy Yakovlev <oleksiyy@ami.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com>
MdePkg/Include/Protocol/DevicePath.h

index aaec0a6848725bbc715a7c9617f875317e4ee258..4cf4b653baebc4a73ae79187c8e63d04847a1bc5 100644 (file)
@@ -712,6 +712,18 @@ typedef struct {
   UINT8                           StopBits;\r
 } UART_DEVICE_PATH;\r
 \r
+///\r
+/// NVDIMM Namespace Device Path SubType.\r
+///\r
+#define NVDIMM_NAMESPACE_DP               0x20\r
+typedef struct {\r
+  EFI_DEVICE_PATH_PROTOCOL        Header;\r
+  ///\r
+  /// Namespace unique label identifier UUID.\r
+  ///\r
+  EFI_GUID Uuid;\r
+} NVDIMM_NAMESPACE_DEVICE_PATH;\r
+\r
 //\r
 // Use VENDOR_DEVICE_PATH struct\r
 //\r