Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ac18b08 in mainline


Ignore:
Timestamp:
2017-10-11T09:55:52Z (3 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
master
Children:
eaf5e86
Parents:
42bc933
Message:

Added superspeed endpoint companion descriptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/descriptor.h

    r42bc933 rac18b08  
    224224} __attribute__ ((packed)) usb_standard_endpoint_descriptor_t;
    225225
     226/** Superspeed USB endpoint companion descriptor.
     227 * See USB 3 specification, section 9.6.7.
     228 */
     229typedef struct {
     230        /** Size of this descriptor in bytes */
     231        uint8_t length;
     232        /** Descriptor type (USB_DESCTYPE_SSPEED_EP_COMPANION). */
     233        uint8_t descriptor_type;
     234        /** The maximum number of packets the endpoint can send
     235         * or receive as part of a burst. Valid values are from 0 to 15.
     236         * The endpoint can only burst max_burst + 1 packets at a time.
     237         */
     238        uint8_t max_burst;
     239        /** Valid only for bulk and isochronous endpoints.
     240         * For bulk endpoints, this field contains the amount of streams
     241         * supported by the endpoint.
     242         * For isochronous endpoints, this field contains either maximum
     243         * number of packets supported within a service interval, or
     244         * whether an isochronous endpoint companion descriptor follows.
     245         */
     246        uint8_t attributes;
     247        /** The total number of bytes this endpoint will transfer
     248         * every service interval (SI).
     249         * This field is only valid for periodic endpoints.
     250         */
     251        uint16_t bytes_per_interval;
     252} __attribute__ ((packed)) usb_superspeed_endpoint_companion_descriptor_t;
     253
    226254/** Part of standard USB HID descriptor specifying one class descriptor.
    227255 *
Note: See TracChangeset for help on using the changeset viewer.