19 lines
350 B
C
19 lines
350 B
C
#ifndef _KERNEL_IRQ_IRQ_H
|
|
#define _KERNEL_IRQ_IRQ_H
|
|
|
|
#include <libk/std.h>
|
|
|
|
struct irq {
|
|
struct irq* next;
|
|
|
|
void (*func) (void*);
|
|
void* arg;
|
|
uint32_t irq_num;
|
|
};
|
|
|
|
bool irq_attach (void (*func) (void*), void* arg, uint32_t irq_num);
|
|
void irq_detach (void (*func) (void*));
|
|
void irq_invoke_each (uint32_t irq_num);
|
|
|
|
#endif // _KERNEL_IRQ_IRQ_H
|