Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usbhc.c

    reb2f7dd r46e078a  
    5252static void remote_usbhc_request_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    5353static void remote_usbhc_bind_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    54 static void remote_usbhc_find_by_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    5554static void remote_usbhc_release_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    5655static void remote_usbhc_register_endpoint(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     
    6261        remote_usbhc_request_address,
    6362        remote_usbhc_bind_address,
    64         remote_usbhc_find_by_address,
    6563        remote_usbhc_release_address,
    6664
     
    165163}
    166164
    167 void remote_usbhc_find_by_address(ddf_fun_t *fun, void *iface,
    168     ipc_callid_t callid, ipc_call_t *call)
    169 {
    170         usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;
    171 
    172         if (!usb_iface->find_by_address) {
    173                 async_answer_0(callid, ENOTSUP);
    174                 return;
    175         }
    176 
    177         usb_address_t address = (usb_address_t) DEV_IPC_GET_ARG1(*call);
    178         devman_handle_t handle;
    179         int rc = usb_iface->find_by_address(fun, address, &handle);
    180 
    181         if (rc == EOK) {
    182                 async_answer_1(callid, EOK, handle);
    183         } else {
    184                 async_answer_0(callid, rc);
    185         }
    186 }
    187 
    188165void remote_usbhc_release_address(ddf_fun_t *fun, void *iface,
    189166    ipc_callid_t callid, ipc_call_t *call)
     
    325302        async_transaction_t *trans = async_transaction_create(callid);
    326303        if (trans == NULL) {
    327                 async_answer_0(data_callid, ENOMEM);
    328304                async_answer_0(callid, ENOMEM);
    329305                return;
     
    338314
    339315        if (rc != EOK) {
    340                 async_answer_0(data_callid, rc);
    341316                async_answer_0(callid, rc);
    342317                async_transaction_destroy(trans);
     
    485460        async_transaction_t *trans = async_transaction_create(callid);
    486461        if (trans == NULL) {
    487                 async_answer_0(data_callid, ENOMEM);
    488462                async_answer_0(callid, ENOMEM);
    489463                free(setup_packet);
     
    495469        trans->buffer = malloc(data_len);
    496470        if (trans->buffer == NULL) {
    497                 async_answer_0(data_callid, ENOMEM);
    498471                async_answer_0(callid, ENOMEM);
    499472                async_transaction_destroy(trans);
     
    507480
    508481        if (rc != EOK) {
    509                 async_answer_0(data_callid, rc);
    510482                async_answer_0(callid, rc);
    511483                async_transaction_destroy(trans);
Note: See TracChangeset for help on using the changeset viewer.