linux/rust/kernel/io
Gary Guo a12f711dc5 rust: io: register: unify handling of register with/without bitfields
Move the `FixedRegister` from a property of register to become a property
of type. Name the new trait `FixedIoLoc` indicating if I/O location of a
type is unique for a specific base. Thus, bitfields become just a special
case of this (where type is unique because we're generating it in the
register macro), and expose feature to registers without inline bitfield
definition with the `#[unique]` attribute.

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Gary Guo <gary@garyguo.net>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260901-typed_register-v4-16-5552b1d59525@garyguo.net
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-09-06 13:39:49 +02:00
..
mem.rs I/O type generalization and projection 2026-07-13 23:50:39 +02:00
poll.rs rust: io: implement Mmio as view type 2026-07-11 17:59:32 +02:00
register.rs rust: io: register: unify handling of register with/without bitfields 2026-09-06 13:39:49 +02:00
resource.rs rust: make build_assert module the home of related macros 2026-06-10 09:07:13 +02:00