#ifndef __NOUVEAU_VP_H__ #define __NOUVEAU_VP_H__ #include #include struct nouveau_vp_chan { struct nouveau_engctx base; }; #define nouveau_vp_context_create(p,e,c,g,s,a,f,d) \ nouveau_engctx_create((p), (e), (c), (g), (s), (a), (f), (d)) #define nouveau_vp_context_destroy(d) \ nouveau_engctx_destroy(&(d)->base) #define nouveau_vp_context_init(d) \ nouveau_engctx_init(&(d)->base) #define nouveau_vp_context_fini(d,s) \ nouveau_engctx_fini(&(d)->base, (s)) #define _nouveau_vp_context_dtor _nouveau_engctx_dtor #define _nouveau_vp_context_init _nouveau_engctx_init #define _nouveau_vp_context_fini _nouveau_engctx_fini #define _nouveau_vp_context_rd32 _nouveau_engctx_rd32 #define _nouveau_vp_context_wr32 _nouveau_engctx_wr32 struct nouveau_vp { struct nouveau_engine base; }; #define nouveau_vp_create(p,e,c,d) \ nouveau_engine_create((p), (e), (c), true, "PVP", "vp", (d)) #define nouveau_vp_destroy(d) \ nouveau_engine_destroy(&(d)->base) #define nouveau_vp_init(d) \ nouveau_engine_init(&(d)->base) #define nouveau_vp_fini(d,s) \ nouveau_engine_fini(&(d)->base, (s)) #define _nouveau_vp_dtor _nouveau_engine_dtor #define _nouveau_vp_init _nouveau_engine_init #define _nouveau_vp_fini _nouveau_engine_fini extern struct nouveau_oclass nv84_vp_oclass; #endif