1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NV04_FIFO_CHAN_H__
3 #define __NV04_FIFO_CHAN_H__
4 #define nv04_fifo_chan(p) container_of((p), struct nv04_fifo_chan, base)
8 struct nv04_fifo_chan
{
9 struct nvkm_fifo_chan base
;
10 struct nv04_fifo
*fifo
;
12 struct nvkm_gpuobj
*engn
[NVKM_SUBDEV_NR
];
15 extern const struct nvkm_fifo_chan_func nv04_fifo_dma_func
;
16 void *nv04_fifo_dma_dtor(struct nvkm_fifo_chan
*);
17 void nv04_fifo_dma_init(struct nvkm_fifo_chan
*);
18 void nv04_fifo_dma_fini(struct nvkm_fifo_chan
*);
19 void nv04_fifo_dma_object_dtor(struct nvkm_fifo_chan
*, int);
21 extern const struct nvkm_fifo_chan_oclass nv04_fifo_dma_oclass
;
22 extern const struct nvkm_fifo_chan_oclass nv10_fifo_dma_oclass
;
23 extern const struct nvkm_fifo_chan_oclass nv17_fifo_dma_oclass
;
24 extern const struct nvkm_fifo_chan_oclass nv40_fifo_dma_oclass
;