xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/fifo/changf100.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: changf100.h,v 1.3 2021/12/18 23:45:35 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 #ifndef __GF100_FIFO_CHAN_H__
5 #define __GF100_FIFO_CHAN_H__
6 #define gf100_fifo_chan(p) container_of((p), struct gf100_fifo_chan, base)
7 #include "chan.h"
8 #include "gf100.h"
9 
10 struct gf100_fifo_chan {
11 	struct nvkm_fifo_chan base;
12 	struct gf100_fifo *fifo;
13 
14 	struct list_head head;
15 	bool killed;
16 
17 	struct {
18 		struct nvkm_gpuobj *inst;
19 		struct nvkm_vma *vma;
20 	} engn[NVKM_SUBDEV_NR];
21 };
22 
23 extern const struct nvkm_fifo_chan_oclass gf100_fifo_gpfifo_oclass;
24 #endif
25