xref: /linux/rust/helpers/drm_gpuvm.c (revision 99676aed1fec109d62822e21a06760eb098dc5f4)
1 // SPDX-License-Identifier: GPL-2.0 or MIT
2 
3 #ifdef CONFIG_RUST_DRM_GPUVM
4 
5 #include <drm/drm_gpuvm.h>
6 
7 __rust_helper
8 struct drm_gpuvm_bo *rust_helper_drm_gpuvm_bo_get(struct drm_gpuvm_bo *vm_bo)
9 {
10 	return drm_gpuvm_bo_get(vm_bo);
11 }
12 
13 __rust_helper
14 struct drm_gpuvm *rust_helper_drm_gpuvm_get(struct drm_gpuvm *obj)
15 {
16 	return drm_gpuvm_get(obj);
17 }
18 
19 __rust_helper
20 bool rust_helper_drm_gpuvm_is_extobj(struct drm_gpuvm *gpuvm,
21 				     struct drm_gem_object *obj)
22 {
23 	return drm_gpuvm_is_extobj(gpuvm, obj);
24 }
25 
26 #endif // CONFIG_RUST_DRM_GPUVM
27