Ignore:
Timestamp:
2010-12-04T17:54:34Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35537a7
Parents:
54b141a (diff), 9ca0013 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with vojtechhorky/

File:
1 edited

Legend:

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

    r54b141a re28d228  
    5555static void remote_usbhc_release_default_address(device_t *, void *, ipc_callid_t, ipc_call_t *);
    5656static void remote_usbhc_request_address(device_t *, void *, ipc_callid_t, ipc_call_t *);
     57static void remote_usbhc_bind_address(device_t *, void *, ipc_callid_t, ipc_call_t *);
    5758static void remote_usbhc_release_address(device_t *, void *, ipc_callid_t, ipc_call_t *);
    5859//static void remote_usbhc(device_t *, void *, ipc_callid_t, ipc_call_t *);
     
    6869
    6970        remote_usbhc_request_address,
     71        remote_usbhc_bind_address,
    7072        remote_usbhc_release_address,
    7173
     
    197199                ipc_answer_1(callid, EOK, (ipcarg_t) address);
    198200        }
     201}
     202
     203void remote_usbhc_bind_address(device_t *device, void *iface,
     204    ipc_callid_t callid, ipc_call_t *call)
     205{
     206        usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;
     207
     208        if (!usb_iface->bind_address) {
     209                ipc_answer_0(callid, ENOTSUP);
     210                return;
     211        }
     212
     213        usb_address_t address = (usb_address_t) IPC_GET_ARG1(*call);
     214        devman_handle_t handle = (devman_handle_t) IPC_GET_ARG2(*call);
     215
     216        int rc = usb_iface->bind_address(device, address, handle);
     217
     218        ipc_answer_0(callid, rc);
    199219}
    200220
Note: See TracChangeset for help on using the changeset viewer.