drm/nouveau: port all engines to new engine module format
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / include / engine / vp.h
1 #ifndef __NOUVEAU_VP_H__
2 #define __NOUVEAU_VP_H__
3
4 #include <core/engine.h>
5 #include <core/engctx.h>
6
7 struct nouveau_vp_chan {
8 struct nouveau_engctx base;
9 };
10
11 #define nouveau_vp_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_vp_context_destroy(d) \
14 nouveau_engctx_destroy(&(d)->base)
15 #define nouveau_vp_context_init(d) \
16 nouveau_engctx_init(&(d)->base)
17 #define nouveau_vp_context_fini(d,s) \
18 nouveau_engctx_fini(&(d)->base, (s))
19
20 #define _nouveau_vp_context_dtor _nouveau_engctx_dtor
21 #define _nouveau_vp_context_init _nouveau_engctx_init
22 #define _nouveau_vp_context_fini _nouveau_engctx_fini
23 #define _nouveau_vp_context_rd32 _nouveau_engctx_rd32
24 #define _nouveau_vp_context_wr32 _nouveau_engctx_wr32
25
26 struct nouveau_vp {
27 struct nouveau_engine base;
28 };
29
30 #define nouveau_vp_create(p,e,c,d) \
31 nouveau_engine_create((p), (e), (c), true, "PVP", "vp", (d))
32 #define nouveau_vp_destroy(d) \
33 nouveau_engine_destroy(&(d)->base)
34 #define nouveau_vp_init(d) \
35 nouveau_engine_init(&(d)->base)
36 #define nouveau_vp_fini(d,s) \
37 nouveau_engine_fini(&(d)->base, (s))
38
39 #define _nouveau_vp_dtor _nouveau_engine_dtor
40 #define _nouveau_vp_init _nouveau_engine_init
41 #define _nouveau_vp_fini _nouveau_engine_fini
42
43 extern struct nouveau_oclass nv84_vp_oclass;
44
45 #endif
This page took 0.032662 seconds and 5 git commands to generate.