[Voyageurs] Receive keypress information from the usb keyboard.
This commit is contained in:
parent
2cc9c89051
commit
c5f8195255
6 changed files with 77 additions and 5 deletions
26
sys/voyageurs/xhci/endpoint.h
Normal file
26
sys/voyageurs/xhci/endpoint.h
Normal 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_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue