Changes in uspace/lib/c/generic/irq.c [3f74275:582a0b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/irq.c
r3f74275 r582a0b8 55 55 * 56 56 * @param inr IRQ number. 57 * @param devno Device number of the device generating inr. 57 58 * @param method Use this method for notifying me. 58 59 * @param ucode Top-half pseudocode handler. 59 60 * 60 * @return IRQ capability handle returned by the kernel. 61 * @return Error code returned by the kernel. 61 * @return Value returned by the kernel. 62 62 * 63 63 */ 64 int ipc_irq_subscribe(int inr, sysarg_t method, const irq_code_t *ucode) 64 int ipc_irq_subscribe(int inr, int devno, sysarg_t method, 65 const irq_code_t *ucode) 65 66 { 66 67 if (ucode == NULL) 67 68 ucode = &default_ucode; 68 69 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); 70 72 } 71 73 72 74 /** Unsubscribe from IRQ notification. 73 75 * 74 * @param cap IRQ capability handle. 76 * @param inr IRQ number. 77 * @param devno Device number of the device generating inr. 75 78 * 76 79 * @return Value returned by the kernel. 77 80 * 78 81 */ 79 int ipc_irq_unsubscribe(int cap)82 int ipc_irq_unsubscribe(int inr, int devno) 80 83 { 81 return __SYSCALL 1(SYS_IPC_IRQ_UNSUBSCRIBE, cap);84 return __SYSCALL2(SYS_IPC_IRQ_UNSUBSCRIBE, inr, devno); 82 85 } 83 86
Note:
See TracChangeset
for help on using the changeset viewer.