aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acnames.h1
-rw-r--r--include/acpi/acpi_bus.h12
-rw-r--r--include/acpi/processor.h7
3 files changed, 7 insertions, 13 deletions
diff --git a/include/acpi/acnames.h b/include/acpi/acnames.h
index ef24d82c4a41..d988ac54f41e 100644
--- a/include/acpi/acnames.h
+++ b/include/acpi/acnames.h
@@ -62,6 +62,7 @@
62#define METHOD_NAME__AEI "_AEI" 62#define METHOD_NAME__AEI "_AEI"
63#define METHOD_NAME__PRW "_PRW" 63#define METHOD_NAME__PRW "_PRW"
64#define METHOD_NAME__SRS "_SRS" 64#define METHOD_NAME__SRS "_SRS"
65#define METHOD_NAME__CBA "_CBA"
65 66
66/* Method names - these methods must appear at the namespace root */ 67/* Method names - these methods must appear at the namespace root */
67 68
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index b22b77444b5c..bde976ee068d 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -120,9 +120,6 @@ struct acpi_device;
120typedef int (*acpi_op_add) (struct acpi_device * device); 120typedef int (*acpi_op_add) (struct acpi_device * device);
121typedef int (*acpi_op_remove) (struct acpi_device * device, int type); 121typedef int (*acpi_op_remove) (struct acpi_device * device, int type);
122typedef int (*acpi_op_start) (struct acpi_device * device); 122typedef int (*acpi_op_start) (struct acpi_device * device);
123typedef int (*acpi_op_suspend) (struct acpi_device * device,
124 pm_message_t state);
125typedef int (*acpi_op_resume) (struct acpi_device * device);
126typedef int (*acpi_op_bind) (struct acpi_device * device); 123typedef int (*acpi_op_bind) (struct acpi_device * device);
127typedef int (*acpi_op_unbind) (struct acpi_device * device); 124typedef int (*acpi_op_unbind) (struct acpi_device * device);
128typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); 125typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event);
@@ -136,8 +133,6 @@ struct acpi_device_ops {
136 acpi_op_add add; 133 acpi_op_add add;
137 acpi_op_remove remove; 134 acpi_op_remove remove;
138 acpi_op_start start; 135 acpi_op_start start;
139 acpi_op_suspend suspend;
140 acpi_op_resume resume;
141 acpi_op_bind bind; 136 acpi_op_bind bind;
142 acpi_op_unbind unbind; 137 acpi_op_unbind unbind;
143 acpi_op_notify notify; 138 acpi_op_notify notify;
@@ -411,6 +406,7 @@ struct acpi_pci_root {
411 406
412 u32 osc_support_set; /* _OSC state of support bits */ 407 u32 osc_support_set; /* _OSC state of support bits */
413 u32 osc_control_set; /* _OSC state of control bits */ 408 u32 osc_control_set; /* _OSC state of control bits */
409 phys_addr_t mcfg_addr;
414}; 410};
415 411
416/* helper */ 412/* helper */
@@ -424,13 +420,13 @@ int acpi_enable_wakeup_device_power(struct acpi_device *dev, int state);
424int acpi_disable_wakeup_device_power(struct acpi_device *dev); 420int acpi_disable_wakeup_device_power(struct acpi_device *dev);
425 421
426#ifdef CONFIG_PM 422#ifdef CONFIG_PM
427int acpi_pm_device_sleep_state(struct device *, int *); 423int acpi_pm_device_sleep_state(struct device *, int *, int);
428#else 424#else
429static inline int acpi_pm_device_sleep_state(struct device *d, int *p) 425static inline int acpi_pm_device_sleep_state(struct device *d, int *p, int m)
430{ 426{
431 if (p) 427 if (p)
432 *p = ACPI_STATE_D0; 428 *p = ACPI_STATE_D0;
433 return ACPI_STATE_D3; 429 return (m >= ACPI_STATE_D0 && m <= ACPI_STATE_D3) ? m : ACPI_STATE_D0;
434} 430}
435#endif 431#endif
436 432
diff --git a/include/acpi/processor.h b/include/acpi/processor.h
index 9d650476d5dc..64ec644808bc 100644
--- a/include/acpi/processor.h
+++ b/include/acpi/processor.h
@@ -59,10 +59,7 @@ struct acpi_processor_cx {
59 u8 entry_method; 59 u8 entry_method;
60 u8 index; 60 u8 index;
61 u32 latency; 61 u32 latency;
62 u32 latency_ticks;
63 u32 power; 62 u32 power;
64 u32 usage;
65 u64 time;
66 u8 bm_sts_skip; 63 u8 bm_sts_skip;
67 char desc[ACPI_CX_DESC_LEN]; 64 char desc[ACPI_CX_DESC_LEN];
68}; 65};
@@ -334,8 +331,8 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr);
334int acpi_processor_hotplug(struct acpi_processor *pr); 331int acpi_processor_hotplug(struct acpi_processor *pr);
335int acpi_processor_power_exit(struct acpi_processor *pr, 332int acpi_processor_power_exit(struct acpi_processor *pr,
336 struct acpi_device *device); 333 struct acpi_device *device);
337int acpi_processor_suspend(struct acpi_device * device, pm_message_t state); 334int acpi_processor_suspend(struct device *dev);
338int acpi_processor_resume(struct acpi_device * device); 335int acpi_processor_resume(struct device *dev);
339extern struct cpuidle_driver acpi_idle_driver; 336extern struct cpuidle_driver acpi_idle_driver;
340 337
341/* in processor_thermal.c */ 338/* in processor_thermal.c */