Skip to content

Commit

Permalink
usb/uas: add usb_pipe_usage_descriptor
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Andrzej Siewior authored and Sarah Sharp committed Feb 2, 2012
1 parent 348748b commit ee398b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/linux/usb/uas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ee398b5

Please sign in to comment.