Changeset c6f82e5 in mainline for uspace/drv/bus/usb/uhci/transfer_list.c
- Timestamp:
- 2018-01-19T20:56:14Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ec7b7e
- Parents:
- 69b2dfee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/transfer_list.c
r69b2dfee rc6f82e5 41 41 #include <usb/host/usb_transfer_batch.h> 42 42 #include <usb/host/utils/malloc32.h> 43 #include <usb/host/utility.h> 43 44 44 45 #include "hw_struct/link_pointer.h" 45 46 #include "transfer_list.h" 47 #include "hc.h" 46 48 47 49 /** Initialize transfer list structures. … … 155 157 } 156 158 159 /** 160 * Reset toggle on endpoint callback. 161 */ 162 static void uhci_reset_toggle(endpoint_t *ep) 163 { 164 uhci_endpoint_t *uhci_ep = (uhci_endpoint_t *) ep; 165 uhci_ep->toggle = 0; 166 } 167 157 168 /** Add completed batches to the provided list. 158 169 * … … 176 187 fibril_mutex_lock(&batch->base.ep->guard); 177 188 assert(batch->base.ep->active_batch == &batch->base); 189 hc_reset_toggles(&batch->base, &uhci_reset_toggle); 178 190 endpoint_deactivate_locked(batch->base.ep); 179 191 transfer_list_remove_batch(instance, batch);
Note:
See TracChangeset
for help on using the changeset viewer.