Changeset 17c5e62 in mainline for uspace/drv/bus/usb/xhci/endpoint.h


Ignore:
Timestamp:
2018-01-08T22:30:12Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0eadfd1e
Parents:
bdd8842c
Message:

xhci: make isoch part of endpoint optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.h

    rbdd8842c r17c5e62  
    9393        uint32_t interval;
    9494
    95         /** The maximum size of an isochronous transfer and therefore the size of buffers */
    96         size_t isoch_max_size;
     95        /** This field is a valid pointer for (and only for) isochronous transfers. */
     96        struct {
     97                /** The maximum size of an isochronous transfer and therefore the size of buffers */
     98                size_t max_size;
    9799
    98         /** Isochronous scheduled transfers with respective buffers */
    99         #define XHCI_ISOCH_BUFFER_COUNT 4
    100         xhci_isoch_transfer_t isoch_transfers[XHCI_ISOCH_BUFFER_COUNT];
     100                /** Isochronous scheduled transfers with respective buffers */
     101                #define XHCI_ISOCH_BUFFER_COUNT 4
     102                xhci_isoch_transfer_t transfers[XHCI_ISOCH_BUFFER_COUNT];
    101103
    102         /** Indices to transfers */
    103         size_t isoch_dequeue, isoch_enqueue;
     104                /** Indices to transfers */
     105                size_t dequeue, enqueue;
    104106
    105         /** Are isochronous transfers started? */
    106         bool isoch_started;
     107                /** Are isochronous transfers started? */
     108                bool started;
    107109
    108         /** Protects common buffers. */
    109         fibril_mutex_t isoch_guard;
     110                /** Protects common buffers. */
     111                fibril_mutex_t guard;
    110112
    111         /** Signals filled buffer. */
    112         fibril_condvar_t isoch_avail;
    113 
     113                /** Signals filled buffer. */
     114                fibril_condvar_t avail;
     115        } isoch [0];
    114116} xhci_endpoint_t;
    115117
Note: See TracChangeset for help on using the changeset viewer.