Some #defines for removing registered irq handler
This commit is contained in:
parent
d0c3e8f818
commit
873e44b41f
2 changed files with 5 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue