Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
copy.h
Go to the documentation of this file.
1 #ifndef __NOUVEAU_COPY_H__
2 #define __NOUVEAU_COPY_H__
3 
4 #include <core/engine.h>
5 #include <core/engctx.h>
6 
9 };
10 
11 #define nouveau_copy_context_create(p,e,c,g,s,a,f,d) \
12  nouveau_engctx_create((p), (e), (c), (g), (s), (a), (f), (d))
13 #define nouveau_copy_context_destroy(d) \
14  nouveau_engctx_destroy(&(d)->base)
15 #define nouveau_copy_context_init(d) \
16  nouveau_engctx_init(&(d)->base)
17 #define nouveau_copy_context_fini(d,s) \
18  nouveau_engctx_fini(&(d)->base, (s))
19 
20 #define _nouveau_copy_context_dtor _nouveau_engctx_dtor
21 #define _nouveau_copy_context_init _nouveau_engctx_init
22 #define _nouveau_copy_context_fini _nouveau_engctx_fini
23 #define _nouveau_copy_context_rd32 _nouveau_engctx_rd32
24 #define _nouveau_copy_context_wr32 _nouveau_engctx_wr32
25 
26 struct nouveau_copy {
28 };
29 
30 #define nouveau_copy_create(p,e,c,y,i,d) \
31  nouveau_engine_create((p), (e), (c), (y), "PCE"#i, "copy"#i, (d))
32 #define nouveau_copy_destroy(d) \
33  nouveau_engine_destroy(&(d)->base)
34 #define nouveau_copy_init(d) \
35  nouveau_engine_init(&(d)->base)
36 #define nouveau_copy_fini(d,s) \
37  nouveau_engine_fini(&(d)->base, (s))
38 
39 #define _nouveau_copy_dtor _nouveau_engine_dtor
40 #define _nouveau_copy_init _nouveau_engine_init
41 #define _nouveau_copy_fini _nouveau_engine_fini
42 
43 extern struct nouveau_oclass nva3_copy_oclass;
44 extern struct nouveau_oclass nvc0_copy0_oclass;
45 extern struct nouveau_oclass nvc0_copy1_oclass;
46 extern struct nouveau_oclass nve0_copy0_oclass;
47 extern struct nouveau_oclass nve0_copy1_oclass;
48 
49 #endif