summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ioctl.h
diff options
context:
space:
mode:
authorwkoszek <wkoszek@FreeBSD.org>2010-05-24 07:04:00 +0000
committerwkoszek <wkoszek@FreeBSD.org>2010-05-24 07:04:00 +0000
commitab9f5dbe35c315e6966c118cb2076d184be6c09f (patch)
tree83ada656a98853f5aaefc61addf26dfb58da056f /sys/compat/linux/linux_ioctl.h
parent60e8c402f34a3b6cd2d0dc500b0239ebf10dfd74 (diff)
downloadFreeBSD-src-ab9f5dbe35c315e6966c118cb2076d184be6c09f.zip
FreeBSD-src-ab9f5dbe35c315e6966c118cb2076d184be6c09f.tar.gz
Bring USB fixes for linux(4).
Intention of this commit is to let us take a full advantage of libusb(8) ported to Linux. This decreases a possibility of getting any collisions within ioctl() "command" space, especially with relation to LINUX_SNDCTL_SEQ... stuff. Basically, we provide commands, that will be mapped in the kernel to correct ones and forward those to the USB layer. Port enabling functionality brought with this patch is here: http://www.freebsd.org/cgi/query-pr.cgi?pr=146895 Bump __FreeBSD_version to catch, since which version installing a port makes sense. This patch should bring no regressions. So far, only i386 is tested. Tested by: thompsa@ Reviewed by: thompsa@ OKed by: netchild@
Diffstat (limited to 'sys/compat/linux/linux_ioctl.h')
-rw-r--r--sys/compat/linux/linux_ioctl.h39
1 files changed, 36 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h
index 5503362..608db4b 100644
--- a/sys/compat/linux/linux_ioctl.h
+++ b/sys/compat/linux/linux_ioctl.h
@@ -612,9 +612,42 @@ int linux_ifname(struct ifnet *, char *, size_t);
#define LINUX_IOCTL_VIDEO_MAX LINUX_VIDIOCSVBIFMT
/*
- * Keep in sync with our include/dev/usb/usb_ioctl.h.
+ * Our libusb(8) calls emulated within linux(4).
*/
-#define LINUX_FBSD_USB_MIN 0x5100
-#define LINUX_FBSD_USB_MAX 0x55c7
+#define FBSD_LUSB_DEVICEENUMERATE 0xffff
+#define FBSD_LUSB_DEV_QUIRK_ADD 0xfffe
+#define FBSD_LUSB_DEV_QUIRK_GET 0xfffd
+#define FBSD_LUSB_DEV_QUIRK_REMOVE 0xfffc
+#define FBSD_LUSB_DO_REQUEST 0xfffb
+#define FBSD_LUSB_FS_CLEAR_STALL_SYNC 0xfffa
+#define FBSD_LUSB_FS_CLOSE 0xfff9
+#define FBSD_LUSB_FS_COMPLETE 0xfff8
+#define FBSD_LUSB_FS_INIT 0xfff7
+#define FBSD_LUSB_FS_OPEN 0xfff6
+#define FBSD_LUSB_FS_START 0xfff5
+#define FBSD_LUSB_FS_STOP 0xfff4
+#define FBSD_LUSB_FS_UNINIT 0xfff3
+#define FBSD_LUSB_GET_CONFIG 0xfff2
+#define FBSD_LUSB_GET_DEVICEINFO 0xfff1
+#define FBSD_LUSB_GET_DEVICE_DESC 0xfff0
+#define FBSD_LUSB_GET_FULL_DESC 0xffef
+#define FBSD_LUSB_GET_IFACE_DRIVER 0xffee
+#define FBSD_LUSB_GET_PLUGTIME 0xffed
+#define FBSD_LUSB_GET_POWER_MODE 0xffec
+#define FBSD_LUSB_GET_REPORT_DESC 0xffeb
+#define FBSD_LUSB_GET_REPORT_ID 0xffea
+#define FBSD_LUSB_GET_TEMPLATE 0xffe9
+#define FBSD_LUSB_IFACE_DRIVER_ACTIVE 0xffe8
+#define FBSD_LUSB_IFACE_DRIVER_DETACH 0xffe7
+#define FBSD_LUSB_QUIRK_NAME_GET 0xffe6
+#define FBSD_LUSB_READ_DIR 0xffe5
+#define FBSD_LUSB_SET_ALTINTERFACE 0xffe4
+#define FBSD_LUSB_SET_CONFIG 0xffe3
+#define FBSD_LUSB_SET_IMMED 0xffe2
+#define FBSD_LUSB_SET_POWER_MODE 0xffe1
+#define FBSD_LUSB_SET_TEMPLATE 0xffe0
+
+#define FBSD_LUSB_MAX 0xffff
+#define FBSD_LUSB_MIN 0xffe0
#endif /* !_LINUX_IOCTL_H_ */
OpenPOWER on IntegriCloud