1 #ifndef __NV04_FIFO_H__
2 #define __NV04_FIFO_H__
3 #define nv04_fifo(p) container_of((p), struct nv04_fifo, base)
4 #include "priv.h"
5 
6 struct nv04_fifo_ramfc {
7 	unsigned bits:6;
8 	unsigned ctxs:5;
9 	unsigned ctxp:8;
10 	unsigned regs:5;
11 	unsigned regp;
12 };
13 
14 struct nv04_fifo {
15 	struct nvkm_fifo base;
16 	const struct nv04_fifo_ramfc *ramfc;
17 };
18 
19 int nv04_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *,
20 		   int index, int nr, const struct nv04_fifo_ramfc *,
21 		   struct nvkm_fifo **);
22 void nv04_fifo_init(struct nvkm_fifo *);
23 #endif
24