Changeset a76b01b4 in mainline for uspace/lib/drv/generic/remote_usbhc.c
- Timestamp:
- 2012-02-24T19:11:23Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a2bd8822
- Parents:
- 76fbd9a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_usbhc.c
r76fbd9a ra76b01b4 173 173 return ret; 174 174 } 175 /*----------------------------------------------------------------------------*/ 175 176 176 int usbhc_bind_address(async_exch_t *exch, usb_address_t address, 177 177 devman_handle_t handle) … … 182 182 IPC_M_USBHC_BIND_ADDRESS, address, handle); 183 183 } 184 /*----------------------------------------------------------------------------*/ 184 185 185 int usbhc_get_handle(async_exch_t *exch, usb_address_t address, 186 186 devman_handle_t *handle) … … 195 195 return ret; 196 196 } 197 /*----------------------------------------------------------------------------*/ 197 198 198 int usbhc_release_address(async_exch_t *exch, usb_address_t address) 199 199 { … … 203 203 IPC_M_USBHC_RELEASE_ADDRESS, address); 204 204 } 205 /*----------------------------------------------------------------------------*/ 205 206 206 int usbhc_register_endpoint(async_exch_t *exch, usb_address_t address, 207 207 usb_endpoint_t endpoint, usb_transfer_type_t type, … … 220 220 #undef _PACK2 221 221 } 222 /*----------------------------------------------------------------------------*/ 222 223 223 int usbhc_unregister_endpoint(async_exch_t *exch, usb_address_t address, 224 224 usb_endpoint_t endpoint, usb_direction_t direction) … … 229 229 IPC_M_USBHC_UNREGISTER_ENDPOINT, address, endpoint, direction); 230 230 } 231 /*----------------------------------------------------------------------------*/ 231 232 232 int usbhc_read(async_exch_t *exch, usb_address_t address, 233 233 usb_endpoint_t endpoint, uint64_t setup, void *data, size_t size, … … 285 285 return EOK; 286 286 } 287 /*----------------------------------------------------------------------------*/ 287 288 288 int usbhc_write(async_exch_t *exch, usb_address_t address, 289 289 usb_endpoint_t endpoint, uint64_t setup, const void *data, size_t size) … … 321 321 return (int) opening_request_rc; 322 322 } 323 /*----------------------------------------------------------------------------*/ 323 324 324 325 325 static void remote_usbhc_request_address(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *); … … 386 386 return trans; 387 387 } 388 /*----------------------------------------------------------------------------*/ 388 389 389 void remote_usbhc_request_address(ddf_fun_t *fun, void *iface, 390 390 ipc_callid_t callid, ipc_call_t *call) … … 408 408 } 409 409 } 410 /*----------------------------------------------------------------------------*/ 410 411 411 void remote_usbhc_bind_address(ddf_fun_t *fun, void *iface, 412 412 ipc_callid_t callid, ipc_call_t *call) … … 425 425 async_answer_0(callid, ret); 426 426 } 427 /*----------------------------------------------------------------------------*/ 427 428 428 void remote_usbhc_get_handle(ddf_fun_t *fun, void *iface, 429 429 ipc_callid_t callid, ipc_call_t *call) … … 446 446 } 447 447 } 448 /*----------------------------------------------------------------------------*/ 448 449 449 void remote_usbhc_release_address(ddf_fun_t *fun, void *iface, 450 450 ipc_callid_t callid, ipc_call_t *call) … … 462 462 async_answer_0(callid, ret); 463 463 } 464 /*----------------------------------------------------------------------------*/ 464 465 465 static void callback_out(ddf_fun_t *fun, 466 466 int outcome, void *arg) … … 472 472 async_transaction_destroy(trans); 473 473 } 474 /*----------------------------------------------------------------------------*/ 474 475 475 static void callback_in(ddf_fun_t *fun, 476 476 int outcome, size_t actual_size, void *arg) … … 496 496 async_transaction_destroy(trans); 497 497 } 498 /*----------------------------------------------------------------------------*/ 498 499 499 void remote_usbhc_register_endpoint(ddf_fun_t *fun, void *iface, 500 500 ipc_callid_t callid, ipc_call_t *call) … … 596 596 } 597 597 } 598 /*----------------------------------------------------------------------------*/ 598 599 599 void remote_usbhc_write( 600 600 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)
Note:
See TracChangeset
for help on using the changeset viewer.