Changeset 8b243f2 in mainline for uspace/libc/include/ipc/ipc.h
- Timestamp:
- 2007-06-17T19:34:36Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd72c3e9
- Parents:
- 4680ef5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/libc/include/ipc/ipc.h
r4680ef5 r8b243f2 50 50 51 51 typedef void (* ipc_async_callback_t)(void *private, int retval, 52 52 ipc_call_t *data); 53 53 54 #define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), (res2), 0) 54 #define ipc_call_sync_2(phoneid, method, arg1, arg2, res1, res2) \ 55 ipc_call_sync_3((phoneid), (method), (arg1), (arg2), 0, (res1), (res2), \ 56 0) 55 57 extern int ipc_call_sync_3(int phoneid, ipcarg_t method, ipcarg_t arg1, 56 ipcarg_t arg2, ipcarg_t arg3, 57 ipcarg_t *result1, ipcarg_t *result2, 58 ipcarg_t *result3); 59 58 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *result1, ipcarg_t *result2, 59 ipcarg_t *result3); 60 60 61 61 extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1, 62 ipcarg_t *result); 62 ipcarg_t *result); 63 63 64 extern ipc_callid_t ipc_wait_cycle(ipc_call_t *call, uint32_t usec, int flags); 64 65 extern ipc_callid_t ipc_wait_for_call_timeout(ipc_call_t *data, uint32_t usec); … … 69 70 extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *data); 70 71 71 extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1,72 72 extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, 73 ipcarg_t arg1, ipcarg_t arg2); 73 74 extern ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call); 74 75 75 #define ipc_call_async(phoneid,method,arg1,private, callback,can_preempt) (ipc_call_async_2(phoneid, method, arg1, 0, private, callback, can_preempt)) 76 #define ipc_call_async(phoneid, method, arg1, private, callback, can_preempt) \ 77 (ipc_call_async_2(phoneid, method, arg1, 0, private, callback, \ 78 can_preempt)) 76 79 extern void ipc_call_async_2(int phoneid, ipcarg_t method, ipcarg_t arg1, 77 ipcarg_t arg2, void *private,78 ipc_async_callback_t callback,int can_preempt);80 ipcarg_t arg2, void *private, ipc_async_callback_t callback, 81 int can_preempt); 79 82 extern void ipc_call_async_3(int phoneid, ipcarg_t method, ipcarg_t arg1, 80 ipcarg_t arg2, ipcarg_t arg3, void *private,81 ipc_async_callback_t callback,int can_preempt);83 ipcarg_t arg2, ipcarg_t arg3, void *private, ipc_async_callback_t callback, 84 int can_preempt); 82 85 83 86 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone); … … 86 89 extern int ipc_register_irq(int inr, int devno, int method, irq_code_t *code); 87 90 extern int ipc_unregister_irq(int inr, int devno); 88 extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, ipcarg_t arg1); 91 extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, 92 ipcarg_t arg1); 89 93 90 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.