• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_DMA_H__
3 #define __NVKM_DMA_H__
4 #include <core/engine.h>
5 #include <core/object.h>
6 struct nvkm_client;
7 
8 struct nvkm_dmaobj {
9 	const struct nvkm_dmaobj_func *func;
10 	struct nvkm_dma *dma;
11 
12 	struct nvkm_object object;
13 	u32 target;
14 	u32 access;
15 	u64 start;
16 	u64 limit;
17 };
18 
19 struct nvkm_dma {
20 	const struct nvkm_dma_func *func;
21 	struct nvkm_engine engine;
22 };
23 
24 struct nvkm_dmaobj *nvkm_dmaobj_search(struct nvkm_client *, u64 object);
25 
26 int nv04_dma_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_dma **);
27 int nv50_dma_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_dma **);
28 int gf100_dma_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_dma **);
29 int gf119_dma_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_dma **);
30 int gv100_dma_new(struct nvkm_device *, enum nvkm_subdev_type, int inst, struct nvkm_dma **);
31 #endif
32