15 extern int device_detach_shutdown(struct device *);
16 extern void device_shutdown(void);
26 * Used to synchronize global power management operations.
28 extern struct semaphore dpm_sem;
33 extern struct list_head dpm_active;
34 extern struct list_head dpm_off;
35 extern struct list_head dpm_off_irq;
38 static inline struct dev_pm_info * to_pm_info(struct list_head * entry)
40 return container_of(entry,struct dev_pm_info,entry);
43 static inline struct device * to_device(struct list_head * entry)
45 return container_of(to_pm_info(entry),struct device,power);
48 extern int device_pm_add(struct device *);
49 extern void device_pm_remove(struct device *);
55 extern int dpm_sysfs_add(struct device *);
56 extern void dpm_sysfs_remove(struct device *);
62 extern void dpm_resume(void);
63 extern void dpm_power_up(void);
64 extern int resume_device(struct device *);
69 extern int suspend_device(struct device *, u32);
76 extern int dpm_runtime_suspend(struct device *, u32);
77 extern void dpm_runtime_resume(struct device *);
82 static inline int device_pm_add(struct device * dev)
86 static inline void device_pm_remove(struct device * dev)
91 static inline int dpm_runtime_suspend(struct device * dev, u32 state)
96 static inline void dpm_runtime_resume(struct device * dev)