feat: irq interrupts; basic kb driver
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
#ifndef IO_H
|
||||
#define IO_H
|
||||
|
||||
#define MASTER_COMMAND 0x20
|
||||
#define MASTER_DATA 0x21
|
||||
#define SLAVE_COMMAND 0xA0
|
||||
#define SLAVE_DATA 0xA1
|
||||
|
||||
static inline void outb(unsigned short port, unsigned char val) {
|
||||
__asm__ volatile(
|
||||
"outb %0, %1"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef KEYBOARD_H
|
||||
#define KEYBOARD_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
void kb_handler(Registers *regs);
|
||||
|
||||
#endif
|
||||
@@ -4,4 +4,8 @@
|
||||
#ifndef PIC_H
|
||||
#define PIC_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
u16 pic_remap();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user