2012-07-19 22:17:34 +00:00
|
|
|
#ifndef __NOUVEAU_DMAOBJ_H__
|
|
|
|
#define __NOUVEAU_DMAOBJ_H__
|
|
|
|
|
|
|
|
#include <core/object.h>
|
|
|
|
#include <core/engine.h>
|
|
|
|
|
|
|
|
struct nouveau_gpuobj;
|
|
|
|
|
|
|
|
struct nouveau_dmaobj {
|
|
|
|
struct nouveau_object base;
|
|
|
|
u32 target;
|
|
|
|
u32 access;
|
|
|
|
u64 start;
|
|
|
|
u64 limit;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct nouveau_dmaeng {
|
|
|
|
struct nouveau_engine base;
|
2012-10-08 02:58:23 +00:00
|
|
|
|
|
|
|
/* creates a "physical" dma object from a struct nouveau_dmaobj */
|
2014-08-09 18:10:24 +00:00
|
|
|
int (*bind)(struct nouveau_dmaobj *dmaobj,
|
2012-10-08 02:58:23 +00:00
|
|
|
struct nouveau_object *parent,
|
|
|
|
struct nouveau_gpuobj **);
|
2012-07-19 22:17:34 +00:00
|
|
|
};
|
|
|
|
|
2014-08-09 18:10:24 +00:00
|
|
|
extern struct nouveau_oclass *nv04_dmaeng_oclass;
|
|
|
|
extern struct nouveau_oclass *nv50_dmaeng_oclass;
|
|
|
|
extern struct nouveau_oclass *nvc0_dmaeng_oclass;
|
|
|
|
extern struct nouveau_oclass *nvd0_dmaeng_oclass;
|
2012-08-29 00:54:49 +00:00
|
|
|
|
2012-07-19 22:17:34 +00:00
|
|
|
#endif
|