Changeset 7977fa1 in mainline
- Timestamp:
- 2011-01-25T19:16:03Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89a0485a
- Parents:
- d5f7a8ab
- Location:
- uspace/drv/uhci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci/uhci.c
rd5f7a8ab r7977fa1 10 10 11 11 static int init_tranfer_lists(transfer_list_t list[]); 12 13 //static int init_transfer(); 12 14 13 15 int uhci_init(device_t *device, void *regs) … … 80 82 usb_str_transfer_type(transfer_type), 81 83 size); 84 82 85 if (size >= 1024) 83 86 return ENOTSUP; … … 104 107 CHECK_RET_FREE_JOB(ret, "Failed to allocate tranfer descriptor.\n"); 105 108 106 transfer_descriptor_init(td, 3, size, false, target, USB_PID_IN); 109 ret = transfer_descriptor_init(td, 3, size, false, target, USB_PID_IN); 110 if (ret != EOK) { 111 uhci_print_error("Failed to initialize transfer descriptor.\n"); 112 trans_free(td); 113 trans_free(job); 114 return ret; 115 } 116 td->callback = job; 107 117 108 118 -
uspace/drv/uhci/uhci_struct/transfer_descriptor.h
rd5f7a8ab r7977fa1 38 38 #include <usb/usb.h> 39 39 40 #include "translating_malloc.h" 40 41 #include "callback.h" 41 42 #include "link_pointer.h" … … 120 121 } 121 122 123 static inline void transfer_descriptor_append( 124 transfer_descriptor_t *instance, transfer_descriptor_t *item) 125 { 126 assert(instance); 127 instance->next_va = item; 128 instance->next = (uintptr_t)addr_to_phys( item ) & LINK_POINTER_ADDRESS_MASK; 129 } 130 122 131 #endif 123 132 /**
Note:
See TracChangeset
for help on using the changeset viewer.