Changes in uspace/lib/drv/generic/remote_usb.c [27ed734c:95120c3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usb.c
r27ed734c r95120c3 37 37 38 38 #include "usb_iface.h" 39 #include "d df/driver.h"39 #include "driver.h" 40 40 41 41 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(d df_fun_t *, void *, ipc_callid_t, ipc_call_t *);44 static void remote_usb_get_hc_handle(d df_fun_t *, void *, ipc_callid_t, ipc_call_t *);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 *); 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 [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,49 remote_usb_get_address, 50 remote_usb_get_interface, 51 remote_usb_get_hc_handle 52 52 }; 53 53 … … 61 61 62 62 63 void remote_usb_get_ my_address(ddf_fun_t *fun, void *iface,63 void remote_usb_get_address(device_t *device, 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_ my_address == NULL) {68 if (usb_iface->get_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 73 75 usb_address_t address; 74 int rc = usb_iface->get_ my_address(fun, &address);76 int rc = usb_iface->get_address(device, handle, &address); 75 77 if (rc != EOK) { 76 78 async_answer_0(callid, rc); … … 80 82 } 81 83 82 void remote_usb_get_interface(d df_fun_t *fun, void *iface,84 void remote_usb_get_interface(device_t *device, void *iface, 83 85 ipc_callid_t callid, ipc_call_t *call) 84 86 { … … 93 95 94 96 int iface_no; 95 int rc = usb_iface->get_interface( fun, handle, &iface_no);97 int rc = usb_iface->get_interface(device, handle, &iface_no); 96 98 if (rc != EOK) { 97 99 async_answer_0(callid, rc); … … 101 103 } 102 104 103 void remote_usb_get_hc_handle(d df_fun_t *fun, void *iface,105 void remote_usb_get_hc_handle(device_t *device, void *iface, 104 106 ipc_callid_t callid, ipc_call_t *call) 105 107 { … … 112 114 113 115 devman_handle_t handle; 114 int rc = usb_iface->get_hc_handle( fun, &handle);116 int rc = usb_iface->get_hc_handle(device, &handle); 115 117 if (rc != EOK) { 116 118 async_answer_0(callid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.