AquilaOS documentation
How it works, and its code
Toggle main menu visibility
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). */
10
void
i8042_handler_register
(
int
port,
void
(*fun)(
int
));
11
12
/* Sends a byte to the mouse. */
13
int
i8042_aux_write
(
uint8_t
byte
);
14
15
/* Resets the CPU, through the controller. */
16
void
i8042_reboot
(
void
);
17
18
#endif
/* ! _DEV_I8042_H */
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_aux_write
int i8042_aux_write(uint8_t byte)
Sends a byte to the device on the second port (the mouse).
Definition
i8042.c:100
i8042_reboot
void i8042_reboot(void)
Resets the CPU, through the controller's output line: this reboots the PC.
Definition
i8042.c:123
uint8_t
unsigned char uint8_t
Definition
stddef.h:20
types.h
kernel
include
dev
i8042.h
Generated by
1.18.0