[PATCH] MdePkg/Acpi62: Add bit definitions to NFIT Platform Capabilities Structure


Miki Shindo
 

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3915

This commit adds each capability bit definition
for NFIT Platform Capabilities Structure.
The type has been added since ACPI Specification Version 6.2A.

Signed-off-by: Miki Shindo <miki.shindo@...>
Cc: Michael D Kinney <michael.d.kinney@...>
Cc: Liming Gao <gaoliming@...>
Cc: Zhiguang Liu <zhiguang.liu@...>
Cc: Ray Ni <ray.ni@...>
Cc: Liming Gao <gaoliming@...>
---
MdePkg/Include/IndustryStandard/Acpi62.h | 4 ++++
MdePkg/Include/IndustryStandard/Acpi63.h | 4 ++++
MdePkg/Include/IndustryStandard/Acpi64.h | 4 ++++
3 files changed, 12 insertions(+)

diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/Indu=
stryStandard/Acpi62.h
index 836e986ee5..e27775a85a 100644
--- a/MdePkg/Include/IndustryStandard/Acpi62.h
+++ b/MdePkg/Include/IndustryStandard/Acpi62.h
@@ -1651,6 +1651,10 @@ typedef struct {
UINT8 Reserved_12[4];=0D
} EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;=0D
=0D
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DU=
RABILITY_ON_POWER_LOSS BIT0=0D
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_N=
VDIMM_DURABILITY_ON_POWER_LOSS BIT1=0D
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_=
MEMORY_HARDWARE_MIRRORING BIT2=0D
+=0D
///=0D
/// Secure DEVices Table (SDEV)=0D
///=0D
diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h b/MdePkg/Include/Indu=
stryStandard/Acpi63.h
index 15a30d8808..10bdf5fe5a 100644
--- a/MdePkg/Include/IndustryStandard/Acpi63.h
+++ b/MdePkg/Include/IndustryStandard/Acpi63.h
@@ -1615,6 +1615,10 @@ typedef struct {
UINT8 Reserved_12[4];=0D
} EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;=0D
=0D
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DU=
RABILITY_ON_POWER_LOSS BIT0=0D
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_N=
VDIMM_DURABILITY_ON_POWER_LOSS BIT1=0D
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_=
MEMORY_HARDWARE_MIRRORING BIT2=0D
+=0D
///=0D
/// Secure DEVices Table (SDEV)=0D
///=0D
diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/Indu=
stryStandard/Acpi64.h
index c1d8b14c44..fe5ebfac2b 100644
--- a/MdePkg/Include/IndustryStandard/Acpi64.h
+++ b/MdePkg/Include/IndustryStandard/Acpi64.h
@@ -1664,6 +1664,10 @@ typedef struct {
UINT8 Reserved_12[4];=0D
} EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;=0D
=0D
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DU=
RABILITY_ON_POWER_LOSS BIT0=0D
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_N=
VDIMM_DURABILITY_ON_POWER_LOSS BIT1=0D
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_=
MEMORY_HARDWARE_MIRRORING BIT2=0D
+=0D
///=0D
/// Secure DEVices Table (SDEV)=0D
///=0D
--=20
2.27.0.windows.1