[Voyageurs] XHCI Event Segment working with polling.

This commit is contained in:
Drew Galbraith 2024-02-22 13:25:49 -08:00
parent b41784b938
commit 4cb0b0b2ae
8 changed files with 181 additions and 21 deletions

View file

@ -24,3 +24,15 @@ class TrbRingWriter : public TrbRing {
private:
uint64_t enqueue_ptr_ = 0;
};
class TrbRingReader : public TrbRing {
public:
bool HasNext();
XhciTrb Read();
uint64_t DequeuePtr() { return phys_address_ + dequeue_ptr_; }
private:
uint64_t dequeue_ptr_ = 0;
uint8_t cycle_bit_ = 1;
};