Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/usbhub.h

    r6ab7f3e9 r7d521e24  
    5151#include "ports.h"
    5252
     53
     54
    5355/** Information about attached hub. */
    54 struct usb_hub_info_t {
     56struct usb_hub_info_t{
    5557        /** Number of ports. */
    5658        size_t port_count;
     
    5860        /** attached device handles, for each port one */
    5961        usb_hub_port_t *ports;
    60 
    61         fibril_mutex_t port_mutex;
    6262
    6363        /** connection to hcd */
     
    8989        /** generic usb device data*/
    9090        usb_device_t * usb_device;
    91 
    92         /** Number of pending operations on the mutex to prevent shooting
    93          * ourselves in the foot.
    94          * When the hub is disconnected but we are in the middle of some
    95          * operation, we cannot destroy this structure right away because
    96          * the pending operation might use it.
    97          */
    98         size_t pending_ops_count;
    99         /** Guard for pending_ops_count. */
    100         fibril_mutex_t pending_ops_mutex;
    101         /** Condition variable for pending_ops_count. */
    102         fibril_condvar_t pending_ops_cv;
    103 
    10491};
    10592
    106 int usb_hub_add_device(usb_device_t *usb_dev);
     93//int usb_hub_control_loop(void * hub_info_param);
     94
     95int usb_hub_add_device(usb_device_t * usb_dev);
    10796
    10897bool hub_port_changes_callback(usb_device_t *dev,
Note: See TracChangeset for help on using the changeset viewer.