diff mbox series

[edk2,edk2/MdePkg,v2] MdePkg ACPI: Add some macros for PPTT

Message ID 1517899305-2234-2-git-send-email-heyi.guo@linaro.org
State Accepted
Commit c4e75574a0c7d3ef97be8e18f261298b34e77065
Headers show
Series [edk2,edk2/MdePkg,v2] MdePkg ACPI: Add some macros for PPTT | expand

Commit Message

gary guo Feb. 6, 2018, 6:41 a.m. UTC
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

---
 MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Zeng, Star Feb. 6, 2018, 7:09 a.m. UTC | #1
Reviewed-by: Star Zeng <star.zeng@intel.com>



Thanks,
Star
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Heyi Guo

Sent: Tuesday, February 6, 2018 2:42 PM
To: leif.lindholm@linaro.org; linaro-uefi@lists.linaro.org; edk2-devel@lists.01.org; graeme.gregory@linaro.org
Cc: huangming23@huawei.com; ard.biesheuvel@linaro.org; john.garry@huawei.com; zhangjinsong2@huawei.com; Heyi Guo <heyi.guo@linaro.org>; wanghuiqiang@huawei.com; guoheyi@huawei.com; waip23@126.com; mengfanrong@huawei.com; huangdaode@hisilicon.com
Subject: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some macros for PPTT

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

---
 MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h
index 2904d34..730365b 100644
--- a/MdePkg/Include/IndustryStandard/Acpi62.h
+++ b/MdePkg/Include/IndustryStandard/Acpi62.h
@@ -2557,6 +2557,12 @@ typedef struct {
 } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER;
 
 ///
+/// For PPTT struct processor flags
+///
+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0
+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID   0x1
+
+///
 /// Processor hierarchy node structure flags  ///  typedef struct { @@ -2593,6 +2599,18 @@ typedef struct {  } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS;
 
 ///
+/// For cache attributes
+///
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ            0x0
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE           0x1
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE      0x2
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA            0x0
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION     0x1
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED         0x2
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK    0x0
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
+
+///
 /// Cache Type Structure cache attributes  ///  typedef struct {
--
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Gao, Liming Feb. 7, 2018, 12:50 a.m. UTC | #2
Reviewed-by: Liming Gao <liming.gao@intel.com>


>-----Original Message-----

>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of

>Zeng, Star

>Sent: Tuesday, February 06, 2018 3:10 PM

>To: Heyi Guo <heyi.guo@linaro.org>; leif.lindholm@linaro.org; linaro-

>uefi@lists.linaro.org; edk2-devel@lists.01.org; graeme.gregory@linaro.org

>Cc: Zeng, Star <star.zeng@intel.com>; huangming23@huawei.com;

>ard.biesheuvel@linaro.org; john.garry@huawei.com;

>zhangjinsong2@huawei.com; mengfanrong@huawei.com;

>guoheyi@huawei.com; waip23@126.com; wanghuiqiang@huawei.com;

>huangdaode@hisilicon.com

>Subject: Re: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some

>macros for PPTT

>

>Reviewed-by: Star Zeng <star.zeng@intel.com>

>

>

>Thanks,

>Star

>-----Original Message-----

>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of

>Heyi Guo

>Sent: Tuesday, February 6, 2018 2:42 PM

>To: leif.lindholm@linaro.org; linaro-uefi@lists.linaro.org; edk2-

>devel@lists.01.org; graeme.gregory@linaro.org

>Cc: huangming23@huawei.com; ard.biesheuvel@linaro.org;

>john.garry@huawei.com; zhangjinsong2@huawei.com; Heyi Guo

><heyi.guo@linaro.org>; wanghuiqiang@huawei.com; guoheyi@huawei.com;

>waip23@126.com; mengfanrong@huawei.com; huangdaode@hisilicon.com

>Subject: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some macros

>for PPTT

>

>Contributed-under: TianoCore Contribution Agreement 1.1

>Signed-off-by: Ming Huang <huangming23@huawei.com>

>Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

>---

> MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++

> 1 file changed, 18 insertions(+)

>

>diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h

>b/MdePkg/Include/IndustryStandard/Acpi62.h

>index 2904d34..730365b 100644

>--- a/MdePkg/Include/IndustryStandard/Acpi62.h

>+++ b/MdePkg/Include/IndustryStandard/Acpi62.h

>@@ -2557,6 +2557,12 @@ typedef struct {

> } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER;

>

> ///

>+/// For PPTT struct processor flags

>+///

>+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0

>+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID   0x1

>+

>+///

> /// Processor hierarchy node structure flags  ///  typedef struct { @@ -2593,6

>+2599,18 @@ typedef struct {  }

>EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS;

>

> ///

>+/// For cache attributes

>+///

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ            0x0

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE           0x1

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE

>0x2

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA            0x0

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION

>0x1

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED         0x2

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK

>0x0

>+#define

>EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1

>+

>+///

> /// Cache Type Structure cache attributes  ///  typedef struct {

>--

>1.9.1

>

>_______________________________________________

>edk2-devel mailing list

>edk2-devel@lists.01.org

