Changes in uspace/lib/drv/generic/remote_usb.c [95120c3:27ed734c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usb.c
r95120c3 r27ed734c 37 37 38 38 #include "usb_iface.h" 39 #include "d river.h"39 #include "ddf/driver.h" 40 40 41 41 42 static void remote_usb_get_ address(device_t *, void *, ipc_callid_t, ipc_call_t *);43 static void remote_usb_get_interface(d evice_t *, void *, ipc_callid_t, ipc_call_t *);44 static void remote_usb_get_hc_handle(d evice_t *, void *, ipc_callid_t, ipc_call_t *);42 static void remote_usb_get_my_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 43 static void remote_usb_get_interface(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 44 static void remote_usb_get_hc_handle(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 45 45 //static void remote_usb(device_t *, void *, ipc_callid_t, ipc_call_t *); 46 46 47 47 /** Remote USB interface operations. */ 48 48 static remote_iface_func_ptr_t remote_usb_iface_ops [] = { 49 remote_usb_get_address,50 remote_usb_get_interface,51 remote_usb_get_hc_handle49 [IPC_M_USB_GET_MY_ADDRESS] = remote_usb_get_my_address, 50 [IPC_M_USB_GET_INTERFACE] = remote_usb_get_interface, 51 [IPC_M_USB_GET_HOST_CONTROLLER_HANDLE] = remote_usb_get_hc_handle, 52 52 }; 53 53 … … 61 61 62 62 63 void remote_usb_get_ address(device_t *device, void *iface,63 void remote_usb_get_my_address(ddf_fun_t *fun, void *iface, 64 64 ipc_callid_t callid, ipc_call_t *call) 65 65 { 66 66 usb_iface_t *usb_iface = (usb_iface_t *) iface; 67 67 68 if (usb_iface->get_ address == NULL) {68 if (usb_iface->get_my_address == NULL) { 69 69 async_answer_0(callid, ENOTSUP); 70 70 return; 71 71 } 72 72 73 devman_handle_t handle = DEV_IPC_GET_ARG1(*call);74 75 73 usb_address_t address; 76 int rc = usb_iface->get_ address(device, handle, &address);74 int rc = usb_iface->get_my_address(fun, &address); 77 75 if (rc != EOK) { 78 76 async_answer_0(callid, rc); … … 82 80 } 83 81 84 void remote_usb_get_interface(d evice_t *device, void *iface,82 void remote_usb_get_interface(ddf_fun_t *fun, void *iface, 85 83 ipc_callid_t callid, ipc_call_t *call) 86 84 { … … 95 93 96 94 int iface_no; 97 int rc = usb_iface->get_interface( device, handle, &iface_no);95 int rc = usb_iface->get_interface(fun, handle, &iface_no); 98 96 if (rc != EOK) { 99 97 async_answer_0(callid, rc); … … 103 101 } 104 102 105 void remote_usb_get_hc_handle(d evice_t *device, void *iface,103 void remote_usb_get_hc_handle(ddf_fun_t *fun, void *iface, 106 104 ipc_callid_t callid, ipc_call_t *call) 107 105 { … … 114 112 115 113 devman_handle_t handle; 116 int rc = usb_iface->get_hc_handle( device, &handle);114 int rc = usb_iface->get_hc_handle(fun, &handle); 117 115 if (rc != EOK) { 118 116 async_answer_0(callid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.