Skip to content

Commit bf03c02

Browse files
Danilo Krummrichjannau
authored andcommitted
rust: pci: implement the dma::Device trait
The PCI bus is potentially capable of performing DMA, hence implement the `dma:Device` trait for `pci::Device`. Signed-off-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
1 parent 9e24bed commit bf03c02

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rust/kernel/pci.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,5 @@ impl AsRef<device::Device> for Device {
432432
&self.0
433433
}
434434
}
435+
436+
impl crate::dma::Device for Device {}

0 commit comments

Comments
 (0)