diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-28 22:39:25 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-28 22:39:25 +0200 |
commit | ae4265ea5d77b68757af39d73fe47df1a3563b42 (patch) | |
tree | 7282e3d43c471b195bb5a4742ed911c7b7626dcb /drivers/keyboard.h | |
parent | Fix interrupts causing exception 0xd (diff) | |
download | kernel.cpp-ae4265ea5d77b68757af39d73fe47df1a3563b42.tar.xz |
Add keyboard driver
Diffstat (limited to 'drivers/keyboard.h')
-rw-r--r-- | drivers/keyboard.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/keyboard.h b/drivers/keyboard.h new file mode 100644 index 0000000..a14c2c0 --- /dev/null +++ b/drivers/keyboard.h @@ -0,0 +1,15 @@ +#pragma once + +#include "idt.h" +#include "ports.h" + +class Keyboard : public InterruptHandler { +public: + Keyboard(); + + void trigger() override; + +private: + keyboard_comm_t commandport; + keyboard_data_t dataport; +}; |