Changeset c2245a3 in mainline for uspace/lib/drv/generic/remote_usb.c
- Timestamp:
- 2011-11-10T20:03:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa76f81
- Parents:
- 27ca3a3 (diff), 747ef72 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usb.c
r27ca3a3 rc2245a3 40 40 41 41 42 static void remote_usb_get_ address(ddf_fun_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 43 static void remote_usb_get_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 *); … … 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(ddf_fun_t *fun, 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(fun, handle, &address);74 int rc = usb_iface->get_my_address(fun, &address); 77 75 if (rc != EOK) { 78 76 async_answer_0(callid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.