File: dmaobj.h

package info (click to toggle)
linux 3.16.7-ckt2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 734,120 kB
  • ctags: 2,369,605
  • sloc: ansic: 12,212,866; asm: 277,256; perl: 53,999; xml: 47,771; makefile: 30,481; sh: 8,035; python: 6,583; cpp: 5,121; yacc: 4,254; lex: 2,215; awk: 741; pascal: 231; lisp: 218; sed: 30
file content (48 lines) | stat: -rw-r--r-- 1,441 bytes parent folder | download | duplicates (15)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#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;
	u32 conf0;
};

struct nouveau_dmaeng {
	struct nouveau_engine base;

	/* creates a "physical" dma object from a struct nouveau_dmaobj */
	int (*bind)(struct nouveau_dmaeng *dmaeng,
		    struct nouveau_object *parent,
		    struct nouveau_dmaobj *dmaobj,
		    struct nouveau_gpuobj **);
};

#define nouveau_dmaeng_create(p,e,c,d)                                         \
	nouveau_engine_create((p), (e), (c), true, "DMAOBJ", "dmaobj", (d))
#define nouveau_dmaeng_destroy(p)                                              \
	nouveau_engine_destroy(&(p)->base)
#define nouveau_dmaeng_init(p)                                                 \
	nouveau_engine_init(&(p)->base)
#define nouveau_dmaeng_fini(p,s)                                               \
	nouveau_engine_fini(&(p)->base, (s))

#define _nouveau_dmaeng_dtor _nouveau_engine_dtor
#define _nouveau_dmaeng_init _nouveau_engine_init
#define _nouveau_dmaeng_fini _nouveau_engine_fini

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;

extern struct nouveau_oclass nouveau_dmaobj_sclass[];

#endif