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


Ignore:
Timestamp:
2017-10-05T17:17:09Z (7 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae03552e
Parents:
078e0e6
Message:

Basic commands transfer implementation

File:
1 edited

Legend:

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

    r078e0e6 re9e24f2  
    4343#include "hw_struct/trb.h"
    4444#include "commands.h"
     45#include "transfers.h"
     46#include "trb_ring.h"
    4547
    4648/**
     
    457459        switch (batch->ep->transfer_type) {
    458460        case USB_TRANSFER_CONTROL:
    459                 /* TODO: Send setup stage TRB. */
    460                 /* TODO: Optionally, send data stage TRB followed by zero or
    461                          more normal TRB's. */
    462                 /* TODO: Send status stage TRB. */
    463                 /* TODO: Ring the appropriate doorbell. */
     461                xhci_schedule_control_transfer(hc, batch);
    464462                break;
    465463        case USB_TRANSFER_ISOCHRONOUS:
     
    482480        [XHCI_TRB_TYPE_COMMAND_COMPLETION_EVENT] = &xhci_handle_command_completion,
    483481        [XHCI_TRB_TYPE_PORT_STATUS_CHANGE_EVENT] = &xhci_handle_port_status_change_event,
     482        [XHCI_TRB_TYPE_TRANSFER_EVENT] = &xhci_handle_transfer_event,
    484483};
    485484
Note: See TracChangeset for help on using the changeset viewer.