Changeset 9b2f69e in mainline for uspace/drv/bus/usb/xhci/endpoint.h


Ignore:
Timestamp:
2017-10-15T20:08:16Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b7db009
Parents:
816f5f4
Message:

Setting up endpoint contexts (almost) properly. Boilerplate for interrupt transfers. Simplified TRB ring initialization.

File:
1 edited

Legend:

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

    r816f5f4 r9b2f69e  
    4949typedef struct xhci_bus xhci_bus_t;
    5050
    51 #define XHCI_DEVICE_MAX_ENDPOINTS 32
    52 
    5351enum {
    5452        EP_TYPE_INVALID = 0,
     
    8179
    8280        /** All endpoints of the device. Inactive ones are NULL */
    83         xhci_endpoint_t *endpoints[XHCI_DEVICE_MAX_ENDPOINTS];
     81        xhci_endpoint_t *endpoints[XHCI_EP_COUNT];
    8482
    8583        /** Number of non-NULL endpoints. Reference count of sorts. */
    8684        uint8_t active_endpoint_count;
     85
     86        /** Need HC to schedule commands from bus callbacks. TODO: Move this elsewhere. */
     87        xhci_hc_t *hc;
     88
     89        /** Flag indicating whether the device is USB3 (it's USB2 otherwise). */
     90        bool usb3;
    8791} xhci_device_t;
    8892
Note: See TracChangeset for help on using the changeset viewer.