Changeset a498728 in mainline for uspace/lib/usb/hcd.c


Ignore:
Timestamp:
2010-10-22T14:54:44Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
954ea70
Parents:
b791e3e
Message:

Update of libusb/HC methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/hcd.c

    rb791e3e ra498728  
    314314    usb_transaction_handle_t *handle)
    315315{
    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);
    330318}
    331319
     
    345333    usb_transaction_handle_t *handle)
    346334{
    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);
    361337}
    362338
Note: See TracChangeset for help on using the changeset viewer.