fake_mmio/lib.rs
1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#![deny(missing_docs)]
6
7//! Testing utilities for creating fakes for MMIO driver library.
8//!
9//! See the [`inject`] module for details on the dependency-injection patterns
10//! provided by this crate.
11//!
12//! [`FakeMmioDevice`] provides a wrapper to implement device-side fakes based
13//! on side-effects on a shared VMO.
14
15mod atomic;
16mod cached_vmo;
17mod device;
18pub mod inject;
19mod operand;
20
21pub use atomic::AtomicMmio;
22pub use cached_vmo::CachedVmoMemory;
23pub use device::FakeMmioDevice;
24pub use operand::MmioOperand;