Changeset 7977fa1 in mainline for uspace/drv/uhci/uhci.c
- 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
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.