1 #ifndef __NVKM_DMA_H__ 2 #define __NVKM_DMA_H__ 3 #include <core/engine.h> 4 struct nvkm_client; 5 6 struct nvkm_dmaobj { 7 const struct nvkm_dmaobj_func *func; 8 struct nvkm_dma *dma; 9 10 struct nvkm_object object; 11 u32 target; 12 u32 access; 13 u64 start; 14 u64 limit; 15 }; 16 17 struct nvkm_dma { 18 const struct nvkm_dma_func *func; 19 struct nvkm_engine engine; 20 }; 21 22 struct nvkm_dmaobj *nvkm_dmaobj_search(struct nvkm_client *, u64 object); 23 24 int nv04_dma_new(struct nvkm_device *, int, struct nvkm_dma **); 25 int nv50_dma_new(struct nvkm_device *, int, struct nvkm_dma **); 26 int gf100_dma_new(struct nvkm_device *, int, struct nvkm_dma **); 27 int gf119_dma_new(struct nvkm_device *, int, struct nvkm_dma **); 28 #endif 29