Changeset 161ae09 in mainline
- Timestamp:
- 2009-01-25T14:46:00Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48daf64
- Parents:
- bffd91f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/ipc/ipc.h
rbffd91f r161ae09 48 48 typedef sysarg_t ipc_callid_t; 49 49 50 typedef void (* ipc_async_callback_t)(void *private, int retval, 51 ipc_call_t *data); 50 typedef void (* ipc_async_callback_t)(void *, int, ipc_call_t *); 52 51 53 52 /* … … 174 173 (arg4), (arg5), (res1), (res2), (res3), (res4), (res5)) 175 174 176 extern int ipc_call_sync_fast(int phoneid, ipcarg_t method, ipcarg_t arg1, 177 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *result1, ipcarg_t *result2, 178 ipcarg_t *result3, ipcarg_t *result4, ipcarg_t *result5); 179 180 extern int ipc_call_sync_slow(int phoneid, ipcarg_t method, ipcarg_t arg1, 181 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipcarg_t arg5, 182 ipcarg_t *result1, ipcarg_t *result2, ipcarg_t *result3, ipcarg_t *result4, 183 ipcarg_t *result5); 184 185 extern ipc_callid_t ipc_wait_cycle(ipc_call_t *call, uint32_t usec, int flags); 186 extern ipc_callid_t ipc_wait_for_call_timeout(ipc_call_t *data, uint32_t usec); 175 extern int ipc_call_sync_fast(int, ipcarg_t, ipcarg_t, ipcarg_t, ipcarg_t, 176 ipcarg_t *, ipcarg_t *, ipcarg_t *, ipcarg_t *, ipcarg_t *); 177 178 extern int ipc_call_sync_slow(int, ipcarg_t, ipcarg_t, ipcarg_t, ipcarg_t, 179 ipcarg_t, ipcarg_t, ipcarg_t *, ipcarg_t *, ipcarg_t *, ipcarg_t *, 180 ipcarg_t *); 181 182 extern ipc_callid_t ipc_wait_cycle(ipc_call_t *, uint32_t, int); 183 extern ipc_callid_t ipc_wait_for_call_timeout(ipc_call_t *, uint32_t); 187 184 static inline ipc_callid_t ipc_wait_for_call(ipc_call_t *data) 188 185 { 189 186 return ipc_wait_for_call_timeout(data, SYNCH_NO_TIMEOUT); 190 187 } 191 extern ipc_callid_t ipc_trywait_for_call(ipc_call_t * data);188 extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *); 192 189 193 190 /* … … 210 207 ipc_answer_slow((callid), (retval), (arg1), (arg2), (arg3), (arg4), (arg5)) 211 208 212 extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval,213 ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4);214 extern ipcarg_t ipc_answer_slow(ipc_callid_t callid, ipcarg_t retval,215 ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipcarg_t arg5);209 extern ipcarg_t ipc_answer_fast(ipc_callid_t, ipcarg_t, ipcarg_t, ipcarg_t, 210 ipcarg_t, ipcarg_t); 211 extern ipcarg_t ipc_answer_slow(ipc_callid_t, ipcarg_t, ipcarg_t, ipcarg_t, 212 ipcarg_t, ipcarg_t, ipcarg_t); 216 213 217 214 /* … … 221 218 * to m. 222 219 */ 223 #define ipc_call_async_0(phoneid, method, private, callback, \ 224 can_preempt) \ 220 #define ipc_call_async_0(phoneid, method, private, callback, can_preempt) \ 225 221 ipc_call_async_fast((phoneid), (method), 0, 0, 0, 0, (private), \ 226 222 (callback), (can_preempt)) … … 246 242 (arg4), (arg5), (private), (callback), (can_preempt)) 247 243 248 extern void ipc_call_async_fast(int phoneid, ipcarg_t method, ipcarg_t arg1, 249 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, void *private, 250 ipc_async_callback_t callback, int can_preempt); 251 extern void ipc_call_async_slow(int phoneid, ipcarg_t method, ipcarg_t arg1, 252 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t arg4, ipcarg_t arg5, void *private, 253 ipc_async_callback_t callback, int can_preempt); 254 255 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3, 256 ipcarg_t *phone); 257 extern int ipc_connect_me_to(int phoneid, int arg1, int arg2, int arg3); 258 extern int ipc_hangup(int phoneid); 259 extern int ipc_register_irq(int inr, int devno, int method, irq_code_t *code); 260 extern int ipc_unregister_irq(int inr, int devno); 261 extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, 262 ipcarg_t arg1, ipcarg_t arg2, int mode); 244 extern void ipc_call_async_fast(int, ipcarg_t, ipcarg_t, ipcarg_t, ipcarg_t, 245 ipcarg_t, void *, ipc_async_callback_t, int); 246 extern void ipc_call_async_slow(int, ipcarg_t, ipcarg_t, ipcarg_t, ipcarg_t, 247 ipcarg_t, ipcarg_t, void *, ipc_async_callback_t, int); 248 249 extern int ipc_connect_to_me(int, int, int, int, ipcarg_t *); 250 extern int ipc_connect_me_to(int, int, int, int); 251 extern int ipc_hangup(int); 252 extern int ipc_register_irq(int, int, int, irq_code_t *); 253 extern int ipc_unregister_irq(int, int); 254 extern int ipc_forward_fast(ipc_callid_t, int, int, ipcarg_t, ipcarg_t, int); 263 255 264 256 … … 275 267 ipc_share_in_start((phoneid), (dst), (size), (arg), (flags)) 276 268 277 extern int ipc_share_in_start(int phoneid, void *dst, size_t size, ipcarg_t arg, 278 int *flags); 279 extern int ipc_share_in_receive(ipc_callid_t *callid, size_t *size); 280 extern int ipc_share_in_finalize(ipc_callid_t callid, void *src, int flags); 281 extern int ipc_share_out_start(int phoneid, void *src, int flags); 282 extern int ipc_share_out_receive(ipc_callid_t *callid, size_t *size, int *flags); 283 extern int ipc_share_out_finalize(ipc_callid_t callid, void *dst); 284 extern int ipc_data_read_start(int phoneid, void *dst, size_t size); 285 extern int ipc_data_read_receive(ipc_callid_t *callid, size_t *size); 286 extern int ipc_data_read_finalize(ipc_callid_t callid, const void *src, 287 size_t size); 288 extern int ipc_data_write_start(int phoneid, const void *src, size_t size); 289 extern int ipc_data_write_receive(ipc_callid_t *callid, size_t *size); 290 extern int ipc_data_write_finalize(ipc_callid_t callid, void *dst, size_t size); 269 extern int ipc_share_in_start(int, void *, size_t, ipcarg_t, int *); 270 extern int ipc_share_in_receive(ipc_callid_t *, size_t *); 271 extern int ipc_share_in_finalize(ipc_callid_t, void *, int ); 272 extern int ipc_share_out_start(int, void *, int); 273 extern int ipc_share_out_receive(ipc_callid_t *, size_t *, int *); 274 extern int ipc_share_out_finalize(ipc_callid_t, void *); 275 extern int ipc_data_read_start(int, void *, size_t); 276 extern int ipc_data_read_receive(ipc_callid_t *, size_t *); 277 extern int ipc_data_read_finalize(ipc_callid_t, const void *, size_t); 278 extern int ipc_data_write_start(int, const void *, size_t); 279 extern int ipc_data_write_receive(ipc_callid_t *, size_t *); 280 extern int ipc_data_write_finalize(ipc_callid_t, void *, size_t); 291 281 292 282 #include <task.h> 293 283 294 extern int ipc_connect_kbox(task_id_t id);284 extern int ipc_connect_kbox(task_id_t); 295 285 296 286 #endif
Note:
See TracChangeset
for help on using the changeset viewer.