aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mdm_hsic_pm.h
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.com>2012-09-22 09:48:20 +0200
committercodeworkx <codeworkx@cyanogenmod.com>2012-09-22 14:02:16 +0200
commit2489007e7d740ccbc3e0a202914e243ad5178787 (patch)
treeb8e6380ea7b1da63474ad68a5dba997e01146043 /include/linux/mdm_hsic_pm.h
parent5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (diff)
downloadkernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.zip
kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.gz
kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.bz2
merge opensource jb u5
Change-Id: I1aaec157aa196f3448eff8636134fce89a814cf2
Diffstat (limited to 'include/linux/mdm_hsic_pm.h')
-rw-r--r--include/linux/mdm_hsic_pm.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/include/linux/mdm_hsic_pm.h b/include/linux/mdm_hsic_pm.h
new file mode 100644
index 0000000..6388074
--- /dev/null
+++ b/include/linux/mdm_hsic_pm.h
@@ -0,0 +1,45 @@
+#ifndef __MDM_HSIC_PM_H__
+#define __MDM_HSIC_PM_H__
+#include <linux/usb.h>
+
+enum pwr_stat {
+ POWER_OFF,
+ POWER_ON,
+};
+
+void request_active_lock_set(const char *name);
+void request_active_lock_release(const char *name);
+void request_boot_lock_set(const char *name);
+void request_boot_lock_release(const char *name);
+void set_host_stat(const char *name, enum pwr_stat status);
+int wait_dev_pwr_stat(const char *name, enum pwr_stat status);
+int check_udev_suspend_allowed(const char *name);
+bool check_request_blocked(const char *name);
+
+/*add wakelock interface for fast dormancy*/
+#ifdef CONFIG_HAS_WAKELOCK
+void fast_dormancy_wakelock(const char *name);
+#else
+void fast_dormancy_wakelock(const char *name) {}
+#endif
+
+/**
+ * register_udev_to_pm_dev - called at interface driver probe function
+ *
+ * @name: name of pm device to register usb device
+ * @udev: pointer of udev to register
+ */
+int register_udev_to_pm_dev(const char *name, struct usb_device *udev);
+
+/**
+ * unregister_udev_from_pm_dev - called at interface driver disconnect function
+ *
+ * @name: name of pm device to unregister usb device
+ * @udev: pointer of udev to unregister
+ */
+void unregister_udev_from_pm_dev(const char *name, struct usb_device *udev);
+
+extern struct blocking_notifier_head mdm_reset_notifier_list;
+extern void mdm_force_fatal(void);
+extern bool lpa_handling;
+#endif /* __MDM_HSIC_PM_H__ */