From 02a703e8dca690780d6e00198274a2139e89f01a Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 3 Mar 2021 11:43:43 +0200 Subject: Add some comments to keyboard driver --- drivers/keyboard.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'drivers/keyboard.h') diff --git a/drivers/keyboard.h b/drivers/keyboard.h index a14c2c0..cac0cb0 100644 --- a/drivers/keyboard.h +++ b/drivers/keyboard.h @@ -3,6 +3,7 @@ #include "idt.h" #include "ports.h" +/* PS/2 Keyboard */ class Keyboard : public InterruptHandler { public: Keyboard(); @@ -10,6 +11,11 @@ public: void trigger() override; private: - keyboard_comm_t commandport; - keyboard_data_t dataport; + /* 8042 PS/2 Controller Ports */ + typedef Port<0x60, uint8_t> data_port_t; // rw data port + typedef Port<0x64, uint8_t> comm_port_t; // r status register + // w command register + + data_port_t dataport; + comm_port_t commstatport; }; -- cgit v1.2.1