Expand description
Memory-mapped IO.
C header: include/asm-generic/io.h
Re-exports§
pub use resource::Resource;
Modules§
- mem
- Generic memory-mapped IO.
- poll
- IO polling.
- register
- Macro to define register layout and accessors.
- resource
- Abstractions for system resources.
Macros§
- io_
project - Project an I/O type to a subview of it.
- io_read
- Read from I/O memory.
- io_
write - Writes to I/O memory.
- register
- Defines a dedicated type for a register, including getter and setter methods for its fields and
methods to read and write it from an
Ioregion.
Structs§
- IoSys
MapBackend - I/O Backend for
IoSysMap. - Mmio
- A view of memory-mapped I/O region.
- Mmio
Backend - I/O Backend for memory-mapped I/O.
- MmioRaw
- Raw representation of an MMIO region.
- Region
- Untyped I/O region.
- Relaxed
Mmio Mmiobut using relaxed accessors.- Relaxed
Mmio Backend - I/O Backend for memory-mapped I/O, with relaxed access semantics.
- SysMem
- A view of a system memory region.
- SysMem
Backend - I/O Backend for system memory.
Enums§
Traits§
- Io
- Extension trait to provide I/O operation methods to types that implement
IoBase. - IoBackend
- I/O backends.
- IoBase
- Types implementing this trait (e.g. MMIO BARs or PCI config regions) can perform I/O operations on regions of memory.
- IoCapable
- Trait indicating that an I/O backend supports operations of a certain type and providing an implementation for these operations.
- IoCopyable
- Trait indicating that an I/O backend supports memory copy operations.
- IoLoc
- Describes a given I/O location: its offset, width, and type to convert the raw value from and into.
Type Aliases§
- Phys
Addr - Physical address type.
- Resource
Size - Resource Size type.