[Voyageurs] Add a basic ps/2 keyboard driver.

This commit is contained in:
Drew Galbraith 2023-11-25 13:08:30 -08:00
parent 7151a509ee
commit 8365d47cbe
18 changed files with 532 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#pragma once
#include <glacier/container/linked_list.h>
#include <mammoth/ipc/port_client.h>
#include <mammoth/ipc/port_server.h>
#include <mammoth/proc/thread.h>
class KeyboardDriver {
public:
KeyboardDriver();
KeyboardDriver(const KeyboardDriver&) = delete;
KeyboardDriver(KeyboardDriver&&) = delete;
void RegisterListener(uint64_t port_cap);
Thread StartInterruptLoop();
void InterruptLoop();
private:
z_cap_t irq_cap_;
glcr::LinkedList<mmth::PortClient> listeners_;
};