1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __GK104_FIFO_CHAN_H__
3 #define __GK104_FIFO_CHAN_H__
4 #define gk104_fifo_chan(p) container_of((p), struct gk104_fifo_chan, base)
8 struct gk104_fifo_chan
{
9 struct nvkm_fifo_chan base
;
10 struct gk104_fifo
*fifo
;
13 struct list_head head
;
17 struct nvkm_gpuobj
*inst
;
19 } engn
[NVKM_SUBDEV_NR
];
22 int gk104_fifo_gpfifo_new(struct nvkm_fifo
*, const struct nvkm_oclass
*,
23 void *data
, u32 size
, struct nvkm_object
**);
25 extern const struct nvkm_fifo_chan_oclass gk104_fifo_gpfifo_oclass
;
26 extern const struct nvkm_fifo_chan_oclass gk110_fifo_gpfifo_oclass
;
27 extern const struct nvkm_fifo_chan_oclass gm200_fifo_gpfifo_oclass
;
28 extern const struct nvkm_fifo_chan_oclass gp100_fifo_gpfifo_oclass
;