summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uftdi.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-10-30 14:36:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-10-30 14:36:29 +0000
commit4ffb0f1b3b9990b3620c7bacb65aecf77efd0a40 (patch)
tree03c5e23d8395af51bd01fd533a6cf2081caf6e47 /sys/dev/usb/uftdi.c
parent4fa1f9863b930df5f954d65769032cbc693c0a4b (diff)
Support another device; prices@dflytech.com
Diffstat (limited to 'sys/dev/usb/uftdi.c')
-rw-r--r--sys/dev/usb/uftdi.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/dev/usb/uftdi.c b/sys/dev/usb/uftdi.c
index 78f6567815a..d0fe7fc7c65 100644
--- a/sys/dev/usb/uftdi.c
+++ b/sys/dev/usb/uftdi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uftdi.c,v 1.17 2004/08/13 22:13:55 deraadt Exp $ */
+/* $OpenBSD: uftdi.c,v 1.18 2004/10/30 14:36:28 deraadt Exp $ */
/* $NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $ */
/*
@@ -154,6 +154,9 @@ USB_MATCH(uftdi)
(uaa->product == USB_PRODUCT_INTREPIDCS_VALUECAN ||
uaa->product == USB_PRODUCT_INTREPIDCS_NEOVI))
return (UMATCH_VENDOR_PRODUCT);
+ if (uaa->vendor == USB_VENDOR_BBELECTRONICS &&
+ (uaa->product == USB_PRODUCT_BBELECTRONICS_USOTL4))
+ return (UMATCH_VENDOR_PRODUCT);
return (UMATCH_NONE);
}
@@ -242,6 +245,18 @@ USB_ATTACH(uftdi)
sc->sc_type = UFTDI_TYPE_8U232AM;
sc->sc_hdrlen = 0;
break;
+
+ default: /* Can't happen */
+ goto bad;
+ }
+ break;
+
+ case USB_VENDOR_BBELECTRONICS:
+ switch( uaa->product ){
+ case USB_PRODUCT_BBELECTRONICS_USOTL4:
+ sc->sc_type = UFTDI_TYPE_8U232AM;
+ sc->sc_hdrlen = 0;
+ break;
default: /* Can't happen */
goto bad;
}