Changeset 5fd9c30 in mainline for uspace/drv/bus/usb/uhci/uhci_rh.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/uhci/uhci_rh.c

    r74b852b r5fd9c30  
    3939#include <usb/classes/hub.h>
    4040#include <usb/request.h>
     41#include <usb/host/endpoint.h>
    4142#include <usb/usb.h>
    4243
     
    106107        do {
    107108                batch->error = virthub_base_request(&instance->base, target,
    108                     usb_transfer_batch_direction(batch), (void*)batch->setup_buffer,
     109                    batch->dir, (void*) batch->setup.buffer,
    109110                    batch->buffer, batch->buffer_size, &batch->transfered_size);
    110111                if (batch->error == ENAK)
     
    113114                //ENAK is technically an error condition
    114115        } while (batch->error == ENAK);
    115         usb_transfer_batch_finish(batch, NULL);
    116         usb_transfer_batch_destroy(batch);
     116        usb_transfer_batch_finish(batch);
    117117        return EOK;
    118118}
Note: See TracChangeset for help on using the changeset viewer.