Changeset b991d37 in mainline for uspace/drv/bus/usb/uhci/hc.c


Ignore:
Timestamp:
2011-08-31T16:41:11Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff6dd73
Parents:
96e2d01
Message:

uhci: use uhci sepcific structure instead of generic library

revert the way uhci_transfer_batch_t and usb_transfer_batch_t are included,
don't use usb_transfer_batch_t:

-private data and data dtor
-next_step pointer
-buffer_data pointer

File:
1 edited

Legend:

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

    r96e2d01 rb991d37  
    128128                        link_t *item = list_first(&done);
    129129                        list_remove(item);
    130                         usb_transfer_batch_t *batch =
    131                             list_get_instance(item, usb_transfer_batch_t, link);
    132                         usb_transfer_batch_finish(batch);
     130                        uhci_transfer_batch_t *batch =
     131                            uhci_transfer_batch_from_link(item);
     132                        uhci_transfer_batch_call_dispose(batch);
    133133                }
    134134        }
     
    382382        assert(instance);
    383383        assert(batch);
    384         int ret = batch_init_uhci(batch);
    385         if (ret != EOK) {
    386                 return ret;
     384        uhci_transfer_batch_t *uhci_batch = uhci_transfer_batch_get(batch);
     385        if (!uhci_batch) {
     386                usb_log_error("Failed to create UHCI transfer structures.\n");
     387                return ENOMEM;
    387388        }
    388389
     
    390391            instance->transfers[batch->ep->speed][batch->ep->transfer_type];
    391392        assert(list);
    392         transfer_list_add_batch(list, batch);
     393        transfer_list_add_batch(list, uhci_batch);
    393394
    394395        return EOK;
Note: See TracChangeset for help on using the changeset viewer.