Changeset 53338bda in mainline for uspace/drv/uhci-hcd/transfer_list.c


Ignore:
Timestamp:
2011-02-11T17:59:34Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f6309b6
Parents:
518372c
Message:

remove transfers from the list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/transfer_list.c

    r518372c r53338bda  
    100100        }
    101101}
     102/*----------------------------------------------------------------------------*/
     103void transfer_list_remove_tracker(transfer_list_t *instance, tracker_t *tracker)
     104{
     105        assert(instance);
     106        assert(tracker);
     107        assert(instance->queue_head);
     108        assert(tracker->td);
     109
     110        uint32_t pa = (uintptr_t)addr_to_phys(tracker->td);
     111        if ((instance->queue_head->element & LINK_POINTER_ADDRESS_MASK) == pa) {
     112                instance->queue_head->element = tracker->td->next;
     113        }
     114}
    102115/**
    103116 * @}
Note: See TracChangeset for help on using the changeset viewer.