>https://lists.01.org/mailman/listinfo/edk2-devel

>_______________________________________________

>edk2-devel mailing list

>edk2-devel@lists.01.org

>https://lists.01.org/mailman/listinfo/edk2-devel

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Zeng, Star Feb. 7, 2018, 12:53 a.m. UTC | #3
Pushed at c4e75574a0c7d3ef97be8e18f261298b34e77065.

Thanks,
Star
-----Original Message-----
From: Gao, Liming 

Sent: Wednesday, February 7, 2018 8:51 AM
To: Zeng, Star <star.zeng@intel.com>; Heyi Guo <heyi.guo@linaro.org>; leif.lindholm@linaro.org; linaro-uefi@lists.linaro.org; edk2-devel@lists.01.org; graeme.gregory@linaro.org
Cc: Zeng, Star <star.zeng@intel.com>; huangming23@huawei.com; ard.biesheuvel@linaro.org; john.garry@huawei.com; zhangjinsong2@huawei.com; mengfanrong@huawei.com; guoheyi@huawei.com; waip23@126.com; wanghuiqiang@huawei.com; huangdaode@hisilicon.com
Subject: RE: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some macros for PPTT

Reviewed-by: Liming Gao <liming.gao@intel.com>


>-----Original Message-----

>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of 

>Zeng, Star

>Sent: Tuesday, February 06, 2018 3:10 PM

>To: Heyi Guo <heyi.guo@linaro.org>; leif.lindholm@linaro.org; linaro- 

>uefi@lists.linaro.org; edk2-devel@lists.01.org; 

>graeme.gregory@linaro.org

>Cc: Zeng, Star <star.zeng@intel.com>; huangming23@huawei.com; 

>ard.biesheuvel@linaro.org; john.garry@huawei.com; 

>zhangjinsong2@huawei.com; mengfanrong@huawei.com; guoheyi@huawei.com; 

>waip23@126.com; wanghuiqiang@huawei.com; huangdaode@hisilicon.com

>Subject: Re: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some macros 

>for PPTT

>

>Reviewed-by: Star Zeng <star.zeng@intel.com>

>

>

>Thanks,

>Star

>-----Original Message-----

>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of 

>Heyi Guo

>Sent: Tuesday, February 6, 2018 2:42 PM

>To: leif.lindholm@linaro.org; linaro-uefi@lists.linaro.org; edk2- 

>devel@lists.01.org; graeme.gregory@linaro.org

>Cc: huangming23@huawei.com; ard.biesheuvel@linaro.org; 

>john.garry@huawei.com; zhangjinsong2@huawei.com; Heyi Guo 

><heyi.guo@linaro.org>; wanghuiqiang@huawei.com; guoheyi@huawei.com; 

>waip23@126.com; mengfanrong@huawei.com; huangdaode@hisilicon.com

>Subject: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some macros for 

>PPTT

>

>Contributed-under: TianoCore Contribution Agreement 1.1

>Signed-off-by: Ming Huang <huangming23@huawei.com>

>Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

>---

> MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++

> 1 file changed, 18 insertions(+)

>

>diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h

>b/MdePkg/Include/IndustryStandard/Acpi62.h

>index 2904d34..730365b 100644

>--- a/MdePkg/Include/IndustryStandard/Acpi62.h

>+++ b/MdePkg/Include/IndustryStandard/Acpi62.h

>@@ -2557,6 +2557,12 @@ typedef struct {  } 

>EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER;

>

> ///

>+/// For PPTT struct processor flags

>+///

>+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0

>+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID   0x1

>+

>+///

> /// Processor hierarchy node structure flags  ///  typedef struct { @@ 

> -2593,6

>+2599,18 @@ typedef struct {  }

>EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS;

>

> ///

>+/// For cache attributes

>+///

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ            0x0

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE           0x1

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE

>0x2

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA            0x0

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION

>0x1

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED         0x2

>+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK

>0x0

>+#define

>EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1

>+

>+///

> /// Cache Type Structure cache attributes  ///  typedef struct {

>--

>1.9.1

>

>_______________________________________________

>edk2-devel mailing list

>edk2-devel@lists.01.org

>https://lists.01.org/mailman/listinfo/edk2-devel

>_______________________________________________

>edk2-devel mailing list

>edk2-devel@lists.01.org

>https://lists.01.org/mailman/listinfo/edk2-devel

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h
index 2904d34..730365b 100644
--- a/MdePkg/Include/IndustryStandard/Acpi62.h
+++ b/MdePkg/Include/IndustryStandard/Acpi62.h
@@ -2557,6 +2557,12 @@  typedef struct {
 } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER;
 
 ///
+/// For PPTT struct processor flags
+///
+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0
+#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID   0x1
+
+///
 /// Processor hierarchy node structure flags
 ///
 typedef struct {
@@ -2593,6 +2599,18 @@  typedef struct {
 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS;
 
 ///
+/// For cache attributes
+///
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ            0x0
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE           0x1
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE      0x2
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA            0x0
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION     0x1
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED         0x2
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK    0x0
+#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
+
+///
 /// Cache Type Structure cache attributes
 ///
 typedef struct {