Commit 25e9146a authored by Nirmoy Das's avatar Nirmoy Das Committed by Alex Deucher

drm/amdgpu: expose amdgpu_bo_create_shadow()

Exposed amdgpu_bo_create_shadow() will be needed
for amdgpu_vm handling.
Signed-off-by: default avatarNirmoy Das <nirmoy.das@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 589939d4
...@@ -625,7 +625,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev, ...@@ -625,7 +625,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev,
return r; return r;
} }
static int amdgpu_bo_create_shadow(struct amdgpu_device *adev, int amdgpu_bo_create_shadow(struct amdgpu_device *adev,
unsigned long size, unsigned long size,
struct amdgpu_bo *bo) struct amdgpu_bo *bo)
{ {
......
...@@ -271,6 +271,9 @@ int amdgpu_bo_create_user(struct amdgpu_device *adev, ...@@ -271,6 +271,9 @@ int amdgpu_bo_create_user(struct amdgpu_device *adev,
struct amdgpu_bo_user **ubo_ptr); struct amdgpu_bo_user **ubo_ptr);
void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr,
void **cpu_addr); void **cpu_addr);
int amdgpu_bo_create_shadow(struct amdgpu_device *adev,
unsigned long size,
struct amdgpu_bo *bo);
int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr); int amdgpu_bo_kmap(struct amdgpu_bo *bo, void **ptr);
void *amdgpu_bo_kptr(struct amdgpu_bo *bo); void *amdgpu_bo_kptr(struct amdgpu_bo *bo);
void amdgpu_bo_kunmap(struct amdgpu_bo *bo); void amdgpu_bo_kunmap(struct amdgpu_bo *bo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment