Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 47dfb34 in mainline


Ignore:
Timestamp:
2011-12-11T18:25:46Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
ab5ea5b5
Parents:
0681c06
Message:

libusbdev: Implement pipe long transfers.

Location:
uspace/lib/usbdev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/pipes.h

    r0681c06 r47dfb34  
    129129int usb_pipe_unregister(usb_pipe_t *);
    130130
    131 void usb_pipe_start_long_transfer(usb_pipe_t *);
    132 void usb_pipe_end_long_transfer(usb_pipe_t *);
     131int usb_pipe_start_long_transfer(usb_pipe_t *);
     132int usb_pipe_end_long_transfer(usb_pipe_t *);
    133133
    134134int usb_pipe_read(usb_pipe_t *, void *, size_t, size_t *);
  • uspace/lib/usbdev/src/pipes.c

    r0681c06 r47dfb34  
    7575 * @return Error code.
    7676 */
    77 void usb_pipe_start_long_transfer(usb_pipe_t *pipe)
    78 {
     77int usb_pipe_start_long_transfer(usb_pipe_t *pipe)
     78{
     79        assert(pipe);
     80        assert(pipe->wire);
     81        assert(pipe->wire->hc_connection);
     82        return usb_hc_connection_open(pipe->wire->hc_connection);
    7983}
    8084/*----------------------------------------------------------------------------*/
     
    8589 * @param pipe Pipe where to end the long transfer.
    8690 */
    87 void usb_pipe_end_long_transfer(usb_pipe_t *pipe)
    88 {
     91int usb_pipe_end_long_transfer(usb_pipe_t *pipe)
     92{
     93        assert(pipe);
     94        assert(pipe->wire);
     95        assert(pipe->wire->hc_connection);
     96        return usb_hc_connection_close(pipe->wire->hc_connection);
    8997}
    9098/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.