Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sebastian Andrzej Siewior and committed by
Sarah Sharp
ee398b59 348748b0

+8
+8
include/linux/usb/uas.h
··· 47 47 __u8 sense[SCSI_SENSE_BUFFERSIZE]; 48 48 }; 49 49 50 + struct usb_pipe_usage_descriptor { 51 + __u8 bLength; 52 + __u8 bDescriptorType; 53 + 54 + __u8 bPipeID; 55 + __u8 Reserved; 56 + } __attribute__((__packed__)); 57 + 50 58 enum { 51 59 CMD_PIPE_ID = 1, 52 60 STATUS_PIPE_ID = 2,