Subversion Repositories HelenOS

Rev

Rev 1866 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1866 Rev 1923
Line 447... Line 447...
447
int ipc_hangup(int phoneid)
447
int ipc_hangup(int phoneid)
448
{
448
{
449
    return __SYSCALL1(SYS_IPC_HANGUP, phoneid);
449
    return __SYSCALL1(SYS_IPC_HANGUP, phoneid);
450
}
450
}
451
 
451
 
-
 
452
/** Register IRQ notification.
-
 
453
 *
-
 
454
 * @param inr IRQ number.
-
 
455
 * @param devno Device number of the device generating inr.
-
 
456
 * @param method Use this method for notifying me.
-
 
457
 * @param ucode Top-half pseudocode handler.
-
 
458
 *
-
 
459
 * @return Value returned by the kernel.
-
 
460
 */
452
int ipc_register_irq(int irq, irq_code_t *ucode)
461
int ipc_register_irq(int inr, int devno, int method, irq_code_t *ucode)
453
{
462
{
454
    return __SYSCALL2(SYS_IPC_REGISTER_IRQ, irq, (sysarg_t) ucode);
463
    return __SYSCALL4(SYS_IPC_REGISTER_IRQ, inr, devno, method, (sysarg_t) ucode);
455
}
464
}
456
 
465
 
-
 
466
/** Unregister IRQ notification.
-
 
467
 *
-
 
468
 * @param inr IRQ number.
-
 
469
 * @param devno Device number of the device generating inr.
-
 
470
 *
-
 
471
 * @return Value returned by the kernel.
-
 
472
 */
457
int ipc_unregister_irq(int irq)
473
int ipc_unregister_irq(int inr, int devno)
458
{
474
{
459
    return __SYSCALL1(SYS_IPC_UNREGISTER_IRQ, irq);
475
    return __SYSCALL2(SYS_IPC_UNREGISTER_IRQ, inr, devno);
460
}
476
}
461
 
477
 
462
int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, ipcarg_t arg1)
478
int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, ipcarg_t arg1)
463
{
479
{
464
    return __SYSCALL4(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1);
480
    return __SYSCALL4(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1);