On Sun, Jan 29, 2012 at 08:27:16AM +0100, LEVAI Daniel wrote:
> Hi!
> 
> 
> I'm trying to use an USB serial device with qemu on a OpenBSD host and a
> winxp guest. I presume the first step would be to recognize this device
> under OpenBSD as some kind of ucom(4). Currently this is printed in
> dmesg when I plug in the stuff:
> 
> ugen1 at uhub1 port 2 "Atmel E85 USB Serial" rev 2.00/1.00 addr 2
> 
> Eventually I would like to use cu(1) or minicom thru a /dev/cuaU?
> device.
> The vendor_id:product_id is 03eb:6119.
> 
> Is it possible to somehow use/probe the existing usb serial drivers to
> see if it attaches/works with one of them?

It is apparently CDC compliant, so try this:

Index: sys/dev/usb/umodem.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umodem.c,v
retrieving revision 1.44
diff -u -p -r1.44 umodem.c
--- sys/dev/usb/umodem.c        3 Jul 2011 15:47:17 -0000       1.44
+++ sys/dev/usb/umodem.c        29 Jan 2012 09:37:49 -0000
@@ -226,6 +226,11 @@ umodem_match(struct device *parent, void
                return (ret);
 
        ret = UMATCH_NONE;
+
+       if (UGETW(dd->idVendor) == USB_VENDOR_ATMEL &&
+           UGETW(dd->idProduct) == 0x6119)
+               ret = UMATCH_VENDOR_PRODUCT;
+
        if (UGETW(dd->idVendor) == USB_VENDOR_KYOCERA &&
            UGETW(dd->idProduct) == USB_PRODUCT_KYOCERA_AHK3001V &&
            id->bInterfaceNumber == 0)

Reply via email to