Changeset a498728 in mainline


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

Location:
uspace/lib/usb
Files:
2 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
  • uspace/lib/usb/hcd.h

    rb791e3e ra498728  
    185185        IPC_M_USB_HCD_CONTROLLER_FAILURE,
    186186       
    187        
    188         IPC_M_USB_HCD_INTERRUPT_OUT_DONE,
    189         IPC_M_USB_HCD_INTERRUPT_IN_DONE,
    190        
    191         IPC_M_USB_HCD_CONTROL_WRITE_SETUP_DONE,
    192         IPC_M_USB_HCD_CONTROL_WRITE_DATA_DONE,
    193         IPC_M_USB_HCD_CONTROL_WRITE_STATUS_DONE,
    194        
    195         IPC_M_USB_HCD_CONTROL_READ_SETUP_DONE,
    196         IPC_M_USB_HCD_CONTROL_READ_DATA_DONE,
    197         IPC_M_USB_HCD_CONTROL_READ_STATUS_DONE,
    198        
    199187        /* IPC_M_USB_HCD_ */
    200188} usb_hcd_callback_method_t;
Note: See TracChangeset for help on using the changeset viewer.