summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/u_fs.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-07-09 12:20:08 +0200
committerFelipe Balbi <balbi@ti.com>2014-07-10 08:36:52 -0500
commitf0175ab51993d2dc2728e7b22a16ffb0c8f4cfa0 (patch)
tree03931c91c52bcccf6ea95ffb382c45a72839c281 /drivers/usb/gadget/u_fs.h
parent7ea4f088c810dab3ba3ab4c7a3879238f790e1fd (diff)
downloadlwn-f0175ab51993d2dc2728e7b22a16ffb0c8f4cfa0.tar.gz
lwn-f0175ab51993d2dc2728e7b22a16ffb0c8f4cfa0.zip
usb: gadget: f_fs: OS descriptors support
Add support for OS descriptors. The new format of descriptors is used, because the "flags" field is required for extensions. os_count gives the number of OSDesc[] elements. The format of descriptors is given in include/uapi/linux/usb/functionfs.h. For extended properties descriptor the usb_ext_prop_desc structure covers only a part of a descriptor, because the wPropertyNameLength is unknown up front. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_fs.h b/drivers/usb/gadget/u_fs.h
index bf0ba375d459..63d6e71569c1 100644
--- a/drivers/usb/gadget/u_fs.h
+++ b/drivers/usb/gadget/u_fs.h
@@ -216,6 +216,13 @@ struct ffs_data {
unsigned fs_descs_count;
unsigned hs_descs_count;
unsigned ss_descs_count;
+ unsigned ms_os_descs_count;
+ unsigned ms_os_descs_ext_prop_count;
+ unsigned ms_os_descs_ext_prop_name_len;
+ unsigned ms_os_descs_ext_prop_data_len;
+ void *ms_os_descs_ext_prop_avail;
+ void *ms_os_descs_ext_prop_name_avail;
+ void *ms_os_descs_ext_prop_data_avail;
unsigned short strings_count;
unsigned short interfaces_count;