Changes in uspace/drv/ohci/batch.c [6b082a1b:c9dc471] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/batch.c
r6b082a1b rc9dc471 147 147 data->ed->next); 148 148 size_t i = 0; 149 instance->transfered_size = instance->buffer_size;150 149 for (; i < tds; ++i) { 151 150 assert(data->tds[i] != NULL); … … 157 156 } 158 157 instance->error = td_error(data->tds[i]); 158 /* FIXME: calculate real transfered size */ 159 instance->transfered_size = instance->buffer_size; 159 160 if (instance->error != EOK) { 160 161 usb_log_debug("Batch(%p) found error TD(%d):%x.\n", … … 173 174 assert(hcd_ep); 174 175 hcd_ep->td = data->tds[i]; 175 if (i > 0)176 instance->transfered_size -= td_remain_size(data->tds[i - 1]);177 178 176 /* Clear possible ED HALT */ 179 177 data->ed->td_head &= ~ED_TDHEAD_HALTED_FLAG; … … 240 238 { 241 239 assert(instance); 242 /* We are data out, we are supposed to provide data */ 243 memcpy(instance->data_buffer, instance->buffer, instance->buffer_size); 244 instance->next_step = usb_transfer_batch_call_out_and_dispose; 240 instance->next_step = usb_transfer_batch_call_in_and_dispose; 245 241 batch_data(instance); 246 usb_log_debug("Batch(%p) BULK OUTinitialized.\n", instance);242 usb_log_debug("Batch(%p) BULK IN initialized.\n", instance); 247 243 } 248 244 /*----------------------------------------------------------------------------*/
Note:
See TracChangeset
for help on using the changeset viewer.