diff options
Diffstat (limited to 'include/linux/usb/ch9.h')
-rw-r--r-- | include/linux/usb/ch9.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h index e58369ff8168..da2ed77d3e8d 100644 --- a/include/linux/usb/ch9.h +++ b/include/linux/usb/ch9.h | |||
@@ -191,6 +191,8 @@ struct usb_ctrlrequest { | |||
191 | #define USB_DT_WIRE_ADAPTER 0x21 | 191 | #define USB_DT_WIRE_ADAPTER 0x21 |
192 | #define USB_DT_RPIPE 0x22 | 192 | #define USB_DT_RPIPE 0x22 |
193 | #define USB_DT_CS_RADIO_CONTROL 0x23 | 193 | #define USB_DT_CS_RADIO_CONTROL 0x23 |
194 | /* From the T10 UAS specification */ | ||
195 | #define USB_DT_PIPE_USAGE 0x24 | ||
194 | /* From the USB 3.0 spec */ | 196 | /* From the USB 3.0 spec */ |
195 | #define USB_DT_SS_ENDPOINT_COMP 0x30 | 197 | #define USB_DT_SS_ENDPOINT_COMP 0x30 |
196 | 198 | ||
@@ -475,7 +477,7 @@ static inline int usb_endpoint_xfer_isoc( | |||
475 | static inline int usb_endpoint_is_bulk_in( | 477 | static inline int usb_endpoint_is_bulk_in( |
476 | const struct usb_endpoint_descriptor *epd) | 478 | const struct usb_endpoint_descriptor *epd) |
477 | { | 479 | { |
478 | return (usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd)); | 480 | return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd); |
479 | } | 481 | } |
480 | 482 | ||
481 | /** | 483 | /** |
@@ -488,7 +490,7 @@ static inline int usb_endpoint_is_bulk_in( | |||
488 | static inline int usb_endpoint_is_bulk_out( | 490 | static inline int usb_endpoint_is_bulk_out( |
489 | const struct usb_endpoint_descriptor *epd) | 491 | const struct usb_endpoint_descriptor *epd) |
490 | { | 492 | { |
491 | return (usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd)); | 493 | return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd); |
492 | } | 494 | } |
493 | 495 | ||
494 | /** | 496 | /** |
@@ -501,7 +503,7 @@ static inline int usb_endpoint_is_bulk_out( | |||
501 | static inline int usb_endpoint_is_int_in( | 503 | static inline int usb_endpoint_is_int_in( |
502 | const struct usb_endpoint_descriptor *epd) | 504 | const struct usb_endpoint_descriptor *epd) |
503 | { | 505 | { |
504 | return (usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd)); | 506 | return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd); |
505 | } | 507 | } |
506 | 508 | ||
507 | /** | 509 | /** |
@@ -514,7 +516,7 @@ static inline int usb_endpoint_is_int_in( | |||
514 | static inline int usb_endpoint_is_int_out( | 516 | static inline int usb_endpoint_is_int_out( |
515 | const struct usb_endpoint_descriptor *epd) | 517 | const struct usb_endpoint_descriptor *epd) |
516 | { | 518 | { |
517 | return (usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd)); | 519 | return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd); |
518 | } | 520 | } |
519 | 521 | ||
520 | /** | 522 | /** |
@@ -527,7 +529,7 @@ static inline int usb_endpoint_is_int_out( | |||
527 | static inline int usb_endpoint_is_isoc_in( | 529 | static inline int usb_endpoint_is_isoc_in( |
528 | const struct usb_endpoint_descriptor *epd) | 530 | const struct usb_endpoint_descriptor *epd) |
529 | { | 531 | { |
530 | return (usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd)); | 532 | return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd); |
531 | } | 533 | } |
532 | 534 | ||
533 | /** | 535 | /** |
@@ -540,7 +542,7 @@ static inline int usb_endpoint_is_isoc_in( | |||
540 | static inline int usb_endpoint_is_isoc_out( | 542 | static inline int usb_endpoint_is_isoc_out( |
541 | const struct usb_endpoint_descriptor *epd) | 543 | const struct usb_endpoint_descriptor *epd) |
542 | { | 544 | { |
543 | return (usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd)); | 545 | return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd); |
544 | } | 546 | } |
545 | 547 | ||
546 | /*-------------------------------------------------------------------------*/ | 548 | /*-------------------------------------------------------------------------*/ |
@@ -556,6 +558,8 @@ struct usb_ss_ep_comp_descriptor { | |||
556 | } __attribute__ ((packed)); | 558 | } __attribute__ ((packed)); |
557 | 559 | ||
558 | #define USB_DT_SS_EP_COMP_SIZE 6 | 560 | #define USB_DT_SS_EP_COMP_SIZE 6 |
561 | /* Bits 4:0 of bmAttributes if this is a bulk endpoint */ | ||
562 | #define USB_SS_MAX_STREAMS(p) (1 << (p & 0x1f)) | ||
559 | 563 | ||
560 | /*-------------------------------------------------------------------------*/ | 564 | /*-------------------------------------------------------------------------*/ |
561 | 565 | ||