Changeset 9b2f69e in mainline for uspace/drv/bus/usb/xhci/hc.c


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/hc.c

    r816f5f4 r9b2f69e  
    201201        }
    202202
    203         if ((err = xhci_trb_ring_init(&hc->command_ring, hc)))
     203        if ((err = xhci_trb_ring_init(&hc->command_ring)))
    204204                goto err_dcbaa_virt;
    205205
    206         if ((err = xhci_event_ring_init(&hc->event_ring, hc)))
     206        if ((err = xhci_event_ring_init(&hc->event_ring)))
    207207                goto err_cmd_ring;
    208208
     
    462462        assert(batch);
    463463
    464         usb_log_debug2("EP(%d:%d) started %s transfer of size %lu.",
     464        usb_log_debug2("Endpoint(%d:%d) started %s transfer of size %lu.",
    465465                batch->ep->target.address, batch->ep->target.endpoint,
    466466                usb_str_transfer_type(batch->ep->transfer_type),
     
    482482                return xhci_schedule_bulk_transfer(hc, batch);
    483483        case USB_TRANSFER_INTERRUPT:
    484                 /* TODO: Implement me. */
    485                 usb_log_error("Interrupt transfers are not yet implemented!");
    486                 return ENOTSUP;
     484                return xhci_schedule_interrupt_transfer(hc, batch);
    487485        }
    488486
Note: See TracChangeset for help on using the changeset viewer.