forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/nouveau/include/nvif/notify.h
....@@ -1,9 +1,10 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: MIT */
22 #ifndef __NVIF_NOTIFY_H__
33 #define __NVIF_NOTIFY_H__
44
55 struct nvif_notify {
66 struct nvif_object *object;
7
+ const char *name;
78 int index;
89
910 #define NVIF_NOTIFY_USER 0
....@@ -24,10 +25,10 @@
2425 struct work_struct work;
2526 };
2627
27
-int nvif_notify_init(struct nvif_object *, int (*func)(struct nvif_notify *),
28
- bool work, u8 type, void *data, u32 size, u32 reply,
29
- struct nvif_notify *);
30
-int nvif_notify_fini(struct nvif_notify *);
28
+int nvif_notify_ctor(struct nvif_object *, const char *name,
29
+ int (*func)(struct nvif_notify *), bool work, u8 type,
30
+ void *data, u32 size, u32 reply, struct nvif_notify *);
31
+int nvif_notify_dtor(struct nvif_notify *);
3132 int nvif_notify_get(struct nvif_notify *);
3233 int nvif_notify_put(struct nvif_notify *);
3334 int nvif_notify(const void *, u32, const void *, u32);