Ignore:
File:
1 edited

Legend:

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

    r3f74275 r582a0b8  
    5555 *
    5656 * @param inr    IRQ number.
     57 * @param devno  Device number of the device generating inr.
    5758 * @param method Use this method for notifying me.
    5859 * @param ucode  Top-half pseudocode handler.
    5960 *
    60  * @return IRQ capability handle returned by the kernel.
    61  * @return Error code returned by the kernel.
     61 * @return Value returned by the kernel.
    6262 *
    6363 */
    64 int ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode)
     64int ipc_irq_subscribe(int inr, int devno, sysarg_t method,
     65    const irq_code_t *ucode)
    6566{
    6667        if (ucode == NULL)
    6768                ucode = &default_ucode;
    6869       
    69         return __SYSCALL3(SYS_IPC_IRQ_SUBSCRIBE, inr, method, (sysarg_t) ucode);
     70        return __SYSCALL4(SYS_IPC_IRQ_SUBSCRIBE, inr, devno, method,
     71            (sysarg_t) ucode);
    7072}
    7173
    7274/** Unsubscribe from IRQ notification.
    7375 *
    74  * @param cap   IRQ capability handle.
     76 * @param inr   IRQ number.
     77 * @param devno Device number of the device generating inr.
    7578 *
    7679 * @return Value returned by the kernel.
    7780 *
    7881 */
    79 int ipc_irq_unsubscribe(int cap)
     82int ipc_irq_unsubscribe(int inr, int devno)
    8083{
    81         return __SYSCALL1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);
     84        return __SYSCALL2(SYS_IPC_IRQ_UNSUBSCRIBE, inr, devno);
    8285}
    8386
Note: See TracChangeset for help on using the changeset viewer.