Module region

Source
Expand description

Support for implementing splittable MMIO regions.

This module defines the MmioRegion type which provides safe Mmio and MmioSplit implementations on top of the more relaxed UnsafeMmio trait.

The UnsafeMmio trait allows mutations through a shared reference, provided the caller ensures that store operations are not performed concurrently with any other operation that may overlap it.

Implementing UnsafeMmio correctly is likely to be simpler than implementing Mmio and MmioSplit for many use cases.

Structs§

MmioRegion
An MmioRegion provides a safe implementation of Mmio and MmioSplit on top of an UnsafeMmio implementation.

Traits§

UnsafeMmio
An MMIO region that can be stored to through a shared reference.