diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h index 7abae6867339..abd4084982a3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | |||
@@ -58,6 +58,12 @@ struct amdgpu_mman { | |||
58 | struct amd_sched_entity entity; | 58 | struct amd_sched_entity entity; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | struct amdgpu_copy_mem { | ||
62 | struct ttm_buffer_object *bo; | ||
63 | struct ttm_mem_reg *mem; | ||
64 | unsigned long offset; | ||
65 | }; | ||
66 | |||
61 | extern const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func; | 67 | extern const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func; |
62 | extern const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func; | 68 | extern const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func; |
63 | 69 | ||
@@ -72,6 +78,12 @@ int amdgpu_copy_buffer(struct amdgpu_ring *ring, uint64_t src_offset, | |||
72 | struct reservation_object *resv, | 78 | struct reservation_object *resv, |
73 | struct dma_fence **fence, bool direct_submit, | 79 | struct dma_fence **fence, bool direct_submit, |
74 | bool vm_needs_flush); | 80 | bool vm_needs_flush); |
81 | int amdgpu_ttm_copy_mem_to_mem(struct amdgpu_device *adev, | ||
82 | struct amdgpu_copy_mem *src, | ||
83 | struct amdgpu_copy_mem *dst, | ||
84 | uint64_t size, | ||
85 | struct reservation_object *resv, | ||
86 | struct dma_fence **f); | ||
75 | int amdgpu_fill_buffer(struct amdgpu_bo *bo, | 87 | int amdgpu_fill_buffer(struct amdgpu_bo *bo, |
76 | uint64_t src_data, | 88 | uint64_t src_data, |
77 | struct reservation_object *resv, | 89 | struct reservation_object *resv, |