forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/include/nvkm/engine/nvenc.h
....@@ -1,5 +1,15 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: MIT */
22 #ifndef __NVKM_NVENC_H__
33 #define __NVKM_NVENC_H__
4
+#define nvkm_nvenc(p) container_of((p), struct nvkm_nvenc, engine)
45 #include <core/engine.h>
6
+#include <core/falcon.h>
7
+
8
+struct nvkm_nvenc {
9
+ const struct nvkm_nvenc_func *func;
10
+ struct nvkm_engine engine;
11
+ struct nvkm_falcon falcon;
12
+};
13
+
14
+int gm107_nvenc_new(struct nvkm_device *, int, struct nvkm_nvenc **);
515 #endif