Changeset 317a463 in mainline for uspace/lib/drv/generic/remote_usb.c
- Timestamp:
- 2011-11-25T15:11:22Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56bdd9a4
- Parents:
- fb48a0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usb.c
rfb48a0e r317a463 41 41 42 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 *);43 static void remote_usb_get_my_interface(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 44 44 static void remote_usb_get_hc_handle(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); 45 //static void remote_usb(device_t *, void *, ipc_callid_t, ipc_call_t *);46 45 47 46 /** Remote USB interface operations. */ 48 47 static remote_iface_func_ptr_t remote_usb_iface_ops [] = { 49 48 [IPC_M_USB_GET_MY_ADDRESS] = remote_usb_get_my_address, 50 [IPC_M_USB_GET_ INTERFACE] = remote_usb_get_interface,49 [IPC_M_USB_GET_MY_INTERFACE] = remote_usb_get_my_interface, 51 50 [IPC_M_USB_GET_HOST_CONTROLLER_HANDLE] = remote_usb_get_hc_handle, 52 51 }; … … 80 79 } 81 80 82 void remote_usb_get_ interface(ddf_fun_t *fun, void *iface,81 void remote_usb_get_my_interface(ddf_fun_t *fun, void *iface, 83 82 ipc_callid_t callid, ipc_call_t *call) 84 83 { 85 84 usb_iface_t *usb_iface = (usb_iface_t *) iface; 86 85 87 if (usb_iface->get_ interface == NULL) {86 if (usb_iface->get_my_interface == NULL) { 88 87 async_answer_0(callid, ENOTSUP); 89 88 return; 90 89 } 91 90 92 devman_handle_t handle = DEV_IPC_GET_ARG1(*call);93 94 91 int iface_no; 95 int rc = usb_iface->get_ interface(fun, handle, &iface_no);92 int rc = usb_iface->get_my_interface(fun, &iface_no); 96 93 if (rc != EOK) { 97 94 async_answer_0(callid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.