]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: add definitions for ACPI NVDIMM Device Path
authorLiu, Zhiguang <Zhiguang.Liu@intel.com>
Wed, 20 May 2020 05:17:41 +0000 (13:17 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 21 May 2020 15:05:08 +0000 (15:05 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2716

Add definitions for ACPI NVDIMM Device Path following UEFI spec.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: James Anandraj <james.sushanth.anandraj@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Include/Protocol/DevicePath.h

index 4cf4b653baebc4a73ae79187c8e63d04847a1bc5..5914cde304418ef8fc615954d1a6bad2de7bece4 100644 (file)
@@ -282,6 +282,21 @@ typedef struct {
   //\r
 } ACPI_ADR_DEVICE_PATH;\r
 \r
+///\r
+/// ACPI NVDIMM Device Path SubType.\r
+///\r
+#define ACPI_NVDIMM_DP               0x04\r
+///\r
+///\r
+typedef struct {\r
+  EFI_DEVICE_PATH_PROTOCOL        Header;\r
+  ///\r
+  /// NFIT Device Handle, the _ADR of the NVDIMM device.\r
+  /// The value of this field comes from Section 9.20.3 of the ACPI 6.2A specification.\r
+  ///\r
+  UINT32                          NFITDeviceHandle;\r
+} ACPI_NVDIMM_DEVICE_PATH;\r
+\r
 #define ACPI_ADR_DISPLAY_TYPE_OTHER             0\r
 #define ACPI_ADR_DISPLAY_TYPE_VGA               1\r
 #define ACPI_ADR_DISPLAY_TYPE_TV                2\r