forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/nouveau/nouveau_chan.h
....@@ -1,15 +1,24 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: MIT */
22 #ifndef __NOUVEAU_CHAN_H__
33 #define __NOUVEAU_CHAN_H__
44 #include <nvif/object.h>
55 #include <nvif/notify.h>
6
+#include <nvif/push.h>
67 struct nvif_device;
78
89 struct nouveau_channel {
10
+ struct {
11
+ struct nvif_push _push;
12
+ struct nvif_push *push;
13
+ } chan;
14
+
915 struct nvif_device *device;
1016 struct nouveau_drm *drm;
17
+ struct nouveau_vmm *vmm;
1118
1219 int chid;
20
+ u64 inst;
21
+ u32 token;
1322
1423 struct nvif_object vram;
1524 struct nvif_object gart;
....@@ -48,7 +57,8 @@
4857 int nouveau_channels_init(struct nouveau_drm *);
4958
5059 int nouveau_channel_new(struct nouveau_drm *, struct nvif_device *,
51
- u32 arg0, u32 arg1, struct nouveau_channel **);
60
+ u32 arg0, u32 arg1, bool priv,
61
+ struct nouveau_channel **);
5262 void nouveau_channel_del(struct nouveau_channel **);
5363 int nouveau_channel_idle(struct nouveau_channel *);
5464