Changeset 3be9d10 in mainline for uspace/lib/drv/generic/remote_usbhc.c
- Timestamp:
- 2018-03-21T21:29:31Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e242d2
- Parents:
- eadaeae8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
readaeae8 r3be9d10 227 227 } 228 228 229 static void remote_usbhc_default_address_reservation(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);230 static void remote_usbhc_device_enumerate(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);231 static void remote_usbhc_device_remove(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);232 static void remote_usbhc_register_endpoint(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);233 static void remote_usbhc_unregister_endpoint(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);234 static void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call);229 static void remote_usbhc_default_address_reservation(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 230 static void remote_usbhc_device_enumerate(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 231 static void remote_usbhc_device_remove(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 232 static void remote_usbhc_register_endpoint(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 233 static void remote_usbhc_unregister_endpoint(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 234 static void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call); 235 235 236 236 /** Remote USB interface operations. */ … … 252 252 253 253 typedef struct { 254 ipc_callid_t caller;254 cap_call_handle_t caller; 255 255 usbhc_iface_transfer_request_t request; 256 256 } async_transaction_t; 257 257 258 258 void remote_usbhc_default_address_reservation(ddf_fun_t *fun, void *iface, 259 ipc_callid_t callid, ipc_call_t *call)259 cap_call_handle_t callid, ipc_call_t *call) 260 260 { 261 261 const usbhc_iface_t *usbhc_iface = (usbhc_iface_t *) iface; … … 273 273 274 274 static void remote_usbhc_device_enumerate(ddf_fun_t *fun, void *iface, 275 ipc_callid_t callid, ipc_call_t *call)275 cap_call_handle_t callid, ipc_call_t *call) 276 276 { 277 277 const usbhc_iface_t *usbhc_iface = (usbhc_iface_t *) iface; … … 289 289 290 290 static void remote_usbhc_device_remove(ddf_fun_t *fun, void *iface, 291 ipc_callid_t callid, ipc_call_t *call)291 cap_call_handle_t callid, ipc_call_t *call) 292 292 { 293 293 const usbhc_iface_t *usbhc_iface = (usbhc_iface_t *) iface; … … 304 304 305 305 static void remote_usbhc_register_endpoint(ddf_fun_t *fun, void *iface, 306 ipc_callid_t callid, ipc_call_t *call)306 cap_call_handle_t callid, ipc_call_t *call) 307 307 { 308 308 assert(fun); … … 318 318 319 319 usb_endpoint_descriptors_t ep_desc; 320 ipc_callid_t data_callid;320 cap_call_handle_t data_callid; 321 321 size_t len; 322 322 … … 341 341 342 342 static void remote_usbhc_unregister_endpoint(ddf_fun_t *fun, void *iface, 343 ipc_callid_t callid, ipc_call_t *call)343 cap_call_handle_t callid, ipc_call_t *call) 344 344 { 345 345 assert(fun); … … 355 355 356 356 usb_pipe_desc_t pipe_desc; 357 ipc_callid_t data_callid;357 cap_call_handle_t data_callid; 358 358 size_t len; 359 359 … … 381 381 } 382 382 383 static async_transaction_t *async_transaction_create( ipc_callid_t caller)383 static async_transaction_t *async_transaction_create(cap_call_handle_t caller) 384 384 { 385 385 async_transaction_t *trans = calloc(1, sizeof(async_transaction_t)); … … 410 410 411 411 errno_t err; 412 ipc_callid_t data_callid;412 cap_call_handle_t data_callid; 413 413 size_t size; 414 414 unsigned flags; … … 445 445 } 446 446 447 void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)447 void remote_usbhc_transfer(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 448 448 { 449 449 assert(fun); … … 466 466 errno_t err = EPARTY; 467 467 468 ipc_callid_t data_callid;468 cap_call_handle_t data_callid; 469 469 size_t len; 470 470 if (!async_data_write_receive(&data_callid, &len)
Note:
See TracChangeset
for help on using the changeset viewer.