Date: Sun, 14 Jul 2013 10:13:02 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253338 - head/sys/compat/linux Message-ID: <201307141013.r6EAD2vl080661@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Sun Jul 14 10:13:01 2013 New Revision: 253338 URL: http://svnweb.freebsd.org/changeset/base/253338 Log: Add some missing LIBUSB IOCTL conversion codes. Modified: head/sys/compat/linux/linux_ioctl.c head/sys/compat/linux/linux_ioctl.h Modified: head/sys/compat/linux/linux_ioctl.c ============================================================================== --- head/sys/compat/linux/linux_ioctl.c Sun Jul 14 07:58:10 2013 (r253337) +++ head/sys/compat/linux/linux_ioctl.c Sun Jul 14 10:13:01 2013 (r253338) @@ -3408,6 +3408,15 @@ linux_ioctl_fbsd_usb(struct thread *td, 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; } Modified: head/sys/compat/linux/linux_ioctl.h ============================================================================== --- head/sys/compat/linux/linux_ioctl.h Sun Jul 14 07:58:10 2013 (r253337) +++ head/sys/compat/linux/linux_ioctl.h Sun Jul 14 10:13:01 2013 (r253338) @@ -744,9 +744,12 @@ int linux_ifname(struct ifnet *, char #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307141013.r6EAD2vl080661>