summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/include/nvkm/engine/dmaobj.h
blob: c4fce8afcf831f6196a8cf16fea0fc0f63a6763c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __NVKM_DMAOBJ_H__
#define __NVKM_DMAOBJ_H__
#include <core/engine.h>
struct nvkm_gpuobj;

struct nvkm_dmaobj {
	struct nvkm_object base;
	u32 target;
	u32 access;
	u64 start;
	u64 limit;
};

struct nvkm_dmaeng {
	struct nvkm_engine base;

	/* creates a "physical" dma object from a struct nvkm_dmaobj */
	int (*bind)(struct nvkm_dmaobj *dmaobj, struct nvkm_object *parent,
		    struct nvkm_gpuobj **);
};

extern struct nvkm_oclass *nv04_dmaeng_oclass;
extern struct nvkm_oclass *nv50_dmaeng_oclass;
extern struct nvkm_oclass *gf100_dmaeng_oclass;
extern struct nvkm_oclass *gf110_dmaeng_oclass;
#endif