Skip to main content

Crate fake_mmio

Crate fake_mmio 

Source
Expand description

Testing utilities for creating fakes for MMIO driver library.

See the inject module for details on the dependency-injection patterns provided by this crate.

FakeMmioDevice provides a wrapper to implement device-side fakes based on side-effects on a shared VMO.

Modules§

inject
MMIO operation injection support for intercepting MMIO access.

Structs§

CachedVmoMemory
A wrapper around VmoMemory guaranteed to be mapped with cached memory policy.
FakeMmioDevice
Provides a wrapper around Mmio and AtomicMmio implementations for register access in tests from the perspective of a device.

Traits§

AtomicMmio
An extension trait applied to MmioRegion to support atomic operations.
MmioOperand
Trait for MMIO operand types that can be loaded or stored via a test handler.