23 typedef void (*genirq_handler)(
void *arg);
24 typedef void* genirq_t;
35 extern genirq_t genirq_init(
int number_of_irqs);
42 extern void genirq_destroy(genirq_t d);
48 extern int genirq_check(genirq_t d,
int irq);
57 extern void *genirq_alloc_handler(genirq_handler isr,
void *arg);
60 #define genirq_free_handler(handler) free(handler) 76 extern int genirq_register(genirq_t d,
int irq,
void *handler);
89 extern void *genirq_unregister(genirq_t d,
int irq,
90 genirq_handler isr,
void *arg);
104 extern int genirq_enable(genirq_t d,
int irq, genirq_handler isr,
void *arg);
118 extern int genirq_disable(genirq_t d,
int irq, genirq_handler isr,
void *arg);
126 extern void genirq_doirq(genirq_t d,
int irq);