diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-09-11 13:06:38 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2014-04-22 14:31:35 +0200 |
commit | 0504375ea965dd25f00d4828a19c329b7e7525d4 (patch) | |
tree | e207b92c7e777046288be44de2c344b51068906e /libusb/os/linux_usbfs.h | |
parent | c59d574b211bedcab951b2f19de58bb03a04d671 (diff) | |
download | libusb-0504375ea965dd25f00d4828a19c329b7e7525d4.tar.gz |
Add API for allocating / freeing usb3 bulk streams + Linux implementation
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'libusb/os/linux_usbfs.h')
-rw-r--r-- | libusb/os/linux_usbfs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libusb/os/linux_usbfs.h b/libusb/os/linux_usbfs.h index 1f5b191..de5186f 100644 --- a/libusb/os/linux_usbfs.h +++ b/libusb/os/linux_usbfs.h @@ -132,6 +132,12 @@ struct usbfs_disconnect_claim { char driver[USBFS_MAXDRIVERNAME + 1]; }; +struct usbfs_streams { + unsigned int num_streams; /* Not used by USBDEVFS_FREE_STREAMS */ + unsigned int num_eps; + unsigned char eps[0]; +}; + #define IOCTL_USBFS_CONTROL _IOWR('U', 0, struct usbfs_ctrltransfer) #define IOCTL_USBFS_BULK _IOWR('U', 2, struct usbfs_bulktransfer) #define IOCTL_USBFS_RESETEP _IOR('U', 3, unsigned int) @@ -155,6 +161,8 @@ struct usbfs_disconnect_claim { #define IOCTL_USBFS_RELEASE_PORT _IOR('U', 25, unsigned int) #define IOCTL_USBFS_GET_CAPABILITIES _IOR('U', 26, __u32) #define IOCTL_USBFS_DISCONNECT_CLAIM _IOR('U', 27, struct usbfs_disconnect_claim) +#define IOCTL_USBFS_ALLOC_STREAMS _IOR('U', 28, struct usbfs_streams) +#define IOCTL_USBFS_FREE_STREAMS _IOR('U', 29, struct usbfs_streams) extern usbi_mutex_static_t linux_hotplug_lock; |