summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_fs.h
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2014-02-28 16:50:23 +0530
committerFelipe Balbi <balbi@ti.com>2014-03-05 14:40:11 -0600
commitac8dde11f2b397fe2282f585d5eb427a13675ea2 (patch)
treec871cc0fcb74b6f4d0794b5dac0719436c8dfed8 /drivers/usb/gadget/u_fs.h
parent8d4e897bd0150fab594a871484e554472ee01452 (diff)
downloadop-kernel-dev-ac8dde11f2b397fe2282f585d5eb427a13675ea2.zip
op-kernel-dev-ac8dde11f2b397fe2282f585d5eb427a13675ea2.tar.gz
usb: gadget: f_fs: Add flags to descriptors block
This reworks the way SuperSpeed descriptors are added and instead of having a magic after full and high speed descriptors, it reworks the whole descriptors block to include a flags field which lists which descriptors are present and makes future extensions possible. Signed-off-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.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/usb/gadget/u_fs.h b/drivers/usb/gadget/u_fs.h
index 0deb6d5..bf0ba37 100644
--- a/drivers/usb/gadget/u_fs.h
+++ b/drivers/usb/gadget/u_fs.h
@@ -206,15 +206,13 @@ struct ffs_data {
/* filled by __ffs_data_got_descs() */
/*
- * 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_fs_hs_descs_length does not have those 16 bytes added.
- * ss_descs are 8 bytes (ss_magic + count) pass the hs_descs
+ * raw_descs is what you kfree, real_descs points inside of raw_descs,
+ * where full speed, high speed and super speed descriptors start.
+ * real_descs_length is the length of all those descriptors.
*/
+ const void *raw_descs_data;
const void *raw_descs;
- unsigned raw_fs_hs_descs_length;
- unsigned raw_ss_descs_length;
+ unsigned raw_descs_length;
unsigned fs_descs_count;
unsigned hs_descs_count;
unsigned ss_descs_count;
OpenPOWER on IntegriCloud