Changeset 1561e8b in mainline for uspace/lib/usbdev/src/pipesinit.c
- Timestamp:
- 2011-12-12T13:09:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c804484
- Parents:
- 6a21877
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipesinit.c
r6a21877 r1561e8b 38 38 #include <usb/dev/dp.h> 39 39 #include <usb/dev/request.h> 40 #include <usbhc_iface.h>41 40 #include <errno.h> 42 41 #include <assert.h> … … 357 356 return EOK; 358 357 } 359 360 358 361 359 /** Initialize USB endpoint pipe as the default zero control pipe. … … 434 432 * @param pipe Pipe to be registered. 435 433 * @param interval Polling interval. 436 * @param hc_connection Connection to the host controller (must be opened).437 434 * @return Error code. 438 435 */ … … 441 438 assert(pipe); 442 439 assert(pipe->wire); 443 assert(pipe->wire->hc_connection); 444 445 return usb_hc_register_endpoint(pipe->wire->hc_connection, 446 pipe->wire->address, pipe->endpoint_no, pipe->transfer_type, 440 441 return usb_device_register_endpoint(pipe->wire, 442 pipe->endpoint_no, pipe->transfer_type, 447 443 pipe->direction, pipe->max_packet_size, interval); 448 444 } … … 451 447 * 452 448 * @param pipe Pipe to be unregistered. 453 * @param hc_connection Connection to the host controller (must be opened).454 449 * @return Error code. 455 450 */ … … 458 453 assert(pipe); 459 454 assert(pipe->wire); 460 assert(pipe->wire->hc_connection); 461 462 return usb_hc_unregister_endpoint(pipe->wire->hc_connection, 463 pipe->wire->address, pipe->endpoint_no, pipe->direction); 455 456 return usb_device_unregister_endpoint(pipe->wire, 457 pipe->endpoint_no, pipe->direction); 464 458 } 465 459
Note:
See TracChangeset
for help on using the changeset viewer.