diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-09-02 18:50:44 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-09-02 18:50:44 +0000 |
commit | 8335f4b89d8e67c285a31d6b11a370185ce0b949 (patch) | |
tree | c6f2687acbbed316803ce152679d1c321f8174e7 /sys/dev/usb/usbdi.h | |
parent | 56a7a5d12f3bd0a91a39b86bb619324e35c2c6b9 (diff) | |
download | FreeBSD-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/usbdi.h')
-rw-r--r-- | sys/dev/usb/usbdi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index 8cdbc2d..6f89922 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -353,6 +353,7 @@ struct usbd_lookup_info { uint16_t idVendor; uint16_t idProduct; uint16_t bcdDevice; + uint16_t autoQuirk[USB_MAX_AUTO_QUIRK]; uint8_t bDeviceClass; uint8_t bDeviceSubClass; uint8_t bDeviceProtocol; @@ -475,6 +476,8 @@ void device_set_usb_desc(device_t dev); void usb_pause_mtx(struct mtx *mtx, int _ticks); usb_error_t usbd_set_pnpinfo(struct usb_device *udev, uint8_t iface_index, const char *pnpinfo); +usb_error_t usbd_add_dynamic_quirk(struct usb_device *udev, + uint16_t quirk); const struct usb_device_id *usbd_lookup_id_by_info( const struct usb_device_id *id, usb_size_t sizeof_id, |