This commit is contained in:
Nicholas Orlowsky 2025-02-28 21:25:17 -05:00
parent ce2b373313
commit 9114529153
46 changed files with 126016 additions and 125522 deletions

16
kernel/drivers/ps2/ps2.h Normal file
View file

@ -0,0 +1,16 @@
#pragma once
#include <stdint.h>
#include "../../scheduler/scheduler.h"
struct ps2_waiter_t {
uint8_t alloc;
uint32_t pid;
};
extern struct ps2_waiter_t ps2_waiters[MAX_PROCESSES];
void init_ps2();
void handle_keypress_char(char);
void handle_keypress(uint8_t);