From patchwork Fri Apr 27 09:31:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [09/10] usb/uas: add usb_pipe_usage_descriptor Date: Thu, 26 Apr 2012 23:31:51 -0000 From: Ming Lei X-Patchwork-Id: 155410 Message-Id: <1335519112-8372-10-git-send-email-ming.lei@canonical.com> To: kernel-team@lists.ubuntu.com From: Sebastian Andrzej Siewior 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 Signed-off-by: Sarah Sharp --- include/linux/usb/uas.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/usb/uas.h b/include/linux/usb/uas.h index 856be7f..9a988e4 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,