[Voyageurs] XHCI Event Segment working with polling.
This commit is contained in:
parent
b41784b938
commit
4cb0b0b2ae
8 changed files with 181 additions and 21 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue