2019-06-19 20:13:43 -04:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2017-01-26 15:16:32 +09:00
|
|
|
#ifndef __NVKM_NVDEC_PRIV_H__
|
|
|
|
#define __NVKM_NVDEC_PRIV_H__
|
|
|
|
#include <engine/nvdec.h>
|
|
|
|
|
2020-01-15 06:34:21 +10:00
|
|
|
struct nvkm_nvdec_func {
|
2020-01-15 06:34:21 +10:00
|
|
|
const struct nvkm_falcon_func *flcn;
|
2023-09-19 06:21:46 +10:00
|
|
|
|
|
|
|
struct nvkm_sclass sclass[];
|
2020-01-15 06:34:21 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
struct nvkm_nvdec_fwif {
|
|
|
|
int version;
|
|
|
|
int (*load)(struct nvkm_nvdec *, int ver,
|
|
|
|
const struct nvkm_nvdec_fwif *);
|
|
|
|
const struct nvkm_nvdec_func *func;
|
|
|
|
};
|
|
|
|
|
2023-09-19 06:21:32 +10:00
|
|
|
extern const struct nvkm_nvdec_fwif gm107_nvdec_fwif[];
|
|
|
|
|
2020-12-04 16:01:06 +10:00
|
|
|
int nvkm_nvdec_new_(const struct nvkm_nvdec_fwif *fwif, struct nvkm_device *,
|
2022-06-01 20:48:32 +10:00
|
|
|
enum nvkm_subdev_type, int, u32 addr, struct nvkm_nvdec **);
|
2017-01-26 15:16:32 +09:00
|
|
|
#endif
|