public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2:PATCH v3] MdePkg/Acpi62: Add type 7 NFIT Platform Capabilities Structure support
@ 2022-06-23  3:40 Miki Shindo
  2022-06-29  0:57 ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 2+ messages in thread
From: Miki Shindo @ 2022-06-23  3:40 UTC (permalink / raw)
  To: devel; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu, Ray Ni

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

This commit adds a definition type 7 Platform Capabilities Structure
and the struct definition for NFIT Table Structure Types.
The type has been added since ACPI Specification Version 6.2A.

Signed-off-by: Miki Shindo <miki.shindo@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>
Cc: Ray Ni <ray.ni@intel.com>

---
 MdePkg/Include/IndustryStandard/Acpi62.h | 13 +++++++++++++
 MdePkg/Include/IndustryStandard/Acpi63.h | 13 +++++++++++++
 MdePkg/Include/IndustryStandard/Acpi64.h | 13 +++++++++++++
 3 files changed, 39 insertions(+)

diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h
index 313db63044..836e986ee5 100644
--- a/MdePkg/Include/IndustryStandard/Acpi62.h
+++ b/MdePkg/Include/IndustryStandard/Acpi62.h
@@ -1486,6 +1486,7 @@ typedef struct {
 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE            4
 #define EFI_ACPI_6_2_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE  5
 #define EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE               6
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE_TYPE            7
 
 //
 // Definition for NFIT Structure Header
@@ -1638,6 +1639,18 @@ typedef struct {
   // UINT64                                      FlushHintAddress[NumberOfFlushHintAddresses];
 } EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
 
+//
+// Definition for Platform Capabilities Structure
+//
+typedef struct {
+  UINT16    Type;
+  UINT16    Length;
+  UINT8     HighestValidCapability;
+  UINT8     Reserved_5[3];
+  UINT32    Capabilities;
+  UINT8     Reserved_12[4];
+} EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
+
 ///
 /// Secure DEVices Table (SDEV)
 ///
diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h b/MdePkg/Include/IndustryStandard/Acpi63.h
index b1e9d5db5b..15a30d8808 100644
--- a/MdePkg/Include/IndustryStandard/Acpi63.h
+++ b/MdePkg/Include/IndustryStandard/Acpi63.h
@@ -1450,6 +1450,7 @@ typedef struct {
 #define EFI_ACPI_6_3_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE            4
 #define EFI_ACPI_6_3_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE  5
 #define EFI_ACPI_6_3_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE               6
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE_TYPE            7
 
 //
 // Definition for NFIT Structure Header
@@ -1602,6 +1603,18 @@ typedef struct {
   // UINT64                                      FlushHintAddress[NumberOfFlushHintAddresses];
 } EFI_ACPI_6_3_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
 
+//
+// Definition for Platform Capabilities Structure
+//
+typedef struct {
+  UINT16    Type;
+  UINT16    Length;
+  UINT8     HighestValidCapability;
+  UINT8     Reserved_5[3];
+  UINT32    Capabilities;
+  UINT8     Reserved_12[4];
+} EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
+
 ///
 /// Secure DEVices Table (SDEV)
 ///
diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/IndustryStandard/Acpi64.h
index 232697f228..c1d8b14c44 100644
--- a/MdePkg/Include/IndustryStandard/Acpi64.h
+++ b/MdePkg/Include/IndustryStandard/Acpi64.h
@@ -1493,6 +1493,7 @@ typedef struct {
 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE            4
 #define EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE  5
 #define EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE               6
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE_TYPE            7
 
 //
 // Definition for NFIT Structure Header
@@ -1651,6 +1652,18 @@ typedef struct {
   // UINT64                                      FlushHintAddress[NumberOfFlushHintAddresses];
 } EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
 
+//
+// Definition for Platform Capabilities Structure
+//
+typedef struct {
+  UINT16    Type;
+  UINT16    Length;
+  UINT8     HighestValidCapability;
+  UINT8     Reserved_5[3];
+  UINT32    Capabilities;
+  UINT8     Reserved_12[4];
+} EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
+
 ///
 /// Secure DEVices Table (SDEV)
 ///
-- 
2.27.0.windows.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* 回复: [edk2-devel] [edk2:PATCH v3] MdePkg/Acpi62: Add type 7 NFIT Platform Capabilities Structure support
  2022-06-23  3:40 [edk2:PATCH v3] MdePkg/Acpi62: Add type 7 NFIT Platform Capabilities Structure support Miki Shindo
@ 2022-06-29  0:57 ` gaoliming
  0 siblings, 0 replies; 2+ messages in thread
From: gaoliming @ 2022-06-29  0:57 UTC (permalink / raw)
  To: devel, miki.shindo
  Cc: 'Michael D Kinney', 'Zhiguang Liu',
	'Ray Ni'

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Miki Shindo
> 发送时间: 2022年6月23日 11:40
> 收件人: devel@edk2.groups.io
> 抄送: Michael D Kinney <michael.d.kinney@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Zhiguang Liu <zhiguang.liu@intel.com>; Ray Ni
> <ray.ni@intel.com>
> 主题: [edk2-devel] [edk2:PATCH v3] MdePkg/Acpi62: Add type 7 NFIT
> Platform Capabilities Structure support
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3915
> 
> This commit adds a definition type 7 Platform Capabilities Structure
> and the struct definition for NFIT Table Structure Types.
> The type has been added since ACPI Specification Version 6.2A.
> 
> Signed-off-by: Miki Shindo <miki.shindo@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>
> Cc: Ray Ni <ray.ni@intel.com>
> 
> ---
>  MdePkg/Include/IndustryStandard/Acpi62.h | 13 +++++++++++++
>  MdePkg/Include/IndustryStandard/Acpi63.h | 13 +++++++++++++
>  MdePkg/Include/IndustryStandard/Acpi64.h | 13 +++++++++++++
>  3 files changed, 39 insertions(+)
> 
> diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h
> b/MdePkg/Include/IndustryStandard/Acpi62.h
> index 313db63044..836e986ee5 100644
> --- a/MdePkg/Include/IndustryStandard/Acpi62.h
> +++ b/MdePkg/Include/IndustryStandard/Acpi62.h
> @@ -1486,6 +1486,7 @@ typedef struct {
>  #define
> EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE
> 4
> 
>  #define
> EFI_ACPI_6_2_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTU
> RE_TYPE  5
> 
>  #define EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE
> 6
> 
> +#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE_TYPE
> 7
> 
> 
> 
>  //
> 
>  // Definition for NFIT Structure Header
> 
> @@ -1638,6 +1639,18 @@ typedef struct {
>    // UINT64
> FlushHintAddress[NumberOfFlushHintAddresses];
> 
>  } EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
> 
> 
> 
> +//
> 
> +// Definition for Platform Capabilities Structure
> 
> +//
> 
> +typedef struct {
> 
> +  UINT16    Type;
> 
> +  UINT16    Length;
> 
> +  UINT8     HighestValidCapability;
> 
> +  UINT8     Reserved_5[3];
> 
> +  UINT32    Capabilities;
> 
> +  UINT8     Reserved_12[4];
> 
> +} EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
> 
> +
> 
>  ///
> 
>  /// Secure DEVices Table (SDEV)
> 
>  ///
> 
> diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h
> b/MdePkg/Include/IndustryStandard/Acpi63.h
> index b1e9d5db5b..15a30d8808 100644
> --- a/MdePkg/Include/IndustryStandard/Acpi63.h
> +++ b/MdePkg/Include/IndustryStandard/Acpi63.h
> @@ -1450,6 +1450,7 @@ typedef struct {
>  #define
> EFI_ACPI_6_3_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE
> 4
> 
>  #define
> EFI_ACPI_6_3_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTU
> RE_TYPE  5
> 
>  #define EFI_ACPI_6_3_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE
> 6
> 
> +#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE_TYPE
> 7
> 
> 
> 
>  //
> 
>  // Definition for NFIT Structure Header
> 
> @@ -1602,6 +1603,18 @@ typedef struct {
>    // UINT64
> FlushHintAddress[NumberOfFlushHintAddresses];
> 
>  } EFI_ACPI_6_3_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
> 
> 
> 
> +//
> 
> +// Definition for Platform Capabilities Structure
> 
> +//
> 
> +typedef struct {
> 
> +  UINT16    Type;
> 
> +  UINT16    Length;
> 
> +  UINT8     HighestValidCapability;
> 
> +  UINT8     Reserved_5[3];
> 
> +  UINT32    Capabilities;
> 
> +  UINT8     Reserved_12[4];
> 
> +} EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
> 
> +
> 
>  ///
> 
>  /// Secure DEVices Table (SDEV)
> 
>  ///
> 
> diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h
> b/MdePkg/Include/IndustryStandard/Acpi64.h
> index 232697f228..c1d8b14c44 100644
> --- a/MdePkg/Include/IndustryStandard/Acpi64.h
> +++ b/MdePkg/Include/IndustryStandard/Acpi64.h
> @@ -1493,6 +1493,7 @@ typedef struct {
>  #define
> EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE
> 4
> 
>  #define
> EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTU
> RE_TYPE  5
> 
>  #define EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE
> 6
> 
> +#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE_TYPE
> 7
> 
> 
> 
>  //
> 
>  // Definition for NFIT Structure Header
> 
> @@ -1651,6 +1652,18 @@ typedef struct {
>    // UINT64
> FlushHintAddress[NumberOfFlushHintAddresses];
> 
>  } EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
> 
> 
> 
> +//
> 
> +// Definition for Platform Capabilities Structure
> 
> +//
> 
> +typedef struct {
> 
> +  UINT16    Type;
> 
> +  UINT16    Length;
> 
> +  UINT8     HighestValidCapability;
> 
> +  UINT8     Reserved_5[3];
> 
> +  UINT32    Capabilities;
> 
> +  UINT8     Reserved_12[4];
> 
> +} EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
> 
> +
> 
>  ///
> 
>  /// Secure DEVices Table (SDEV)
> 
>  ///
> 
> --
> 2.27.0.windows.1
> 
> 
> 
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#90709): https://edk2.groups.io/g/devel/message/90709
> Mute This Topic: https://groups.io/mt/91936713/4905953
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [gaoliming@byosoft.com.cn]
> -=-=-=-=-=-=
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-29  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-23  3:40 [edk2:PATCH v3] MdePkg/Acpi62: Add type 7 NFIT Platform Capabilities Structure support Miki Shindo
2022-06-29  0:57 ` 回复: [edk2-devel] " gaoliming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox