Changeset 13101d06 in mainline
- Timestamp:
- 2011-01-15T11:22:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0950397a
- Parents:
- ff8ed06
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/devices.c
rff8ed06 r13101d06 138 138 } else { 139 139 async_wait_for(req, &answer_rc); 140 transaction->actual_len = IPC_GET_ARG1(answer_data); 140 141 rc = (int)answer_rc; 141 142 } -
uspace/drv/vhc/hc.c
rff8ed06 r13101d06 96 96 usb_str_transaction_outcome(outcome)); 97 97 98 transaction->callback(transaction->buffer, transaction-> len, outcome,99 transaction->callback_arg);98 transaction->callback(transaction->buffer, transaction->actual_len, 99 outcome, transaction->callback_arg); 100 100 } 101 101 … … 169 169 transaction->buffer = buffer; 170 170 transaction->len = len; 171 transaction->actual_len = len; 171 172 transaction->callback = callback; 172 173 transaction->callback_arg = arg; -
uspace/drv/vhc/hc.h
rff8ed06 r13101d06 65 65 /** Transaction data length. */ 66 66 size_t len; 67 /** Data length actually transfered. */ 68 size_t actual_len; 67 69 /** Callback after transaction is done. */ 68 70 hc_transaction_done_callback_t callback; -
uspace/lib/usbvirt/src/callback.c
rff8ed06 r13101d06 160 160 return; 161 161 } 162 async_data_read_finalize(callid, buffer, receive_len); 163 } 164 165 ipc_answer_0(iid, rc); 162 if (len > receive_len) { 163 len = receive_len; 164 } 165 async_data_read_finalize(callid, buffer, len); 166 } 167 168 ipc_answer_1(iid, rc, len); 166 169 } 167 170
Note:
See TracChangeset
for help on using the changeset viewer.