summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/u_fs.h
diff options
context:
space:
mode:
authorManu Gautam <mgautam@codeaurora.org>2014-02-28 16:50:22 +0530
committerFelipe Balbi <balbi@ti.com>2014-03-05 14:40:10 -0600
commit8d4e897bd0150fab594a871484e554472ee01452 (patch)
tree4dd06a720883cb617afd64df0146285a22d70282 /drivers/usb/gadget/u_fs.h
parentd8eb6c653ef6b323d630de3c5685478469e248bc (diff)
usb: gadget: f_fs: Add support for SuperSpeed Mode
Allow userspace to pass SuperSpeed descriptors and handle them in the driver accordingly. This change doesn't modify existing desc_header and thereby keeps the ABI changes backward compatible i.e. existing userspace drivers compiled with old header (functionfs.h) would continue to work with the updated kernel. Signed-off-by: Manu Gautam <mgautam@codeaurora.org> Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_fs.h')
-rw-r--r--drivers/usb/gadget/u_fs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/usb/gadget/u_fs.h b/drivers/usb/gadget/u_fs.h
index c39e805025b9..0deb6d5f7c35 100644
--- a/drivers/usb/gadget/u_fs.h
+++ b/drivers/usb/gadget/u_fs.h
@@ -208,14 +208,16 @@ struct ffs_data {
/*
* Real descriptors are 16 bytes after raw_descs (so you need
* to skip 16 bytes (ie. ffs->raw_descs + 16) to get to the
- * first full speed descriptor). raw_descs_length and
- * raw_fs_descs_length do not have those 16 bytes added.
+ * first full speed descriptor).
+ * raw_fs_hs_descs_length does not have those 16 bytes added.
+ * ss_descs are 8 bytes (ss_magic + count) pass the hs_descs
*/
const void *raw_descs;
- unsigned raw_descs_length;
- unsigned raw_fs_descs_length;
+ unsigned raw_fs_hs_descs_length;
+ unsigned raw_ss_descs_length;
unsigned fs_descs_count;
unsigned hs_descs_count;
+ unsigned ss_descs_count;
unsigned short strings_count;
unsigned short interfaces_count;