Expand description
Wrappers of some devices in the virtio-drivers crate, that implement
traits in the axdriver_base series crates.
Like the virtio-drivers crate, you must implement the VirtIoHal
trait (alias of virtio-drivers::Hal), to allocate DMA regions and
translate between physical addresses (as seen by devices) and virtual
addresses (as seen by your program).
Modules§
- pci
- Module for dealing with a PCI bus in general, without anything specific to VirtIO.
Structs§
- Mmio
Transport - MMIO Device Register Interface.
- PciTransport
- PCI transport for VirtIO.
- Virt
IoBlk Dev block - The VirtIO block device driver.
- Virt
IoGpu Dev gpu - The VirtIO GPU device driver.
- Virt
IoNet Dev net - The VirtIO network device driver.
Enums§
- Buffer
Direction - The direction in which a buffer is passed.
Traits§
- Transport
- A VirtIO transport layer.
- Virt
IoHal - The interface which a particular hardware implementation must implement.
Functions§
- probe_
mmio_ device - Try to probe a VirtIO MMIO device from the given memory region.
- probe_
pci_ device - Try to probe a VirtIO PCI device from the given PCI address.
Type Aliases§
- Phys
Addr - A physical address as used for virtio.