Changes in uspace/lib/c/generic/async/client.c [4805495:25f6bddb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/client.c
r4805495 r25f6bddb 95 95 */ 96 96 97 #define _LIBC_ASYNC_C_97 #define LIBC_ASYNC_C_ 98 98 #include <ipc/ipc.h> 99 99 #include <async.h> 100 100 #include "../private/async.h" 101 101 #include "../private/ns.h" 102 #undef _LIBC_ASYNC_C_102 #undef LIBC_ASYNC_C_ 103 103 104 104 #include <ipc/irq.h> … … 249 249 * 250 250 */ 251 staticaid_t async_send_fast(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,251 aid_t async_send_fast(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, 252 252 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, ipc_call_t *dataptr) 253 253 { … … 289 289 * 290 290 */ 291 staticaid_t async_send_slow(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,291 aid_t async_send_slow(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, 292 292 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, 293 293 ipc_call_t *dataptr) … … 310 310 311 311 return (aid_t) msg; 312 }313 314 aid_t async_send_0(async_exch_t *exch, sysarg_t imethod, ipc_call_t *dataptr)315 {316 return async_send_fast(exch, imethod, 0, 0, 0, 0, dataptr);317 }318 319 aid_t async_send_1(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,320 ipc_call_t *dataptr)321 {322 return async_send_fast(exch, imethod, arg1, 0, 0, 0, dataptr);323 }324 325 aid_t async_send_2(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,326 sysarg_t arg2, ipc_call_t *dataptr)327 {328 return async_send_fast(exch, imethod, arg1, arg2, 0, 0, dataptr);329 }330 331 aid_t async_send_3(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,332 sysarg_t arg2, sysarg_t arg3, ipc_call_t *dataptr)333 {334 return async_send_fast(exch, imethod, arg1, arg2, arg3, 0, dataptr);335 }336 337 aid_t async_send_4(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,338 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, ipc_call_t *dataptr)339 {340 return async_send_fast(exch, imethod, arg1, arg2, arg3, arg4, dataptr);341 }342 343 aid_t async_send_5(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1,344 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5,345 ipc_call_t *dataptr)346 {347 return async_send_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5,348 dataptr);349 312 } 350 313 … … 471 434 * 472 435 */ 473 static errno_t async_req_fast(async_exch_t *exch, sysarg_t imethod,474 sysarg_t arg 1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4,475 sysarg_t *r 1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)436 errno_t async_req_fast(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, 437 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t *r1, sysarg_t *r2, 438 sysarg_t *r3, sysarg_t *r4, sysarg_t *r5) 476 439 { 477 440 if (exch == NULL) … … 523 486 * 524 487 */ 525 static errno_t async_req_slow(async_exch_t *exch, sysarg_t imethod,526 sysarg_t arg 1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5,527 sysarg_t *r 1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)488 errno_t async_req_slow(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, 489 sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t *r1, 490 sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5) 528 491 { 529 492 if (exch == NULL) … … 553 516 554 517 return rc; 555 }556 557 errno_t async_req_0_0(async_exch_t *exch, sysarg_t imethod)558 {559 return async_req_fast(exch, imethod, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL);560 }561 562 errno_t async_req_0_1(async_exch_t *exch, sysarg_t imethod, sysarg_t *r1)563 {564 return async_req_fast(exch, imethod, 0, 0, 0, 0, r1, NULL, NULL, NULL, NULL);565 }566 567 errno_t async_req_0_2(async_exch_t *exch, sysarg_t imethod, sysarg_t *r1, sysarg_t *r2)568 {569 return async_req_fast(exch, imethod, 0, 0, 0, 0, r1, r2, NULL, NULL, NULL);570 }571 572 errno_t async_req_0_3(async_exch_t *exch, sysarg_t imethod, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3)573 {574 return async_req_fast(exch, imethod, 0, 0, 0, 0, r1, r2, r3, NULL, NULL);575 }576 577 errno_t async_req_0_4(async_exch_t *exch, sysarg_t imethod, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4)578 {579 return async_req_fast(exch, imethod, 0, 0, 0, 0, r1, r2, r3, r4, NULL);580 }581 582 errno_t async_req_0_5(async_exch_t *exch, sysarg_t imethod, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)583 {584 return async_req_fast(exch, imethod, 0, 0, 0, 0, r1, r2, r3, r4, r5);585 }586 587 errno_t async_req_1_0(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1)588 {589 return async_req_fast(exch, imethod, arg1, 0, 0, 0, NULL, NULL, NULL, NULL, NULL);590 }591 592 errno_t async_req_1_1(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t *r1)593 {594 return async_req_fast(exch, imethod, arg1, 0, 0, 0, r1, NULL, NULL, NULL, NULL);595 }596 597 errno_t async_req_1_2(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t *r1, sysarg_t *r2)598 {599 return async_req_fast(exch, imethod, arg1, 0, 0, 0, r1, r2, NULL, NULL, NULL);600 }601 602 errno_t async_req_1_3(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3)603 {604 return async_req_fast(exch, imethod, arg1, 0, 0, 0, r1, r2, r3, NULL, NULL);605 }606 607 errno_t async_req_1_4(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4)608 {609 return async_req_fast(exch, imethod, arg1, 0, 0, 0, r1, r2, r3, r4, NULL);610 }611 612 errno_t async_req_1_5(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)613 {614 return async_req_fast(exch, imethod, arg1, 0, 0, 0, r1, r2, r3, r4, r5);615 }616 617 errno_t async_req_2_0(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2)618 {619 return async_req_fast(exch, imethod, arg1, arg2, 0, 0, NULL, NULL, NULL, NULL, NULL);620 }621 622 errno_t async_req_2_1(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t *r1)623 {624 return async_req_fast(exch, imethod, arg1, arg2, 0, 0, r1, NULL, NULL, NULL, NULL);625 }626 627 errno_t async_req_2_2(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t *r1, sysarg_t *r2)628 {629 return async_req_fast(exch, imethod, arg1, arg2, 0, 0, r1, r2, NULL, NULL, NULL);630 }631 632 errno_t async_req_2_3(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3)633 {634 return async_req_fast(exch, imethod, arg1, arg2, 0, 0, r1, r2, r3, NULL, NULL);635 }636 637 errno_t async_req_2_4(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4)638 {639 return async_req_fast(exch, imethod, arg1, arg2, 0, 0, r1, r2, r3, r4, NULL);640 }641 642 errno_t async_req_2_5(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)643 {644 return async_req_fast(exch, imethod, arg1, arg2, 0, 0, r1, r2, r3, r4, r5);645 }646 647 errno_t async_req_3_0(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3)648 {649 return async_req_fast(exch, imethod, arg1, arg2, arg3, 0, NULL, NULL, NULL, NULL, NULL);650 }651 652 errno_t async_req_3_1(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t *r1)653 {654 return async_req_fast(exch, imethod, arg1, arg2, arg3, 0, r1, NULL, NULL, NULL, NULL);655 }656 657 errno_t async_req_3_2(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t *r1, sysarg_t *r2)658 {659 return async_req_fast(exch, imethod, arg1, arg2, arg3, 0, r1, r2, NULL, NULL, NULL);660 }661 662 errno_t async_req_3_3(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3)663 {664 return async_req_fast(exch, imethod, arg1, arg2, arg3, 0, r1, r2, r3, NULL, NULL);665 }666 667 errno_t async_req_3_4(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4)668 {669 return async_req_fast(exch, imethod, arg1, arg2, arg3, 0, r1, r2, r3, r4, NULL);670 }671 672 errno_t async_req_3_5(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)673 {674 return async_req_fast(exch, imethod, arg1, arg2, arg3, 0, r1, r2, r3, r4, r5);675 }676 677 errno_t async_req_4_0(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4)678 {679 return async_req_fast(exch, imethod, arg1, arg2, arg3, arg4, NULL, NULL, NULL, NULL, NULL);680 }681 682 errno_t async_req_4_1(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t *r1)683 {684 return async_req_fast(exch, imethod, arg1, arg2, arg3, arg4, r1, NULL, NULL, NULL, NULL);685 }686 687 errno_t async_req_4_2(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t *r1, sysarg_t *r2)688 {689 return async_req_fast(exch, imethod, arg1, arg2, arg3, arg4, r1, r2, NULL, NULL, NULL);690 }691 692 errno_t async_req_4_3(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3)693 {694 return async_req_fast(exch, imethod, arg1, arg2, arg3, arg4, r1, r2, r3, NULL, NULL);695 }696 697 errno_t async_req_4_4(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4)698 {699 return async_req_fast(exch, imethod, arg1, arg2, arg3, arg4, r1, r2, r3, r4, NULL);700 }701 702 errno_t async_req_4_5(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)703 {704 return async_req_fast(exch, imethod, arg1, arg2, arg3, arg4, r1, r2, r3, r4, r5);705 }706 707 errno_t async_req_5_0(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5)708 {709 return async_req_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5, NULL, NULL, NULL, NULL, NULL);710 }711 712 errno_t async_req_5_1(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t *r1)713 {714 return async_req_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5, r1, NULL, NULL, NULL, NULL);715 }716 717 errno_t async_req_5_2(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t *r1, sysarg_t *r2)718 {719 return async_req_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5, r1, r2, NULL, NULL, NULL);720 }721 722 errno_t async_req_5_3(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3)723 {724 return async_req_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5, r1, r2, r3, NULL, NULL);725 }726 727 errno_t async_req_5_4(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4)728 {729 return async_req_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5, r1, r2, r3, r4, NULL);730 }731 732 errno_t async_req_5_5(async_exch_t *exch, sysarg_t imethod, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, sysarg_t arg4, sysarg_t arg5, sysarg_t *r1, sysarg_t *r2, sysarg_t *r3, sysarg_t *r4, sysarg_t *r5)733 {734 return async_req_slow(exch, imethod, arg1, arg2, arg3, arg4, arg5, r1, r2, r3, r4, r5);735 518 } 736 519 … … 1143 926 * 1144 927 */ 1145 static errno_t async_share_in_start(async_exch_t *exch, size_t size,1146 sysarg_t arg,unsigned int *flags, void **dst)928 errno_t async_share_in_start(async_exch_t *exch, size_t size, sysarg_t arg, 929 unsigned int *flags, void **dst) 1147 930 { 1148 931 if (exch == NULL) … … 1160 943 *dst = (void *) _dst; 1161 944 return res; 1162 }1163 1164 errno_t async_share_in_start_0_0(async_exch_t *exch, size_t size, void **dst)1165 {1166 return async_share_in_start(exch, size, 0, NULL, dst);1167 }1168 1169 errno_t async_share_in_start_0_1(async_exch_t *exch, size_t size,1170 unsigned int *flags, void **dst)1171 {1172 return async_share_in_start(exch, size, 0, flags, dst);1173 }1174 1175 errno_t async_share_in_start_1_0(async_exch_t *exch, size_t size, sysarg_t arg,1176 void **dst)1177 {1178 return async_share_in_start(exch, size, arg, NULL, dst);1179 }1180 1181 errno_t async_share_in_start_1_1(async_exch_t *exch, size_t size, sysarg_t arg,1182 unsigned int *flags, void **dst)1183 {1184 return async_share_in_start(exch, size, arg, flags, dst);1185 945 } 1186 946
Note:
See TracChangeset
for help on using the changeset viewer.