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>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit c4e75574a0
)
This commit is contained in:
@@ -2556,6 +2556,12 @@ typedef struct {
|
|||||||
UINT8 Reserved[2];
|
UINT8 Reserved[2];
|
||||||
} EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER;
|
} 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
|
/// Processor hierarchy node structure flags
|
||||||
///
|
///
|
||||||
@@ -2592,6 +2598,18 @@ typedef struct {
|
|||||||
UINT32 Reserved:25;
|
UINT32 Reserved:25;
|
||||||
} EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS;
|
} 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
|
/// Cache Type Structure cache attributes
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user