diff options
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 3994d7790b23..bcbdd7484e58 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -74,9 +74,10 @@ enum acpi_address_range_id { | |||
74 | 74 | ||
75 | /* Table Handlers */ | 75 | /* Table Handlers */ |
76 | 76 | ||
77 | typedef int (*acpi_table_handler) (struct acpi_table_header *table); | 77 | typedef int (*acpi_tbl_table_handler)(struct acpi_table_header *table); |
78 | 78 | ||
79 | typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, const unsigned long end); | 79 | typedef int (*acpi_tbl_entry_handler)(struct acpi_subtable_header *header, |
80 | const unsigned long end); | ||
80 | 81 | ||
81 | #ifdef CONFIG_ACPI_INITRD_TABLE_OVERRIDE | 82 | #ifdef CONFIG_ACPI_INITRD_TABLE_OVERRIDE |
82 | void acpi_initrd_override(void *data, size_t size); | 83 | void acpi_initrd_override(void *data, size_t size); |
@@ -95,10 +96,14 @@ int acpi_mps_check (void); | |||
95 | int acpi_numa_init (void); | 96 | int acpi_numa_init (void); |
96 | 97 | ||
97 | int acpi_table_init (void); | 98 | int acpi_table_init (void); |
98 | int acpi_table_parse (char *id, acpi_table_handler handler); | 99 | int acpi_table_parse(char *id, acpi_tbl_table_handler handler); |
99 | int __init acpi_table_parse_entries(char *id, unsigned long table_size, | 100 | int __init acpi_table_parse_entries(char *id, unsigned long table_size, |
100 | int entry_id, acpi_table_entry_handler handler, unsigned int max_entries); | 101 | int entry_id, |
101 | int acpi_table_parse_madt (enum acpi_madt_type id, acpi_table_entry_handler handler, unsigned int max_entries); | 102 | acpi_tbl_entry_handler handler, |
103 | unsigned int max_entries); | ||
104 | int acpi_table_parse_madt(enum acpi_madt_type id, | ||
105 | acpi_tbl_entry_handler handler, | ||
106 | unsigned int max_entries); | ||
102 | int acpi_parse_mcfg (struct acpi_table_header *header); | 107 | int acpi_parse_mcfg (struct acpi_table_header *header); |
103 | void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); | 108 | void acpi_table_print_madt_entry (struct acpi_subtable_header *madt); |
104 | 109 | ||
@@ -358,8 +363,7 @@ extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, | |||
358 | #if defined(CONFIG_ACPI_HOTPLUG_CPU) && \ | 363 | #if defined(CONFIG_ACPI_HOTPLUG_CPU) && \ |
359 | (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \ | 364 | (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \ |
360 | defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)) && \ | 365 | defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)) && \ |
361 | (defined(CONFIG_ACPI_CONTAINER) || \ | 366 | defined(CONFIG_ACPI_CONTAINER) |
362 | defined(CONFIG_ACPI_CONTAINER_MODULE)) | ||
363 | #define ACPI_HOTPLUG_OST | 367 | #define ACPI_HOTPLUG_OST |
364 | #endif | 368 | #endif |
365 | 369 | ||
@@ -511,7 +515,7 @@ static inline int acpi_subsys_runtime_suspend(struct device *dev) { return 0; } | |||
511 | static inline int acpi_subsys_runtime_resume(struct device *dev) { return 0; } | 515 | static inline int acpi_subsys_runtime_resume(struct device *dev) { return 0; } |
512 | #endif | 516 | #endif |
513 | 517 | ||
514 | #ifdef CONFIG_ACPI_SLEEP | 518 | #if defined(CONFIG_ACPI) && defined(CONFIG_PM_SLEEP) |
515 | int acpi_dev_suspend_late(struct device *dev); | 519 | int acpi_dev_suspend_late(struct device *dev); |
516 | int acpi_dev_resume_early(struct device *dev); | 520 | int acpi_dev_resume_early(struct device *dev); |
517 | int acpi_subsys_prepare(struct device *dev); | 521 | int acpi_subsys_prepare(struct device *dev); |
@@ -526,9 +530,14 @@ static inline int acpi_subsys_resume_early(struct device *dev) { return 0; } | |||
526 | #endif | 530 | #endif |
527 | 531 | ||
528 | #if defined(CONFIG_ACPI) && defined(CONFIG_PM) | 532 | #if defined(CONFIG_ACPI) && defined(CONFIG_PM) |
533 | struct acpi_device *acpi_dev_pm_get_node(struct device *dev); | ||
529 | int acpi_dev_pm_attach(struct device *dev, bool power_on); | 534 | int acpi_dev_pm_attach(struct device *dev, bool power_on); |
530 | void acpi_dev_pm_detach(struct device *dev, bool power_off); | 535 | void acpi_dev_pm_detach(struct device *dev, bool power_off); |
531 | #else | 536 | #else |
537 | static inline struct acpi_device *acpi_dev_pm_get_node(struct device *dev) | ||
538 | { | ||
539 | return NULL; | ||
540 | } | ||
532 | static inline int acpi_dev_pm_attach(struct device *dev, bool power_on) | 541 | static inline int acpi_dev_pm_attach(struct device *dev, bool power_on) |
533 | { | 542 | { |
534 | return -ENODEV; | 543 | return -ENODEV; |