Changeset 3b5d1535 in mainline for uspace/lib/drv/generic/remote_usb.c


Ignore:
Timestamp:
2011-02-23T10:28:21Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb48f61
Parents:
e936e8e (diff), eb1a2f4 (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 mainline changes

File:
1 edited

Legend:

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

    re936e8e r3b5d1535  
    3737
    3838#include "usb_iface.h"
    39 #include "driver.h"
     39#include "ddf/driver.h"
    4040
    4141
    42 static void remote_usb_get_address(device_t *, void *, ipc_callid_t, ipc_call_t *);
    43 static void remote_usb_get_interface(device_t *, void *, ipc_callid_t, ipc_call_t *);
    44 static void remote_usb_get_hc_handle(device_t *, void *, ipc_callid_t, ipc_call_t *);
     42static void remote_usb_get_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     43static void remote_usb_get_interface(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     44static void remote_usb_get_hc_handle(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    4545//static void remote_usb(device_t *, void *, ipc_callid_t, ipc_call_t *);
    4646
     
    6161
    6262
    63 void remote_usb_get_address(device_t *device, void *iface,
     63void remote_usb_get_address(ddf_fun_t *fun, void *iface,
    6464    ipc_callid_t callid, ipc_call_t *call)
    6565{
     
    7474
    7575        usb_address_t address;
    76         int rc = usb_iface->get_address(device, handle, &address);
     76        int rc = usb_iface->get_address(fun, handle, &address);
    7777        if (rc != EOK) {
    7878                async_answer_0(callid, rc);
     
    8282}
    8383
    84 void remote_usb_get_interface(device_t *device, void *iface,
     84void remote_usb_get_interface(ddf_fun_t *fun, void *iface,
    8585    ipc_callid_t callid, ipc_call_t *call)
    8686{
     
    9595
    9696        int iface_no;
    97         int rc = usb_iface->get_interface(device, handle, &iface_no);
     97        int rc = usb_iface->get_interface(fun, handle, &iface_no);
    9898        if (rc != EOK) {
    9999                async_answer_0(callid, rc);
     
    103103}
    104104
    105 void remote_usb_get_hc_handle(device_t *device, void *iface,
     105void remote_usb_get_hc_handle(ddf_fun_t *fun, void *iface,
    106106    ipc_callid_t callid, ipc_call_t *call)
    107107{
     
    114114
    115115        devman_handle_t handle;
    116         int rc = usb_iface->get_hc_handle(device, &handle);
     116        int rc = usb_iface->get_hc_handle(fun, &handle);
    117117        if (rc != EOK) {
    118118                async_answer_0(callid, rc);
Note: See TracChangeset for help on using the changeset viewer.