safe-mmio 0.3.1

Types for safe MMIO device access, especially in systems with an MMU.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2026 The safe-mmio Authors.
// This project is dual-licensed under Apache 2.0 and MIT terms.
// See LICENSE-APACHE and LICENSE-MIT for details.

#[cfg(all(target_arch = "aarch64", not(feature = "custom-mmio")))]
pub mod aarch64;
#[cfg(feature = "custom-mmio")]
pub mod custom;
pub mod mmio_ops;
#[cfg(all(not(target_arch = "aarch64"), not(feature = "custom-mmio")))]
pub mod volatile;

#[cfg(all(target_arch = "aarch64", not(feature = "custom-mmio")))]
pub use aarch64::Ops;
#[cfg(feature = "custom-mmio")]
pub use custom::Ops;
#[cfg(all(not(target_arch = "aarch64"), not(feature = "custom-mmio")))]
pub use volatile::Ops;