diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-02-24 03:43:05 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-02-24 03:43:05 +0000 |
| commit | f78fa6b67e0250ab3f642d568b8eeafddd7cb188 (patch) | |
| tree | f4792f6be15577c3da25ef086c5ab15d262ccb99 /sys/dev/usb/usb_dev.c | |
| parent | e280503373883f7625ce6eb06e511c9174c1d7e0 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/usb_dev.c')
| -rw-r--r-- | sys/dev/usb/usb_dev.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_dev.c b/sys/dev/usb/usb_dev.c index f8e2c96fa349..8df78d236a73 100644 --- a/sys/dev/usb/usb_dev.c +++ b/sys/dev/usb/usb_dev.c @@ -1377,6 +1377,15 @@ usb2_ioctl(struct cdev *dev, u_long cmd, caddr_t data, case USB_DEV_QUIRK_REMOVE: err = usb2_quirk_ioctl_p(cmd, data, fflag, td); break; + case USB_GET_TEMPLATE: + *(int *)data = usb2_template; + break; + case USB_SET_TEMPLATE: + err = priv_check(curthread, PRIV_ROOT); + if (err) + break; + usb2_template = *(int *)data; + break; default: err = ENOTTY; break; |
