pub struct CommandRing { /* private fields */ }Expand description
Command Ring: the host controller dequeues command TRBs from here
Implementations§
Source§impl CommandRing
impl CommandRing
Sourcepub unsafe fn enqueue(&mut self, trb: Trb) -> u64
pub unsafe fn enqueue(&mut self, trb: Trb) -> u64
Enqueue a command TRB onto the ring.
Returns the physical address of the enqueued TRB.
§Safety
The caller must ensure segment_phys points to valid,
mapped, DMA-accessible memory of at least RING_SEGMENT_SIZE bytes.
Sourcepub fn crcr_value(&self) -> u64
pub fn crcr_value(&self) -> u64
Get the physical base address and current cycle bit for CRCR