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


Ignore:
Timestamp:
2017-10-21T20:52:56Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
766043c
Parents:
74b852b
Message:

usbhost refactoring: let transfer_batch be initialized by bus

Currently makes older HCs fail, work in progress.

File:
1 edited

Legend:

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

    r74b852b r5fd9c30  
    3737#include <str_error.h>
    3838#include <usb/debug.h>
     39#include <usb/host/endpoint.h>
    3940#include <usb/host/utils/malloc32.h>
    4041#include "debug.h"
     
    472473        }
    473474
    474         switch (batch->ep->transfer_type) {
    475         case USB_TRANSFER_CONTROL:
    476                 return xhci_schedule_control_transfer(hc, batch);
    477         case USB_TRANSFER_ISOCHRONOUS:
    478                 return xhci_schedule_isochronous_transfer(hc, batch);
    479         case USB_TRANSFER_BULK:
    480                 return xhci_schedule_bulk_transfer(hc, batch);
    481         case USB_TRANSFER_INTERRUPT:
    482                 return xhci_schedule_interrupt_transfer(hc, batch);
    483         }
    484 
    485         return EOK;
     475        return xhci_transfer_schedule(hc, batch);
    486476}
    487477
Note: See TracChangeset for help on using the changeset viewer.