Changeset b9e3aa3 in mainline for uspace/drv/usbhub/usbhub.h


Ignore:
Timestamp:
2011-05-30T14:13:53Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3f9733
Parents:
2002595 (diff), 8357fc9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Development changes (a lot of stuff)

File:
1 edited

Legend:

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

    r2002595 rb9e3aa3  
    5151#include "ports.h"
    5252
    53 
    54 
    5553/** Information about attached hub. */
    56 struct usb_hub_info_t{
     54struct usb_hub_info_t {
    5755        /** Number of ports. */
    5856        size_t port_count;
     
    6058        /** attached device handles, for each port one */
    6159        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
    91104};
    92105
    93 //int usb_hub_control_loop(void * hub_info_param);
    94 
    95 int usb_hub_add_device(usb_device_t * usb_dev);
     106int usb_hub_add_device(usb_device_t *usb_dev);
    96107
    97108bool hub_port_changes_callback(usb_device_t *dev,
Note: See TracChangeset for help on using the changeset viewer.