Changeset 6b433a8 in mainline for uspace/lib/usbdev/src/pipes.c
- Timestamp:
- 2017-11-20T19:14:31Z (8 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/pipes.c
rd3086873 r6b433a8 255 255 usb_transfer_type_t transfer_type, size_t max_packet_size, 256 256 usb_direction_t direction, unsigned packets, 257 unsigned max_burst, unsigned max_streams, usb_dev_session_t *bus_session) 258 { 259 // FIXME refactor this function 257 unsigned max_burst, unsigned max_streams, unsigned bytes_per_interval, 258 unsigned mult, usb_dev_session_t *bus_session) 259 { 260 // FIXME: refactor this function PLEASE 260 261 assert(pipe); 261 262 … … 267 268 pipe->desc.usb3.max_burst = max_burst; 268 269 pipe->desc.usb3.max_streams = max_streams; 270 pipe->desc.usb3.mult = mult; 271 pipe->desc.usb3.bytes_per_interval = bytes_per_interval; 269 272 pipe->auto_reset_halt = false; 270 273 pipe->bus_session = bus_session; … … 284 287 285 288 const int rc = usb_pipe_initialize(pipe, 0, USB_TRANSFER_CONTROL, 286 CTRL_PIPE_MIN_PACKET_SIZE, USB_DIRECTION_BOTH, 1, 0, 0, bus_session);289 CTRL_PIPE_MIN_PACKET_SIZE, USB_DIRECTION_BOTH, 1, 0, 0, 0, 0, bus_session); 287 290 288 291 pipe->auto_reset_halt = true;
Note:
See TracChangeset
for help on using the changeset viewer.