From: Ben Gras Date: Thu, 12 May 2005 16:07:15 +0000 (+0000) Subject: Some #defines for removing registered irq handler X-Git-Tag: v3.1.0~850 X-Git-Url: http://zhaoyanbai.com/repos/tz-link.htm?a=commitdiff_plain;h=873e44b41fdd61ca6274cccf9f4d19f53c3d5029;p=minix.git Some #defines for removing registered irq handler --- diff --git a/include/minix/com.h b/include/minix/com.h index 3d370c418..1e0d9dabb 100755 --- a/include/minix/com.h +++ b/include/minix/com.h @@ -269,8 +269,9 @@ /* Field names for SYS_IRQCTL. */ #define IRQ_REQUEST m5_c1 /* what to do? */ # define IRQ_SETPOLICY 1 /* manage a slot of the IRQ table */ -# define IRQ_ENABLE 2 /* enable interrupts */ -# define IRQ_DISABLE 3 /* disable interrupts */ +# define IRQ_RMPOLICY 2 /* remove a slot of the IRQ table */ +# define IRQ_ENABLE 3 /* enable interrupts */ +# define IRQ_DISABLE 4 /* disable interrupts */ #define IRQ_VECTOR m5_c2 /* irq vector */ #define IRQ_POLICY m5_i1 /* options for IRQCTL request */ # define IRQ_REENABLE 0x001 /* reenable IRQ line after interrupt */ diff --git a/include/minix/syslib.h b/include/minix/syslib.h index f59d5861f..2e034255a 100755 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -79,6 +79,8 @@ _PROTOTYPE(int sys_syncalrm, (int proc_nr, clock_t exp_time, int abs_time) ); sys_irqctl(IRQ_ENABLE, 0, 0, hook_id) #define sys_irqsetpolicy(irq_vec, policy, hook_id) \ sys_irqctl(IRQ_SETPOLICY, irq_vec, policy, hook_id) +#define sys_irqrmpolicy(irq_vec, hook_id) \ + sys_irqctl(IRQ_RMPOLICY, irq_vec, 0, hook_id) _PROTOTYPE ( int sys_irqctl, (int request, int irq_vec, int policy, int *irq_hook_id) );