diff options
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 20 | ||||
-rw-r--r-- | include/acpi/processor.h | 5 |
2 files changed, 20 insertions, 5 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 6e83a68fbd7b..af5905eca06f 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -30,8 +30,6 @@ | |||
30 | 30 | ||
31 | #include <acpi/acpi.h> | 31 | #include <acpi/acpi.h> |
32 | 32 | ||
33 | #define PREFIX "ACPI: " | ||
34 | |||
35 | /* TBD: Make dynamic */ | 33 | /* TBD: Make dynamic */ |
36 | #define ACPI_MAX_HANDLES 10 | 34 | #define ACPI_MAX_HANDLES 10 |
37 | struct acpi_handle_list { | 35 | struct acpi_handle_list { |
@@ -246,7 +244,6 @@ struct acpi_device_perf { | |||
246 | /* Wakeup Management */ | 244 | /* Wakeup Management */ |
247 | struct acpi_device_wakeup_flags { | 245 | struct acpi_device_wakeup_flags { |
248 | u8 valid:1; /* Can successfully enable wakeup? */ | 246 | u8 valid:1; /* Can successfully enable wakeup? */ |
249 | u8 prepared:1; /* Has the wake-up capability been enabled? */ | ||
250 | u8 run_wake:1; /* Run-Wake GPE devices */ | 247 | u8 run_wake:1; /* Run-Wake GPE devices */ |
251 | }; | 248 | }; |
252 | 249 | ||
@@ -261,6 +258,7 @@ struct acpi_device_wakeup { | |||
261 | struct acpi_handle_list resources; | 258 | struct acpi_handle_list resources; |
262 | struct acpi_device_wakeup_state state; | 259 | struct acpi_device_wakeup_state state; |
263 | struct acpi_device_wakeup_flags flags; | 260 | struct acpi_device_wakeup_flags flags; |
261 | int prepare_count; | ||
264 | }; | 262 | }; |
265 | 263 | ||
266 | /* Device */ | 264 | /* Device */ |
@@ -367,10 +365,26 @@ int register_acpi_bus_type(struct acpi_bus_type *); | |||
367 | int unregister_acpi_bus_type(struct acpi_bus_type *); | 365 | int unregister_acpi_bus_type(struct acpi_bus_type *); |
368 | struct device *acpi_get_physical_device(acpi_handle); | 366 | struct device *acpi_get_physical_device(acpi_handle); |
369 | 367 | ||
368 | struct acpi_pci_root { | ||
369 | struct list_head node; | ||
370 | struct acpi_device * device; | ||
371 | struct acpi_pci_id id; | ||
372 | struct pci_bus *bus; | ||
373 | u16 segment; | ||
374 | u8 bus_nr; | ||
375 | |||
376 | u32 osc_support_set; /* _OSC state of support bits */ | ||
377 | u32 osc_control_set; /* _OSC state of control bits */ | ||
378 | u32 osc_control_qry; /* the latest _OSC query result */ | ||
379 | |||
380 | u32 osc_queried:1; /* has _OSC control been queried? */ | ||
381 | }; | ||
382 | |||
370 | /* helper */ | 383 | /* helper */ |
371 | acpi_handle acpi_get_child(acpi_handle, acpi_integer); | 384 | acpi_handle acpi_get_child(acpi_handle, acpi_integer); |
372 | int acpi_is_root_bridge(acpi_handle); | 385 | int acpi_is_root_bridge(acpi_handle); |
373 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); | 386 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); |
387 | struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle); | ||
374 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) | 388 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) |
375 | 389 | ||
376 | #ifdef CONFIG_PM_SLEEP | 390 | #ifdef CONFIG_PM_SLEEP |
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index baf1e0a9a7ee..740ac3ad8fd0 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
@@ -174,7 +174,7 @@ struct acpi_processor_throttling { | |||
174 | cpumask_var_t shared_cpu_map; | 174 | cpumask_var_t shared_cpu_map; |
175 | int (*acpi_processor_get_throttling) (struct acpi_processor * pr); | 175 | int (*acpi_processor_get_throttling) (struct acpi_processor * pr); |
176 | int (*acpi_processor_set_throttling) (struct acpi_processor * pr, | 176 | int (*acpi_processor_set_throttling) (struct acpi_processor * pr, |
177 | int state); | 177 | int state, bool force); |
178 | 178 | ||
179 | u32 address; | 179 | u32 address; |
180 | u8 duty_offset; | 180 | u8 duty_offset; |
@@ -321,7 +321,8 @@ static inline int acpi_processor_ppc_has_changed(struct acpi_processor *pr) | |||
321 | /* in processor_throttling.c */ | 321 | /* in processor_throttling.c */ |
322 | int acpi_processor_tstate_has_changed(struct acpi_processor *pr); | 322 | int acpi_processor_tstate_has_changed(struct acpi_processor *pr); |
323 | int acpi_processor_get_throttling_info(struct acpi_processor *pr); | 323 | int acpi_processor_get_throttling_info(struct acpi_processor *pr); |
324 | extern int acpi_processor_set_throttling(struct acpi_processor *pr, int state); | 324 | extern int acpi_processor_set_throttling(struct acpi_processor *pr, |
325 | int state, bool force); | ||
325 | extern const struct file_operations acpi_processor_throttling_fops; | 326 | extern const struct file_operations acpi_processor_throttling_fops; |
326 | extern void acpi_processor_throttling_init(void); | 327 | extern void acpi_processor_throttling_init(void); |
327 | /* in processor_idle.c */ | 328 | /* in processor_idle.c */ |