Changeset ec700c7 in mainline for uspace/lib/usbdev/src/pipes.c
- Timestamp:
- 2017-10-23T23:17:14Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 894f58c
- Parents:
- b724494
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipes.c
rb724494 rec700c7 254 254 int usb_pipe_initialize(usb_pipe_t *pipe, usb_endpoint_t endpoint_no, 255 255 usb_transfer_type_t transfer_type, size_t max_packet_size, 256 usb_direction_t direction, unsigned packets, usb_dev_session_t *bus_session) 257 { 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 258 260 assert(pipe); 259 261 … … 263 265 pipe->desc.max_packet_size = max_packet_size; 264 266 pipe->desc.direction = direction; 267 pipe->desc.usb3.max_burst = max_burst; 268 pipe->desc.usb3.max_streams = max_streams; 265 269 pipe->auto_reset_halt = false; 266 270 pipe->bus_session = bus_session; … … 280 284 281 285 const int rc = usb_pipe_initialize(pipe, 0, USB_TRANSFER_CONTROL, 282 CTRL_PIPE_MIN_PACKET_SIZE, USB_DIRECTION_BOTH, 1, bus_session);286 CTRL_PIPE_MIN_PACKET_SIZE, USB_DIRECTION_BOTH, 1, 0, 0, bus_session); 283 287 284 288 pipe->auto_reset_halt = true;
Note:
See TracChangeset
for help on using the changeset viewer.