aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 78199151c00b..6586cbd0d4af 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -97,6 +97,7 @@ void acpi_table_print_madt_entry (struct acpi_subtable_header *madt);
97/* the following four functions are architecture-dependent */ 97/* the following four functions are architecture-dependent */
98void acpi_numa_slit_init (struct acpi_table_slit *slit); 98void acpi_numa_slit_init (struct acpi_table_slit *slit);
99void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa); 99void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa);
100void acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa);
100void acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma); 101void acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma);
101void acpi_numa_arch_fixup(void); 102void acpi_numa_arch_fixup(void);
102 103
@@ -257,6 +258,40 @@ void __init acpi_no_s4_hw_signature(void);
257void __init acpi_old_suspend_ordering(void); 258void __init acpi_old_suspend_ordering(void);
258void __init acpi_s4_no_nvs(void); 259void __init acpi_s4_no_nvs(void);
259#endif /* CONFIG_PM_SLEEP */ 260#endif /* CONFIG_PM_SLEEP */
261
262#define OSC_QUERY_TYPE 0
263#define OSC_SUPPORT_TYPE 1
264#define OSC_CONTROL_TYPE 2
265#define OSC_SUPPORT_MASKS 0x1f
266
267/* _OSC DW0 Definition */
268#define OSC_QUERY_ENABLE 1
269#define OSC_REQUEST_ERROR 2
270#define OSC_INVALID_UUID_ERROR 4
271#define OSC_INVALID_REVISION_ERROR 8
272#define OSC_CAPABILITIES_MASK_ERROR 16
273
274/* _OSC DW1 Definition (OS Support Fields) */
275#define OSC_EXT_PCI_CONFIG_SUPPORT 1
276#define OSC_ACTIVE_STATE_PWR_SUPPORT 2
277#define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4
278#define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8
279#define OSC_MSI_SUPPORT 16
280
281/* _OSC DW1 Definition (OS Control Fields) */
282#define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1
283#define OSC_SHPC_NATIVE_HP_CONTROL 2
284#define OSC_PCI_EXPRESS_PME_CONTROL 4
285#define OSC_PCI_EXPRESS_AER_CONTROL 8
286#define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16
287
288#define OSC_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \
289 OSC_SHPC_NATIVE_HP_CONTROL | \
290 OSC_PCI_EXPRESS_PME_CONTROL | \
291 OSC_PCI_EXPRESS_AER_CONTROL | \
292 OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL)
293
294extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, u32 flags);
260#else /* CONFIG_ACPI */ 295#else /* CONFIG_ACPI */
261 296
262static inline int early_acpi_boot_init(void) 297static inline int early_acpi_boot_init(void)