Kernel: Receive interrupts for COM1 and COM2 input

The input has to still be attached to terminal
This commit is contained in:
Bananymous
2023-09-04 22:05:02 +03:00
parent 323de3c866
commit 93c5755012
2 changed files with 69 additions and 17 deletions

View File

@@ -18,14 +18,15 @@ namespace Kernel
void putchar(char);
char getchar();
bool is_valid() const { return m_port != 0; }
uint16_t port() const { return m_port; }
uint32_t width() const { return m_width; }
uint32_t height() const { return m_height; }
private:
static bool port_has_device(uint16_t);
static bool initialize_port(uint16_t, uint32_t baud);
bool initialize_size();
bool is_valid() const { return m_port != 0; }
private:
uint16_t m_port { 0 };