Changeset 317a463 in mainline
- Timestamp:
- 2011-11-25T15:11:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56bdd9a4
- Parents:
- fb48a0e
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/usbmid.c
rfb48a0e r317a463 45 45 46 46 /** Callback for DDF USB interface. */ 47 static int usb_iface_get_interface_impl(ddf_fun_t *fun, devman_handle_t handle, 48 int *iface_no) 47 static int usb_iface_get_interface_impl(ddf_fun_t *fun, int *iface_no) 49 48 { 50 49 assert(fun); … … 64 63 .get_hc_handle = usb_iface_get_hc_handle_device_impl, 65 64 .get_my_address = usb_iface_get_my_address_forward_impl, 66 .get_ interface = usb_iface_get_interface_impl,65 .get_my_interface = usb_iface_get_interface_impl, 67 66 }; 68 67 -
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); -
uspace/lib/drv/include/usb_iface.h
rfb48a0e r317a463 74 74 * - EOK - operation okay, first parameter contains interface number 75 75 */ 76 IPC_M_USB_GET_ INTERFACE,76 IPC_M_USB_GET_MY_INTERFACE, 77 77 78 78 /** Tell devman handle of device host controller. … … 91 91 typedef struct { 92 92 int (*get_my_address)(ddf_fun_t *, usb_address_t *); 93 int (*get_ interface)(ddf_fun_t *, devman_handle_t, int *);93 int (*get_my_interface)(ddf_fun_t *, int *); 94 94 int (*get_hc_handle)(ddf_fun_t *, devman_handle_t *); 95 95 } usb_iface_t; -
uspace/lib/usbdev/src/pipes.c
rfb48a0e r317a463 85 85 86 86 sysarg_t iface_no; 87 int rc = async_req_ 2_1(exch, DEV_IFACE_ID(USB_DEV_IFACE),88 IPC_M_USB_GET_ INTERFACE, device->handle, &iface_no);87 int rc = async_req_1_1(exch, DEV_IFACE_ID(USB_DEV_IFACE), 88 IPC_M_USB_GET_MY_INTERFACE, &iface_no); 89 89 90 90 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.