Changeset 8b243f2 in mainline for uspace/libc/include/ipc/ipc.h


Ignore:
Timestamp:
2007-06-17T19:34:36Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bd72c3e9
Parents:
4680ef5
Message:

Greatly improve comments in the IPC layer.
Now I think I finally start to understand our IPC internals :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/include/ipc/ipc.h

    r4680ef5 r8b243f2  
    5050
    5151typedef void (* ipc_async_callback_t)(void *private, int retval,
    52                                       ipc_call_t *data);
     52    ipc_call_t *data);
    5353
    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)
    5557extern 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);
    6060
    6161extern int ipc_call_sync(int phoneid, ipcarg_t method, ipcarg_t arg1,
    62                          ipcarg_t *result);
     62    ipcarg_t *result);
     63
    6364extern ipc_callid_t ipc_wait_cycle(ipc_call_t *call, uint32_t usec, int flags);
    6465extern ipc_callid_t ipc_wait_for_call_timeout(ipc_call_t *data, uint32_t usec);
     
    6970extern ipc_callid_t ipc_trywait_for_call(ipc_call_t *data);
    7071
    71 extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1,
    72                           ipcarg_t arg2);
     72extern ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval,
     73    ipcarg_t arg1, ipcarg_t arg2);
    7374extern ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call);
    7475
    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))
    7679extern 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);
    7982extern 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);
    8285
    8386extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone);
     
    8689extern int ipc_register_irq(int inr, int devno, int method, irq_code_t *code);
    8790extern 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);
     91extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
     92    ipcarg_t arg1);
    8993
    9094#endif
Note: See TracChangeset for help on using the changeset viewer.