Changeset bdd8842c in mainline for uspace/drv/bus/usb/xhci/transfers.c
- Timestamp:
- 2018-01-08T19:26:41Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 17c5e62
- Parents:
- 1102eca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/transfers.c
r1102eca rbdd8842c 263 263 // see 4.14.1 and 4.11.2.3 for the explanation, how to calculate those 264 264 size_t tdpc = len / 1024 + ((len % 1024) ? 1 : 0); 265 size_t tbc = tdpc / (ep->max_burst + 1);266 if (!tdpc % (ep->max_burst + 1)) --tbc;267 size_t bsp = tdpc % (ep->max_burst + 1);268 size_t tlbpc = (bsp ? bsp - 1 : ep->max_burst);265 size_t tbc = tdpc / ep->max_burst; 266 if (!tdpc % ep->max_burst) --tbc; 267 size_t bsp = tdpc % ep->max_burst; 268 size_t tlbpc = (bsp ? bsp : ep->max_burst) - 1; 269 269 270 270 TRB_CTRL_SET_TBC(*trb, tbc);
Note:
See TracChangeset
for help on using the changeset viewer.