Changeset 6bba41d in mainline
- Timestamp:
- 2011-12-06T12:28:02Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad91b806
- Parents:
- 5cfcc64
- Location:
- uspace/drv/bus/usb/uhci
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
r5cfcc64 r6bba41d 130 130 uhci_transfer_batch_t *batch = 131 131 uhci_transfer_batch_from_link(item); 132 uhci_transfer_batch_ call_dispose(batch);132 uhci_transfer_batch_finish_dispose(batch); 133 133 } 134 134 } -
uspace/drv/bus/usb/uhci/transfer_list.c
r5cfcc64 r6bba41d 184 184 uhci_transfer_batch_from_link(current); 185 185 transfer_list_remove_batch(instance, batch); 186 batch->usb_batch->error = EINTR; 187 uhci_transfer_batch_call_dispose(batch); 186 uhci_transfer_batch_abort(batch); 188 187 } 189 188 fibril_mutex_unlock(&instance->guard); -
uspace/drv/bus/usb/uhci/uhci_batch.c
r5cfcc64 r6bba41d 59 59 * @param[in] uhci_batch Instance to destroy. 60 60 */ 61 void uhci_transfer_batch_ call_dispose(uhci_transfer_batch_t *uhci_batch)61 void uhci_transfer_batch_finish_dispose(uhci_transfer_batch_t *uhci_batch) 62 62 { 63 63 assert(uhci_batch); -
uspace/drv/bus/usb/uhci/uhci_batch.h
r5cfcc64 r6bba41d 61 61 62 62 uhci_transfer_batch_t * uhci_transfer_batch_get(usb_transfer_batch_t *batch); 63 void uhci_transfer_batch_ call_dispose(uhci_transfer_batch_t *uhci_batch);63 void uhci_transfer_batch_finish_dispose(uhci_transfer_batch_t *uhci_batch); 64 64 bool uhci_transfer_batch_is_complete(uhci_transfer_batch_t *uhci_batch); 65 65 … … 82 82 } 83 83 /*----------------------------------------------------------------------------*/ 84 static inline void uhci_transfer_batch_abort( 85 uhci_transfer_batch_t *uhci_batch) 86 { 87 assert(uhci_batch); 88 assert(uhci_batch->usb_batch); 89 uhci_batch->usb_batch->error = EINTR; 90 uhci_batch->usb_batch->transfered_size = 0; 91 uhci_transfer_batch_finish_dispose(uhci_batch); 92 } 93 /*----------------------------------------------------------------------------*/ 84 94 static inline uhci_transfer_batch_t *uhci_transfer_batch_from_link(link_t *l) 85 95 {
Note:
See TracChangeset
for help on using the changeset viewer.