diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-01-13 15:21:11 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-01-13 15:21:11 +0000 |
commit | c4e62298f96f62da25d9d9005eb06674f3813ec2 (patch) | |
tree | 2ed1bd7186b681c28c7635d5d7e144cf1152435e /sys/dev/usb/usb_hub.h | |
parent | 94e08728590f78ad237a584e9176b460c7d3e331 (diff) | |
download | FreeBSD-src-c4e62298f96f62da25d9d9005eb06674f3813ec2.zip FreeBSD-src-c4e62298f96f62da25d9d9005eb06674f3813ec2.tar.gz |
Implement better error recovery for Transaction Translators, TTs,
found in High Speed USB HUBs which translate from High Speed USB into
FULL or LOW speed USB. In some rare cases SPLIT transactions might get
lost, which might leave the TT in an unknown state. Whenever we detect
such an error try to issue either a clear TT buffer request, or if
that is not possible reset the whole TT.
MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/usb_hub.h')
-rw-r--r-- | sys/dev/usb/usb_hub.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_hub.h b/sys/dev/usb/usb_hub.h index 4a48f74..dc8705a 100644 --- a/sys/dev/usb/usb_hub.h +++ b/sys/dev/usb/usb_hub.h @@ -35,6 +35,9 @@ struct usb_port { #define USB_RESTART_MAX 5 uint8_t device_index; /* zero means not valid */ enum usb_hc_mode usb_mode; /* host or device mode */ +#if USB_HAVE_TT_SUPPORT + struct usb_device_request req_reset_tt __aligned(4); +#endif }; /* @@ -44,6 +47,9 @@ struct usb_hub { struct usb_device *hubudev; /* the HUB device */ usb_error_t (*explore) (struct usb_device *hub); void *hubsoftc; +#if USB_HAVE_TT_SUPPORT + struct usb_udev_msg tt_msg[2]; +#endif usb_size_t uframe_usage[USB_HS_MICRO_FRAMES_MAX]; uint16_t portpower; /* mA per USB port */ uint8_t isoc_last_time; |