From: Sarah Sharp Date: Fri, 2 Apr 2010 22:33:56 +0000 (-0700) Subject: USB: Add parsing of SuperSpeed endpoint companion descriptor. X-Git-Tag: v2.6.35-rc1~471^2~146 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=22ad1e7f86e1fb96488d71512e2797153a6ad839;p=~emulex%2Finfiniband.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index e58369ff816..603b61aadd6 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h @@ -556,6 +556,8 @@ struct usb_ss_ep_comp_descriptor { } __attribute__ ((packed)); #define USB_DT_SS_EP_COMP_SIZE 6 +/* Bits 4:0 of bmAttributes if this is a bulk endpoint */ +#define USB_SS_MAX_STREAMS(p) (1 << (p & 0x1f)) /*-------------------------------------------------------------------------*/