summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_freebsd.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-09-02 18:50:44 +0000
committerhselasky <hselasky@FreeBSD.org>2011-09-02 18:50:44 +0000
commit8335f4b89d8e67c285a31d6b11a370185ce0b949 (patch)
treec6f2687acbbed316803ce152679d1c321f8174e7 /sys/dev/usb/usb_freebsd.h
parent56a7a5d12f3bd0a91a39b86bb619324e35c2c6b9 (diff)
downloadFreeBSD-src-8335f4b89d8e67c285a31d6b11a370185ce0b949.zip
FreeBSD-src-8335f4b89d8e67c285a31d6b11a370185ce0b949.tar.gz
This patch adds automatic detection of USB mass storage devices
which does not support the no synchronize cache SCSI command. The __FreeBSD_version version macro has been bumped and external kernel modules needs to be recompiled after this patch. Approved by: re (kib) MFC after: 1 week PR: usb/160299
Diffstat (limited to 'sys/dev/usb/usb_freebsd.h')
-rw-r--r--sys/dev/usb/usb_freebsd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_freebsd.h b/sys/dev/usb/usb_freebsd.h
index ae69cdb..349e13e 100644
--- a/sys/dev/usb/usb_freebsd.h
+++ b/sys/dev/usb/usb_freebsd.h
@@ -68,6 +68,8 @@
#define USB_EP0_BUFSIZE 1024 /* bytes */
#define USB_CS_RESET_LIMIT 20 /* failures = 20 * 50 ms = 1sec */
+#define USB_MAX_AUTO_QUIRK 4 /* maximum number of dynamic quirks */
+
typedef uint32_t usb_timeout_t; /* milliseconds */
typedef uint32_t usb_frlength_t; /* bytes */
typedef uint32_t usb_frcount_t; /* units */
OpenPOWER on IntegriCloud