Changeset db51a6a6 in mainline for uspace/drv/bus/usb/ohci/ohci_batch.c
- Timestamp:
- 2018-01-22T12:20:14Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 998773d
- Parents:
- b3c39690
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-22 12:18:02)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-22 12:20:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/ohci_batch.c
rb3c39690 rdb51a6a6 187 187 188 188 /* Assume all data got through */ 189 ohci_batch->base.transfer ed_size = ohci_batch->base.buffer_size;189 ohci_batch->base.transferred_size = ohci_batch->base.buffer_size; 190 190 191 191 /* Assume we will leave the last(unused) TD behind */ … … 213 213 * we leave the very last(unused) TD behind. 214 214 */ 215 ohci_batch->base.transfer ed_size215 ohci_batch->base.transferred_size 216 216 -= td_remain_size(ohci_batch->tds[i]); 217 217 } else { … … 244 244 } 245 245 } 246 assert(ohci_batch->base.transfer ed_size <=246 assert(ohci_batch->base.transferred_size <= 247 247 ohci_batch->base.buffer_size); 248 248 … … 254 254 memcpy(ohci_batch->base.buffer, 255 255 ohci_batch->device_buffer + setup_size, 256 ohci_batch->base.transfer ed_size);256 ohci_batch->base.transferred_size); 257 257 258 258 /* Store the remaining TD */
Note:
See TracChangeset
for help on using the changeset viewer.