Skip to content

Commit ee398b5

Browse files
Sebastian Andrzej SiewiorSarah Sharp
authored andcommitted
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 <[email protected]> Signed-off-by: Sarah Sharp <[email protected]>
1 parent 348748b commit ee398b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/linux/usb/uas.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ struct sense_iu {
4747
__u8 sense[SCSI_SENSE_BUFFERSIZE];
4848
};
4949

50+
struct usb_pipe_usage_descriptor {
51+
__u8 bLength;
52+
__u8 bDescriptorType;
53+
54+
__u8 bPipeID;
55+
__u8 Reserved;
56+
} __attribute__((__packed__));
57+
5058
enum {
5159
CMD_PIPE_ID = 1,
5260
STATUS_PIPE_ID = 2,

0 commit comments

Comments
 (0)