Changeset e28d228 in mainline for uspace/lib/drv/generic/remote_usbhc.c
- Timestamp:
- 2010-12-04T17:54:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 35537a7
- Parents:
- 54b141a (diff), 9ca0013 (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
r54b141a re28d228 55 55 static void remote_usbhc_release_default_address(device_t *, void *, ipc_callid_t, ipc_call_t *); 56 56 static void remote_usbhc_request_address(device_t *, void *, ipc_callid_t, ipc_call_t *); 57 static void remote_usbhc_bind_address(device_t *, void *, ipc_callid_t, ipc_call_t *); 57 58 static void remote_usbhc_release_address(device_t *, void *, ipc_callid_t, ipc_call_t *); 58 59 //static void remote_usbhc(device_t *, void *, ipc_callid_t, ipc_call_t *); … … 68 69 69 70 remote_usbhc_request_address, 71 remote_usbhc_bind_address, 70 72 remote_usbhc_release_address, 71 73 … … 197 199 ipc_answer_1(callid, EOK, (ipcarg_t) address); 198 200 } 201 } 202 203 void remote_usbhc_bind_address(device_t *device, void *iface, 204 ipc_callid_t callid, ipc_call_t *call) 205 { 206 usbhc_iface_t *usb_iface = (usbhc_iface_t *) iface; 207 208 if (!usb_iface->bind_address) { 209 ipc_answer_0(callid, ENOTSUP); 210 return; 211 } 212 213 usb_address_t address = (usb_address_t) IPC_GET_ARG1(*call); 214 devman_handle_t handle = (devman_handle_t) IPC_GET_ARG2(*call); 215 216 int rc = usb_iface->bind_address(device, address, handle); 217 218 ipc_answer_0(callid, rc); 199 219 } 200 220
Note:
See TracChangeset
for help on using the changeset viewer.