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

Changeset bdb23c63 in mainline


Ignore:
Timestamp:
2011-12-14T14:12:44Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
22ecbde
Parents:
cbd568b
Message:

libusbdev: Remove unused mutex.

Location:
uspace/lib/usbdev
Files:
3 edited

Legend:

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

    rcbd568b rbdb23c63  
    7272/** USB device structure. */
    7373typedef struct {
     74        /** Connection to USB hc, used by wire and arbitrary requests. */
    7475        usb_hc_connection_t hc_conn;
    7576        /** Connection backing the pipes.
  • uspace/lib/usbdev/include/usb/dev/pipes.h

    rcbd568b rbdb23c63  
    3939#include <ddf/driver.h>
    4040#include <fibril_synch.h>
    41 #include <async.h>
    4241#include <usb/usb.h>
    4342#include <usb/descriptor.h>
     
    4645#define CTRL_PIPE_MIN_PACKET_SIZE 8
    4746/** Abstraction of a logical connection to USB device endpoint.
    48  * It encapsulates endpoint attributes (transfer type etc.) as well
    49  * as information about currently running sessions.
     47 * It encapsulates endpoint attributes (transfer type etc.).
    5048 * This endpoint must be bound with existing usb_device_connection_t
    5149 * (i.e. the wire to send data over).
    52  *
    53  * Locking order: if you want to lock both mutexes
    54  * (@c guard and @c hc_sess_mutex), lock @c guard first.
    55  * It is not necessary to lock @c guard if you want to lock @c hc_sess_mutex
    56  * only.
    5750 */
    5851typedef struct {
    59         /** Guard of the whole pipe. */
    60         fibril_mutex_t guard;
    61 
    6252        /** The connection used for sending the data. */
    6353        usb_device_connection_t *wire;
  • uspace/lib/usbdev/src/pipes.c

    rcbd568b rbdb23c63  
    311311        assert(connection);
    312312
    313         fibril_mutex_initialize(&pipe->guard);
    314313        pipe->wire = connection;
    315314        pipe->endpoint_no = endpoint_no;
Note: See TracChangeset for help on using the changeset viewer.