aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/usb/functionfs.h
diff options
context:
space:
mode:
authorManu Gautam <mgautam@codeaurora.org>2014-02-28 06:20:22 -0500
committerFelipe Balbi <balbi@ti.com>2014-03-05 15:40:10 -0500
commit8d4e897bd0150fab594a871484e554472ee01452 (patch)
tree4dd06a720883cb617afd64df0146285a22d70282 /include/uapi/linux/usb/functionfs.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 'include/uapi/linux/usb/functionfs.h')
-rw-r--r--include/uapi/linux/usb/functionfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/usb/functionfs.h b/include/uapi/linux/usb/functionfs.h
index d6b01283f85c..0f8f7be5b0d3 100644
--- a/include/uapi/linux/usb/functionfs.h
+++ b/include/uapi/linux/usb/functionfs.h
@@ -13,6 +13,7 @@ enum {
13 FUNCTIONFS_STRINGS_MAGIC = 2 13 FUNCTIONFS_STRINGS_MAGIC = 2
14}; 14};
15 15
16#define FUNCTIONFS_SS_DESC_MAGIC 0x0055DE5C
16 17
17#ifndef __KERNEL__ 18#ifndef __KERNEL__
18 19
@@ -50,7 +51,11 @@ struct usb_functionfs_descs_head {
50 * | 12 | hs_count | LE32 | number of high-speed descriptors | 51 * | 12 | hs_count | LE32 | number of high-speed descriptors |
51 * | 16 | fs_descrs | Descriptor[] | list of full-speed descriptors | 52 * | 16 | fs_descrs | Descriptor[] | list of full-speed descriptors |
52 * | | hs_descrs | Descriptor[] | list of high-speed descriptors | 53 * | | hs_descrs | Descriptor[] | list of high-speed descriptors |
54 * | | ss_magic | LE32 | FUNCTIONFS_SS_DESC_MAGIC |
55 * | | ss_count | LE32 | number of super-speed descriptors |
56 * | | ss_descrs | Descriptor[] | list of super-speed descriptors |
53 * 57 *
58 * ss_magic: if present then it implies that SS_DESCs are also present
54 * descs are just valid USB descriptors and have the following format: 59 * descs are just valid USB descriptors and have the following format:
55 * 60 *
56 * | off | name | type | description | 61 * | off | name | type | description |