Folks,
Just to preempt people suggesting that I committed into the wrong tree: I
didn't. FBSD 6 is still locked down. To keep things simple I keep one
version of the driver in CURRENT which works on FBSD CURRENT, 7, and 6.
See
http://people.freebsd.org/~n_hibma/u3g.html
for more info on how to use the driver in various versions of the OS.
And the cross post is intentional as well as I've had many positive
responses from people that became aware of the driver.
Nick
> Author: n_hibma
> Date: Thu Oct 30 08:32:18 2008
> New Revision: 184466
> URL: http://svn.freebsd.org/changeset/base/184466
>
> Log:
> We need to print out the device info ourselves on FBSD 6.
>
> Submitted by: Thomas Nystrom
>
> Modified:
> head/sys/dev/usb/u3g.c
>
> Modified: head/sys/dev/usb/u3g.c
>
========================================================================>=====
--- head/sys/dev/usb/u3g.c Thu Oct 30 08:17:27 2008 (r184465)
> +++ head/sys/dev/usb/u3g.c Thu Oct 30 08:32:18 2008 (r184466)
> @@ -227,6 +227,13 @@ u3g_attach(device_t self)
> usb_config_descriptor_t *cd;
> char devnamefmt[32];
>
> +#if __FreeBSD_version < 700000
> + char *devinfo = malloc(1024, M_USBDEV, M_WAITOK);
> + usbd_devinfo(dev, 0, devinfo);
> + device_printf(self, "%s\n", devinfo);
> + free(devinfo, M_USBDEV);
> +#endif
> +
> /* get the config descriptor */
> cd = usbd_get_config_descriptor(dev);
> if (cd == NULL) {
> _______________________________________________
> svn-src-all@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to
"svn-src-all-unsubscribe@freebsd.org"