Skip to main content

Crate axdriver_virtio

Crate axdriver_virtio 

Source
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§

MmioTransport
MMIO Device Register Interface.
PciTransport
PCI transport for VirtIO.

Enums§

BufferDirection
The direction in which a buffer is passed.

Traits§

Transport
A VirtIO transport layer.
VirtIoHal
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§

PhysAddr
A physical address as used for virtio.