Changeset b9e3aa3 in mainline for uspace/drv/usbhub/usbhub.h
- Timestamp:
- 2011-05-30T14:13:53Z (14 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.h
r2002595 rb9e3aa3 51 51 #include "ports.h" 52 52 53 54 55 53 /** Information about attached hub. */ 56 struct usb_hub_info_t {54 struct usb_hub_info_t { 57 55 /** Number of ports. */ 58 56 size_t port_count; … … 60 58 /** attached device handles, for each port one */ 61 59 usb_hub_port_t *ports; 60 61 fibril_mutex_t port_mutex; 62 62 63 63 /** connection to hcd */ … … 89 89 /** generic usb device data*/ 90 90 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 91 104 }; 92 105 93 //int usb_hub_control_loop(void * hub_info_param); 94 95 int usb_hub_add_device(usb_device_t * usb_dev); 106 int usb_hub_add_device(usb_device_t *usb_dev); 96 107 97 108 bool hub_port_changes_callback(usb_device_t *dev,
Note:
See TracChangeset
for help on using the changeset viewer.