Changeset d6522dd in mainline for uspace/drv/ohci/batch.c
- Timestamp:
- 2011-04-13T14:49:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 651b352, a0a134b
- Parents:
- 7013b14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/batch.c
r7013b14 rd6522dd 164 164 } 165 165 } 166 data->leave_td = ++i;166 data->leave_td = i; 167 167 assert(data->leave_td <= data->td_count); 168 hcd_endpoint_t *hcd_ep = hcd_endpoint_get(instance->ep); 169 assert(hcd_ep); 170 hcd_ep->td = data->tds[i]; 171 168 172 return true; 169 173 } … … 243 247 ohci_transfer_batch_t *data = instance->private_data; 244 248 assert(data); 245 ed_init(data->ed, instance->ep); 246 // ed_add_tds(data->ed, &data->tds[0], &data->tds[data->td_count - 1]); 247 usb_log_debug("Created ED(%p): %x:%x:%x:%x.\n", data->ed, 249 usb_log_debug("Using ED(%p): %x:%x:%x:%x.\n", data->ed, 248 250 data->ed->status, data->ed->td_tail, data->ed->td_head, 249 251 data->ed->next); … … 292 294 ohci_transfer_batch_t *data = instance->private_data; 293 295 assert(data); 294 ed_init(data->ed, instance->ep); 295 // ed_add_tds(data->ed, &data->tds[0], &data->tds[data->td_count - 1]); 296 usb_log_debug("Created ED(%p): %x:%x:%x:%x.\n", data->ed, 296 usb_log_debug("Using ED(%p): %x:%x:%x:%x.\n", data->ed, 297 297 data->ed->status, data->ed->td_tail, data->ed->td_head, 298 298 data->ed->next); 299 299 300 /* data stage */301 300 size_t td_current = 0; 302 301 size_t remain_size = instance->buffer_size;
Note:
See TracChangeset
for help on using the changeset viewer.