1 /* SPDX-License-Identifier: MIT 2 * 3 * Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. 4 */ 5 #ifndef __NVKM_RM_ENGINE_H__ 6 #define __NVKM_RM_ENGINE_H__ 7 #include "gpu.h" 8 9 int nvkm_rm_engine_ctor(void *(*dtor)(struct nvkm_engine *), struct nvkm_rm *, 10 enum nvkm_subdev_type type, int inst, 11 const u32 *class, int nclass, struct nvkm_engine *); 12 int nvkm_rm_engine_new(struct nvkm_rm *, enum nvkm_subdev_type, int inst); 13 14 int nvkm_rm_engine_obj_new(struct nvkm_gsp_object *chan, int chid, const struct nvkm_oclass *, 15 struct nvkm_object **); 16 17 int nvkm_rm_gr_new(struct nvkm_rm *); 18 int nvkm_rm_nvdec_new(struct nvkm_rm *, int inst); 19 int nvkm_rm_nvenc_new(struct nvkm_rm *, int inst); 20 #endif 21