Changeset e1dbcbc in mainline for uspace/lib/usb/include/usb/pipes.h


Ignore:
Timestamp:
2011-04-29T13:43:01Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a81a1d09
Parents:
380e0364 (diff), f19f1b7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge development/ changes

File:
1 edited

Legend:

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

    r380e0364 re1dbcbc  
    9999        /** Number of active transfers over the pipe. */
    100100        int refcount;
     101        /** Number of failed attempts to open the HC phone.
     102         * When user requests usb_pipe_start_long_transfer() and the operation
     103         * fails, there is no way to report this to the user.
     104         * That the soft reference counter is increased to record the attempt.
     105         * When the user then request e.g. usb_pipe_read(), it will try to
     106         * add reference as well.
     107         * If that fails, it is reported to the user. If it is okay, the
     108         * real reference counter is incremented.
     109         * The problem might arise when ending the long transfer (since
     110         * the number of references would be only 1, but logically it shall be
     111         * two).
     112         * Decrementing the soft counter first shall solve this.
     113         */
     114        int refcount_soft;
     115
     116        /** Whether to automatically reset halt on the endpoint.
     117         * Valid only for control endpoint zero.
     118         */
     119        bool auto_reset_halt;
    101120} usb_pipe_t;
    102121
     
    158177int usb_pipe_unregister(usb_pipe_t *, usb_hc_connection_t *);
    159178
    160 int usb_pipe_start_session(usb_pipe_t *);
    161 int usb_pipe_end_session(usb_pipe_t *);
    162 bool usb_pipe_is_session_started(usb_pipe_t *);
    163 
    164 int usb_pipe_start_long_transfer(usb_pipe_t *);
     179void usb_pipe_start_long_transfer(usb_pipe_t *);
    165180void usb_pipe_end_long_transfer(usb_pipe_t *);
    166181
Note: See TracChangeset for help on using the changeset viewer.