Changeset 4fec9ee in mainline for uspace/drv/uhci-hcd/batch.c


Ignore:
Timestamp:
2011-03-18T16:17:24Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00b13408
Parents:
4f66cc7b (diff), d8e61b0d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Changes from development

File:
1 edited

Legend:

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

    r4f66cc7b r4fec9ee  
    153153}
    154154/*----------------------------------------------------------------------------*/
     155/** Mark batch as failed and continue with next step.
     156 *
     157 * @param[in] instance Batch structure to use.
     158 *
     159 */
     160void batch_abort(batch_t *instance)
     161{
     162        assert(instance);
     163        instance->error = EIO;
     164        instance->next_step(instance);
     165}
     166/*----------------------------------------------------------------------------*/
    155167/** Check batch TDs for activity.
    156168 *
     
    251263        assert(instance);
    252264        /* We are data out, we are supposed to provide data */
    253         memcpy(instance->transport_buffer, instance->buffer, instance->buffer_size);
     265        memcpy(instance->transport_buffer, instance->buffer,
     266            instance->buffer_size);
    254267        batch_data(instance, USB_PID_OUT);
    255268        instance->next_step = batch_call_out_and_dispose;
     
    281294        assert(instance);
    282295        /* We are data out, we are supposed to provide data */
    283         memcpy(instance->transport_buffer, instance->buffer, instance->buffer_size);
     296        memcpy(instance->transport_buffer, instance->buffer,
     297            instance->buffer_size);
    284298        batch_data(instance, USB_PID_OUT);
    285299        instance->next_step = batch_call_out_and_dispose;
Note: See TracChangeset for help on using the changeset viewer.