Changes in uspace/drv/uhci-hcd/transfer_list.c [d736fe38:4125b7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/transfer_list.c
rd736fe38 r4125b7d 34 34 #include <errno.h> 35 35 #include <usb/debug.h> 36 #include <arch/barrier.h>37 36 38 37 #include "transfer_list.h" … … 72 71 * @param[in] instance Memory place to use. 73 72 * 74 * Frees memory of theinternal qh_t structure.73 * Frees memory for internal qh_t structure. 75 74 */ 76 75 void transfer_list_fini(transfer_list_t *instance) … … 127 126 assert((pa & LINK_POINTER_ADDRESS_MASK) == pa); 128 127 129 /* Make sure all data in the batch are written */130 write_barrier();131 132 128 /* keep link */ 133 129 batch_qh(batch)->next = last_qh->next; 134 130 qh_set_next_qh(last_qh, batch_qh(batch)); 135 131 136 /* Make sure the pointer is updated */ 137 write_barrier(); 132 asm volatile ("": : :"memory"); 138 133 139 134 /* Add to the driver list */ … … 227 222 == addr_to_phys(batch_qh(batch))); 228 223 prev_qh->next = batch_qh(batch)->next; 229 230 /* Make sure the pointer is updated */ 231 write_barrier(); 232 224 asm volatile ("": : :"memory"); 233 225 /* Remove from the batch list */ 234 226 list_remove(&batch->link);
Note:
See TracChangeset
for help on using the changeset viewer.