Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / gpu / drm / nouveau / include / nvkm / engine / dma.h
blob0f9c1c702ed6141f8091f3ca95ea229b1d6726ef
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_DMA_H__
3 #define __NVKM_DMA_H__
4 #include <core/engine.h>
5 #include <core/object.h>
6 struct nvkm_client;
8 struct nvkm_dmaobj {
9 const struct nvkm_dmaobj_func *func;
10 struct nvkm_dma *dma;
12 struct nvkm_object object;
13 u32 target;
14 u32 access;
15 u64 start;
16 u64 limit;
19 struct nvkm_dma {
20 const struct nvkm_dma_func *func;
21 struct nvkm_engine engine;
24 struct nvkm_dmaobj *nvkm_dmaobj_search(struct nvkm_client *, u64 object);
26 int nv04_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
27 int nv50_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
28 int gf100_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
29 int gf119_dma_new(struct nvkm_device *, int, struct nvkm_dma **);
30 #endif