1 #ifndef __NVKM_DMA_PRIV_H__
2 #define __NVKM_DMA_PRIV_H__
3 #define nvkm_dma(p) container_of((p), struct nvkm_dma, engine)
4 #include <engine/dma.h>
5 
6 struct nvkm_dmaobj_func {
7 	int (*bind)(struct nvkm_dmaobj *, struct nvkm_gpuobj *, int align,
8 		    struct nvkm_gpuobj **);
9 };
10 
11 int nvkm_dma_new_(const struct nvkm_dma_func *, struct nvkm_device *,
12 		  int index, struct nvkm_dma **);
13 
14 struct nvkm_dma_func {
15 	int (*class_new)(struct nvkm_dma *, const struct nvkm_oclass *,
16 			 void *data, u32 size, struct nvkm_dmaobj **);
17 };
18 #endif
19