Changeset 9ff5ff82 in mainline


Ignore:
Timestamp:
2011-04-09T09:10:24Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c311d5
Parents:
4c28d17
Message:

Set filled flag when scheduling transfers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    r4c28d17 r9ff5ff82  
    129129        assert(instance);
    130130        assert(batch);
     131
     132        /* check for root hub communication */
    131133        if (batch->target.address == instance->rh.address) {
    132134                return rh_request(&instance->rh, batch);
    133135        }
     136
    134137        transfer_list_add_batch(
    135138            instance->transfers[batch->transfer_type], batch);
     139
     140        switch (batch->transfer_type) {
     141        case USB_TRANSFER_CONTROL:
     142                instance->registers->command_status |= CS_CLF;
     143                break;
     144        case USB_TRANSFER_BULK:
     145                instance->registers->command_status |= CS_BLF;
     146                break;
     147        default:
     148                break;
     149        }
    136150        return EOK;
    137151}
     
    160174                usb_transfer_batch_finish(batch);
    161175        }
    162 
    163         /* TODO: Check for further interrupt causes */
    164         /* TODO: implement */
    165176}
    166177/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.