]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/gpu/drm/nouveau/nvkm/engine/dma/priv.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / nouveau / nvkm / engine / dma / priv.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
19fef52d
BS
2#ifndef __NVKM_DMA_PRIV_H__
3#define __NVKM_DMA_PRIV_H__
0710cc31 4#define nvkm_dma(p) container_of((p), struct nvkm_dma, engine)
19fef52d
BS
5#include <engine/dma.h>
6
bd70563f
BS
7struct nvkm_dmaobj_func {
8 int (*bind)(struct nvkm_dmaobj *, struct nvkm_gpuobj *, int align,
19fef52d 9 struct nvkm_gpuobj **);
bd70563f
BS
10};
11
12int nvkm_dma_new_(const struct nvkm_dma_func *, struct nvkm_device *,
13 int index, struct nvkm_dma **);
14
15struct nvkm_dma_func {
0710cc31
BS
16 int (*class_new)(struct nvkm_dma *, const struct nvkm_oclass *,
17 void *data, u32 size, struct nvkm_dmaobj **);
19fef52d
BS
18};
19#endif