Skip to main content

Module io

Module io 

Source
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 Io region.

Structs§

IoSysMapBackend
I/O Backend for IoSysMap.
Mmio
A view of memory-mapped I/O region.
MmioBackend
I/O Backend for memory-mapped I/O.
MmioRaw
Raw representation of an MMIO region.
Region
Untyped I/O region.
RelaxedMmio
Mmio but using relaxed accessors.
RelaxedMmioBackend
I/O Backend for memory-mapped I/O, with relaxed access semantics.
SysMem
A view of a system memory region.
SysMemBackend
I/O Backend for system memory.

Enums§

IoSysMap
Either Mmio or SysMem.

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§

PhysAddr
Physical address type.
ResourceSize
Resource Size type.