Changes in uspace/drv/usbhub/usbhub.h [7d521e24:6ab7f3e9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.h
r7d521e24 r6ab7f3e9 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.