]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: io: add resource abstraction
authorDaniel Almeida <daniel.almeida@collabora.com>
Thu, 17 Jul 2025 15:55:22 +0000 (12:55 -0300)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 20 Jul 2025 17:43:04 +0000 (19:43 +0200)
commit493fc33ec25294cb2e444dfa77c105aa774c83f2
treecc3402f763e4847a0b6ce05a9363b8169467972f
parent931d9251e4855f79394357eb0071b5c4a189a8bd
rust: io: add resource abstraction

In preparation for ioremap support, add a Rust abstraction for struct
resource.

A future commit will introduce the Rust API to ioremap a resource from a
platform device. The current abstraction, therefore, adds only the
minimum API needed to get that done.

Acked-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Co-developed-by: Fiona Behrens <me@kloenk.dev>
Signed-off-by: Fiona Behrens <me@kloenk.dev>
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250717-topics-tyr-platform_iomem-v15-1-beca780b77e3@collabora.com
[ Capitalize safety comments and end it with a period. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/bindings/bindings_helper.h
rust/helpers/io.c
rust/kernel/io.rs
rust/kernel/io/resource.rs [new file with mode: 0644]