Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/ipc.c

    r64d2b10 r124c061  
    4545#include <errno.h>
    4646#include <adt/list.h>
     47#include <stdio.h>
     48#include <unistd.h>
    4749#include <futex.h>
     50#include <kernel/synch/synch.h>
     51#include <async.h>
    4852#include <fibril.h>
     53#include <assert.h>
    4954
    5055/**
     
    645650}
    646651
     652/** Register IRQ notification.
     653 *
     654 * @param inr           IRQ number.
     655 * @param devno         Device number of the device generating inr.
     656 * @param method        Use this method for notifying me.
     657 * @param ucode         Top-half pseudocode handler.
     658 *
     659 * @return              Value returned by the kernel.
     660 */
     661int ipc_register_irq(int inr, int devno, int method, irq_code_t *ucode)
     662{
     663        return __SYSCALL4(SYS_IPC_REGISTER_IRQ, inr, devno, method,
     664            (sysarg_t) ucode);
     665}
     666
     667/** Unregister IRQ notification.
     668 *
     669 * @param inr           IRQ number.
     670 * @param devno         Device number of the device generating inr.
     671 *
     672 * @return              Value returned by the kernel.
     673 */
     674int ipc_unregister_irq(int inr, int devno)
     675{
     676        return __SYSCALL2(SYS_IPC_UNREGISTER_IRQ, inr, devno);
     677}
     678
    647679/** Forward a received call to another destination.
    648680 *
Note: See TracChangeset for help on using the changeset viewer.