aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-12-14 07:18:01 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 11:32:15 -0400
commit7c204889dec5e745cdcc174388fa3aa824e75160 (patch)
treeda3bd3470ed92ad83da9e349e1386f396a89220f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parent81e04e1809057128abe1b996ca7bc0cbb38e56c9 (diff)
drm/amdgpu: add new helper for in kernel allocations
We often allocate, pin and map things at the same time in the kernel. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
index bdb01d932548..ae188a88082d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -139,6 +139,10 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev,
139 struct ttm_placement *placement, 139 struct ttm_placement *placement,
140 struct reservation_object *resv, 140 struct reservation_object *resv,
141 struct amdgpu_bo **bo_ptr); 141 struct amdgpu_bo **bo_ptr);
142int amdgpu_bo_create_kernel(struct amdgpu_device *adev,
143 unsigned long size, int align,
144 u32 domain, struct amdgpu_bo **bo_ptr,
145 u64 *gpu_addr, void **cpu_addr);
142int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr); 146int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr);
143void amdgpu_bo_kunmap(struct amdgpu_bo *bo); 147void amdgpu_bo_kunmap(struct amdgpu_bo *bo);
144struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo); 148struct amdgpu_bo *amdgpu_bo_ref(struct amdgpu_bo *bo);