Changeset 23e5471 in mainline


Ignore:
Timestamp:
2014-01-25T07:08:37Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e9c5bd9
Parents:
a752c78c
Message:

ehci: Implement batch commit

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

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_batch.c

    ra752c78c r23e5471  
    249249{
    250250        assert(ehci_batch);
    251 //      ed_set_tail_td(ehci_batch->ed, ehci_batch->tds[ehci_batch->td_count]);
     251        qh_set_next_td(ehci_batch->qh, ehci_batch->tds[0]);
    252252}
    253253
  • uspace/drv/bus/usb/ehci/hw_struct/queue_head.h

    ra752c78c r23e5471  
    4141#include "../utils/malloc32.h"
    4242#include "link_pointer.h"
     43#include "transfer_descriptor.h"
    4344#include "mem_access.h"
    4445
     
    190191}
    191192
     193static inline void qh_set_next_td(qh_t *qh, td_t *td)
     194{
     195        assert(qh);
     196        assert(td);
     197        EHCI_MEM32_WR(qh->next, LINK_POINTER_TD(addr_to_phys(td)));
     198}
     199
    192200static inline bool qh_transfer_pending(const qh_t *qh)
    193201{
  • uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h

    ra752c78c r23e5471  
    3737#include <sys/types.h>
    3838#include "link_pointer.h"
     39#include "mem_access.h"
    3940
    4041/** Transfer descriptor (non-ISO) */
Note: See TracChangeset for help on using the changeset viewer.