Allow the default USB template to be specified at compile time.
This commit is contained in:
parent
c77a24c24a
commit
fa49bce566
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user