aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_ioctl.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2011-06-23 07:54:03 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2011-06-23 07:54:03 +0000
commit399e6543b2eea74c22e44cd04d35eb852f744f15 (patch)
tree9c9e570fea963c0c841585afc37116eb5e50f9e0 /sys/dev/usb/usb_ioctl.h
parentf6f1dfb66b8361d0fc09b50a882b0b7be2ef26b3 (diff)
downloadsrc-399e6543b2eea74c22e44cd04d35eb852f744f15.tar.gz
src-399e6543b2eea74c22e44cd04d35eb852f744f15.zip
- Add more USB templates for various USB device classes
- Add basic template support for USB 3.0 - Export definition of template sysctl numbers through usb_ioctl.h MFC after: 7 days
Notes
Notes: svn path=/head/; revision=223467
Diffstat (limited to 'sys/dev/usb/usb_ioctl.h')
-rw-r--r--sys/dev/usb/usb_ioctl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_ioctl.h b/sys/dev/usb/usb_ioctl.h
index 452de94a7ab4..d35fa1038e5a 100644
--- a/sys/dev/usb/usb_ioctl.h
+++ b/sys/dev/usb/usb_ioctl.h
@@ -39,6 +39,20 @@
#define USB_DEVICE_NAME "usbctl"
#define USB_DEVICE_DIR "usb"
#define USB_GENERIC_NAME "ugen"
+#define USB_TEMPLATE_SYSCTL "hw.usb.template" /* integer type */
+
+/* Definition of valid template sysctl values */
+
+enum {
+ USB_TEMP_MSC, /* USB Mass Storage */
+ USB_TEMP_CDCE, /* USB CDC Ethernet */
+ USB_TEMP_MTP, /* Message Transfer Protocol */
+ USB_TEMP_MODEM, /* USB CDC Modem */
+ USB_TEMP_AUDIO, /* USB Audio */
+ USB_TEMP_KBD, /* USB Keyboard */
+ USB_TEMP_MOUSE, /* USB Mouse */
+ USB_TEMP_MAX,
+};
struct usb_read_dir {
#ifdef COMPAT_32BIT