Crate driver_virtio
source ·Expand description
Wrappers of some devices in the virtio-drivers
crate, that implement
traits in the driver_common
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
- Module for dealing with a PCI bus in general, without anything specific to VirtIO.
Structs
- MMIO Device Register Interface.
- PCI transport for VirtIO.
- VirtIoBlkDev
block
The VirtIO block device driver. - VirtIoGpuDev
gpu
The VirtIO GPU device driver. - VirtIoNetDev
net
The VirtIO network device driver.
Enums
- The direction in which a buffer is passed.
Traits
- A VirtIO transport layer.
- The interface which a particular hardware implementation must implement.
Functions
- Try to probe a VirtIO MMIO device from the given memory region.
- Try to probe a VirtIO PCI device from the given PCI address.
Type Aliases
- A physical address as used for virtio.