Changeset cc7575c in mainline for uspace/drv/bus/usb/ehci/hw_struct


Ignore:
Timestamp:
2014-01-25T17:10:00Z (12 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

Location:
uspace/drv/bus/usb/ehci/hw_struct
Files:
2 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) {
  • uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h

    r21f36e04 rcc7575c  
    9090
    9191void td_init(td_t *td, const td_t *next, usb_direction_t dir, const void * buf,
    92     size_t buf_size, int toggle);
     92    size_t buf_size, int toggle, bool ioc);
    9393
    9494#endif
Note: See TracChangeset for help on using the changeset viewer.