diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-08-08 16:21:02 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-08-08 16:21:02 -0400 |
| commit | e4ddcb0a6bf04d53ce77b4eb87bbbb32c4261d11 (patch) | |
| tree | d27d2fea50a384d97aa2d0cf5c8657c916f761d4 /include/linux/usb.h | |
| parent | f2afa7711f8585ffc088ba538b9a510e0d5dca12 (diff) | |
| parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) | |
Merge commit 'v2.6.27-rc1' into for-linus
Diffstat (limited to 'include/linux/usb.h')
| -rw-r--r-- | include/linux/usb.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index c08689ea9b4b..5811c5da69f9 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
| @@ -160,6 +160,7 @@ struct usb_interface { | |||
| 160 | unsigned is_active:1; /* the interface is not suspended */ | 160 | unsigned is_active:1; /* the interface is not suspended */ |
| 161 | unsigned sysfs_files_created:1; /* the sysfs attributes exist */ | 161 | unsigned sysfs_files_created:1; /* the sysfs attributes exist */ |
| 162 | unsigned needs_remote_wakeup:1; /* driver requires remote wakeup */ | 162 | unsigned needs_remote_wakeup:1; /* driver requires remote wakeup */ |
| 163 | unsigned needs_binding:1; /* needs delayed unbind/rebind */ | ||
| 163 | 164 | ||
| 164 | struct device dev; /* interface specific device info */ | 165 | struct device dev; /* interface specific device info */ |
| 165 | struct device *usb_dev; | 166 | struct device *usb_dev; |
| @@ -293,7 +294,7 @@ struct usb_devmap { | |||
| 293 | struct usb_bus { | 294 | struct usb_bus { |
| 294 | struct device *controller; /* host/master side hardware */ | 295 | struct device *controller; /* host/master side hardware */ |
| 295 | int busnum; /* Bus number (in order of reg) */ | 296 | int busnum; /* Bus number (in order of reg) */ |
| 296 | char *bus_name; /* stable id (PCI slot_name etc) */ | 297 | const char *bus_name; /* stable id (PCI slot_name etc) */ |
| 297 | u8 uses_dma; /* Does the host controller use DMA? */ | 298 | u8 uses_dma; /* Does the host controller use DMA? */ |
| 298 | u8 otg_port; /* 0, or number of OTG/HNP port */ | 299 | u8 otg_port; /* 0, or number of OTG/HNP port */ |
| 299 | unsigned is_b_host:1; /* true during some HNP roleswitches */ | 300 | unsigned is_b_host:1; /* true during some HNP roleswitches */ |
| @@ -497,8 +498,6 @@ extern int usb_lock_device_for_reset(struct usb_device *udev, | |||
| 497 | 498 | ||
| 498 | /* USB port reset for device reinitialization */ | 499 | /* USB port reset for device reinitialization */ |
| 499 | extern int usb_reset_device(struct usb_device *dev); | 500 | extern int usb_reset_device(struct usb_device *dev); |
| 500 | extern int usb_reset_composite_device(struct usb_device *dev, | ||
| 501 | struct usb_interface *iface); | ||
| 502 | 501 | ||
| 503 | extern struct usb_device *usb_find_device(u16 vendor_id, u16 product_id); | 502 | extern struct usb_device *usb_find_device(u16 vendor_id, u16 product_id); |
| 504 | 503 | ||
| @@ -958,9 +957,9 @@ struct usbdrv_wrap { | |||
| 958 | * @resume: Called when the device is being resumed by the system. | 957 | * @resume: Called when the device is being resumed by the system. |
| 959 | * @reset_resume: Called when the suspended device has been reset instead | 958 | * @reset_resume: Called when the suspended device has been reset instead |
| 960 | * of being resumed. | 959 | * of being resumed. |
| 961 | * @pre_reset: Called by usb_reset_composite_device() when the device | 960 | * @pre_reset: Called by usb_reset_device() when the device |
| 962 | * is about to be reset. | 961 | * is about to be reset. |
| 963 | * @post_reset: Called by usb_reset_composite_device() after the device | 962 | * @post_reset: Called by usb_reset_device() after the device |
| 964 | * has been reset | 963 | * has been reset |
| 965 | * @id_table: USB drivers use ID table to support hotplugging. | 964 | * @id_table: USB drivers use ID table to support hotplugging. |
| 966 | * Export this with MODULE_DEVICE_TABLE(usb,...). This must be set | 965 | * Export this with MODULE_DEVICE_TABLE(usb,...). This must be set |
| @@ -972,6 +971,8 @@ struct usbdrv_wrap { | |||
| 972 | * added to this driver by preventing the sysfs file from being created. | 971 | * added to this driver by preventing the sysfs file from being created. |
| 973 | * @supports_autosuspend: if set to 0, the USB core will not allow autosuspend | 972 | * @supports_autosuspend: if set to 0, the USB core will not allow autosuspend |
| 974 | * for interfaces bound to this driver. | 973 | * for interfaces bound to this driver. |
| 974 | * @soft_unbind: if set to 1, the USB core will not kill URBs and disable | ||
| 975 | * endpoints before calling the driver's disconnect method. | ||
| 975 | * | 976 | * |
| 976 | * USB interface drivers must provide a name, probe() and disconnect() | 977 | * USB interface drivers must provide a name, probe() and disconnect() |
| 977 | * methods, and an id_table. Other driver fields are optional. | 978 | * methods, and an id_table. Other driver fields are optional. |
| @@ -1012,6 +1013,7 @@ struct usb_driver { | |||
| 1012 | struct usbdrv_wrap drvwrap; | 1013 | struct usbdrv_wrap drvwrap; |
| 1013 | unsigned int no_dynamic_id:1; | 1014 | unsigned int no_dynamic_id:1; |
| 1014 | unsigned int supports_autosuspend:1; | 1015 | unsigned int supports_autosuspend:1; |
| 1016 | unsigned int soft_unbind:1; | ||
| 1015 | }; | 1017 | }; |
| 1016 | #define to_usb_driver(d) container_of(d, struct usb_driver, drvwrap.driver) | 1018 | #define to_usb_driver(d) container_of(d, struct usb_driver, drvwrap.driver) |
| 1017 | 1019 | ||
