Changes in uspace/drv/usbhub/usbhub.h [6ab7f3e9:7d521e24] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.h
r6ab7f3e9 r7d521e24 51 51 #include "ports.h" 52 52 53 54 53 55 /** Information about attached hub. */ 54 struct usb_hub_info_t 56 struct usb_hub_info_t{ 55 57 /** Number of ports. */ 56 58 size_t port_count; … … 58 60 /** attached device handles, for each port one */ 59 61 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 shooting93 * ourselves in the foot.94 * When the hub is disconnected but we are in the middle of some95 * operation, we cannot destroy this structure right away because96 * 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 104 91 }; 105 92 106 int usb_hub_add_device(usb_device_t *usb_dev); 93 //int usb_hub_control_loop(void * hub_info_param); 94 95 int usb_hub_add_device(usb_device_t * usb_dev); 107 96 108 97 bool hub_port_changes_callback(usb_device_t *dev,
Note:
See TracChangeset
for help on using the changeset viewer.