Changeset 357a302 in mainline for uspace/lib/drv/generic/remote_usbhc.c
- Timestamp:
- 2011-02-20T14:17:40Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b68b279
- Parents:
- 3ae93a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
r3ae93a8 r357a302 43 43 #define HACK_MAX_PACKET_SIZE_INTERRUPT_IN 4 44 44 45 static void remote_usbhc_get_address(device_t *, void *, ipc_callid_t, ipc_call_t *);46 45 static void remote_usbhc_interrupt_out(device_t *, void *, ipc_callid_t, ipc_call_t *); 47 46 static void remote_usbhc_interrupt_in(device_t *, void *, ipc_callid_t, ipc_call_t *); … … 59 58 /** Remote USB host controller interface operations. */ 60 59 static remote_iface_func_ptr_t remote_usbhc_iface_ops [] = { 61 remote_usbhc_get_address,62 63 60 remote_usbhc_reserve_default_address, 64 61 remote_usbhc_release_default_address, … … 124 121 125 122 return trans; 126 }127 128 void remote_usbhc_get_address(device_t *device, void *iface,129 ipc_callid_t callid, ipc_call_t *call)130 {131 usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface;132 133 if (!usb_iface->tell_address) {134 async_answer_0(callid, ENOTSUP);135 return;136 }137 138 devman_handle_t handle = DEV_IPC_GET_ARG1(*call);139 140 usb_address_t address;141 int rc = usb_iface->tell_address(device, handle, &address);142 if (rc != EOK) {143 async_answer_0(callid, rc);144 } else {145 async_answer_1(callid, EOK, address);146 }147 123 } 148 124
Note:
See TracChangeset
for help on using the changeset viewer.