diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-08-05 16:50:12 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-08-05 16:50:12 -0400 |
| commit | 8b80c0f187d8711fede71b7bd6fb80cb76bb8be9 (patch) | |
| tree | 1f7582124a4dc42eded38668f393db16ddd7d658 /include/acpi | |
| parent | 49c68fd448568e79598b159efc09a7864bc59ede (diff) | |
| parent | 796ca778585d833023c18e1815b2e30a2d2f00fd (diff) | |
Merge branch 'acpica'
* acpica:
ACPICA: Update version to 20140724.
ACPICA: ACPI 5.1: Update for PCCT table changes.
ACPICA/ARM: ACPI 5.1: Update for GTDT table changes.
ACPICA/ARM: ACPI 5.1: Update for MADT changes.
ACPICA/ARM: ACPI 5.1: Update for FADT changes.
ACPICA: ACPI 5.1: Support for the _CCA predifined name.
ACPICA: ACPI 5.1: New notify value for System Affinity Update.
ACPICA: ACPI 5.1: Support for the _DSD predefined name.
ACPICA: Debug object: Add current value of Timer() to debug line prefix.
ACPICA: acpihelp: Add UUID support, restructure some existing files.
ACPICA: Utilities: Fix local printf issue.
ACPICA: Tables: Update for DMAR table changes.
ACPICA: Remove some extraneous printf arguments.
ACPICA: Update for comments/formatting. No functional changes.
ACPICA: Disassembler: Add support for the ToUUID opererator (macro).
ACPICA: Remove a redundant cast to acpi_size for ACPI_OFFSET() macro.
ACPICA: Work around an ancient GCC bug.
Diffstat (limited to 'include/acpi')
| -rw-r--r-- | include/acpi/acconfig.h | 18 | ||||
| -rw-r--r-- | include/acpi/acnames.h | 1 | ||||
| -rw-r--r-- | include/acpi/acpixf.h | 2 | ||||
| -rw-r--r-- | include/acpi/actbl.h | 12 | ||||
| -rw-r--r-- | include/acpi/actbl1.h | 44 | ||||
| -rw-r--r-- | include/acpi/actbl2.h | 14 | ||||
| -rw-r--r-- | include/acpi/actbl3.h | 118 | ||||
| -rw-r--r-- | include/acpi/actypes.h | 5 |
8 files changed, 182 insertions, 32 deletions
diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h index 932a60d6ed82..5a0a3e5daf85 100644 --- a/include/acpi/acconfig.h +++ b/include/acpi/acconfig.h | |||
| @@ -219,6 +219,24 @@ | |||
| 219 | 219 | ||
| 220 | /****************************************************************************** | 220 | /****************************************************************************** |
| 221 | * | 221 | * |
| 222 | * Miscellaneous constants | ||
| 223 | * | ||
| 224 | *****************************************************************************/ | ||
| 225 | |||
| 226 | /* UUID constants */ | ||
| 227 | |||
| 228 | #define UUID_BUFFER_LENGTH 16 /* Length of UUID in memory */ | ||
| 229 | #define UUID_STRING_LENGTH 36 /* Total length of a UUID string */ | ||
| 230 | |||
| 231 | /* Positions for required hyphens (dashes) in UUID strings */ | ||
| 232 | |||
| 233 | #define UUID_HYPHEN1_OFFSET 8 | ||
| 234 | #define UUID_HYPHEN2_OFFSET 13 | ||
| 235 | #define UUID_HYPHEN3_OFFSET 18 | ||
| 236 | #define UUID_HYPHEN4_OFFSET 23 | ||
| 237 | |||
| 238 | /****************************************************************************** | ||
| 239 | * | ||
| 222 | * ACPI AML Debugger | 240 | * ACPI AML Debugger |
| 223 | * | 241 | * |
| 224 | *****************************************************************************/ | 242 | *****************************************************************************/ |
diff --git a/include/acpi/acnames.h b/include/acpi/acnames.h index 3dd6e838dc30..c728113374f5 100644 --- a/include/acpi/acnames.h +++ b/include/acpi/acnames.h | |||
| @@ -55,6 +55,7 @@ | |||
| 55 | #define METHOD_NAME__HID "_HID" | 55 | #define METHOD_NAME__HID "_HID" |
| 56 | #define METHOD_NAME__INI "_INI" | 56 | #define METHOD_NAME__INI "_INI" |
| 57 | #define METHOD_NAME__PLD "_PLD" | 57 | #define METHOD_NAME__PLD "_PLD" |
| 58 | #define METHOD_NAME__DSD "_DSD" | ||
| 58 | #define METHOD_NAME__PRS "_PRS" | 59 | #define METHOD_NAME__PRS "_PRS" |
| 59 | #define METHOD_NAME__PRT "_PRT" | 60 | #define METHOD_NAME__PRT "_PRT" |
| 60 | #define METHOD_NAME__PRW "_PRW" | 61 | #define METHOD_NAME__PRW "_PRW" |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index c3f38bc459e1..b7c89d47efbe 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | 46 | ||
| 47 | /* Current ACPICA subsystem version in YYYYMMDD format */ | 47 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
| 48 | 48 | ||
| 49 | #define ACPI_CA_VERSION 0x20140627 | 49 | #define ACPI_CA_VERSION 0x20140724 |
| 50 | 50 | ||
| 51 | #include <acpi/acconfig.h> | 51 | #include <acpi/acconfig.h> |
| 52 | #include <acpi/actypes.h> | 52 | #include <acpi/actypes.h> |
diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h index 1cc7ef13c01a..bee19d8170c5 100644 --- a/include/acpi/actbl.h +++ b/include/acpi/actbl.h | |||
| @@ -270,7 +270,8 @@ struct acpi_table_fadt { | |||
| 270 | u32 flags; /* Miscellaneous flag bits (see below for individual flags) */ | 270 | u32 flags; /* Miscellaneous flag bits (see below for individual flags) */ |
| 271 | struct acpi_generic_address reset_register; /* 64-bit address of the Reset register */ | 271 | struct acpi_generic_address reset_register; /* 64-bit address of the Reset register */ |
| 272 | u8 reset_value; /* Value to write to the reset_register port to reset the system */ | 272 | u8 reset_value; /* Value to write to the reset_register port to reset the system */ |
| 273 | u8 reserved4[3]; /* Reserved, must be zero */ | 273 | u16 arm_boot_flags; /* ARM-Specific Boot Flags (see below for individual flags) (ACPI 5.1) */ |
| 274 | u8 minor_revision; /* FADT Minor Revision (ACPI 5.1) */ | ||
| 274 | u64 Xfacs; /* 64-bit physical address of FACS */ | 275 | u64 Xfacs; /* 64-bit physical address of FACS */ |
| 275 | u64 Xdsdt; /* 64-bit physical address of DSDT */ | 276 | u64 Xdsdt; /* 64-bit physical address of DSDT */ |
| 276 | struct acpi_generic_address xpm1a_event_block; /* 64-bit Extended Power Mgt 1a Event Reg Blk address */ | 277 | struct acpi_generic_address xpm1a_event_block; /* 64-bit Extended Power Mgt 1a Event Reg Blk address */ |
| @@ -285,7 +286,7 @@ struct acpi_table_fadt { | |||
| 285 | struct acpi_generic_address sleep_status; /* 64-bit Sleep Status register (ACPI 5.0) */ | 286 | struct acpi_generic_address sleep_status; /* 64-bit Sleep Status register (ACPI 5.0) */ |
| 286 | }; | 287 | }; |
| 287 | 288 | ||
| 288 | /* Masks for FADT Boot Architecture Flags (boot_flags) [Vx]=Introduced in this FADT revision */ | 289 | /* Masks for FADT IA-PC Boot Architecture Flags (boot_flags) [Vx]=Introduced in this FADT revision */ |
| 289 | 290 | ||
| 290 | #define ACPI_FADT_LEGACY_DEVICES (1) /* 00: [V2] System has LPC or ISA bus devices */ | 291 | #define ACPI_FADT_LEGACY_DEVICES (1) /* 00: [V2] System has LPC or ISA bus devices */ |
| 291 | #define ACPI_FADT_8042 (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */ | 292 | #define ACPI_FADT_8042 (1<<1) /* 01: [V3] System has an 8042 controller on port 60/64 */ |
| @@ -296,6 +297,11 @@ struct acpi_table_fadt { | |||
| 296 | 297 | ||
| 297 | #define FADT2_REVISION_ID 3 | 298 | #define FADT2_REVISION_ID 3 |
| 298 | 299 | ||
| 300 | /* Masks for FADT ARM Boot Architecture Flags (arm_boot_flags) ACPI 5.1 */ | ||
| 301 | |||
| 302 | #define ACPI_FADT_PSCI_COMPLIANT (1) /* 00: [V5+] PSCI 0.2+ is implemented */ | ||
| 303 | #define ACPI_FADT_PSCI_USE_HVC (1<<1) /* 01: [V5+] HVC must be used instead of SMC as the PSCI conduit */ | ||
| 304 | |||
| 299 | /* Masks for FADT flags */ | 305 | /* Masks for FADT flags */ |
| 300 | 306 | ||
| 301 | #define ACPI_FADT_WBINVD (1) /* 00: [V1] The WBINVD instruction works properly */ | 307 | #define ACPI_FADT_WBINVD (1) /* 00: [V1] The WBINVD instruction works properly */ |
| @@ -399,7 +405,7 @@ struct acpi_table_desc { | |||
| 399 | * FADT V5 size: 0x10C | 405 | * FADT V5 size: 0x10C |
| 400 | */ | 406 | */ |
| 401 | #define ACPI_FADT_V1_SIZE (u32) (ACPI_FADT_OFFSET (flags) + 4) | 407 | #define ACPI_FADT_V1_SIZE (u32) (ACPI_FADT_OFFSET (flags) + 4) |
| 402 | #define ACPI_FADT_V2_SIZE (u32) (ACPI_FADT_OFFSET (reserved4[0]) + 3) | 408 | #define ACPI_FADT_V2_SIZE (u32) (ACPI_FADT_OFFSET (minor_revision) + 1) |
| 403 | #define ACPI_FADT_V3_SIZE (u32) (ACPI_FADT_OFFSET (sleep_control)) | 409 | #define ACPI_FADT_V3_SIZE (u32) (ACPI_FADT_OFFSET (sleep_control)) |
| 404 | #define ACPI_FADT_V5_SIZE (u32) (sizeof (struct acpi_table_fadt)) | 410 | #define ACPI_FADT_V5_SIZE (u32) (sizeof (struct acpi_table_fadt)) |
| 405 | 411 | ||
diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 9613e8e97960..7626bfeac2cb 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h | |||
| @@ -671,7 +671,9 @@ enum acpi_madt_type { | |||
| 671 | ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10, | 671 | ACPI_MADT_TYPE_LOCAL_X2APIC_NMI = 10, |
| 672 | ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11, | 672 | ACPI_MADT_TYPE_GENERIC_INTERRUPT = 11, |
| 673 | ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, | 673 | ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR = 12, |
| 674 | ACPI_MADT_TYPE_RESERVED = 13 /* 13 and greater are reserved */ | 674 | ACPI_MADT_TYPE_GENERIC_MSI_FRAME = 13, |
| 675 | ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR = 14, | ||
| 676 | ACPI_MADT_TYPE_RESERVED = 15 /* 15 and greater are reserved */ | ||
| 675 | }; | 677 | }; |
| 676 | 678 | ||
| 677 | /* | 679 | /* |
| @@ -797,15 +799,26 @@ struct acpi_madt_local_x2apic_nmi { | |||
| 797 | struct acpi_madt_generic_interrupt { | 799 | struct acpi_madt_generic_interrupt { |
| 798 | struct acpi_subtable_header header; | 800 | struct acpi_subtable_header header; |
| 799 | u16 reserved; /* reserved - must be zero */ | 801 | u16 reserved; /* reserved - must be zero */ |
| 800 | u32 gic_id; | 802 | u32 cpu_interface_number; |
| 801 | u32 uid; | 803 | u32 uid; |
| 802 | u32 flags; | 804 | u32 flags; |
| 803 | u32 parking_version; | 805 | u32 parking_version; |
| 804 | u32 performance_interrupt; | 806 | u32 performance_interrupt; |
| 805 | u64 parked_address; | 807 | u64 parked_address; |
| 806 | u64 base_address; | 808 | u64 base_address; |
| 809 | u64 gicv_base_address; | ||
| 810 | u64 gich_base_address; | ||
| 811 | u32 vgic_interrupt; | ||
| 812 | u64 gicr_base_address; | ||
| 813 | u64 arm_mpidr; | ||
| 807 | }; | 814 | }; |
| 808 | 815 | ||
| 816 | /* Masks for Flags field above */ | ||
| 817 | |||
| 818 | /* ACPI_MADT_ENABLED (1) Processor is usable if set */ | ||
| 819 | #define ACPI_MADT_PERFORMANCE_IRQ_MODE (1<<1) /* 01: Performance Interrupt Mode */ | ||
| 820 | #define ACPI_MADT_VGIC_IRQ_MODE (1<<2) /* 02: VGIC Maintenance Interrupt mode */ | ||
| 821 | |||
| 809 | /* 12: Generic Distributor (ACPI 5.0) */ | 822 | /* 12: Generic Distributor (ACPI 5.0) */ |
| 810 | 823 | ||
| 811 | struct acpi_madt_generic_distributor { | 824 | struct acpi_madt_generic_distributor { |
| @@ -817,11 +830,36 @@ struct acpi_madt_generic_distributor { | |||
| 817 | u32 reserved2; /* reserved - must be zero */ | 830 | u32 reserved2; /* reserved - must be zero */ |
| 818 | }; | 831 | }; |
| 819 | 832 | ||
| 833 | /* 13: Generic MSI Frame (ACPI 5.1) */ | ||
| 834 | |||
| 835 | struct acpi_madt_generic_msi_frame { | ||
| 836 | struct acpi_subtable_header header; | ||
| 837 | u16 reserved; /* reserved - must be zero */ | ||
| 838 | u32 msi_frame_id; | ||
| 839 | u64 base_address; | ||
| 840 | u32 flags; | ||
| 841 | u16 spi_count; | ||
| 842 | u16 spi_base; | ||
| 843 | }; | ||
| 844 | |||
| 845 | /* Masks for Flags field above */ | ||
| 846 | |||
| 847 | #define ACPI_MADT_OVERRIDE_SPI_VALUES (1) | ||
| 848 | |||
| 849 | /* 14: Generic Redistributor (ACPI 5.1) */ | ||
| 850 | |||
| 851 | struct acpi_madt_generic_redistributor { | ||
| 852 | struct acpi_subtable_header header; | ||
| 853 | u16 reserved; /* reserved - must be zero */ | ||
| 854 | u64 base_address; | ||
| 855 | u32 length; | ||
| 856 | }; | ||
| 857 | |||
| 820 | /* | 858 | /* |
| 821 | * Common flags fields for MADT subtables | 859 | * Common flags fields for MADT subtables |
| 822 | */ | 860 | */ |
| 823 | 861 | ||
