Changeset 3be9d10 in mainline for uspace/lib/drv/generic
- Timestamp:
- 2018-03-21T21:29:31Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e242d2
- Parents:
- eadaeae8
- Location:
- uspace/lib/drv/generic
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
readaeae8 r3be9d10 118 118 } 119 119 120 static void driver_dev_add( ipc_callid_t iid, ipc_call_t *icall)120 static void driver_dev_add(cap_call_handle_t iid, ipc_call_t *icall) 121 121 { 122 122 devman_handle_t dev_handle = IPC_GET_ARG1(*icall); … … 174 174 } 175 175 176 static void driver_dev_remove( ipc_callid_t iid, ipc_call_t *icall)176 static void driver_dev_remove(cap_call_handle_t iid, ipc_call_t *icall) 177 177 { 178 178 devman_handle_t devh = IPC_GET_ARG1(*icall); … … 207 207 } 208 208 209 static void driver_dev_gone( ipc_callid_t iid, ipc_call_t *icall)209 static void driver_dev_gone(cap_call_handle_t iid, ipc_call_t *icall) 210 210 { 211 211 devman_handle_t devh = IPC_GET_ARG1(*icall); … … 240 240 } 241 241 242 static void driver_fun_online( ipc_callid_t iid, ipc_call_t *icall)242 static void driver_fun_online(cap_call_handle_t iid, ipc_call_t *icall) 243 243 { 244 244 devman_handle_t funh = IPC_GET_ARG1(*icall); … … 275 275 } 276 276 277 static void driver_fun_offline( ipc_callid_t iid, ipc_call_t *icall)277 static void driver_fun_offline(cap_call_handle_t iid, ipc_call_t *icall) 278 278 { 279 279 devman_handle_t funh = IPC_GET_ARG1(*icall); … … 308 308 } 309 309 310 static void driver_stop( ipc_callid_t iid, ipc_call_t *icall)310 static void driver_stop(cap_call_handle_t iid, ipc_call_t *icall) 311 311 { 312 312 /* Prevent new devices from being added */ … … 337 337 } 338 338 339 static void driver_connection_devman( ipc_callid_t iid, ipc_call_t *icall,339 static void driver_connection_devman(cap_call_handle_t iid, ipc_call_t *icall, 340 340 void *arg) 341 341 { … … 345 345 while (true) { 346 346 ipc_call_t call; 347 ipc_callid_t callid = async_get_call(&call);347 cap_call_handle_t callid = async_get_call(&call); 348 348 349 349 if (!IPC_GET_IMETHOD(call)) … … 381 381 * 382 382 */ 383 static void driver_connection_gen( ipc_callid_t iid, ipc_call_t *icall, bool drv)383 static void driver_connection_gen(cap_call_handle_t iid, ipc_call_t *icall, bool drv) 384 384 { 385 385 /* … … 426 426 427 427 while (true) { 428 ipc_callid_t callid;428 cap_call_handle_t callid; 429 429 ipc_call_t call; 430 430 callid = async_get_call(&call); … … 504 504 } 505 505 506 static void driver_connection_driver( ipc_callid_t iid, ipc_call_t *icall,506 static void driver_connection_driver(cap_call_handle_t iid, ipc_call_t *icall, 507 507 void *arg) 508 508 { … … 510 510 } 511 511 512 static void driver_connection_client( ipc_callid_t iid, ipc_call_t *icall,512 static void driver_connection_client(cap_call_handle_t iid, ipc_call_t *icall, 513 513 void *arg) 514 514 { -
uspace/lib/drv/generic/remote_ahci.c
readaeae8 r3be9d10 182 182 } 183 183 184 static void remote_ahci_get_sata_device_name(ddf_fun_t *, void *, ipc_callid_t,185 ipc_call_t *); 186 static void remote_ahci_get_num_blocks(ddf_fun_t *, void *, ipc_callid_t,187 ipc_call_t *); 188 static void remote_ahci_get_block_size(ddf_fun_t *, void *, ipc_callid_t,189 ipc_call_t *); 190 static void remote_ahci_read_blocks(ddf_fun_t *, void *, ipc_callid_t,191 ipc_call_t *); 192 static void remote_ahci_write_blocks(ddf_fun_t *, void *, ipc_callid_t,184 static void remote_ahci_get_sata_device_name(ddf_fun_t *, void *, cap_call_handle_t, 185 ipc_call_t *); 186 static void remote_ahci_get_num_blocks(ddf_fun_t *, void *, cap_call_handle_t, 187 ipc_call_t *); 188 static void remote_ahci_get_block_size(ddf_fun_t *, void *, cap_call_handle_t, 189 ipc_call_t *); 190 static void remote_ahci_read_blocks(ddf_fun_t *, void *, cap_call_handle_t, 191 ipc_call_t *); 192 static void remote_ahci_write_blocks(ddf_fun_t *, void *, cap_call_handle_t, 193 193 ipc_call_t *); 194 194 … … 210 210 211 211 void remote_ahci_get_sata_device_name(ddf_fun_t *fun, void *iface, 212 ipc_callid_t callid, ipc_call_t *call)212 cap_call_handle_t callid, ipc_call_t *call) 213 213 { 214 214 const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface; … … 232 232 233 233 size_t real_size; 234 ipc_callid_t cid;234 cap_call_handle_t cid; 235 235 if ((async_data_read_receive(&cid, &real_size)) && 236 236 (real_size == sata_dev_name_length)) … … 242 242 243 243 static void remote_ahci_get_num_blocks(ddf_fun_t *fun, void *iface, 244 ipc_callid_t callid, ipc_call_t *call)244 cap_call_handle_t callid, ipc_call_t *call) 245 245 { 246 246 const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface; … … 261 261 262 262 static void remote_ahci_get_block_size(ddf_fun_t *fun, void *iface, 263 ipc_callid_t callid, ipc_call_t *call)263 cap_call_handle_t callid, ipc_call_t *call) 264 264 { 265 265 const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface; … … 280 280 281 281 void remote_ahci_read_blocks(ddf_fun_t *fun, void *iface, 282 ipc_callid_t callid, ipc_call_t *call)282 cap_call_handle_t callid, ipc_call_t *call) 283 283 { 284 284 const ahci_iface_t *ahci_iface = (ahci_iface_t *) iface; … … 292 292 unsigned int flags; 293 293 294 ipc_callid_t cid;294 cap_call_handle_t cid; 295 295 async_share_out_receive(&cid, &maxblock_size, &flags); 296 296 … … 308 308 } 309 309 310 void remote_ahci_write_blocks(ddf_fun_t *fun, void *iface, ipc_callid_t callid,310 void remote_ahci_write_blocks(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, 311 311 ipc_call_t *call) 312 312 { … … 321 321 unsigned int flags; 322 322 323 ipc_callid_t cid;323 cap_call_handle_t cid; 324 324 async_share_out_receive(&cid, &maxblock_size, &flags); 325 325 -
uspace/lib/drv/generic/remote_audio_mixer.c
readaeae8 r3be9d10 199 199 * SERVER SIDE 200 200 */ 201 static void remote_audio_mixer_get_info(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);202 static void remote_audio_mixer_get_item_info(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);203 static void remote_audio_mixer_get_item_level(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);204 static void remote_audio_mixer_set_item_level(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);201 static void remote_audio_mixer_get_info(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 202 static void remote_audio_mixer_get_item_info(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 203 static void remote_audio_mixer_get_item_level(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 204 static void remote_audio_mixer_set_item_level(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 205 205 206 206 /** Remote audio mixer interface operations. */ … … 219 219 220 220 void remote_audio_mixer_get_info( 221 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)221 ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 222 222 { 223 223 audio_mixer_iface_t *mixer_iface = iface; … … 235 235 if (ret == EOK && name_size > 0) { 236 236 size_t size; 237 ipc_callid_t name_id;237 cap_call_handle_t name_id; 238 238 if (!async_data_read_receive(&name_id, &size)) { 239 239 async_answer_0(name_id, EPARTY); … … 249 249 250 250 void remote_audio_mixer_get_item_info( 251 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)251 ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 252 252 { 253 253 audio_mixer_iface_t *mixer_iface = iface; … … 267 267 if (ret == EOK && name_size > 0) { 268 268 size_t size; 269 ipc_callid_t name_id;269 cap_call_handle_t name_id; 270 270 if (!async_data_read_receive(&name_id, &size)) { 271 271 async_answer_0(name_id, EPARTY); … … 281 281 282 282 void remote_audio_mixer_set_item_level( 283 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)283 ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 284 284 { 285 285 audio_mixer_iface_t *mixer_iface = iface; … … 296 296 297 297 void remote_audio_mixer_get_item_level( 298 ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)298 ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 299 299 { 300 300 audio_mixer_iface_t *mixer_iface = iface; -
uspace/lib/drv/generic/remote_audio_pcm.c
readaeae8 r3be9d10 596 596 * SERVER SIDE 597 597 */ 598 static void remote_audio_pcm_get_info_str(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);599 static void remote_audio_pcm_query_caps(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);600 static void remote_audio_pcm_events_register(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);601 static void remote_audio_pcm_events_unregister(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);602 static void remote_audio_pcm_get_buffer_pos(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);603 static void remote_audio_pcm_test_format(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);604 static void remote_audio_pcm_get_buffer(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);605 static void remote_audio_pcm_release_buffer(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);606 static void remote_audio_pcm_start_playback(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);607 static void remote_audio_pcm_stop_playback(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);608 static void remote_audio_pcm_start_capture(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);609 static void remote_audio_pcm_stop_capture(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);598 static void remote_audio_pcm_get_info_str(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 599 static void remote_audio_pcm_query_caps(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 600 static void remote_audio_pcm_events_register(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 601 static void remote_audio_pcm_events_unregister(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 602 static void remote_audio_pcm_get_buffer_pos(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 603 static void remote_audio_pcm_test_format(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 604 static void remote_audio_pcm_get_buffer(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 605 static void remote_audio_pcm_release_buffer(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 606 static void remote_audio_pcm_start_playback(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 607 static void remote_audio_pcm_stop_playback(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 608 static void remote_audio_pcm_start_capture(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 609 static void remote_audio_pcm_stop_capture(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 610 610 611 611 /** Remote audio pcm buffer interface operations. */ … … 632 632 633 633 void remote_audio_pcm_get_info_str(ddf_fun_t *fun, void *iface, 634 ipc_callid_t callid, ipc_call_t *call)634 cap_call_handle_t callid, ipc_call_t *call) 635 635 { 636 636 const audio_pcm_iface_t *pcm_iface = iface; … … 647 647 if (ret == EOK && name_size > 0) { 648 648 size_t size; 649 ipc_callid_t name_id;649 cap_call_handle_t name_id; 650 650 if (!async_data_read_receive(&name_id, &size)) { 651 651 async_answer_0(name_id, EPARTY); … … 660 660 } 661 661 662 void remote_audio_pcm_query_caps(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)662 void remote_audio_pcm_query_caps(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 663 663 { 664 664 const audio_pcm_iface_t *pcm_iface = iface; … … 672 672 } 673 673 674 static void remote_audio_pcm_events_register(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)674 static void remote_audio_pcm_events_register(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 675 675 { 676 676 const audio_pcm_iface_t *pcm_iface = iface; … … 684 684 685 685 ipc_call_t callback_call; 686 ipc_callid_t callback_id = async_get_call(&callback_call);686 cap_call_handle_t callback_id = async_get_call(&callback_call); 687 687 async_sess_t *sess = 688 688 async_callback_receive_start(EXCHANGE_ATOMIC, &callback_call); … … 702 702 } 703 703 704 static void remote_audio_pcm_events_unregister(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)704 static void remote_audio_pcm_events_unregister(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 705 705 { 706 706 const audio_pcm_iface_t *pcm_iface = iface; … … 718 718 } 719 719 720 void remote_audio_pcm_get_buffer_pos(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)720 void remote_audio_pcm_get_buffer_pos(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 721 721 { 722 722 const audio_pcm_iface_t *pcm_iface = iface; … … 727 727 } 728 728 729 void remote_audio_pcm_test_format(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)729 void remote_audio_pcm_test_format(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 730 730 { 731 731 const audio_pcm_iface_t *pcm_iface = iface; … … 739 739 740 740 void remote_audio_pcm_get_buffer(ddf_fun_t *fun, void *iface, 741 ipc_callid_t callid, ipc_call_t *call)741 cap_call_handle_t callid, ipc_call_t *call) 742 742 { 743 743 const audio_pcm_iface_t *pcm_iface = iface; … … 757 757 /* Share the buffer. */ 758 758 size_t share_size = 0; 759 ipc_callid_t share_id = 0;759 cap_call_handle_t share_id = 0; 760 760 761 761 ddf_msg(LVL_DEBUG2, "Receiving share request."); … … 788 788 789 789 void remote_audio_pcm_release_buffer(ddf_fun_t *fun, void *iface, 790 ipc_callid_t callid, ipc_call_t *call)790 cap_call_handle_t callid, ipc_call_t *call) 791 791 { 792 792 const audio_pcm_iface_t *pcm_iface = iface; … … 798 798 799 799 void remote_audio_pcm_start_playback(ddf_fun_t *fun, void *iface, 800 ipc_callid_t callid, ipc_call_t *call)800 cap_call_handle_t callid, ipc_call_t *call) 801 801 { 802 802 const audio_pcm_iface_t *pcm_iface = iface; … … 814 814 815 815 void remote_audio_pcm_stop_playback(ddf_fun_t *fun, void *iface, 816 ipc_callid_t callid, ipc_call_t *call)816 cap_call_handle_t callid, ipc_call_t *call) 817 817 { 818 818 const audio_pcm_iface_t *pcm_iface = iface; … … 825 825 826 826 void remote_audio_pcm_start_capture(ddf_fun_t *fun, void *iface, 827 ipc_callid_t callid, ipc_call_t *call)827 cap_call_handle_t callid, ipc_call_t *call) 828 828 { 829 829 const audio_pcm_iface_t *pcm_iface = iface; … … 841 841 842 842 void remote_audio_pcm_stop_capture(ddf_fun_t *fun, void *iface, 843 ipc_callid_t callid, ipc_call_t *call)843 cap_call_handle_t callid, ipc_call_t *call) 844 844 { 845 845 const audio_pcm_iface_t *pcm_iface = iface; -
uspace/lib/drv/generic/remote_battery_dev.c
readaeae8 r3be9d10 90 90 } 91 91 92 static void remote_battery_status_get(ddf_fun_t *, void *, ipc_callid_t,92 static void remote_battery_status_get(ddf_fun_t *, void *, cap_call_handle_t, 93 93 ipc_call_t *); 94 static void remote_battery_charge_level_get(ddf_fun_t *, void *, ipc_callid_t,94 static void remote_battery_charge_level_get(ddf_fun_t *, void *, cap_call_handle_t, 95 95 ipc_call_t *); 96 96 … … 118 118 */ 119 119 static void 120 remote_battery_status_get(ddf_fun_t *fun, void *ops, ipc_callid_t callid,120 remote_battery_status_get(ddf_fun_t *fun, void *ops, cap_call_handle_t callid, 121 121 ipc_call_t *call) 122 122 { … … 144 144 */ 145 145 static void 146 remote_battery_charge_level_get(ddf_fun_t *fun, void *ops, ipc_callid_t callid,146 remote_battery_charge_level_get(ddf_fun_t *fun, void *ops, cap_call_handle_t callid, 147 147 ipc_call_t *call) 148 148 { -
uspace/lib/drv/generic/remote_clock_dev.c
readaeae8 r3be9d10 42 42 #include <ddf/driver.h> 43 43 44 static void remote_clock_time_get(ddf_fun_t *, void *, ipc_callid_t,44 static void remote_clock_time_get(ddf_fun_t *, void *, cap_call_handle_t, 45 45 ipc_call_t *); 46 static void remote_clock_time_set(ddf_fun_t *, void *, ipc_callid_t,46 static void remote_clock_time_set(ddf_fun_t *, void *, cap_call_handle_t, 47 47 ipc_call_t *); 48 48 … … 69 69 */ 70 70 static void 71 remote_clock_time_get(ddf_fun_t *fun, void *ops, ipc_callid_t callid,71 remote_clock_time_get(ddf_fun_t *fun, void *ops, cap_call_handle_t callid, 72 72 ipc_call_t *call) 73 73 { 74 74 clock_dev_ops_t *clock_dev_ops = (clock_dev_ops_t *) ops; 75 ipc_callid_t cid;75 cap_call_handle_t cid; 76 76 struct tm t; 77 77 errno_t rc; … … 111 111 */ 112 112 static void remote_clock_time_set(ddf_fun_t *fun, void *ops, 113 ipc_callid_t callid, ipc_call_t *call)113 cap_call_handle_t callid, ipc_call_t *call) 114 114 { 115 115 clock_dev_ops_t *clock_dev_ops = (clock_dev_ops_t *) ops; 116 116 errno_t rc; 117 117 struct tm t; 118 ipc_callid_t cid;118 cap_call_handle_t cid; 119 119 size_t len; 120 120 -
uspace/lib/drv/generic/remote_hw_res.c
readaeae8 r3be9d10 41 41 #include "ddf/driver.h" 42 42 43 static void remote_hw_res_get_resource_list(ddf_fun_t *, void *, ipc_callid_t,43 static void remote_hw_res_get_resource_list(ddf_fun_t *, void *, cap_call_handle_t, 44 44 ipc_call_t *); 45 static void remote_hw_res_enable_interrupt(ddf_fun_t *, void *, ipc_callid_t,45 static void remote_hw_res_enable_interrupt(ddf_fun_t *, void *, cap_call_handle_t, 46 46 ipc_call_t *); 47 static void remote_hw_res_disable_interrupt(ddf_fun_t *, void *, ipc_callid_t,47 static void remote_hw_res_disable_interrupt(ddf_fun_t *, void *, cap_call_handle_t, 48 48 ipc_call_t *); 49 static void remote_hw_res_clear_interrupt(ddf_fun_t *, void *, ipc_callid_t,49 static void remote_hw_res_clear_interrupt(ddf_fun_t *, void *, cap_call_handle_t, 50 50 ipc_call_t *); 51 static void remote_hw_res_dma_channel_setup(ddf_fun_t *, void *, ipc_callid_t,51 static void remote_hw_res_dma_channel_setup(ddf_fun_t *, void *, cap_call_handle_t, 52 52 ipc_call_t *); 53 static void remote_hw_res_dma_channel_remain(ddf_fun_t *, void *, ipc_callid_t,53 static void remote_hw_res_dma_channel_remain(ddf_fun_t *, void *, cap_call_handle_t, 54 54 ipc_call_t *); 55 55 … … 69 69 70 70 static void remote_hw_res_enable_interrupt(ddf_fun_t *fun, void *ops, 71 ipc_callid_t callid, ipc_call_t *call)71 cap_call_handle_t callid, ipc_call_t *call) 72 72 { 73 73 hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops; … … 84 84 85 85 static void remote_hw_res_disable_interrupt(ddf_fun_t *fun, void *ops, 86 ipc_callid_t callid, ipc_call_t *call)86 cap_call_handle_t callid, ipc_call_t *call) 87 87 { 88 88 hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops; … … 99 99 100 100 static void remote_hw_res_clear_interrupt(ddf_fun_t *fun, void *ops, 101 ipc_callid_t callid, ipc_call_t *call)101 cap_call_handle_t callid, ipc_call_t *call) 102 102 { 103 103 hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops; … … 114 114 115 115 static void remote_hw_res_get_resource_list(ddf_fun_t *fun, void *ops, 116 ipc_callid_t callid, ipc_call_t *call)116 cap_call_handle_t callid, ipc_call_t *call) 117 117 { 118 118 hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops; … … 140 140 141 141 static void remote_hw_res_dma_channel_setup(ddf_fun_t *fun, void *ops, 142 ipc_callid_t callid, ipc_call_t *call)142 cap_call_handle_t callid, ipc_call_t *call) 143 143 { 144 144 hw_res_ops_t *hw_res_ops = ops; … … 159 159 160 160 static void remote_hw_res_dma_channel_remain(ddf_fun_t *fun, void *ops, 161 ipc_callid_t callid, ipc_call_t *call)161 cap_call_handle_t callid, ipc_call_t *call) 162 162 { 163 163 hw_res_ops_t *hw_res_ops = ops; -
uspace/lib/drv/generic/remote_ieee80211.c
readaeae8 r3be9d10 268 268 269 269 static void remote_ieee80211_get_scan_results(ddf_fun_t *fun, void *iface, 270 ipc_callid_t callid, ipc_call_t *call)270 cap_call_handle_t callid, ipc_call_t *call) 271 271 { 272 272 ieee80211_iface_t *ieee80211_iface = (ieee80211_iface_t *) iface; … … 280 280 errno_t rc = ieee80211_iface->get_scan_results(fun, &scan_results, now); 281 281 if (rc == EOK) { 282 ipc_callid_t data_callid;282 cap_call_handle_t data_callid; 283 283 size_t max_len; 284 284 if (!async_data_read_receive(&data_callid, &max_len)) { … … 302 302 303 303 static void remote_ieee80211_connect(ddf_fun_t *fun, void *iface, 304 ipc_callid_t callid, ipc_call_t *call)304 cap_call_handle_t callid, ipc_call_t *call) 305 305 { 306 306 ieee80211_iface_t *ieee80211_iface = (ieee80211_iface_t *) iface; … … 310 310 char password[MAX_STRING_SIZE]; 311 311 312 ipc_callid_t data_callid;312 cap_call_handle_t data_callid; 313 313 size_t len; 314 314 if (!async_data_write_receive(&data_callid, &len)) { … … 356 356 357 357 static void remote_ieee80211_disconnect(ddf_fun_t *fun, void *iface, 358 ipc_callid_t callid, ipc_call_t *call)358 cap_call_handle_t callid, ipc_call_t *call) 359 359 { 360 360 ieee80211_iface_t *ieee80211_iface = (ieee80211_iface_t *) iface; -
uspace/lib/drv/generic/remote_led_dev.c
readaeae8 r3be9d10 41 41 #include <ddf/driver.h> 42 42 43 static void remote_led_color_set(ddf_fun_t *, void *, ipc_callid_t,43 static void remote_led_color_set(ddf_fun_t *, void *, cap_call_handle_t, 44 44 ipc_call_t *); 45 45 … … 66 66 * 67 67 */ 68 static void remote_led_color_set(ddf_fun_t *fun, void *ops, ipc_callid_t callid,68 static void remote_led_color_set(ddf_fun_t *fun, void *ops, cap_call_handle_t callid, 69 69 ipc_call_t *call) 70 70 { -
uspace/lib/drv/generic/remote_nic.c
readaeae8 r3be9d10 1337 1337 1338 1338 static void remote_nic_send_frame(ddf_fun_t *dev, void *iface, 1339 ipc_callid_t callid, ipc_call_t *call)1339 cap_call_handle_t callid, ipc_call_t *call) 1340 1340 { 1341 1341 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1358 1358 1359 1359 static void remote_nic_callback_create(ddf_fun_t *dev, void *iface, 1360 ipc_callid_t callid, ipc_call_t *call)1360 cap_call_handle_t callid, ipc_call_t *call) 1361 1361 { 1362 1362 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1368 1368 1369 1369 static void remote_nic_get_state(ddf_fun_t *dev, void *iface, 1370 ipc_callid_t callid, ipc_call_t *call)1370 cap_call_handle_t callid, ipc_call_t *call) 1371 1371 { 1372 1372 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1380 1380 1381 1381 static void remote_nic_set_state(ddf_fun_t *dev, void *iface, 1382 ipc_callid_t callid, ipc_call_t *call)1382 cap_call_handle_t callid, ipc_call_t *call) 1383 1383 { 1384 1384 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1392 1392 1393 1393 static void remote_nic_get_address(ddf_fun_t *dev, void *iface, 1394 ipc_callid_t callid, ipc_call_t *call)1394 cap_call_handle_t callid, ipc_call_t *call) 1395 1395 { 1396 1396 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1403 1403 if (rc == EOK) { 1404 1404 size_t max_len; 1405 ipc_callid_t data_callid;1405 cap_call_handle_t data_callid; 1406 1406 1407 1407 /* All errors will be translated into EPARTY anyway */ … … 1426 1426 1427 1427 static void remote_nic_set_address(ddf_fun_t *dev, void *iface, 1428 ipc_callid_t callid, ipc_call_t *call)1428 cap_call_handle_t callid, ipc_call_t *call) 1429 1429 { 1430 1430 nic_iface_t *nic_iface = (nic_iface_t *) iface; 1431 1431 1432 1432 size_t length; 1433 ipc_callid_t data_callid;1433 cap_call_handle_t data_callid; 1434 1434 if (!async_data_write_receive(&data_callid, &length)) { 1435 1435 async_answer_0(data_callid, EINVAL); … … 1458 1458 1459 1459 static void remote_nic_get_stats(ddf_fun_t *dev, void *iface, 1460 ipc_callid_t callid, ipc_call_t *call)1460 cap_call_handle_t callid, ipc_call_t *call) 1461 1461 { 1462 1462 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1471 1471 errno_t rc = nic_iface->get_stats(dev, &stats); 1472 1472 if (rc == EOK) { 1473 ipc_callid_t data_callid;1473 cap_call_handle_t data_callid; 1474 1474 size_t max_len; 1475 1475 if (!async_data_read_receive(&data_callid, &max_len)) { … … 1493 1493 1494 1494 static void remote_nic_get_device_info(ddf_fun_t *dev, void *iface, 1495 ipc_callid_t callid, ipc_call_t *call)1495 cap_call_handle_t callid, ipc_call_t *call) 1496 1496 { 1497 1497 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1506 1506 errno_t rc = nic_iface->get_device_info(dev, &info); 1507 1507 if (rc == EOK) { 1508 ipc_callid_t data_callid;1508 cap_call_handle_t data_callid; 1509 1509 size_t max_len; 1510 1510 if (!async_data_read_receive(&data_callid, &max_len)) { … … 1528 1528 1529 1529 static void remote_nic_get_cable_state(ddf_fun_t *dev, void *iface, 1530 ipc_callid_t callid, ipc_call_t *call)1530 cap_call_handle_t callid, ipc_call_t *call) 1531 1531 { 1532 1532 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1543 1543 1544 1544 static void remote_nic_get_operation_mode(ddf_fun_t *dev, void *iface, 1545 ipc_callid_t callid, ipc_call_t *call)1545 cap_call_handle_t callid, ipc_call_t *call) 1546 1546 { 1547 1547 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1561 1561 1562 1562 static void remote_nic_set_operation_mode(ddf_fun_t *dev, void *iface, 1563 ipc_callid_t callid, ipc_call_t *call)1563 cap_call_handle_t callid, ipc_call_t *call) 1564 1564 { 1565 1565 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1578 1578 1579 1579 static void remote_nic_autoneg_enable(ddf_fun_t *dev, void *iface, 1580 ipc_callid_t callid, ipc_call_t *call)1580 cap_call_handle_t callid, ipc_call_t *call) 1581 1581 { 1582 1582 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1593 1593 1594 1594 static void remote_nic_autoneg_disable(ddf_fun_t *dev, void *iface, 1595 ipc_callid_t callid, ipc_call_t *call)1595 cap_call_handle_t callid, ipc_call_t *call) 1596 1596 { 1597 1597 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1606 1606 1607 1607 static void remote_nic_autoneg_probe(ddf_fun_t *dev, void *iface, 1608 ipc_callid_t callid, ipc_call_t *call)1608 cap_call_handle_t callid, ipc_call_t *call) 1609 1609 { 1610 1610 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1626 1626 1627 1627 static void remote_nic_autoneg_restart(ddf_fun_t *dev, void *iface, 1628 ipc_callid_t callid, ipc_call_t *call)1628 cap_call_handle_t callid, ipc_call_t *call) 1629 1629 { 1630 1630 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1639 1639 1640 1640 static void remote_nic_get_pause(ddf_fun_t *dev, void *iface, 1641 ipc_callid_t callid, ipc_call_t *call)1641 cap_call_handle_t callid, ipc_call_t *call) 1642 1642 { 1643 1643 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1656 1656 1657 1657 static void remote_nic_set_pause(ddf_fun_t *dev, void *iface, 1658 ipc_callid_t callid, ipc_call_t *call)1658 cap_call_handle_t callid, ipc_call_t *call) 1659 1659 { 1660 1660 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1674 1674 1675 1675 static void remote_nic_unicast_get_mode(ddf_fun_t *dev, void *iface, 1676 ipc_callid_t callid, ipc_call_t *call)1676 cap_call_handle_t callid, ipc_call_t *call) 1677 1677 { 1678 1678 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1706 1706 } 1707 1707 1708 ipc_callid_t data_callid;1708 cap_call_handle_t data_callid; 1709 1709 size_t max_len; 1710 1710 if (!async_data_read_receive(&data_callid, &max_len)) { … … 1729 1729 1730 1730 static void remote_nic_unicast_set_mode(ddf_fun_t *dev, void *iface, 1731 ipc_callid_t callid, ipc_call_t *call)1731 cap_call_handle_t callid, ipc_call_t *call) 1732 1732 { 1733 1733 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1739 1739 1740 1740 if (address_count) { 1741 ipc_callid_t data_callid;1741 cap_call_handle_t data_callid; 1742 1742 if (!async_data_write_receive(&data_callid, &length)) { 1743 1743 async_answer_0(data_callid, EINVAL); … … 1778 1778 1779 1779 static void remote_nic_multicast_get_mode(ddf_fun_t *dev, void *iface, 1780 ipc_callid_t callid, ipc_call_t *call)1780 cap_call_handle_t callid, ipc_call_t *call) 1781 1781 { 1782 1782 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1811 1811 } 1812 1812 1813 ipc_callid_t data_callid;1813 cap_call_handle_t data_callid; 1814 1814 size_t max_len; 1815 1815 if (!async_data_read_receive(&data_callid, &max_len)) { … … 1833 1833 1834 1834 static void remote_nic_multicast_set_mode(ddf_fun_t *dev, void *iface, 1835 ipc_callid_t callid, ipc_call_t *call)1835 cap_call_handle_t callid, ipc_call_t *call) 1836 1836 { 1837 1837 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1842 1842 1843 1843 if (address_count) { 1844 ipc_callid_t data_callid;1844 cap_call_handle_t data_callid; 1845 1845 size_t length; 1846 1846 if (!async_data_write_receive(&data_callid, &length)) { … … 1882 1882 1883 1883 static void remote_nic_broadcast_get_mode(ddf_fun_t *dev, void *iface, 1884 ipc_callid_t callid, ipc_call_t *call)1884 cap_call_handle_t callid, ipc_call_t *call) 1885 1885 { 1886 1886 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1897 1897 1898 1898 static void remote_nic_broadcast_set_mode(ddf_fun_t *dev, void *iface, 1899 ipc_callid_t callid, ipc_call_t *call)1899 cap_call_handle_t callid, ipc_call_t *call) 1900 1900 { 1901 1901 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1912 1912 1913 1913 static void remote_nic_defective_get_mode(ddf_fun_t *dev, void *iface, 1914 ipc_callid_t callid, ipc_call_t *call)1914 cap_call_handle_t callid, ipc_call_t *call) 1915 1915 { 1916 1916 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1927 1927 1928 1928 static void remote_nic_defective_set_mode(ddf_fun_t *dev, void *iface, 1929 ipc_callid_t callid, ipc_call_t *call)1929 cap_call_handle_t callid, ipc_call_t *call) 1930 1930 { 1931 1931 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1942 1942 1943 1943 static void remote_nic_blocked_sources_get(ddf_fun_t *dev, void *iface, 1944 ipc_callid_t callid, ipc_call_t *call)1944 cap_call_handle_t callid, ipc_call_t *call) 1945 1945 { 1946 1946 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 1973 1973 } 1974 1974 1975 ipc_callid_t data_callid;1975 cap_call_handle_t data_callid; 1976 1976 size_t max_len; 1977 1977 if (!async_data_read_receive(&data_callid, &max_len)) { … … 1996 1996 1997 1997 static void remote_nic_blocked_sources_set(ddf_fun_t *dev, void *iface, 1998 ipc_callid_t callid, ipc_call_t *call)1998 cap_call_handle_t callid, ipc_call_t *call) 1999 1999 { 2000 2000 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2005 2005 2006 2006 if (address_count) { 2007 ipc_callid_t data_callid;2007 cap_call_handle_t data_callid; 2008 2008 if (!async_data_write_receive(&data_callid, &length)) { 2009 2009 async_answer_0(data_callid, EINVAL); … … 2044 2044 2045 2045 static void remote_nic_vlan_get_mask(ddf_fun_t *dev, void *iface, 2046 ipc_callid_t callid, ipc_call_t *call)2046 cap_call_handle_t callid, ipc_call_t *call) 2047 2047 { 2048 2048 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2057 2057 errno_t rc = nic_iface->vlan_get_mask(dev, &vlan_mask); 2058 2058 if (rc == EOK) { 2059 ipc_callid_t data_callid;2059 cap_call_handle_t data_callid; 2060 2060 size_t max_len; 2061 2061 if (!async_data_read_receive(&data_callid, &max_len)) { … … 2078 2078 2079 2079 static void remote_nic_vlan_set_mask(ddf_fun_t *dev, void *iface, 2080 ipc_callid_t callid, ipc_call_t *call)2080 cap_call_handle_t callid, ipc_call_t *call) 2081 2081 { 2082 2082 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2087 2087 2088 2088 if (vlan_mask_set) { 2089 ipc_callid_t data_callid;2089 cap_call_handle_t data_callid; 2090 2090 size_t length; 2091 2091 if (!async_data_write_receive(&data_callid, &length)) { … … 2118 2118 2119 2119 static void remote_nic_vlan_set_tag(ddf_fun_t *dev, void *iface, 2120 ipc_callid_t callid, ipc_call_t *call)2120 cap_call_handle_t callid, ipc_call_t *call) 2121 2121 { 2122 2122 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2136 2136 2137 2137 static void remote_nic_wol_virtue_add(ddf_fun_t *dev, void *iface, 2138 ipc_callid_t callid, ipc_call_t *call)2138 cap_call_handle_t callid, ipc_call_t *call) 2139 2139 { 2140 2140 nic_iface_t *nic_iface = (nic_iface_t *) iface; 2141 2141 2142 2142 int send_data = (int) IPC_GET_ARG3(*call); 2143 ipc_callid_t data_callid;2143 cap_call_handle_t data_callid; 2144 2144 2145 2145 if (nic_iface->wol_virtue_add == NULL) { … … 2186 2186 2187 2187 static void remote_nic_wol_virtue_remove(ddf_fun_t *dev, void *iface, 2188 ipc_callid_t callid, ipc_call_t *call)2188 cap_call_handle_t callid, ipc_call_t *call) 2189 2189 { 2190 2190 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2202 2202 2203 2203 static void remote_nic_wol_virtue_probe(ddf_fun_t *dev, void *iface, 2204 ipc_callid_t callid, ipc_call_t *call)2204 cap_call_handle_t callid, ipc_call_t *call) 2205 2205 { 2206 2206 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2215 2215 nic_wv_type_t type = NIC_WV_NONE; 2216 2216 size_t length = 0; 2217 ipc_callid_t data_callid;2217 cap_call_handle_t data_callid; 2218 2218 void *data = NULL; 2219 2219 … … 2254 2254 2255 2255 static void remote_nic_wol_virtue_list(ddf_fun_t *dev, void *iface, 2256 ipc_callid_t callid, ipc_call_t *call)2256 cap_call_handle_t callid, ipc_call_t *call) 2257 2257 { 2258 2258 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2266 2266 size_t count = 0; 2267 2267 nic_wv_id_t *id_list = NULL; 2268 ipc_callid_t data_callid;2268 cap_call_handle_t data_callid; 2269 2269 2270 2270 if (max_count != 0) { … … 2304 2304 2305 2305 static void remote_nic_wol_virtue_get_caps(ddf_fun_t *dev, void *iface, 2306 ipc_callid_t callid, ipc_call_t *call)2306 cap_call_handle_t callid, ipc_call_t *call) 2307 2307 { 2308 2308 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2320 2320 2321 2321 static void remote_nic_wol_load_info(ddf_fun_t *dev, void *iface, 2322 ipc_callid_t callid, ipc_call_t *call)2322 cap_call_handle_t callid, ipc_call_t *call) 2323 2323 { 2324 2324 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2346 2346 &frame_length); 2347 2347 if (rc == EOK) { 2348 ipc_callid_t data_callid;2348 cap_call_handle_t data_callid; 2349 2349 size_t req_length; 2350 2350 if (!async_data_read_receive(&data_callid, &req_length)) { … … 2365 2365 2366 2366 static void remote_nic_offload_probe(ddf_fun_t *dev, void *iface, 2367 ipc_callid_t callid, ipc_call_t *call)2367 cap_call_handle_t callid, ipc_call_t *call) 2368 2368 { 2369 2369 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2381 2381 2382 2382 static void remote_nic_offload_set(ddf_fun_t *dev, void *iface, 2383 ipc_callid_t callid, ipc_call_t *call)2383 cap_call_handle_t callid, ipc_call_t *call) 2384 2384 { 2385 2385 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2397 2397 2398 2398 static void remote_nic_poll_get_mode(ddf_fun_t *dev, void *iface, 2399 ipc_callid_t callid, ipc_call_t *call)2399 cap_call_handle_t callid, ipc_call_t *call) 2400 2400 { 2401 2401 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2415 2415 if ((rc == EOK) && (request_data)) { 2416 2416 size_t max_len; 2417 ipc_callid_t data_callid;2417 cap_call_handle_t data_callid; 2418 2418 2419 2419 if (!async_data_read_receive(&data_callid, &max_len)) { … … 2437 2437 2438 2438 static void remote_nic_poll_set_mode(ddf_fun_t *dev, void *iface, 2439 ipc_callid_t callid, ipc_call_t *call)2439 cap_call_handle_t callid, ipc_call_t *call) 2440 2440 { 2441 2441 nic_iface_t *nic_iface = (nic_iface_t *) iface; … … 2448 2448 2449 2449 if (has_period) { 2450 ipc_callid_t data_callid;2450 cap_call_handle_t data_callid; 2451 2451 if (!async_data_write_receive(&data_callid, &length)) { 2452 2452 async_answer_0(data_callid, EINVAL); … … 2477 2477 2478 2478 static void remote_nic_poll_now(ddf_fun_t *dev, void *iface, 2479 ipc_callid_t callid, ipc_call_t *call)2479 cap_call_handle_t callid, ipc_call_t *call) 2480 2480 { 2481 2481 nic_iface_t *nic_iface = (nic_iface_t *) iface; -
uspace/lib/drv/generic/remote_pci.c
readaeae8 r3be9d10 124 124 } 125 125 126 static void remote_config_space_read_8(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);127 static void remote_config_space_read_16(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);128 static void remote_config_space_read_32(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);129 130 static void remote_config_space_write_8(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);131 static void remote_config_space_write_16(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);132 static void remote_config_space_write_32(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);126 static void remote_config_space_read_8(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 127 static void remote_config_space_read_16(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 128 static void remote_config_space_read_32(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 129 130 static void remote_config_space_write_8(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 131 static void remote_config_space_write_16(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 132 static void remote_config_space_write_32(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 133 133 134 134 /** Remote USB interface operations. */ … … 150 150 }; 151 151 152 void remote_config_space_read_8(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)152 void remote_config_space_read_8(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 153 153 { 154 154 assert(iface); … … 168 168 } 169 169 170 void remote_config_space_read_16(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)170 void remote_config_space_read_16(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 171 171 { 172 172 assert(iface); … … 185 185 } 186 186 } 187 void remote_config_space_read_32(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)187 void remote_config_space_read_32(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 188 188 { 189 189 assert(iface); … … 203 203 } 204 204 205 void remote_config_space_write_8(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)205 void remote_config_space_write_8(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 206 206 { 207 207 assert(iface); … … 221 221 } 222 222 223 void remote_config_space_write_16(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)223 void remote_config_space_write_16(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 224 224 { 225 225 assert(iface); … … 239 239 } 240 240 241 void remote_config_space_write_32(ddf_fun_t *fun, void *iface, ipc_callid_t callid, ipc_call_t *call)241 void remote_config_space_write_32(ddf_fun_t *fun, void *iface, cap_call_handle_t callid, ipc_call_t *call) 242 242 { 243 243 assert(iface); -
uspace/lib/drv/generic/remote_pio_window.c
readaeae8 r3be9d10 40 40 #include "ddf/driver.h" 41 41 42 static void remote_pio_window_get(ddf_fun_t *, void *, ipc_callid_t,42 static void remote_pio_window_get(ddf_fun_t *, void *, cap_call_handle_t, 43 43 ipc_call_t *); 44 44 … … 53 53 54 54 static void remote_pio_window_get(ddf_fun_t *fun, void *ops, 55 ipc_callid_t callid, ipc_call_t *call)55 cap_call_handle_t callid, ipc_call_t *call) 56 56 { 57 57 pio_window_ops_t *pio_win_ops = (pio_window_ops_t *) ops; -
uspace/lib/drv/generic/remote_usb.c
readaeae8 r3be9d10 92 92 93 93 static void remote_usb_get_my_description(ddf_fun_t *, void *, 94 ipc_callid_t, ipc_call_t *);94 cap_call_handle_t, ipc_call_t *); 95 95 96 96 /** Remote USB interface operations. */ … … 107 107 108 108 void remote_usb_get_my_description(ddf_fun_t *fun, void *iface, 109 ipc_callid_t callid, ipc_call_t *call)109 cap_call_handle_t callid, ipc_call_t *call) 110 110 { 111 111 const usb_iface_t *usb_iface = (usb_iface_t *) iface; -
uspace/lib/drv/generic/remote_usbdiag.c
readaeae8 r3be9d10 127 127 128 128 static void remote_usbdiag_test_in(ddf_fun_t *, void *, 129 ipc_callid_t, ipc_call_t *);129 cap_call_handle_t, ipc_call_t *); 130 130 static void remote_usbdiag_test_out(ddf_fun_t *, void *, 131 ipc_callid_t, ipc_call_t *);131 cap_call_handle_t, ipc_call_t *); 132 132 133 133 /** Remote USB diagnostic interface operations. */ … … 144 144 145 145 void remote_usbdiag_test_in(ddf_fun_t *fun, void *iface, 146 ipc_callid_t callid, ipc_call_t *call)146 cap_call_handle_t callid, ipc_call_t *call) 147 147 { 148 148 const usbdiag_iface_t *diag_iface = (usbdiag_iface_t *) iface; 149 149 150 150 size_t size; 151 ipc_callid_t data_callid;151 cap_call_handle_t data_callid; 152 152 if (!async_data_write_receive(&data_callid, &size)) { 153 153 async_answer_0(data_callid, EINVAL); … … 198 198 199 199 void remote_usbdiag_test_out(ddf_fun_t *fun, void *iface, 200 ipc_callid_t callid, ipc_call_t *call)200 cap_call_handle_t callid, ipc_call_t *call) 201 201 { 202 202 const usbdiag_iface_t *diag_iface = (usbdiag_iface_t *) iface; 203 203 204 204 size_t size; 205 ipc_callid_t data_callid;205 cap_call_handle_t data_callid; 206 206 if (!async_data_write_receive(&data_callid, &size)) { 207 207 async_answer_0(data_callid, EINVAL); -
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) -
uspace/lib/drv/generic/remote_usbhid.c
readaeae8 r3be9d10 283 283 } 284 284 285 static void remote_usbhid_get_event_length(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);286 static void remote_usbhid_get_event(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);287 static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);288 static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);289 // static void remote_usbhid_(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);285 static void remote_usbhid_get_event_length(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 286 static void remote_usbhid_get_event(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 287 static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 288 static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 289 // static void remote_usbhid_(ddf_fun_t *, void *, cap_call_handle_t, ipc_call_t *); 290 290 291 291 /** Remote USB HID interface operations. */ … … 309 309 310 310 void remote_usbhid_get_event_length(ddf_fun_t *fun, void *iface, 311 ipc_callid_t callid, ipc_call_t *call)311 cap_call_handle_t callid, ipc_call_t *call) 312 312 { 313 313 printf("remote_usbhid_get_event_length()\n"); … … 335 335 336 336 void remote_usbhid_get_event(ddf_fun_t *fun, void *iface, 337 ipc_callid_t callid, ipc_call_t *call)337 cap_call_handle_t callid, ipc_call_t *call) 338 338 { 339 339 usbhid_iface_t *hid_iface = (usbhid_iface_t *) iface; … … 347 347 348 348 size_t len; 349 ipc_callid_t data_callid;349 cap_call_handle_t data_callid; 350 350 if (!async_data_read_receive(&data_callid, &len)) { 351 351 async_answer_0(callid, EPARTY); … … 394 394 395 395 void remote_usbhid_get_report_descriptor_length(ddf_fun_t *fun, void *iface, 396 ipc_callid_t callid, ipc_call_t *call)396 cap_call_handle_t callid, ipc_call_t *call) 397 397 { 398 398 usbhid_iface_t *hid_iface = (usbhid_iface_t *) iface; … … 408 408 409 409 void remote_usbhid_get_report_descriptor(ddf_fun_t *fun, void *iface, 410 ipc_callid_t callid, ipc_call_t *call)410 cap_call_handle_t callid, ipc_call_t *call) 411 411 { 412 412 usbhid_iface_t *hid_iface = (usbhid_iface_t *) iface; … … 418 418 419 419 size_t len; 420 ipc_callid_t data_callid;420 cap_call_handle_t data_callid; 421 421 if (!async_data_read_receive(&data_callid, &len)) { 422 422 async_answer_0(callid, EINVAL);
Note:
See TracChangeset
for help on using the changeset viewer.