aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-01-11 06:45:57 -0500
committerLuis Henriques <luis.henriques@canonical.com>2012-05-01 06:00:13 -0400
commit16433e868e1249a7d03b8c9c768cdcc3527c9fb9 (patch)
treed5f873125c92d170f76b492da0015d3793787c65 /include/linux
parent586cb09205527924bccfb5ee411757a050f0bbe0 (diff)
usb/uas: add usb_pipe_usage_descriptor
BugLink: http://bugs.launchpad.net/bugs/901215 usb_pipe_usage_descriptor defines the struct which is used to describe the type of the endpoint in UAS (status/command/data in+out). It will be used by the UAS gadget, the host code is using a char array for the access. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> (cherry picked from commit ee398b59ec1dc3ce1d60518f4ea644907893414b) Signed-off-by: Tim Gardner <tim.gardner@canonical.com> Acked-by: Herton Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/uas.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/uas.h b/include/linux/usb/uas.h
index 856be7fcbbd..9a988e41369 100644
--- a/include/linux/usb/uas.h
+++ b/include/linux/usb/uas.h
@@ -47,6 +47,14 @@ struct sense_iu {
47 __u8 sense[SCSI_SENSE_BUFFERSIZE]; 47 __u8 sense[SCSI_SENSE_BUFFERSIZE];
48}; 48};
49 49
50struct usb_pipe_usage_descriptor {
51 __u8 bLength;
52 __u8 bDescriptorType;
53
54 __u8 bPipeID;
55 __u8 Reserved;
56} __attribute__((__packed__));
57
50enum { 58enum {
51 CMD_PIPE_ID = 1, 59 CMD_PIPE_ID = 1,
52 STATUS_PIPE_ID = 2, 60 STATUS_PIPE_ID = 2,