2019-06-19 20:13:43 -04:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2012-07-20 08:17:34 +10:00
|
|
|
#ifndef __NV04_FIFO_H__
|
|
|
|
|
#define __NV04_FIFO_H__
|
2015-08-20 14:54:19 +10:00
|
|
|
#define nv04_fifo(p) container_of((p), struct nv04_fifo, base)
|
2015-08-20 14:54:19 +10:00
|
|
|
#include "priv.h"
|
2012-07-20 08:17:34 +10:00
|
|
|
|
2015-08-20 14:54:22 +10:00
|
|
|
struct nv04_fifo_ramfc {
|
2012-07-20 08:17:34 +10:00
|
|
|
unsigned bits:6;
|
|
|
|
|
unsigned ctxs:5;
|
|
|
|
|
unsigned ctxp:8;
|
|
|
|
|
unsigned regs:5;
|
|
|
|
|
unsigned regp;
|
|
|
|
|
};
|
|
|
|
|
|
2015-08-20 14:54:07 +10:00
|
|
|
struct nv04_fifo {
|
2015-01-14 15:28:47 +10:00
|
|
|
struct nvkm_fifo base;
|
2015-08-20 14:54:22 +10:00
|
|
|
const struct nv04_fifo_ramfc *ramfc;
|
2012-07-20 08:17:34 +10:00
|
|
|
};
|
|
|
|
|
|
2020-12-04 15:29:16 +10:00
|
|
|
int nv04_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *, enum nvkm_subdev_type, int,
|
|
|
|
|
int nr, const struct nv04_fifo_ramfc *, struct nvkm_fifo **);
|
2015-08-20 14:54:22 +10:00
|
|
|
void nv04_fifo_init(struct nvkm_fifo *);
|
2012-07-20 08:17:34 +10:00
|
|
|
#endif
|