diff options
author | david-b@pacbell.net <david-b@pacbell.net> | 2005-08-13 21:41:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-08 19:28:35 -0400 |
commit | e09711aef4180002241c7f2eab37390ddf40d6a0 (patch) | |
tree | 9a537e417df8b8ab0d8e121f6a3e596898ec8ec0 /drivers/usb/core/hub.h | |
parent | 090ffa9d0e904e1ed0f86c84dcf20684a8ac1a5a (diff) |
[PATCH] ehci: add think_time
This adds think_time to the usb_tt struct and sets it appropriately
(measured in ns); this can help us implement better split transaction
scheduling.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.h')
-rw-r--r-- | drivers/usb/core/hub.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h index 53bf5649621..e7fa9b5a521 100644 --- a/drivers/usb/core/hub.h +++ b/drivers/usb/core/hub.h | |||
@@ -157,6 +157,12 @@ enum hub_led_mode { | |||
157 | 157 | ||
158 | struct usb_device; | 158 | struct usb_device; |
159 | 159 | ||
160 | /* Transaction Translator Think Times, in bits */ | ||
161 | #define HUB_TTTT_8_BITS 0x00 | ||
162 | #define HUB_TTTT_16_BITS 0x20 | ||
163 | #define HUB_TTTT_24_BITS 0x40 | ||
164 | #define HUB_TTTT_32_BITS 0x60 | ||
165 | |||
160 | /* | 166 | /* |
161 | * As of USB 2.0, full/low speed devices are segregated into trees. | 167 | * As of USB 2.0, full/low speed devices are segregated into trees. |
162 | * One type grows from USB 1.1 host controllers (OHCI, UHCI etc). | 168 | * One type grows from USB 1.1 host controllers (OHCI, UHCI etc). |
@@ -170,6 +176,7 @@ struct usb_device; | |||
170 | struct usb_tt { | 176 | struct usb_tt { |
171 | struct usb_device *hub; /* upstream highspeed hub */ | 177 | struct usb_device *hub; /* upstream highspeed hub */ |
172 | int multi; /* true means one TT per port */ | 178 | int multi; /* true means one TT per port */ |
179 | unsigned think_time; /* think time in ns */ | ||
173 | 180 | ||
174 | /* for control/bulk error recovery (CLEAR_TT_BUFFER) */ | 181 | /* for control/bulk error recovery (CLEAR_TT_BUFFER) */ |
175 | spinlock_t lock; | 182 | spinlock_t lock; |