Changeset c4e84ed6 in mainline for uspace/drv/bus/usb/usbhub/usbhub.h
- Timestamp:
- 2018-01-16T03:45:38Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c952abc4
- Parents:
- d2c3dcd
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-15 20:49:15)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-16 03:45:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhub/usbhub.h
rd2c3dcd rc4e84ed6 50 50 51 51 #include "port.h" 52 #include "status.h" 52 53 53 54 /** Information about attached hub. */ … … 61 62 /** Data polling handle. */ 62 63 usb_polling_t polling; 63 /** Number of pending operations on the mutex to prevent shooting64 * ourselves in the foot.65 * When the hub is disconnected but we are in the middle of some66 * operation, we cannot destroy this structure right away because67 * the pending operation might use it.68 */69 size_t pending_ops_count;70 /** Guard for pending_ops_count. */71 fibril_mutex_t pending_ops_mutex;72 /** Condition variable for pending_ops_count. */73 fibril_condvar_t pending_ops_cv;74 64 /** Pointer to usbhub function. */ 75 65 ddf_fun_t *hub_fun; 76 /** Status indicator*/77 volatile bool running;66 /** Device communication pipe. */ 67 usb_pipe_t *control_pipe; 78 68 /** Hub supports port power switching. */ 79 69 bool power_switched; … … 84 74 extern const usb_endpoint_description_t hub_status_change_endpoint_description; 85 75 86 externint usb_hub_device_add(usb_device_t *);87 externint usb_hub_device_remove(usb_device_t *);88 externint usb_hub_device_gone(usb_device_t *);76 int usb_hub_device_add(usb_device_t *); 77 int usb_hub_device_remove(usb_device_t *); 78 int usb_hub_device_gone(usb_device_t *); 89 79 90 extern bool hub_port_changes_callback(usb_device_t *, uint8_t *, size_t, 91 void *); 80 int usb_hub_get_port_status(const usb_hub_dev_t *, size_t, usb_port_status_t *); 81 int usb_hub_set_port_feature(const usb_hub_dev_t *, size_t, usb_hub_class_feature_t); 82 int usb_hub_clear_port_feature(const usb_hub_dev_t *, size_t, usb_hub_class_feature_t); 83 84 bool hub_port_changes_callback(usb_device_t *, uint8_t *, size_t, void *); 92 85 93 86 #endif
Note:
See TracChangeset
for help on using the changeset viewer.