Changes in uspace/lib/usbdev/include/usb/dev/pipes.h [79ae36dd:04028225] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/pipes.h
r79ae36dd r04028225 43 43 #include <ddf/driver.h> 44 44 #include <fibril_synch.h> 45 #include <async.h>46 45 47 46 /** Abstraction of a physical connection to the device. … … 63 62 * 64 63 * 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_mutex64 * (@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 67 66 * only. 68 67 */ … … 86 85 size_t max_packet_size; 87 86 88 /** Sessionto the host controller.89 * N ULLwhen no session is active.90 * It is an error to access this member without @c hc_ sess_mutex87 /** 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 91 90 * being locked. 92 91 * If call over the phone is to be made, it must be preceeded by 93 92 * call to pipe_add_ref() [internal libusb function]. 94 93 */ 95 async_sess_t *hc_sess;94 int hc_phone; 96 95 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; 99 98 100 99 /** Number of active transfers over the pipe. */
Note:
See TracChangeset
for help on using the changeset viewer.