[PATCH 02/11] rust: io: Replace Io with MMIo using IoAccess trait
Bjorn Helgaas
helgaas at kernel.org
Mon May 12 20:07:34 UTC 2025
On Thu, May 08, 2025 at 10:15:15PM -0500, Andrew Ballance wrote:
> From: Fiona Behrens <me at kloenk.dev>
>
> Replace the Io struct with a new MMIo struct that uses the different
> traits (`IoAccess`, `IoAccess64`, `IoAccessRelaxed` and
> `IoAccess64Relaxed).
> This allows to later implement PortIo and a generic Io framework.
Add blank line between paragraphs.
> + /// Read data from a give offset known at compile time.
s/give/given/
> + /// Bound checks are perfomed on compile time, hence if the offset is not known at compile
> + /// time, the build will fail.
s/perfomed on/performed at/
> + /// Bound checks are performed on runtime, it fails if the offset (plus type size) is
> + /// out of bounds.
s/on runtime/at runtime/
> +/// This Takes either `@read` or `@write` to generate a single read or write accessor function.
s/This Takes/This takes/
More information about the dri-devel
mailing list