pub struct VirtioHal;Trait Implementations§
Source§impl Hal for VirtioHal
impl Hal for VirtioHal
Source§fn dma_alloc(pages: usize) -> usize
fn dma_alloc(pages: usize) -> usize
Allocates the given number of contiguous physical pages of DMA memory for virtio use.
Source§fn dma_dealloc(pa: usize, pages: usize) -> i32
fn dma_dealloc(pa: usize, pages: usize) -> i32
Deallocates the given contiguous physical DMA memory pages.
Source§fn phys_to_virt(addr: usize) -> usize
fn phys_to_virt(addr: usize) -> usize
Converts a physical address used for virtio to a virtual address which the program can
access.
Source§fn virt_to_phys(vaddr: usize) -> usize
fn virt_to_phys(vaddr: usize) -> usize
Converts a virtual address which the program can access to the corresponding physical
address to use for virtio.
Auto Trait Implementations§
impl Freeze for VirtioHal
impl RefUnwindSafe for VirtioHal
impl Send for VirtioHal
impl Sync for VirtioHal
impl Unpin for VirtioHal
impl UnwindSafe for VirtioHal
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