Ignore:
File:
1 edited

Legend:

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

    r79ae36dd r04028225  
    4343#include <ddf/driver.h>
    4444#include <fibril_synch.h>
    45 #include <async.h>
    4645
    4746/** Abstraction of a physical connection to the device.
     
    6362 *
    6463 * Locking order: if you want to lock both mutexes
    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
     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
    6766 * only.
    6867 */
     
    8685        size_t max_packet_size;
    8786
    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
     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
    9190         * being locked.
    9291         * If call over the phone is to be made, it must be preceeded by
    9392         * call to pipe_add_ref() [internal libusb function].
    9493         */
    95         async_sess_t *hc_sess;
     94        int hc_phone;
    9695
    97         /** Guard for serialization of requests over the session. */
    98         fibril_mutex_t hc_sess_mutex;
     96        /** Guard for serialization of requests over the phone. */
     97        fibril_mutex_t hc_phone_mutex;
    9998
    10099        /** Number of active transfers over the pipe. */
Note: See TracChangeset for help on using the changeset viewer.