Changeset aa9ccf7 in mainline for uspace/drv/ohci/batch.c


Ignore:
Timestamp:
2011-04-11T13:15:25Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f104af4
Parents:
fd153d3
Message:

More debug output and some fixes

Add mutex for scheduling and removing of batches
batch_data initialize the first TD not the second
disable and enable both isochronous and interrupt processing when scheduling periodic transfer.
undef the right macro in transfer_list initialization

File:
1 edited

Legend:

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

    rfd153d3 raa9ccf7  
    145145                    data->tds[i].status, data->tds[i].cbp, data->tds[i].next,
    146146                    data->tds[i].be);
    147                 if (!td_is_finished(&data->tds[i]))
     147                if (!td_is_finished(&data->tds[i])) {
    148148                        return false;
     149                }
    149150                instance->error = td_error(&data->tds[i]);
    150151                /* FIXME: calculate real transfered size */
     
    287288
    288289        /* data stage */
    289         size_t td_current = 1;
     290        size_t td_current = 0;
    290291        size_t remain_size = instance->buffer_size;
    291292        char *transfer_buffer = instance->transport_buffer;
Note: See TracChangeset for help on using the changeset viewer.