[Voyageurs] Receive keypress information from the usb keyboard.

This commit is contained in:
Drew Galbraith 2024-02-24 14:18:11 -08:00
parent 2cc9c89051
commit c5f8195255
6 changed files with 77 additions and 5 deletions

View file

@ -0,0 +1,26 @@
#pragma once
#include <glacier/memory/unique_ptr.h>
#include "xhci/trb_ring.h"
#include "xhci/xhci.h"
class Endpoint {
public:
Endpoint() {}
void Initialize(XhciEndpointContext* context);
bool Enabled() { return enabled_; }
void TransferComplete(uint64_t trb_phys);
private:
bool enabled_ = false;
XhciEndpointContext* context_ = nullptr;
glcr::UniquePtr<TrbRingWriter> trb_ring_;
uint64_t recv_phys_;
mmth::OwnedMemoryRegion recv_mem_;
};