xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/engine/nvdec.h (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_NVDEC_H__
3 #define __NVKM_NVDEC_H__
4 #define nvkm_nvdec(p) container_of((p), struct nvkm_nvdec, engine)
5 #include <core/engine.h>
6 #include <core/falcon.h>
7 
8 struct nvkm_nvdec {
9 	const struct nvkm_nvdec_func *func;
10 	struct nvkm_engine engine;
11 	struct nvkm_falcon falcon;
12 };
13 
14 int gm107_nvdec_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvdec **);
15 int tu102_nvdec_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvdec **);
16 int ga100_nvdec_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvdec **);
17 int ga102_nvdec_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvdec **);
18 int ad102_nvdec_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvdec **);
19 #endif
20