]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: dma: implement `dma::Device` trait
authorDanilo Krummrich <dakr@kernel.org>
Wed, 16 Jul 2025 15:02:46 +0000 (17:02 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Sat, 19 Jul 2025 17:05:48 +0000 (19:05 +0200)
commitd06d5f66f5494e29c1520583eac8382f0ab5f8a7
tree050c07ae275d2a8a883ba077f7c4856d2095efce
parent9a8682f0875b8cedad42bdfe601e6ab204fad06d
rust: dma: implement `dma::Device` trait

Add a trait that defines the DMA specific methods of devices.

The `dma::Device` trait is to be implemented by bus device
representations, where the underlying bus is capable of DMA, such as
`pci::Device` or `platform::Device`.

Reviewed-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250716150354.51081-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/dma.rs