Lines Matching refs:vector
36 static void default_isr_handler(int vector, void *param) in default_isr_handler() argument
38 rt_kprintf("unhandled irq: %d\n", vector); in default_isr_handler()
74 void rt_hw_interrupt_mask(int vector) in rt_hw_interrupt_mask() argument
76 if (vector < 8) in rt_hw_interrupt_mask()
78 IRQ_DISABLE_BASIC = (1 << vector); in rt_hw_interrupt_mask()
80 else if (vector < 32) in rt_hw_interrupt_mask()
82 IRQ_DISABLE1 = (1 << vector); in rt_hw_interrupt_mask()
86 vector = vector % 32; in rt_hw_interrupt_mask()
87 IRQ_DISABLE2 = (1 << vector); in rt_hw_interrupt_mask()
95 void rt_hw_interrupt_umask(int vector) in rt_hw_interrupt_umask() argument
97 if (vector < 8) in rt_hw_interrupt_umask()
99 IRQ_ENABLE_BASIC = (1 << vector); in rt_hw_interrupt_umask()
101 else if (vector < 32) in rt_hw_interrupt_umask()
103 IRQ_ENABLE1 = (1 << vector); in rt_hw_interrupt_umask()
107 vector = vector % 32; in rt_hw_interrupt_umask()
108 IRQ_ENABLE2 = (1 << vector); in rt_hw_interrupt_umask()
118 rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, in rt_hw_interrupt_install() argument
123 if (vector < MAX_HANDLERS) in rt_hw_interrupt_install()
125 old_handler = isr_table[vector].handler; in rt_hw_interrupt_install()
130 rt_strncpy(isr_table[vector].name, name, RT_NAME_MAX); in rt_hw_interrupt_install()
132 isr_table[vector].handler = handler; in rt_hw_interrupt_install()
133 isr_table[vector].param = param; in rt_hw_interrupt_install()