AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
i8042.h
Go to the documentation of this file.
1#ifndef _DEV_I8042_H
2#define _DEV_I8042_H
3
4#include <core/types.h>
5
6/* The PC's keyboard controller (dev/input/i8042.c). */
7
8/* Registers the function that gets each byte from port 1 (the keyboard)
9 * or port 2 (the mouse). */
10void i8042_handler_register(int port, void (*fun)(int));
11
12/* Sends a byte to the mouse. */
13int i8042_aux_write(uint8_t byte);
14
15/* Resets the CPU, through the controller. */
16void i8042_reboot(void);
17
18#endif /* ! _DEV_I8042_H */
void i8042_handler_register(int port, void(*fun)(int))
Registers the function that gets each byte a port receives.
Definition i8042.c:75
int i8042_aux_write(uint8_t byte)
Sends a byte to the device on the second port (the mouse).
Definition i8042.c:100
void i8042_reboot(void)
Resets the CPU, through the controller's output line: this reboots the PC.
Definition i8042.c:123
unsigned char uint8_t
Definition stddef.h:20