]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / drivers / gpu / drm / nouveau / nvkm / engine / fifo / channv50.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
9a65a38c
BS
2#ifndef __NV50_FIFO_CHAN_H__
3#define __NV50_FIFO_CHAN_H__
8f0649b5 4#define nv50_fifo_chan(p) container_of((p), struct nv50_fifo_chan, base)
9a65a38c
BS
5#include "chan.h"
6#include "nv50.h"
7
8f0649b5
BS
8struct nv50_fifo_chan {
9 struct nv50_fifo *fifo;
10 struct nvkm_fifo_chan base;
11
9a65a38c
BS
12 struct nvkm_gpuobj *ramfc;
13 struct nvkm_gpuobj *cache;
14 struct nvkm_gpuobj *eng;
15 struct nvkm_gpuobj *pgd;
8f0649b5 16 struct nvkm_ramht *ramht;
9a65a38c 17 struct nvkm_vm *vm;
9a65a38c 18
68f3f702 19 struct nvkm_gpuobj *engn[NVKM_SUBDEV_NR];
9a65a38c
BS
20};
21
8f0649b5
BS
22int nv50_fifo_chan_ctor(struct nv50_fifo *, u64 vm, u64 push,
23 const struct nvkm_oclass *, struct nv50_fifo_chan *);
24void *nv50_fifo_chan_dtor(struct nvkm_fifo_chan *);
25void nv50_fifo_chan_fini(struct nvkm_fifo_chan *);
26void nv50_fifo_chan_engine_dtor(struct nvkm_fifo_chan *, struct nvkm_engine *);
27void nv50_fifo_chan_object_dtor(struct nvkm_fifo_chan *, int);
28
29int g84_fifo_chan_ctor(struct nv50_fifo *, u64 vm, u64 push,
30 const struct nvkm_oclass *, struct nv50_fifo_chan *);
9a65a38c 31
8f0649b5
BS
32extern const struct nvkm_fifo_chan_oclass nv50_fifo_dma_oclass;
33extern const struct nvkm_fifo_chan_oclass nv50_fifo_gpfifo_oclass;
34extern const struct nvkm_fifo_chan_oclass g84_fifo_dma_oclass;
35extern const struct nvkm_fifo_chan_oclass g84_fifo_gpfifo_oclass;
9a65a38c 36#endif