blob: 28af387117812c7aa5e712c7d7389353928f3d49 [file] [log] [blame]
#pragma once
#include "kint.h"
#include "registers.h"
#define KBD_CMD_PORT 0x64
#define KBD_DATA_PORT 0x60
struct kbd_scan_code_info
{
bool pressed;
bool escape;
char key;
};
extern struct kbd_scan_code_info scan_code_table[0xff];
void outb(ushort port, uchar val);
uchar inb(ushort port);
ushort inw(ushort port);
void *memset(void *s, int c, size_t n);
void *memcpy(void *dest, const void *src, size_t n);
void io_wait();
uchar kbd_scan_code();
void kbd_handle_input(struct registers *registers);
void init_kbd();