Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / gpu / drm / nouveau / nvkm / engine / dma / priv.h
blob4307cbecd5c53e7cf0a22c544329228678183132
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_DMA_PRIV_H__
3 #define __NVKM_DMA_PRIV_H__
4 #define nvkm_dma(p) container_of((p), struct nvkm_dma, engine)
5 #include <engine/dma.h>
7 struct nvkm_dmaobj_func {
8 int (*bind)(struct nvkm_dmaobj *, struct nvkm_gpuobj *, int align,
9 struct nvkm_gpuobj **);
12 int nvkm_dma_new_(const struct nvkm_dma_func *, struct nvkm_device *,
13 int index, struct nvkm_dma **);
15 struct nvkm_dma_func {
16 int (*class_new)(struct nvkm_dma *, const struct nvkm_oclass *,
17 void *data, u32 size, struct nvkm_dmaobj **);
19 #endif