Changeset da2f1c9e in mainline
- Timestamp:
- 2011-12-14T22:17:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e3742f9
- Parents:
- 66ee26a
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/hc.h
r66ee26a rda2f1c9e 80 80 const ddf_dev_t *); 81 81 82 void usb_hc_connection_deinitialize(usb_hc_connection_t *); 83 82 84 int usb_hc_connection_open(usb_hc_connection_t *); 83 85 int usb_hc_connection_close(usb_hc_connection_t *); -
uspace/lib/usb/src/hc.c
r66ee26a rda2f1c9e 126 126 } 127 127 /*----------------------------------------------------------------------------*/ 128 void usb_hc_connection_deinitialize(usb_hc_connection_t *connection) 129 { 130 assert(connection); 131 fibril_mutex_lock(&connection->guard); 132 if (connection->ref_count != 0) { 133 usb_log_warning("%u stale reference(s) to HC connection.\n", 134 connection->ref_count); 135 assert(connection->hc_sess); 136 async_hangup(connection->hc_sess); 137 connection->hc_sess = NULL; 138 connection->ref_count = 0; 139 } 140 fibril_mutex_unlock(&connection->guard); 141 } 142 /*----------------------------------------------------------------------------*/ 128 143 /** Open connection to host controller. 129 144 *
Note:
See TracChangeset
for help on using the changeset viewer.