Changeset 1561e8b in mainline
- 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
- Location:
- uspace/lib/usbdev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/usb_device_connection.h
r6a21877 r1561e8b 105 105 { 106 106 assert(conn); 107 return usb_hc_ control_read(conn->hc_connection,107 return usb_hc_read(conn->hc_connection, 108 108 conn->address, ep, setup, data, size, rsize); 109 109 } … … 113 113 { 114 114 assert(conn); 115 return usb_hc_ control_write(conn->hc_connection,115 return usb_hc_write(conn->hc_connection, 116 116 conn->address, ep, setup, data, size); 117 117 } -
uspace/lib/usbdev/src/pipes.c
r6a21877 r1561e8b 87 87 return ENOTSUP; 88 88 89 return usb_hc_control_read(pipe->wire->hc_connection, 90 pipe->wire->address, pipe->endpoint_no, setup, buffer, size, 91 size_transfered); 89 return usb_device_control_read(pipe->wire, 90 pipe->endpoint_no, setup, buffer, size, size_transfered); 92 91 } 93 92 /*----------------------------------------------------------------------------*/ … … 108 107 return ENOTSUP; 109 108 110 return usb_ hc_control_write(pipe->wire->hc_connection,111 pipe-> wire->address, pipe->endpoint_no, setup, buffer, size);109 return usb_device_control_write(pipe->wire, 110 pipe->endpoint_no, setup, buffer, size); 112 111 } 113 112 /*----------------------------------------------------------------------------*/ -
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.