pub struct EventRing { /* private fields */ }Expand description
Event Ring: the host controller enqueues event TRBs here
Implementations§
Source§impl EventRing
impl EventRing
Sourcepub unsafe fn dequeue(&mut self) -> Option<Trb>
pub unsafe fn dequeue(&mut self) -> Option<Trb>
Dequeue the next event TRB if one is available.
Returns Some(trb) if the cycle bit of the TRB at the dequeue pointer
matches our expected cycle state, or None if no event is pending.
§Safety
The caller must ensure the event ring segment is valid memory.
Sourcepub fn erdp_value(&self) -> u64
pub fn erdp_value(&self) -> u64
Get the current dequeue pointer for writing to ERDP