1 
2 #ifndef __IRQ_H__
3 #define __IRQ_H__
4 
5 #include <sys/queue.h>
6 
7 typedef struct IRQHandler {
8     int irq;
9     void (*cb)(void*);
10     void *arg;
11     LIST_ENTRY(IRQHandler) link;
12 } IRQHandler;
13 
14 void IRQ_Init();
15 void IRQ_Handler(int irq);
16 void IRQ_Register(int irq, struct IRQHandler *h);
17 void IRQ_Unregister(int irq, struct IRQHandler *h);
18 
19 #endif /* __IRQ_H__ */
20 
21