diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2001-08-21 21:47:08 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2001-08-21 21:47:08 +0000 |
commit | 2108a90fae038a79dd16e1fbcf43ac960d315aad (patch) | |
tree | 78bde1731f98b8441c7315148c2845d6a4fdfaf4 /sys/dev/usb | |
parent | c7e44d09095423fbd2245197a66292d88a91787c (diff) | |
download | FreeBSD-src-2108a90fae038a79dd16e1fbcf43ac960d315aad.zip FreeBSD-src-2108a90fae038a79dd16e1fbcf43ac960d315aad.tar.gz |
Add support for the Microtech CameraMate.
Submitted by: Phil Knaack <pknaack1@netscape.net>
Submitted by: Jim Bryant <kc5vdj@yahoo.com>
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/umass.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index b85cd52..f119519 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -636,6 +636,15 @@ umass_match_proto(struct umass_softc *sc, usbd_interface_handle iface, return(UMATCH_VENDOR_PRODUCT); } + if (UGETW(dd->idVendor) == USB_VENDOR_MICROTECH + && UGETW(dd->idProduct) == USB_PRODUCT_MICROTECH_DPCM) { + /* the cameramate does not provide valid + class/subclass information. fake it. */ + sc->proto = PROTO_SCSI | PROTO_CBI; + sc->quirks |= NO_TEST_UNIT_READY | NO_START_STOP; + return(UMATCH_VENDOR_PRODUCT); + } + id = usbd_get_interface_descriptor(iface); if (id == NULL || id->bInterfaceClass != UCLASS_MASS) return(UMATCH_NONE); |