AquilaOS documentation
How it works, and its code
Toggle main menu visibility
Loading...
Searching...
No Matches
ps2kbd.c
Go to the documentation of this file.
1
9
10
#include <
core/system.h
>
11
#include <
core/module.h
>
12
#include <
cpu/cpu.h
>
13
14
#include <
dev/i8042.h
>
15
16
#include <
dev/vt.h
>
17
19
static
int
ps2kbd_probe
(
void
)
20
{
21
i8042_handler_register
(1,
vt_scancode
);
22
return
0;
23
}
24
25
MODULE_INIT
(ps2kbd,
ps2kbd_probe
,
NULL
)
i8042_handler_register
void i8042_handler_register(int port, void(*fun)(int))
Registers the function that gets each byte a port receives.
Definition
i8042.c:75
i8042.h
system.h
cpu.h
vt_scancode
void vt_scancode(int scancode)
Takes a scancode from the keyboard, and sends what the key means to the foreground terminal,...
Definition
keyboard.c:307
module.h
MODULE_INIT
#define MODULE_INIT(name, i, f)
Definition
module.h:10
ps2kbd_probe
static int ps2kbd_probe(void)
Sends the keyboard's scancodes to the virtual terminals.
Definition
ps2kbd.c:19
NULL
#define NULL
Definition
stddef.h:27
vt.h
kernel
dev
kbd
ps2kbd.c
Generated by
1.18.0