Changeset 250717cc in mainline for libipc/generic/ipc.c


Ignore:
Timestamp:
2006-05-16T09:30:42Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ec153a0
Parents:
51d6f80
Message:

Add services.h to codify service numbers.
Assign codes for PCI, keyboard and frame buffer services.

Rename ipc_answer() to ipc_answer_fast() and add the basic
slower variant and call it ipc_answer(). Add some doxygen comments.

Remove unused bits from the libpci library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libipc/generic/ipc.c

    r51d6f80 r250717cc  
    148148
    149149
    150 /** Send answer to a received call */
    151 ipcarg_t ipc_answer(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1,
     150/** Send a fast answer to a received call.
     151 *
     152 * The fast answer makes use of passing retval and first two arguments in registers.
     153 * If you need to return more, use the ipc_answer() instead.
     154 *
     155 * @param callid ID of the call being answered.
     156 * @param retval Return value.
     157 * @param arg1 First return argument.
     158 * @param arg2 Second return argument.
     159 *
     160 * @return Zero on success or a value from @ref errno.h on failure.
     161 */
     162ipcarg_t ipc_answer_fast(ipc_callid_t callid, ipcarg_t retval, ipcarg_t arg1,
    152163                ipcarg_t arg2)
    153164{
    154165        return __SYSCALL4(SYS_IPC_ANSWER_FAST, callid, retval, arg1, arg2);
    155166}
     167
     168/** Send a full answer to a received call.
     169 *
     170 * @param callid ID of the call being answered.
     171 * @param call Call data. Must be already initialized by the responder.
     172 *
     173 * @return Zero on success or a value from @ref errno.h on failure.
     174 */
     175ipcarg_t ipc_answer(ipc_callid_t callid, ipc_call_t *call)
     176{
     177        return __SYSCALL2(SYS_IPC_ANSWER, callid, (sysarg_t) call);
     178}
     179
    156180
    157181/** Try to dispatch queed calls from async queue */
Note: See TracChangeset for help on using the changeset viewer.