Changeset 442fa6b in mainline for uspace/drv/bus/usb/usbhub/port.h


Ignore:
Timestamp:
2011-09-23T14:17:59Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b617579
Parents:
c0587d90
Message:

usbhub: More functions use new usb_hub_port_t elements.

Use per port mutex, for more than just waiting for reset to complete.
Remove shared port_mutex from the hub structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/port.h

    rc0587d90 r442fa6b  
    4646        size_t port_number;
    4747        usb_pipe_t *control_pipe;
    48         /** Mutex needed by CV for checking port reset. */
    49         fibril_mutex_t reset_mutex;
     48        /** Mutex needed not only by CV for checking port reset. */
     49        fibril_mutex_t mutex;
    5050        /** CV for waiting to port reset completion. */
    5151        fibril_condvar_t reset_cv;
     
    7373        port->port_number = port_number;
    7474        port->control_pipe = control_pipe;
    75         fibril_mutex_initialize(&port->reset_mutex);
     75        fibril_mutex_initialize(&port->mutex);
    7676        fibril_condvar_initialize(&port->reset_cv);
    7777}
    7878
     79void usb_hub_port_reset_fail(usb_hub_port_t *port);
    7980
    80 void usb_hub_process_port_interrupt(usb_hub_info_t *hub, size_t port);
    81 int usb_hub_clear_port_feature(
     81void usb_hub_port_process_interrupt(usb_hub_info_t *hub, size_t port);
     82int usb_hub_port_clear_feature(
    8283    usb_hub_port_t *port, usb_hub_class_feature_t feature);
    83 int usb_hub_set_port_feature(
     84int usb_hub_port_set_feature(
    8485    usb_hub_port_t *port, usb_hub_class_feature_t feature);
    8586
Note: See TracChangeset for help on using the changeset viewer.