pub struct DeviceDma { /* private fields */ }Implementations§
Source§impl DeviceDma
impl DeviceDma
pub fn new(dma_mask: u64, osal: &'static dyn DmaOp) -> Self
pub fn dma_mask(&self) -> u64
pub fn flush(&self, addr: NonNull<u8>, size: usize)
pub fn invalidate(&self, addr: NonNull<u8>, size: usize)
pub fn page_size(&self) -> usize
pub fn new_array<T>( &self, size: usize, align: usize, direction: Direction, ) -> Result<DArray<T>, DmaError>
pub fn new_box<T>( &self, align: usize, direction: Direction, ) -> Result<DBox<T>, DmaError>
pub fn map_single( &self, addr: NonNull<u8>, size: NonZeroUsize, align: usize, direction: Direction, ) -> Result<SingleMapping, DmaError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceDma
impl !RefUnwindSafe for DeviceDma
impl Send for DeviceDma
impl Sync for DeviceDma
impl Unpin for DeviceDma
impl !UnwindSafe for DeviceDma
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more