Ignore:
File:
1 edited

Legend:

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

    r04028225 r79ae36dd  
    4343#include <ddf/driver.h>
    4444#include <fibril_synch.h>
     45#include <async.h>
    4546
    4647/** Abstraction of a physical connection to the device.
     
    6263 *
    6364 * Locking order: if you want to lock both mutexes
    64  * (@c guard and @c hc_phone_mutex), lock @c guard first.
    65  * It is not necessary to lock @c guard if you want to lock @c hc_phone_mutex
     65 * (@c guard and @c hc_sess_mutex), lock @c guard first.
     66 * It is not necessary to lock @c guard if you want to lock @c hc_sess_mutex
    6667 * only.
    6768 */
     
    8586        size_t max_packet_size;
    8687
    87         /** Phone to the host controller.
    88          * Negative when no session is active.
    89          * It is an error to access this member without @c hc_phone_mutex
     88        /** Session to the host controller.
     89         * NULL when no session is active.
     90         * It is an error to access this member without @c hc_sess_mutex
    9091         * being locked.
    9192         * If call over the phone is to be made, it must be preceeded by
    9293         * call to pipe_add_ref() [internal libusb function].
    9394         */
    94         int hc_phone;
     95        async_sess_t *hc_sess;
    9596
    96         /** Guard for serialization of requests over the phone. */
    97         fibril_mutex_t hc_phone_mutex;
     97        /** Guard for serialization of requests over the session. */
     98        fibril_mutex_t hc_sess_mutex;
    9899
    99100        /** Number of active transfers over the pipe. */
Note: See TracChangeset for help on using the changeset viewer.