aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h
diff options
context:
space:
mode:
authorLikun Gao <[email protected]>2022-05-06 18:45:54 +0000
committerAlex Deucher <[email protected]>2022-05-10 21:53:11 +0000
commitf932ffbbf6ffa9e8425e2d3775a799d3e670c31e (patch)
tree5f63fa5f2bea44ac1c2650416155255302fc41bb /drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h
parentdrm/amdgpu: add lsdma block (diff)
downloadkernel-f932ffbbf6ffa9e8425e2d3775a799d3e670c31e.tar.gz
kernel-f932ffbbf6ffa9e8425e2d3775a799d3e670c31e.zip
drm/amdgpu: support mem copy for LSDMA
Support memory to memory linear copy in PIO mode for LSDMA. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h
index eae19c24937c..18cc7ad7171f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h
@@ -29,6 +29,11 @@ struct amdgpu_lsdma {
};
struct amdgpu_lsdma_funcs {
+ int (*copy_mem)(struct amdgpu_device *adev, uint64_t src_addr,
+ uint64_t dst_addr, uint64_t size);
};
+int amdgpu_lsdma_copy_mem(struct amdgpu_device *adev, uint64_t src_addr,
+ uint64_t dst_addr, uint64_t mem_size);
+
#endif