summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-01-09 15:21:13 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-01-27 11:13:19 -0500
commit4e4bbe7343a6d8269342189329b865355fe1bb51 (patch)
tree4ba3e452a81a18aed476852eaccecc02a4aefef9 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
parentbd7de27d81a73c91fad9a3358f56ecf7f0dc8ede (diff)
downloadlinux-4e4bbe7343a6d8269342189329b865355fe1bb51.tar.bz2
drm/amdgpu:add new file for SRIOV
for SRIOV usage, CSA is only used per device and each VM will map on it. Signed-off-by: Monk Liu <Monk.Liu@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_virt.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
index 63609e179651..fa1d569ec479 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
@@ -60,4 +60,8 @@ static inline bool is_virtual_machine(void)
#endif
}
+struct amdgpu_vm;
+int amdgpu_allocate_static_csa(struct amdgpu_device *adev);
+int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm);
+
#endif