2019-06-19 20:13:43 -04:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2016-03-11 13:09:28 +10:00
|
|
|
#ifndef __NVKM_NVENC_H__
|
|
|
|
#define __NVKM_NVENC_H__
|
2020-01-15 06:34:21 +10:00
|
|
|
#define nvkm_nvenc(p) container_of((p), struct nvkm_nvenc, engine)
|
2016-03-11 13:09:28 +10:00
|
|
|
#include <core/engine.h>
|
2020-01-15 06:34:21 +10:00
|
|
|
#include <core/falcon.h>
|
|
|
|
|
|
|
|
struct nvkm_nvenc {
|
|
|
|
const struct nvkm_nvenc_func *func;
|
|
|
|
struct nvkm_engine engine;
|
|
|
|
struct nvkm_falcon falcon;
|
|
|
|
};
|
|
|
|
|
2020-12-04 16:04:23 +10:00
|
|
|
int gm107_nvenc_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvenc **);
|
2023-09-19 06:21:33 +10:00
|
|
|
int tu102_nvenc_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_nvenc **);
|
2016-03-11 13:09:28 +10:00
|
|
|
#endif
|