usbfs: Add support for bulk stream ids
[firefly-linux-kernel-4.4.55.git] / include / uapi / linux / usbdevice_fs.h
index 0c65e4b1261717f71b7bdeef94da72b608eec392..cbf122db56bc50ecccc4f8296892c76d5b6332b6 100644 (file)
@@ -102,7 +102,10 @@ struct usbdevfs_urb {
        int buffer_length;
        int actual_length;
        int start_frame;
-       int number_of_packets;
+       union {
+               int number_of_packets;  /* Only used for isoc urbs */
+               unsigned int stream_id; /* Only used with bulk streams */
+       };
        int error_count;
        unsigned int signr;     /* signal to be sent on completion,
                                  or 0 if none should be sent. */