diff options
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 6fce2fc2d124..88be890ee3c7 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -79,6 +79,7 @@ typedef int (*acpi_table_handler) (struct acpi_table_header *table); | |||
79 | typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end); | 79 | typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end); |
80 | 80 | ||
81 | char * __acpi_map_table (unsigned long phys_addr, unsigned long size); | 81 | char * __acpi_map_table (unsigned long phys_addr, unsigned long size); |
82 | void __acpi_unmap_table(char *map, unsigned long size); | ||
82 | int early_acpi_boot_init(void); | 83 | int early_acpi_boot_init(void); |
83 | int acpi_boot_init (void); | 84 | int acpi_boot_init (void); |
84 | int acpi_boot_table_init (void); | 85 | int acpi_boot_table_init (void); |
@@ -96,6 +97,7 @@ void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); | |||
96 | /* the following four functions are architecture-dependent */ | 97 | /* the following four functions are architecture-dependent */ |
97 | void acpi_numa_slit_init (struct acpi_table_slit *slit); | 98 | void acpi_numa_slit_init (struct acpi_table_slit *slit); |
98 | void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa); | 99 | void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa); |
100 | void acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa); | ||
99 | void acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma); | 101 | void acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma); |
100 | void acpi_numa_arch_fixup(void); | 102 | void acpi_numa_arch_fixup(void); |
101 | 103 | ||
@@ -109,6 +111,7 @@ int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base); | |||
109 | int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base); | 111 | int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base); |
110 | void acpi_irq_stats_init(void); | 112 | void acpi_irq_stats_init(void); |
111 | extern u32 acpi_irq_handled; | 113 | extern u32 acpi_irq_handled; |
114 | extern u32 acpi_irq_not_handled; | ||
112 | 115 | ||
113 | extern struct acpi_mcfg_allocation *pci_mmcfg_config; | 116 | extern struct acpi_mcfg_allocation *pci_mmcfg_config; |
114 | extern int pci_mmcfg_config_num; | 117 | extern int pci_mmcfg_config_num; |
@@ -256,6 +259,40 @@ void __init acpi_no_s4_hw_signature(void); | |||
256 | void __init acpi_old_suspend_ordering(void); | 259 | void __init acpi_old_suspend_ordering(void); |
257 | void __init acpi_s4_no_nvs(void); | 260 | void __init acpi_s4_no_nvs(void); |
258 | #endif /* CONFIG_PM_SLEEP */ | 261 | #endif /* CONFIG_PM_SLEEP */ |
262 | |||
263 | #define OSC_QUERY_TYPE 0 | ||
264 | #define OSC_SUPPORT_TYPE 1 | ||
265 | #define OSC_CONTROL_TYPE 2 | ||
266 | #define OSC_SUPPORT_MASKS 0x1f | ||
267 | |||
268 | /* _OSC DW0 Definition */ | ||
269 | #define OSC_QUERY_ENABLE 1 | ||
270 | #define OSC_REQUEST_ERROR 2 | ||
271 | #define OSC_INVALID_UUID_ERROR 4 | ||
272 | #define OSC_INVALID_REVISION_ERROR 8 | ||
273 | #define OSC_CAPABILITIES_MASK_ERROR 16 | ||
274 | |||
275 | /* _OSC DW1 Definition (OS Support Fields) */ | ||
276 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 | ||
277 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 | ||
278 | #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4 | ||
279 | #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8 | ||
280 | #define OSC_MSI_SUPPORT 16 | ||
281 | |||
282 | /* _OSC DW1 Definition (OS Control Fields) */ | ||
283 | #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1 | ||
284 | #define OSC_SHPC_NATIVE_HP_CONTROL 2 | ||
285 | #define OSC_PCI_EXPRESS_PME_CONTROL 4 | ||
286 | #define OSC_PCI_EXPRESS_AER_CONTROL 8 | ||
287 | #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16 | ||
288 | |||
289 | #define OSC_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \ | ||
290 | OSC_SHPC_NATIVE_HP_CONTROL | \ | ||
291 | OSC_PCI_EXPRESS_PME_CONTROL | \ | ||
292 | OSC_PCI_EXPRESS_AER_CONTROL | \ | ||
293 | OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL) | ||
294 | |||
295 | extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, u32 flags); | ||
259 | #else /* CONFIG_ACPI */ | 296 | #else /* CONFIG_ACPI */ |
260 | 297 | ||
261 | static inline int early_acpi_boot_init(void) | 298 | static inline int early_acpi_boot_init(void) |