Date: Fri, 3 May 2013 08:19:09 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250202 - in head/sys: conf dev/usb Message-ID: <201305030819.r438J9rB063169@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri May 3 08:19:09 2013 New Revision: 250202 URL: http://svnweb.freebsd.org/changeset/base/250202 Log: Allow the default USB template to be specified at compile time. Modified: head/sys/conf/options head/sys/dev/usb/usb_device.c Modified: head/sys/conf/options ============================================================================== --- head/sys/conf/options Fri May 3 07:44:58 2013 (r250201) +++ head/sys/conf/options Fri May 3 08:19:09 2013 (r250202) @@ -644,6 +644,7 @@ BUS_DEBUG opt_bus.h USB_DEBUG opt_usb.h USB_HOST_ALIGN opt_usb.h USB_REQ_DEBUG opt_usb.h +USB_TEMPLATE opt_usb.h USB_VERBOSE opt_usb.h USB_EHCI_BIG_ENDIAN_DESC opt_usb.h U3G_DEBUG opt_u3g.h Modified: head/sys/dev/usb/usb_device.c ============================================================================== --- head/sys/dev/usb/usb_device.c Fri May 3 07:44:58 2013 (r250201) +++ head/sys/dev/usb/usb_device.c Fri May 3 08:19:09 2013 (r250202) @@ -112,7 +112,11 @@ static void usb_cdev_free(struct usb_dev /* This variable is global to allow easy access to it: */ -int usb_template = 0; +#ifdef USB_TEMPLATE +int usb_template = USB_TEMPLATE; +#else +int usb_template; +#endif TUNABLE_INT("hw.usb.usb_template", &usb_template); SYSCTL_INT(_hw_usb, OID_AUTO, template, CTLFLAG_RW | CTLFLAG_TUN,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305030819.r438J9rB063169>