Changeset 6b433a8 in mainline for uspace/lib/usbdev/src/pipesinit.c
- Timestamp:
- 2017-11-20T19:14:31Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27b0ea0
- Parents:
- d3086873
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipesinit.c
rd3086873 r6b433a8 210 210 unsigned max_burst = 0; 211 211 unsigned max_streams = 0; 212 unsigned bytes_per_interval = 0; 213 unsigned mult = 0; 212 214 if(companion_desc) { 213 215 max_burst = companion_desc->max_burst; 214 216 max_streams = SS_COMPANION_MAX_STREAMS(companion_desc->attributes); 215 } 216 217 bytes_per_interval = companion_desc->bytes_per_interval; 218 mult = SS_COMPANION_MULT(companion_desc->attributes); 219 } 220 221 // FIXME: USB2 packets and USB3 max_burst are probably the same thing 222 // See 4.14.2.1.1 of XHCI specification -> possibly refactor into one somehow-named field 217 223 int rc = usb_pipe_initialize(&ep_mapping->pipe, 218 224 ep_no, description.transfer_type, … … 221 227 description.direction, ED_MPS_TRANS_OPPORTUNITIES_GET( 222 228 uint16_usb2host(endpoint_desc->max_packet_size)), 223 max_burst, max_streams, b us_session);229 max_burst, max_streams, bytes_per_interval, mult, bus_session); 224 230 if (rc != EOK) { 225 231 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.