From 2108a90fae038a79dd16e1fbcf43ac960d315aad Mon Sep 17 00:00:00 2001 From: n_hibma Date: Tue, 21 Aug 2001 21:47:08 +0000 Subject: Add support for the Microtech CameraMate. Submitted by: Phil Knaack Submitted by: Jim Bryant --- sys/dev/usb/umass.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/dev/usb') 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); -- cgit v1.1