Changeset 4046c1ea in mainline for uspace/drv/uhci/uhci_struct/transfer_descriptor.c
- Timestamp:
- 2011-01-29T00:14:07Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1431e8f
- Parents:
- b3258ad (diff), 44d8853 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/uhci_struct/transfer_descriptor.c
rb3258ad r4046c1ea 52 52 uhci_print_verbose("Creating device field: %x.\n", instance->device); 53 53 54 instance->buffer_ptr = (uintptr_t)addr_to_phys(buffer);55 56 uhci_print_verbose("Creating buffer field: %p(%p).\n",57 buffer, instance->buffer_ptr);58 59 54 char buffer_dump[BUFFER_LEN]; 60 55 buffer_to_str(buffer_dump, BUFFER_LEN, buffer, size); 61 56 uhci_print_verbose("Buffer dump (%zuB): %s.\n", size, buffer_dump); 62 57 58 if (size) { 59 instance->buffer_ptr = (uintptr_t)addr_to_phys(buffer); 60 61 uhci_print_verbose("Creating buffer field: %p(%p).\n", 62 buffer, instance->buffer_ptr); 63 } else { 64 instance->buffer_ptr = 0; 65 } 66 67 63 68 instance->next_va = NULL; 64 69 instance->callback = NULL; 70 uhci_print_info("Created a new TD.\n"); 65 71 } 66 72 … … 98 104 callback_run(instance->callback, 99 105 convert_outcome(instance->status), 100 instance->status >> TD_STATUS_ACTLEN_POS& TD_STATUS_ACTLEN_MASK106 ((instance->status >> TD_STATUS_ACTLEN_POS) + 1) & TD_STATUS_ACTLEN_MASK 101 107 ); 102 108 }
Note:
See TracChangeset
for help on using the changeset viewer.