Ignore:
Timestamp:
2014-01-25T17:10:00Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49dc984
Parents:
21f36e04
Message:

ehci: add IOC option to td initialization

File:
1 edited

Legend:

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

    r21f36e04 rcc7575c  
    8181 */
    8282void td_init(td_t *instance, const td_t *next,
    83     usb_direction_t direction, const void *buffer, size_t size, int toggle)
     83    usb_direction_t direction, const void *buffer, size_t size, int toggle,
     84    bool ioc)
    8485{
    8586        assert(instance);
     
    8990        EHCI_MEM32_WR(instance->status,
    9091            ((dir[direction] & TD_STATUS_PID_MASK) << TD_STATUS_PID_SHIFT) |
    91             ((size & TD_STATUS_TOTAL_MASK) << TD_STATUS_TOTAL_SHIFT));
     92            ((size & TD_STATUS_TOTAL_MASK) << TD_STATUS_TOTAL_SHIFT) |
     93            (ioc ? TD_STATUS_IOC_FLAG : 0) );
    9294
    9395        if (toggle == 0 || toggle == 1) {
Note: See TracChangeset for help on using the changeset viewer.