From 9ec0be52d8a61ffd74307265d07548ba526c8414 Mon Sep 17 00:00:00 2001 From: Len Brown Date: Tue, 21 Dec 2004 14:45:13 -0500 Subject: [ACPI] Add _CST parsing http://bugzilla.kernel.org/show_bug.cgi?id=1958 Signed-off-by: Bruno Ducrot Signed-off-by: Dominik Brodowski Signed-off-by: Len Brown --- include/acpi/processor.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 21a1c19c80ae..780e2ada96d8 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -6,7 +6,7 @@ #define ACPI_PROCESSOR_BUSY_METRIC 10 -#define ACPI_PROCESSOR_MAX_POWER ACPI_C_STATE_COUNT +#define ACPI_PROCESSOR_MAX_POWER 8 #define ACPI_PROCESSOR_MAX_C2_LATENCY 100 #define ACPI_PROCESSOR_MAX_C3_LATENCY 1000 @@ -18,6 +18,17 @@ struct acpi_processor_cx; +struct acpi_power_register { + u8 descriptor; + u16 length; + u8 space_id; + u8 bit_width; + u8 bit_offset; + u8 reserved; + u64 address; +} __attribute__ ((packed)); + + struct acpi_processor_cx_policy { u32 count; struct acpi_processor_cx *state; @@ -45,6 +56,7 @@ struct acpi_processor_power { struct acpi_processor_cx *state; u32 default_state; u32 bm_activity; + int count; struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER]; }; @@ -122,6 +134,7 @@ struct acpi_processor_flags { u8 limit:1; u8 bm_control:1; u8 bm_check:1; + u8 has_cst:1; u8 reserved:2; }; -- cgit v1.2.3