WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / engine / fifo / nv04.h
blobe5ecceee77ae768d6da413a9b53fa6da48041c14
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NV04_FIFO_H__
3 #define __NV04_FIFO_H__
4 #define nv04_fifo(p) container_of((p), struct nv04_fifo, base)
5 #include "priv.h"
7 struct nv04_fifo_ramfc {
8 unsigned bits:6;
9 unsigned ctxs:5;
10 unsigned ctxp:8;
11 unsigned regs:5;
12 unsigned regp;
15 struct nv04_fifo {
16 struct nvkm_fifo base;
17 const struct nv04_fifo_ramfc *ramfc;
20 int nv04_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *,
21 int index, int nr, const struct nv04_fifo_ramfc *,
22 struct nvkm_fifo **);
23 void nv04_fifo_init(struct nvkm_fifo *);
24 #endif