diff options
| author | Gary Guo <gary@garyguo.net> | 2026-07-06 13:44:28 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-11 18:09:04 +0200 |
| commit | 1d409d1e7a874b3aeff8908292bc26ba4113cc06 (patch) | |
| tree | 74482f05d1945e386565e5b1ee02e4b563d66f2c /drivers/memory | |
| parent | 2fabff7807853804af2ae691b263c3ac5cc9a636 (diff) | |
| download | linux-next-1d409d1e7a874b3aeff8908292bc26ba4113cc06.tar.gz linux-next-1d409d1e7a874b3aeff8908292bc26ba4113cc06.zip | |
rust: io: implement a view type for `Coherent`
Implement a `CoherentView` type which is a view of `Coherent`. To be able
to give out DMA handles, the view type contains both CPU and DMA pointers,
and the projection method projects both at once.
Delegate most of the `Io` implementation to `SysMemBackend`. Provide a
method to erase the DMA handle and give out a `SysMem` view, if the user
does not need the `dma_handle`.
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://patch.msgid.link/20260706-io_projection-v6-15-72cd5d055d54@garyguo.net
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions
