Skip to content

Commit fe85f8f

Browse files
vlsunilrafaeljw
authored andcommitted
ACPICA: RHCT: Add flags, CMO and MMU nodes
ACPICA commit 2eded5a6a13d892b7dc3be6096e7b1e8d4407600 Update RHCT table with below details. 1) Add additional structure to describe the Cache Management Operation (CMO) related information. 2) Add structure to describe MMU type. 3) Convert the current reserved field to flags and define a flag to indicate timer capability. This codefirst ECR is approved by UEFI forum and will be part of next ACPI spec version. Link: acpica/acpica@2eded5a6 Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f3b19ad commit fe85f8f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

include/acpi/actbl2.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2778,12 +2778,15 @@ enum acpi_rgrt_image_type {
27782778

27792779
struct acpi_table_rhct {
27802780
struct acpi_table_header header; /* Common ACPI table header */
2781-
u32 reserved;
2781+
u32 flags; /* RHCT flags */
27822782
u64 time_base_freq;
27832783
u32 node_count;
27842784
u32 node_offset;
27852785
};
27862786

2787+
/* RHCT Flags */
2788+
2789+
#define ACPI_RHCT_TIMER_CANNOT_WAKEUP_CPU (1)
27872790
/*
27882791
* RHCT subtables
27892792
*/
@@ -2797,6 +2800,9 @@ struct acpi_rhct_node_header {
27972800

27982801
enum acpi_rhct_node_type {
27992802
ACPI_RHCT_NODE_TYPE_ISA_STRING = 0x0000,
2803+
ACPI_RHCT_NODE_TYPE_CMO = 0x0001,
2804+
ACPI_RHCT_NODE_TYPE_MMU = 0x0002,
2805+
ACPI_RHCT_NODE_TYPE_RESERVED = 0x0003,
28002806
ACPI_RHCT_NODE_TYPE_HART_INFO = 0xFFFF,
28012807
};
28022808

@@ -2810,6 +2816,24 @@ struct acpi_rhct_isa_string {
28102816
char isa[];
28112817
};
28122818

2819+
struct acpi_rhct_cmo_node {
2820+
u8 reserved; /* Must be zero */
2821+
u8 cbom_size; /* CBOM size in powerof 2 */
2822+
u8 cbop_size; /* CBOP size in powerof 2 */
2823+
u8 cboz_size; /* CBOZ size in powerof 2 */
2824+
};
2825+
2826+
struct acpi_rhct_mmu_node {
2827+
u8 reserved; /* Must be zero */
2828+
u8 mmu_type; /* Virtual Address Scheme */
2829+
};
2830+
2831+
enum acpi_rhct_mmu_type {
2832+
ACPI_RHCT_MMU_TYPE_SV39 = 0,
2833+
ACPI_RHCT_MMU_TYPE_SV48 = 1,
2834+
ACPI_RHCT_MMU_TYPE_SV57 = 2
2835+
};
2836+
28132837
/* Hart Info node structure */
28142838
struct acpi_rhct_hart_info {
28152839
u16 num_offsets;

0 commit comments

Comments
 (0)