aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/ch9.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2010-04-02 18:33:56 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 16:21:37 -0400
commit22ad1e7f86e1fb96488d71512e2797153a6ad839 (patch)
tree5e2b35287d9a03664e9b4aac64c3e7f5a3173469 /include/linux/usb/ch9.h
parente07896e62abbf7a741a5cd5b25ba7637bdf91ad0 (diff)
USB: Add parsing of SuperSpeed endpoint companion descriptor.
Allow the xHCI drivers (and any new USB 3.0 drivers) to parse the SuperSpeed endpoint companion descriptor to find the maximum number of bulk endpoint streams the endpoint supports. This is used to calculate the maximum total number of streams the driver can allocate. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb/ch9.h')
-rw-r--r--include/linux/usb/ch9.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h
index e58369ff8168..603b61aadd65 100644
--- a/include/linux/usb/ch9.h
+++ b/include/linux/usb/ch9.h
@@ -556,6 +556,8 @@ struct usb_ss_ep_comp_descriptor {
556} __attribute__ ((packed)); 556} __attribute__ ((packed));
557 557
558#define USB_DT_SS_EP_COMP_SIZE 6 558#define USB_DT_SS_EP_COMP_SIZE 6
559/* Bits 4:0 of bmAttributes if this is a bulk endpoint */
560#define USB_SS_MAX_STREAMS(p) (1 << (p & 0x1f))
559 561
560/*-------------------------------------------------------------------------*/ 562/*-------------------------------------------------------------------------*/
561 563