On Thu, Mar 20, 2014 at 03:31:37PM +0000, John Long wrote:
> David- sorry, I meant to reply to the list, here it is again for public
> consumption with the topic threading borked, probably.
>
> On Thu, Mar 20, 2014 at 04:14:13PM +0100, David Coppa wrote:
> > On Thu, Mar 20, 2014 at 2:31 PM, John Long <[email protected]> wrote:
> > > Hi,
> > >
> > > I am trying to use a USB device with a Loongson 5.3 stable box.
> > >
> > > The line from dmesg for the device is
> > >
> > > ugen0 at uhub1 port 3 "HP Company HPx9G+ Device" rev 1.10/1.00 addr 2
> >
> > Is this a usb-to-serial thingie?
>
> I don't think so, but I don't know if it is a "standard" USB device either.
> It comes up as /dev/ttyUSB0 on that _other_ OS and will talk to Kermit but I
> can't get it working on OpenBSD yet. I would prefer to use it with the
> Loongson box if possible.
>
> > If this is the case, then it's not properly recognized by the kernel.
> >
> > It should expose a ucom*, e.g.:
> >
> > ucom0 at uftdi0 portno 1
>
> Any other ideas?
It seems this needs a new driver, here is a quick test that modifies
an existing one that might work:
Index: moscom.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/moscom.c,v
retrieving revision 1.19
diff -u -p -r1.19 moscom.c
--- moscom.c 15 Nov 2013 08:25:30 -0000 1.19
+++ moscom.c 20 Mar 2014 16:01:34 -0000
@@ -150,17 +150,17 @@ int moscom_cmd(struct moscom_softc *, in
struct ucom_methods moscom_methods = {
NULL,
- moscom_set,
- moscom_param,
NULL,
- moscom_open,
+ NULL,
+ NULL,
+ NULL,
NULL,
NULL,
NULL,
};
static const struct usb_devno moscom_devs[] = {
- { USB_VENDOR_MOSCHIP, USB_PRODUCT_MOSCHIP_MCS7703 }
+ { 0x03f0, 0x0121 }
};
int moscom_match(struct device *, void *, void *);