xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
1b7019ac5SIlia Mirkin /* SPDX-License-Identifier: MIT */
2f84aff4eSBen Skeggs #ifndef __NVKM_SW_H__
3f84aff4eSBen Skeggs #define __NVKM_SW_H__
4f84aff4eSBen Skeggs #include <core/engine.h>
5f84aff4eSBen Skeggs 
6f84aff4eSBen Skeggs struct nvkm_sw {
707b9e6ccSBen Skeggs 	const struct nvkm_sw_func *func;
86f41c7c5SBen Skeggs 	struct nvkm_engine engine;
96f41c7c5SBen Skeggs 
1061570911SBen Skeggs 	struct list_head chan;
118700287bSBen Skeggs };
128700287bSBen Skeggs 
1361570911SBen Skeggs bool nvkm_sw_mthd(struct nvkm_sw *sw, int chid, int subc, u32 mthd, u32 data);
1461570911SBen Skeggs 
15*8d6461d8SBen Skeggs int nv04_sw_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sw **);
16*8d6461d8SBen Skeggs int nv10_sw_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sw **);
17*8d6461d8SBen Skeggs int nv50_sw_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sw **);
18*8d6461d8SBen Skeggs int gf100_sw_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_sw **);
198700287bSBen Skeggs #endif
20