diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h index 3ee825f4de28..9812c805326c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | |||
@@ -65,6 +65,13 @@ struct amdgpu_mman { | |||
65 | struct amdgpu_mman_lru guard; | 65 | struct amdgpu_mman_lru guard; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | extern const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func; | ||
69 | |||
70 | int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man, | ||
71 | struct ttm_buffer_object *tbo, | ||
72 | const struct ttm_place *place, | ||
73 | struct ttm_mem_reg *mem); | ||
74 | |||
68 | int amdgpu_copy_buffer(struct amdgpu_ring *ring, | 75 | int amdgpu_copy_buffer(struct amdgpu_ring *ring, |
69 | uint64_t src_offset, | 76 | uint64_t src_offset, |
70 | uint64_t dst_offset, | 77 | uint64_t dst_offset, |
@@ -78,6 +85,6 @@ int amdgpu_fill_buffer(struct amdgpu_bo *bo, | |||
78 | 85 | ||
79 | int amdgpu_mmap(struct file *filp, struct vm_area_struct *vma); | 86 | int amdgpu_mmap(struct file *filp, struct vm_area_struct *vma); |
80 | bool amdgpu_ttm_is_bound(struct ttm_tt *ttm); | 87 | bool amdgpu_ttm_is_bound(struct ttm_tt *ttm); |
81 | int amdgpu_ttm_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem); | 88 | int amdgpu_ttm_bind(struct ttm_buffer_object *bo, struct ttm_mem_reg *bo_mem); |
82 | 89 | ||
83 | #endif | 90 | #endif |