Yep! That's enough for my adapters. El 14/12/2010 21:54, Jonathan Gray escribis:
such things should be seperate diffs, and these should go to tech. is the following enough to make it work? Index: uticom.c =================================================================== RCS file: /cvs/src/sys/dev/usb/uticom.c,v retrieving revision 1.7 diff -u -p -r1.7 uticom.c --- uticom.c 3 Dec 2010 17:02:29 -0000 1.7 +++ uticom.c 14 Dec 2010 20:52:23 -0000 @@ -209,7 +209,6 @@ uticom_attach(struct device *parent, str struct uticom_softc *sc = (struct uticom_softc *)self; struct usb_attach_arg *uaa = aux; usbd_device_handle dev = uaa->device; - usbd_interface_handle iface; usb_config_descriptor_t *cdesc; usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; @@ -381,7 +380,7 @@ fwload_done: sc->sc_iface_number = id->bInterfaceNumber; for (i = 0; i< id->bNumEndpoints; i++) { - ed = usbd_interface2endpoint_descriptor(iface, i); + ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); if (ed == NULL) { printf("%s: no endpoint descriptor for %d\n", sc->sc_dev.dv_xname, i); @@ -419,7 +418,7 @@ fwload_done: uca.obufsize = UTICOM_OBUFSZ; uca.ibufsizepad = UTICOM_IBUFSZ; uca.device = dev; - uca.iface = iface; + uca.iface = sc->sc_iface; uca.opkthdrlen = 0; uca.methods =&uticom_methods; uca.arg = sc;