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

Changeset 9e5b162 in mainline for uspace/lib/drv/include/usb_iface.h


Ignore:
Timestamp:
2018-01-05T22:09:24Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
86650db
Parents:
35c37fc
Message:

usbdev: refactored usb_pipe_init

Finally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/usb_iface.h

    r35c37fc r9e5b162  
    103103 */
    104104typedef struct {
     105        unsigned max_burst;
     106        unsigned max_streams;
     107        unsigned mult;
     108        unsigned bytes_per_interval;
     109} usb3_endpoint_desc_t;
     110
     111typedef struct {
     112        unsigned polling_interval;
     113} usb2_endpoint_desc_t;
     114
     115typedef struct usb_endpoint_desc {
    105116        /** Endpoint number. */
    106117        usb_endpoint_t endpoint_no;
     
    122133        unsigned packets;
    123134
    124         struct {
    125                 unsigned polling_interval;
    126         } usb2;
    127 
    128         struct {
    129                 unsigned max_burst;
    130                 unsigned max_streams;
    131                 unsigned mult;
    132                 unsigned bytes_per_interval;
    133         } usb3;
     135        /** Bus version specific information */
     136        usb2_endpoint_desc_t usb2;
     137        usb3_endpoint_desc_t usb3;
    134138} usb_endpoint_desc_t;
    135139
Note: See TracChangeset for help on using the changeset viewer.