Changeset 8e423a2d in mainline for uspace/lib/drv/generic/remote_usbhc.c
- Timestamp:
- 2010-11-26T21:51:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef75332
- Parents:
- da55d5b (diff), 08f747e (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_usbhc.c
rda55d5b r8e423a2d 42 42 #define USB_MAX_PAYLOAD_SIZE 1020 43 43 44 static void remote_usbhc_get_address(device_t *, void *, ipc_callid_t, ipc_call_t *); 44 45 static void remote_usbhc_get_buffer(device_t *, void *, ipc_callid_t, ipc_call_t *); 45 46 static void remote_usbhc_interrupt_out(device_t *, void *, ipc_callid_t, ipc_call_t *); … … 49 50 /** Remote USB interface operations. */ 50 51 static remote_iface_func_ptr_t remote_usbhc_iface_ops [] = { 51 &remote_usbhc_get_buffer, 52 &remote_usbhc_interrupt_out, 53 &remote_usbhc_interrupt_in 52 remote_usbhc_get_address, 53 remote_usbhc_get_buffer, 54 remote_usbhc_interrupt_out, 55 remote_usbhc_interrupt_in 54 56 }; 55 57 … … 68 70 } async_transaction_t; 69 71 72 void remote_usbhc_get_address(device_t *device, void *iface, 73 ipc_callid_t callid, ipc_call_t *call) 74 { 75 usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface; 76 77 if (!usb_iface->tell_address) { 78 ipc_answer_0(callid, ENOTSUP); 79 return; 80 } 81 82 devman_handle_t handle = IPC_GET_ARG1(*call); 83 84 usb_address_t address; 85 int rc = usb_iface->tell_address(device, handle, &address); 86 if (rc != EOK) { 87 ipc_answer_0(callid, rc); 88 } else { 89 ipc_answer_1(callid, EOK, address); 90 } 91 } 70 92 71 93 void remote_usbhc_get_buffer(device_t *device, void *iface,
Note:
See TracChangeset
for help on using the changeset viewer.