diff options
Diffstat (limited to 'include/linux/acpi.h')
| -rw-r--r-- | include/linux/acpi.h | 58 |
1 files changed, 53 insertions, 5 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index f421dd84f29d..90be98981102 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -96,7 +96,7 @@ void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); | |||
| 96 | void acpi_numa_slit_init (struct acpi_table_slit *slit); | 96 | void acpi_numa_slit_init (struct acpi_table_slit *slit); |
| 97 | void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa); | 97 | void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa); |
| 98 | void acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa); | 98 | 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); | 99 | int acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma); |
| 100 | void acpi_numa_arch_fixup(void); | 100 | void acpi_numa_arch_fixup(void); |
| 101 | 101 | ||
| 102 | #ifdef CONFIG_ACPI_HOTPLUG_CPU | 102 | #ifdef CONFIG_ACPI_HOTPLUG_CPU |
| @@ -138,9 +138,9 @@ void acpi_penalize_isa_irq(int irq, int active); | |||
| 138 | void acpi_pci_irq_disable (struct pci_dev *dev); | 138 | void acpi_pci_irq_disable (struct pci_dev *dev); |
| 139 | 139 | ||
| 140 | struct acpi_pci_driver { | 140 | struct acpi_pci_driver { |
| 141 | struct acpi_pci_driver *next; | 141 | struct list_head node; |
| 142 | int (*add)(acpi_handle handle); | 142 | int (*add)(struct acpi_pci_root *root); |
| 143 | void (*remove)(acpi_handle handle); | 143 | void (*remove)(struct acpi_pci_root *root); |
| 144 | }; | 144 | }; |
| 145 | 145 | ||
| 146 | int acpi_pci_register_driver(struct acpi_pci_driver *driver); | 146 | int acpi_pci_register_driver(struct acpi_pci_driver *driver); |
| @@ -190,6 +190,8 @@ extern bool wmi_has_guid(const char *guid); | |||
| 190 | 190 | ||
| 191 | extern long acpi_video_get_capabilities(acpi_handle graphics_dev_handle); | 191 | extern long acpi_video_get_capabilities(acpi_handle graphics_dev_handle); |
| 192 | extern long acpi_is_video_device(struct acpi_device *device); | 192 | extern long acpi_is_video_device(struct acpi_device *device); |
| 193 | extern void acpi_video_dmi_promote_vendor(void); | ||
| 194 | extern void acpi_video_dmi_demote_vendor(void); | ||
| 193 | extern int acpi_video_backlight_support(void); | 195 | extern int acpi_video_backlight_support(void); |
| 194 | extern int acpi_video_display_switch_support(void); | 196 | extern int acpi_video_display_switch_support(void); |
| 195 | 197 | ||
| @@ -205,6 +207,14 @@ static inline long acpi_is_video_device(struct acpi_device *device) | |||
| 205 | return 0; | 207 | return 0; |
| 206 | } | 208 | } |
| 207 | 209 | ||
| 210 | static inline void acpi_video_dmi_promote_vendor(void) | ||
| 211 | { | ||
| 212 | } | ||
| 213 | |||
| 214 | static inline void acpi_video_dmi_demote_vendor(void) | ||
| 215 | { | ||
| 216 | } | ||
| 217 | |||
| 208 | static inline int acpi_video_backlight_support(void) | 218 | static inline int acpi_video_backlight_support(void) |
| 209 | { | 219 | { |
| 210 | return 0; | 220 | return 0; |
| @@ -277,7 +287,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); | |||
| 277 | #define OSC_SB_PAD_SUPPORT 1 | 287 | #define OSC_SB_PAD_SUPPORT 1 |
| 278 | #define OSC_SB_PPC_OST_SUPPORT 2 | 288 | #define OSC_SB_PPC_OST_SUPPORT 2 |
| 279 | #define OSC_SB_PR3_SUPPORT 4 | 289 | #define OSC_SB_PR3_SUPPORT 4 |
| 280 | #define OSC_SB_CPUHP_OST_SUPPORT 8 | 290 | #define OSC_SB_HOTPLUG_OST_SUPPORT 8 |
| 281 | #define OSC_SB_APEI_SUPPORT 16 | 291 | #define OSC_SB_APEI_SUPPORT 16 |
| 282 | 292 | ||
| 283 | extern bool osc_sb_apei_support_acked; | 293 | extern bool osc_sb_apei_support_acked; |
| @@ -309,6 +319,44 @@ extern bool osc_sb_apei_support_acked; | |||
| 309 | 319 | ||
| 310 | extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, | 320 | extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, |
| 311 | u32 *mask, u32 req); | 321 | u32 *mask, u32 req); |
| 322 | |||
| 323 | /* Enable _OST when all relevant hotplug operations are enabled */ | ||
| 324 | #if defined(CONFIG_ACPI_HOTPLUG_CPU) && \ | ||
| 325 | (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \ | ||
| 326 | defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)) && \ | ||
| 327 | (defined(CONFIG_ACPI_CONTAINER) || \ | ||
| 328 | defined(CONFIG_ACPI_CONTAINER_MODULE)) | ||
| 329 | #define ACPI_HOTPLUG_OST | ||
| 330 | #endif | ||
| 331 | |||
| 332 | /* _OST Source Event Code (OSPM Action) */ | ||
| 333 | #define ACPI_OST_EC_OSPM_SHUTDOWN 0x100 | ||
| 334 | #define ACPI_OST_EC_OSPM_EJECT 0x103 | ||
| 335 | #define ACPI_OST_EC_OSPM_INSERTION 0x200 | ||
| 336 | |||
| 337 | /* _OST General Processing Status Code */ | ||
| 338 | #define ACPI_OST_SC_SUCCESS 0x0 | ||
| 339 | #define ACPI_OST_SC_NON_SPECIFIC_FAILURE 0x1 | ||
| 340 | #define ACPI_OST_SC_UNRECOGNIZED_NOTIFY 0x2 | ||
| 341 | |||
| 342 | /* _OST OS Shutdown Processing (0x100) Status Code */ | ||
| 343 | #define ACPI_OST_SC_OS_SHUTDOWN_DENIED 0x80 | ||
| 344 | #define ACPI_OST_SC_OS_SHUTDOWN_IN_PROGRESS 0x81 | ||
| 345 | #define ACPI_OST_SC_OS_SHUTDOWN_COMPLETED 0x82 | ||
| 346 | #define ACPI_OST_SC_OS_SHUTDOWN_NOT_SUPPORTED 0x83 | ||
| 347 | |||
| 348 | /* _OST Ejection Request (0x3, 0x103) Status Code */ | ||
| 349 | #define ACPI_OST_SC_EJECT_NOT_SUPPORTED 0x80 | ||
| 350 | #define ACPI_OST_SC_DEVICE_IN_USE 0x81 | ||
| 351 | #define ACPI_OST_SC_DEVICE_BUSY 0x82 | ||
| 352 | #define ACPI_OST_SC_EJECT_DEPENDENCY_BUSY 0x83 | ||
| 353 | #define ACPI_OST_SC_EJECT_IN_PROGRESS 0x84 | ||
| 354 | |||
| 355 | /* _OST Insertion Request (0x200) Status Code */ | ||
| 356 | #define ACPI_OST_SC_INSERT_IN_PROGRESS 0x80 | ||
| 357 | #define ACPI_OST_SC_DRIVER_LOAD_FAILURE 0x81 | ||
| 358 | #define ACPI_OST_SC_INSERT_NOT_SUPPORTED 0x82 | ||
| 359 | |||
| 312 | extern void acpi_early_init(void); | 360 | extern void acpi_early_init(void); |
| 313 | 361 | ||
| 314 | extern int acpi_nvs_register(__u64 start, __u64 size); | 362 | extern int acpi_nvs_register(__u64 start, __u64 size); |
