diff options
Diffstat (limited to 'drivers/usb/core/usb.h')
-rw-r--r-- | drivers/usb/core/usb.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index 9a1a45ac3add..386177867a8a 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h | |||
@@ -1,16 +1,20 @@ | |||
1 | #include <linux/pm.h> | ||
2 | |||
1 | /* Functions local to drivers/usb/core/ */ | 3 | /* Functions local to drivers/usb/core/ */ |
2 | 4 | ||
3 | extern int usb_create_sysfs_dev_files(struct usb_device *dev); | 5 | extern int usb_create_sysfs_dev_files(struct usb_device *dev); |
4 | extern void usb_remove_sysfs_dev_files(struct usb_device *dev); | 6 | extern void usb_remove_sysfs_dev_files(struct usb_device *dev); |
5 | extern int usb_create_sysfs_intf_files(struct usb_interface *intf); | 7 | extern int usb_create_sysfs_intf_files(struct usb_interface *intf); |
6 | extern void usb_remove_sysfs_intf_files(struct usb_interface *intf); | 8 | extern void usb_remove_sysfs_intf_files(struct usb_interface *intf); |
7 | extern int usb_create_ep_files(struct device *parent, | 9 | extern int usb_create_ep_devs(struct device *parent, |
8 | struct usb_host_endpoint *endpoint, | 10 | struct usb_host_endpoint *endpoint, |
9 | struct usb_device *udev); | 11 | struct usb_device *udev); |
10 | extern void usb_remove_ep_files(struct usb_host_endpoint *endpoint); | 12 | extern void usb_remove_ep_devs(struct usb_host_endpoint *endpoint); |
11 | 13 | ||
12 | extern void usb_enable_endpoint(struct usb_device *dev, | 14 | extern void usb_enable_endpoint(struct usb_device *dev, |
13 | struct usb_host_endpoint *ep); | 15 | struct usb_host_endpoint *ep, bool reset_toggle); |
16 | extern void usb_enable_interface(struct usb_device *dev, | ||
17 | struct usb_interface *intf, bool reset_toggles); | ||
14 | extern void usb_disable_endpoint(struct usb_device *dev, unsigned int epaddr); | 18 | extern void usb_disable_endpoint(struct usb_device *dev, unsigned int epaddr); |
15 | extern void usb_disable_interface(struct usb_device *dev, | 19 | extern void usb_disable_interface(struct usb_device *dev, |
16 | struct usb_interface *intf); | 20 | struct usb_interface *intf); |
@@ -42,14 +46,16 @@ extern void usb_host_cleanup(void); | |||
42 | #ifdef CONFIG_PM | 46 | #ifdef CONFIG_PM |
43 | 47 | ||
44 | extern int usb_suspend(struct device *dev, pm_message_t msg); | 48 | extern int usb_suspend(struct device *dev, pm_message_t msg); |
45 | extern int usb_resume(struct device *dev); | 49 | extern int usb_resume(struct device *dev, pm_message_t msg); |
46 | 50 | ||
47 | extern void usb_autosuspend_work(struct work_struct *work); | 51 | extern void usb_autosuspend_work(struct work_struct *work); |
48 | extern int usb_port_suspend(struct usb_device *dev); | 52 | extern void usb_autoresume_work(struct work_struct *work); |
49 | extern int usb_port_resume(struct usb_device *dev); | 53 | extern int usb_port_suspend(struct usb_device *dev, pm_message_t msg); |
54 | extern int usb_port_resume(struct usb_device *dev, pm_message_t msg); | ||
50 | extern int usb_external_suspend_device(struct usb_device *udev, | 55 | extern int usb_external_suspend_device(struct usb_device *udev, |
51 | pm_message_t msg); | 56 | pm_message_t msg); |
52 | extern int usb_external_resume_device(struct usb_device *udev); | 57 | extern int usb_external_resume_device(struct usb_device *udev, |
58 | pm_message_t msg); | ||
53 | 59 | ||
54 | static inline void usb_pm_lock(struct usb_device *udev) | 60 | static inline void usb_pm_lock(struct usb_device *udev) |
55 | { | 61 | { |
@@ -63,12 +69,12 @@ static inline void usb_pm_unlock(struct usb_device *udev) | |||
63 | 69 | ||
64 | #else | 70 | #else |
65 | 71 | ||
66 | static inline int usb_port_suspend(struct usb_device *udev) | 72 | static inline int usb_port_suspend(struct usb_device *udev, pm_message_t msg) |
67 | { | 73 | { |
68 | return 0; | 74 | return 0; |
69 | } | 75 | } |
70 | 76 | ||
71 | static inline int usb_port_resume(struct usb_device *udev) | 77 | static inline int usb_port_resume(struct usb_device *udev, pm_message_t msg) |
72 | { | 78 | { |
73 | return 0; | 79 | return 0; |
74 | } | 80 | } |