1 #ifndef _SYS_INTERRUPT_H_
2 #define _SYS_INTERRUPT_H_
6 struct interrupt_context {
7 /* pushed on the stack, before the handler is called */
26 /* assembly interrupt trampoline handles these */
29 /* following pushed onto stack by CPU */
37 struct interrupt_handler {
38 void (*handler)(struct interrupt_context *, void *);
40 struct interrupt_handler *next;
41 struct interrupt_handler *prev;
44 void interrupt_handler_null();
117 void init_interrupts();
119 int interrupts_enabled();
120 void enable_interrupts();
121 void disable_interrupts();
122 int interrupts_set(int enable);
124 void interrupt_add_handler(unsigned int intno, struct interrupt_handler *handler);
125 void interrupt_remove_handler(unsigned int intno, struct interrupt_handler *handler);