All checks were successful
Build documentation / build-and-deploy (push) Successful in 29s
21 lines
386 B
C
21 lines
386 B
C
#ifndef _KERNEL_IRQ_IRQ_H
|
|
#define _KERNEL_IRQ_IRQ_H
|
|
|
|
#include <libk/list.h>
|
|
#include <libk/std.h>
|
|
|
|
typedef void (*irq_func_t) (void* arg, void* regs);
|
|
|
|
struct irq {
|
|
struct list_node_link irqs_link;
|
|
|
|
irq_func_t func;
|
|
void* arg;
|
|
uint32_t irq_num;
|
|
};
|
|
|
|
bool irq_attach (irq_func_t, void* arg, uint32_t irq_num);
|
|
struct irq* irq_find (uint32_t irq_num);
|
|
|
|
#endif // _KERNEL_IRQ_IRQ_H
|