Changeset 89cefe78 in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2017-10-22T21:47:55Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
82fe063
Parents:
ee794529
Message:

Refactored transfer DS allocation in preparation for streams. Also, converted EP context setup to table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    ree794529 r89cefe78  
    129129                goto err_ictx;
    130130        xhci_endpoint_t *ep0 = xhci_endpoint_get(ep0_base);
     131
     132        /* Control endpoints don't use streams. */
     133        /* FIXME: Sync this with xhci_device_add_endpoint. */
     134        ep0->max_streams = 0;
     135        ep0->max_burst = 0;
     136        ep0->mult = 0;
     137        if ((err = xhci_endpoint_alloc_transfer_ds(ep0)))
     138                goto err_ictx;
     139
    131140        setup_control_ep0_ctx(&ictx->endpoint_ctx[0], &ep0->ring, speed);
    132141
Note: See TracChangeset for help on using the changeset viewer.