Changeset a498728 in mainline for uspace/lib/usb/hcd.c
- Timestamp:
- 2010-10-22T14:54:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 954ea70
- Parents:
- b791e3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/hcd.c
rb791e3e ra498728 314 314 usb_transaction_handle_t *handle) 315 315 { 316 usb_transaction_handle_t h; 317 int rc = ipc_call_sync_2_1(hcd_phone, 318 IPC_M_USB_HCD_CONTROL_WRITE_STATUS, 319 target.address, target.endpoint, 320 &h); 321 if (rc != EOK) { 322 return rc; 323 } 324 325 if (handle != NULL) { 326 *handle = h; 327 } 328 329 return rc; 316 return prep_receive_data(hcd_phone, IPC_M_USB_HCD_CONTROL_WRITE_STATUS, 317 target, 0, handle); 330 318 } 331 319 … … 345 333 usb_transaction_handle_t *handle) 346 334 { 347 usb_transaction_handle_t h; 348 int rc = ipc_call_sync_2_1(hcd_phone, 349 IPC_M_USB_HCD_CONTROL_READ_STATUS, 350 target.address, target.endpoint, 351 &h); 352 if (rc != EOK) { 353 return rc; 354 } 355 356 if (handle != NULL) { 357 *handle = h; 358 } 359 360 return rc; 335 return send_buffer(hcd_phone, IPC_M_USB_HCD_CONTROL_READ_STATUS, 336 target, NULL, 0, handle); 361 337 } 362 338
Note:
See TracChangeset
for help on using the changeset viewer.