File tree Expand file tree Collapse file tree 5 files changed +706
-0
lines changed Expand file tree Collapse file tree 5 files changed +706
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include <drm/drm_device.h>
10
10
#include <drm/drm_drv.h>
11
+ #include <drm/drm_exec.h>
11
12
#include <drm/drm_file.h>
12
13
#include <drm/drm_gem.h>
13
14
#include <drm/drm_gem_shmem_helper.h>
15
+ #include <drm/drm_gpuvm.h>
14
16
#include <drm/drm_ioctl.h>
15
17
#include <drm/drm_syncobj.h>
16
18
#include <drm/gpu_scheduler.h>
@@ -64,6 +66,8 @@ const gfp_t RUST_CONST_HELPER___GFP_NOWARN = ___GFP_NOWARN;
64
66
const blk_features_t RUST_CONST_HELPER_BLK_FEAT_ROTATIONAL = BLK_FEAT_ROTATIONAL ;
65
67
const fop_flags_t RUST_CONST_HELPER_FOP_UNSIGNED_OFFSET = FOP_UNSIGNED_OFFSET ;
66
68
69
+ const uint32_t BINDINGS_DRM_EXEC_INTERRUPTIBLE_WAIT = DRM_EXEC_INTERRUPTIBLE_WAIT ;
70
+
67
71
const gfp_t BINDINGS_XA_FLAGS_LOCK_IRQ = XA_FLAGS_LOCK_IRQ ;
68
72
const gfp_t BINDINGS_XA_FLAGS_LOCK_BH = XA_FLAGS_LOCK_BH ;
69
73
const gfp_t BINDINGS_XA_FLAGS_TRACK_FREE = XA_FLAGS_TRACK_FREE ;
Original file line number Diff line number Diff line change
1
+ // SPDX-License-Identifier: GPL-2.0
2
+
3
+ #include <drm/drm_gpuvm.h>
4
+
5
+ #ifdef CONFIG_DRM
6
+ #ifdef CONFIG_DRM_GPUVM
7
+
8
+ struct drm_gpuvm * rust_helper_drm_gpuvm_get (struct drm_gpuvm * obj )
9
+ {
10
+ return drm_gpuvm_get (obj );
11
+ }
12
+
13
+ void rust_helper_drm_gpuvm_exec_unlock (struct drm_gpuvm_exec * vm_exec )
14
+ {
15
+ return drm_gpuvm_exec_unlock (vm_exec );
16
+ }
17
+
18
+ void rust_helper_drm_gpuva_init_from_op (struct drm_gpuva * va , struct drm_gpuva_op_map * op )
19
+ {
20
+ drm_gpuva_init_from_op (va , op );
21
+ }
22
+
23
+ struct drm_gpuvm_bo * rust_helper_drm_gpuvm_bo_get (struct drm_gpuvm_bo * vm_bo )
24
+ {
25
+ return drm_gpuvm_bo_get (vm_bo );
26
+ }
27
+
28
+ bool rust_helper_drm_gpuvm_is_extobj (struct drm_gpuvm * gpuvm , struct drm_gem_object * obj )
29
+ {
30
+ return drm_gpuvm_is_extobj (gpuvm , obj );
31
+ }
32
+
33
+ #endif
34
+ #endif
Original file line number Diff line number Diff line change 16
16
#include "dma-mapping.c"
17
17
#include "dma-resv.c"
18
18
#include "drm.c"
19
+ #include "drm_gpuvm.c"
19
20
#include "drm_syncobj.c"
20
21
#include "err.c"
21
22
#include "io.c"
You can’t perform that action at this time.
0 commit comments