diff options
author | Likun Gao <Likun.Gao@amd.com> | 2022-05-06 14:45:54 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-10 17:53:11 -0400 |
commit | f932ffbbf6ffa9e8425e2d3775a799d3e670c31e (patch) | |
tree | 5f63fa5f2bea44ac1c2650416155255302fc41bb /drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h | |
parent | 1b491330421bb0fdeff8eb928ce83fdd636087d3 (diff) |
drm/amdgpu: support mem copy for LSDMA
Support memory to memory linear copy in PIO mode for LSDMA.
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h | 5 |
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 |