Ignore:
File:
1 edited

Legend:

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

    rc15070c r81dce9f  
    183183
    184184                        device_keeper_set_toggle(data->manager,
    185                             instance->target, instance->direction,
    186                             td_toggle(&data->tds[i]));
     185                            instance->target, td_toggle(&data->tds[i]));
    187186                        if (i > 0)
    188187                                goto substract_ret;
     
    239238{
    240239        assert(instance);
    241         instance->direction = USB_DIRECTION_IN;
    242240        batch_data(instance, USB_PID_IN);
    243241        instance->next_step = batch_call_in_and_dispose;
     
    254252{
    255253        assert(instance);
    256         instance->direction = USB_DIRECTION_OUT;
    257254        /* We are data out, we are supposed to provide data */
    258255        memcpy(instance->transport_buffer, instance->buffer,
     
    273270        assert(instance);
    274271        batch_data(instance, USB_PID_IN);
    275         instance->direction = USB_DIRECTION_IN;
    276272        instance->next_step = batch_call_in_and_dispose;
    277273        usb_log_debug("Batch(%p) BULK IN initialized.\n", instance);
     
    287283{
    288284        assert(instance);
    289         instance->direction = USB_DIRECTION_OUT;
    290285        /* We are data out, we are supposed to provide data */
    291286        memcpy(instance->transport_buffer, instance->buffer,
     
    311306
    312307        const bool low_speed = instance->speed == USB_SPEED_LOW;
    313         int toggle = device_keeper_get_toggle(
    314             data->manager, instance->target, instance->direction);
     308        int toggle = device_keeper_get_toggle(data->manager, instance->target);
    315309        assert(toggle == 0 || toggle == 1);
    316310
     
    343337        }
    344338        td_set_ioc(&data->tds[packet - 1]);
    345         device_keeper_set_toggle(data->manager, instance->target,
    346             instance->direction, toggle);
     339        device_keeper_set_toggle(data->manager, instance->target, toggle);
    347340}
    348341/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.