aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2013-07-14 10:13:01 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2013-07-14 10:13:01 +0000
commita40a377cc7eb11a8735e9cb029b125f5022f6c3f (patch)
tree076ec38359e40b78065cebd8df8d1cf877f7cb33
parentdde7be41dfa97da029ce1afde589d34abb0fbd57 (diff)
downloadsrc-a40a377cc7eb11a8735e9cb029b125f5022f6c3f.tar.gz
src-a40a377cc7eb11a8735e9cb029b125f5022f6c3f.zip
Add some missing LIBUSB IOCTL conversion codes.
Notes
Notes: svn path=/head/; revision=253338
-rw-r--r--sys/compat/linux/linux_ioctl.c9
-rw-r--r--sys/compat/linux/linux_ioctl.h5
2 files changed, 13 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 192b9fdc3b73..4df28aab27cc 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -3408,6 +3408,15 @@ linux_ioctl_fbsd_usb(struct thread *td, struct linux_ioctl_args *args)
case FBSD_LUSB_SET_TEMPLATE:
args->cmd = USB_SET_TEMPLATE;
break;
+ case FBSD_LUSB_FS_OPEN_STREAM:
+ args->cmd = USB_FS_OPEN_STREAM;
+ break;
+ case FBSD_LUSB_GET_DEV_PORT_PATH:
+ args->cmd = USB_GET_DEV_PORT_PATH;
+ break;
+ case FBSD_LUSB_GET_POWER_USAGE:
+ args->cmd = USB_GET_POWER_USAGE;
+ break;
default:
error = ENOIOCTL;
}
diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h
index aa7650b33826..3f63b210d05e 100644
--- a/sys/compat/linux/linux_ioctl.h
+++ b/sys/compat/linux/linux_ioctl.h
@@ -744,9 +744,12 @@ int linux_ifname(struct ifnet *, char *, size_t);
#define FBSD_LUSB_SET_IMMED 0xffe2
#define FBSD_LUSB_SET_POWER_MODE 0xffe1
#define FBSD_LUSB_SET_TEMPLATE 0xffe0
+#define FBSD_LUSB_FS_OPEN_STREAM 0xffdf
+#define FBSD_LUSB_GET_DEV_PORT_PATH 0xffde
+#define FBSD_LUSB_GET_POWER_USAGE 0xffdd
#define FBSD_LUSB_MAX 0xffff
-#define FBSD_LUSB_MIN 0xffe0
+#define FBSD_LUSB_MIN 0xffdd
/*
* Pluggable ioctl handlers