Changeset a5b3de6 in mainline for uspace/drv/bus/usb/uhci


Ignore:
Timestamp:
2017-10-25T11:55:15Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2b35478
Parents:
c3d926f3
Message:

usbhost endpoint: removed target

The reasons for having usb_target_t inside endpoint have been dismissed. Enpoint is not a target of a transaction, so this was just misleading.

Location:
uspace/drv/bus/usb/uhci
Files:
3 edited

Legend:

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

    rc3d926f3 ra5b3de6  
    461461        assert(batch);
    462462
    463         if (batch->ep->target.address == uhci_rh_get_address(&instance->rh))
     463        if (batch->target.address == uhci_rh_get_address(&instance->rh))
    464464                return uhci_rh_schedule(&instance->rh, batch);
    465465
  • uspace/drv/bus/usb/uhci/uhci_batch.c

    rc3d926f3 ra5b3de6  
    222222            uhci_batch->base.ep->speed == USB_SPEED_LOW;
    223223        const size_t mps = uhci_batch->base.ep->max_packet_size;
    224         const usb_target_t target = uhci_batch->base.ep->target;
    225224
    226225        int toggle = endpoint_toggle_get(uhci_batch->base.ep);
     
    240239                td_init(
    241240                    &uhci_batch->tds[td], DEFAULT_ERROR_COUNT, packet_size,
    242                     toggle, false, low_speed, target, pid, buffer, next_td);
     241                    toggle, false, low_speed, uhci_batch->base.target, pid, buffer, next_td);
    243242
    244243                ++td;
     
    285284            uhci_batch->base.ep->speed == USB_SPEED_LOW;
    286285        const size_t mps = uhci_batch->base.ep->max_packet_size;
    287         const usb_target_t target = uhci_batch->base.ep->target;
     286        const usb_target_t target = uhci_batch->base.target;
    288287
    289288        /* setup stage */
  • uspace/drv/bus/usb/uhci/uhci_rh.c

    rc3d926f3 ra5b3de6  
    104104        assert(batch);
    105105
    106         const usb_target_t target = batch->ep->target;
    107106        do {
    108                 batch->error = virthub_base_request(&instance->base, target,
     107                batch->error = virthub_base_request(&instance->base, batch->target,
    109108                    batch->dir, (void*) batch->setup.buffer,
    110109                    batch->buffer, batch->buffer_size, &batch->transfered_size);
Note: See TracChangeset for help on using the changeset viewer.