Re: [RFC PATCH 10/11] rust: add basic abstractions for iomem operations

From: Dave Airlie
Date: Mon May 20 2024 - 22:08:06 EST


>
> Wedson wrote a similar abstraction in the past
> (`rust/kernel/io_mem.rs` in the old `rust` branch), with a
> compile-time `SIZE` -- it is probably worth taking a look.
>

Just on this point, we can't know in advance what size the IO BARs are
at compile time.

The old method just isn't useful for real devices with runtime IO BAR sizes.

Dave.