Rev 2927 | Rev 3448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 3403 | ||
---|---|---|---|
Line 680... | Line 680... | ||
680 | int ipc_share_in_start(int phoneid, void *dst, size_t size, ipcarg_t arg, |
680 | int ipc_share_in_start(int phoneid, void *dst, size_t size, ipcarg_t arg, |
681 | int *flags) |
681 | int *flags) |
682 | { |
682 | { |
683 | int res; |
683 | int res; |
684 | sysarg_t tmp_flags; |
684 | sysarg_t tmp_flags; |
685 | res = ipc_call_sync_3_2(phoneid, IPC_M_SHARE_IN, (ipcarg_t) dst, |
685 | res = async_req_3_2(phoneid, IPC_M_SHARE_IN, (ipcarg_t) dst, |
686 | (ipcarg_t) size, arg, NULL, &tmp_flags); |
686 | (ipcarg_t) size, arg, NULL, &tmp_flags); |
687 | if (flags) |
687 | if (flags) |
688 | *flags = tmp_flags; |
688 | *flags = tmp_flags; |
689 | return res; |
689 | return res; |
690 | } |
690 | } |
Line 740... | Line 740... | ||
740 | * |
740 | * |
741 | * @return Zero on success or a negative error code from errno.h. |
741 | * @return Zero on success or a negative error code from errno.h. |
742 | */ |
742 | */ |
743 | int ipc_share_out_start(int phoneid, void *src, int flags) |
743 | int ipc_share_out_start(int phoneid, void *src, int flags) |
744 | { |
744 | { |
745 | return ipc_call_sync_3_0(phoneid, IPC_M_SHARE_OUT, (ipcarg_t) src, 0, |
745 | return async_req_3_0(phoneid, IPC_M_SHARE_OUT, (ipcarg_t) src, 0, |
746 | (ipcarg_t) flags); |
746 | (ipcarg_t) flags); |
747 | } |
747 | } |
748 | 748 | ||
749 | /** Wrapper for receiving the IPC_M_SHARE_OUT calls. |
749 | /** Wrapper for receiving the IPC_M_SHARE_OUT calls. |
750 | * |
750 | * |
Line 801... | Line 801... | ||
801 | * |
801 | * |
802 | * @return Zero on success or a negative error code from errno.h. |
802 | * @return Zero on success or a negative error code from errno.h. |
803 | */ |
803 | */ |
804 | int ipc_data_read_start(int phoneid, void *dst, size_t size) |
804 | int ipc_data_read_start(int phoneid, void *dst, size_t size) |
805 | { |
805 | { |
806 | return ipc_call_sync_2_0(phoneid, IPC_M_DATA_READ, (ipcarg_t) dst, |
806 | return async_req_2_0(phoneid, IPC_M_DATA_READ, (ipcarg_t) dst, |
807 | (ipcarg_t) size); |
807 | (ipcarg_t) size); |
808 | } |
808 | } |
809 | 809 | ||
810 | /** Wrapper for receiving the IPC_M_DATA_READ calls. |
810 | /** Wrapper for receiving the IPC_M_DATA_READ calls. |
811 | * |
811 | * |
Line 860... | Line 860... | ||
860 | * |
860 | * |
861 | * @return Zero on success or a negative error code from errno.h. |
861 | * @return Zero on success or a negative error code from errno.h. |
862 | */ |
862 | */ |
863 | int ipc_data_write_start(int phoneid, void *src, size_t size) |
863 | int ipc_data_write_start(int phoneid, void *src, size_t size) |
864 | { |
864 | { |
865 | return ipc_call_sync_2_0(phoneid, IPC_M_DATA_WRITE, (ipcarg_t) src, |
865 | return async_req_2_0(phoneid, IPC_M_DATA_WRITE, (ipcarg_t) src, |
866 | (ipcarg_t) size); |
866 | (ipcarg_t) size); |
867 | } |
867 | } |
868 | 868 | ||
869 | /** Wrapper for receiving the IPC_M_DATA_WRITE calls. |
869 | /** Wrapper for receiving the IPC_M_DATA_WRITE calls. |
870 | * |
870 | * |