Allow the default USB template to be specified at compile time.

This commit is contained in:
Hans Petter Selasky 2013-05-03 08:19:09 +00:00
parent c77a24c24a
commit fa49bce566
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250202
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -112,7 +112,11 @@ static void usb_cdev_free(struct usb_device *);
/* 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,