pub struct VirtioHal;
Trait Implementations
sourceimpl Hal for VirtioHal
impl Hal for VirtioHal
sourcefn 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.
sourcefn dma_dealloc(pa: usize, pages: usize) -> i32
fn dma_dealloc(pa: usize, pages: usize) -> i32
Deallocates the given contiguous physical DMA memory pages.
sourcefn 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. Read more
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for VirtioHal
impl Send for VirtioHal
impl Sync for VirtioHal
impl Unpin for VirtioHal
impl UnwindSafe for VirtioHal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more