summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-01-11 12:45:57 +0100
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2012-02-02 14:51:19 -0800
commitee398b59ec1dc3ce1d60518f4ea644907893414b (patch)
treec18ef2b49269d17cffe85fa131796f8d45f49b1d
parent348748b0e8cccc675e2f3a1456460ffcd540e1a1 (diff)
downloadlinux-stable-ee398b59ec1dc3ce1d60518f4ea644907893414b.tar.gz
linux-stable-ee398b59ec1dc3ce1d60518f4ea644907893414b.tar.bz2
linux-stable-ee398b59ec1dc3ce1d60518f4ea644907893414b.zip
usb/uas: add usb_pipe_usage_descriptor
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>
-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 856be7fcbbd8..9a988e413694 100644
--- a/include/linux/usb/uas.h
+++ b/include/linux/usb/uas.h
@@ -47,6 +47,14 @@ struct sense_iu {
__u8 sense[SCSI_SENSE_BUFFERSIZE];
};
+struct usb_pipe_usage_descriptor {
+ __u8 bLength;
+ __u8 bDescriptorType;
+
+ __u8 bPipeID;
+ __u8 Reserved;
+} __attribute__((__packed__));
+
enum {
CMD_PIPE_ID = 1,
STATUS_PIPE_ID = 2,