Bjorn Helgaas
2025-May-12 20:07 UTC
[PATCH 02/11] rust: io: Replace Io with MMIo using IoAccess trait
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/