xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/fifo/nv50.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: nv50.h,v 1.3 2021/12/18 23:45:35 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 #ifndef __NV50_FIFO_H__
5 #define __NV50_FIFO_H__
6 #define nv50_fifo(p) container_of((p), struct nv50_fifo, base)
7 #include "priv.h"
8 
9 struct nv50_fifo {
10 	struct nvkm_fifo base;
11 	struct nvkm_memory *runlist[2];
12 	int cur_runlist;
13 };
14 
15 int nv50_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *,
16 		   int index, struct nvkm_fifo **);
17 
18 void *nv50_fifo_dtor(struct nvkm_fifo *);
19 int nv50_fifo_oneinit(struct nvkm_fifo *);
20 void nv50_fifo_init(struct nvkm_fifo *);
21 void nv50_fifo_runlist_update(struct nv50_fifo *);
22 #endif
23