SayoriOS  0.3.3
ps2.h
1 //
2 // Created by ndraey on 2/15/24.
3 //
4 
5 #pragma once
6 
7 #include "common.h"
8 
9 #define PS2_DATA_PORT 0x60
10 #define PS2_STATE_REG 0x64
11 
12 uint8_t ps2_read();
13 void ps2_write(uint8_t byte);
14 
15 uint8_t ps2_read_configuration_byte();
16 void ps2_write_configuration_byte(uint8_t byte);
17 
18 void ps2_in_wait_until_empty();
19 void ps2_out_wait_until_full();
20 
21 void ps2_init();
Основные определения ядра