Skip to main content

Module platform_provider

Module platform_provider 

Source
Expand description

Platform-device and peripheral resource provider.

Discovers and maps every MMIO region, IRQ, GPIO, I2C, and SPI resource the bound node offers, packaging them into a ProvidedResources bundle. A node that offers no resources yields an empty bundle: the control plane still serves, but nothing is reachable. A node that offers resources the driver cannot acquire fails acquisition – a partially acquired device would misrepresent the resource identity the digests promise.

Structs§

MappedMmio
Volatile access to one locally mapped MMIO region.

Enums§

AcquireError
Why acquisition failed. Driver start fails on any of these: serving a partially acquired device would break resource-identity promises.

Constants§

PROVIDER
Provider kind recorded in resource digests.

Functions§

acquire
Acquires the bound node’s platform-device and protocol resources.