aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorJunwei Zhang <Jerry.Zhang@amd.com>2018-06-25 00:51:14 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-10 15:15:39 -0400
commit7b7c6c81b3a370b46b0c48f4ab7ac3be83237a12 (patch)
treedd93e3098cbcce0051433e3a173c466dd241ddbf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parentb861686b18538eaaf3530255eb37b4133146fbe2 (diff)
drm/amdgpu: separate gpu address from bo pin
It could be got by amdgpu_bo_gpu_offset() if need Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@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_object.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
index 731748033878..9c3e29a04eb1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -252,10 +252,9 @@ void *amdgpu_bo_kptr(struct amdgpu_bo *bo);
252void amdgpu_bo_kunmap(struct amdgpu_bo *bo); 252void amdgpu_bo_kunmap(struct amdgpu_bo *bo);
253struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); 253struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo);
254void amdgpu_bo_unref(struct amdgpu_bo **bo); 254void amdgpu_bo_unref(struct amdgpu_bo **bo);
255int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain, u64 *gpu_addr); 255int amdgpu_bo_pin(struct amdgpu_bo *bo, u32 domain);
256int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, 256int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain,
257 u64 min_offset, u64 max_offset, 257 u64 min_offset, u64 max_offset);
258 u64 *gpu_addr);
259int amdgpu_bo_unpin(struct amdgpu_bo *bo); 258int amdgpu_bo_unpin(struct amdgpu_bo *bo);
260int amdgpu_bo_evict_vram(struct amdgpu_device *adev); 259int amdgpu_bo_evict_vram(struct amdgpu_device *adev);
261int amdgpu_bo_init(struct amdgpu_device *adev); 260int amdgpu_bo_init(struct amdgpu_device *adev);