Working PS/2 keyboard driver
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m19s

This commit is contained in:
2026-02-15 14:28:07 +01:00
parent b0b69f3e9e
commit 927d9e4c73
29 changed files with 374 additions and 29 deletions

View File

@@ -1,20 +1,21 @@
#ifndef _KERNEL_IRQ_IRQ_H
#define _KERNEL_IRQ_IRQ_H
#include <libk/list.h>
#include <libk/rbtree.h>
#include <libk/std.h>
typedef void (*irq_func_t) (void* arg, void* regs);
struct irq {
struct list_node_link irqs_link;
uint32_t irq_num;
struct rb_node_link irq_tree_link;
irq_func_t func;
void* arg;
uint32_t irq_num;
};
bool irq_attach (irq_func_t, void* arg, uint32_t irq_num);
void irq_detach (uint32_t irq_num);
struct irq* irq_find (uint32_t irq_num);
#endif // _KERNEL_IRQ_IRQ_H