1 #ifndef __NVKM_MPEG_H__ 2 #define __NVKM_MPEG_H__ 3 #include <core/engctx.h> 4 5 struct nvkm_mpeg_chan { 6 struct nvkm_engctx base; 7 }; 8 9 #define nvkm_mpeg_context_create(p,e,c,g,s,a,f,d) \ 10 nvkm_engctx_create((p), (e), (c), (g), (s), (a), (f), (d)) 11 #define nvkm_mpeg_context_destroy(d) \ 12 nvkm_engctx_destroy(&(d)->base) 13 #define nvkm_mpeg_context_init(d) \ 14 nvkm_engctx_init(&(d)->base) 15 #define nvkm_mpeg_context_fini(d,s) \ 16 nvkm_engctx_fini(&(d)->base, (s)) 17 18 #define _nvkm_mpeg_context_dtor _nvkm_engctx_dtor 19 #define _nvkm_mpeg_context_init _nvkm_engctx_init 20 #define _nvkm_mpeg_context_fini _nvkm_engctx_fini 21 #define _nvkm_mpeg_context_rd32 _nvkm_engctx_rd32 22 #define _nvkm_mpeg_context_wr32 _nvkm_engctx_wr32 23 24 #include <core/engine.h> 25 26 struct nvkm_mpeg { 27 struct nvkm_engine engine; 28 }; 29 30 #define nvkm_mpeg_create(p,e,c,d) \ 31 nvkm_engine_create((p), (e), (c), true, "PMPEG", "mpeg", (d)) 32 #define nvkm_mpeg_destroy(d) \ 33 nvkm_engine_destroy(&(d)->engine) 34 #define nvkm_mpeg_init(d) \ 35 nvkm_engine_init(&(d)->engine) 36 #define nvkm_mpeg_fini(d,s) \ 37 nvkm_engine_fini(&(d)->engine, (s)) 38 39 #define _nvkm_mpeg_dtor _nvkm_engine_dtor 40 #define _nvkm_mpeg_init _nvkm_engine_init 41 #define _nvkm_mpeg_fini _nvkm_engine_fini 42 43 extern struct nvkm_oclass nv31_mpeg_oclass; 44 extern struct nvkm_oclass nv40_mpeg_oclass; 45 extern struct nvkm_oclass nv44_mpeg_oclass; 46 extern struct nvkm_oclass nv50_mpeg_oclass; 47 extern struct nvkm_oclass g84_mpeg_oclass; 48 extern struct nvkm_ofuncs nv31_mpeg_ofuncs; 49 extern struct nvkm_oclass nv31_mpeg_cclass; 50 extern struct nvkm_oclass nv31_mpeg_sclass[]; 51 extern struct nvkm_oclass nv40_mpeg_sclass[]; 52 void nv31_mpeg_intr(struct nvkm_subdev *); 53 void nv31_mpeg_tile_prog(struct nvkm_engine *, int); 54 int nv31_mpeg_init(struct nvkm_object *); 55 56 extern struct nvkm_ofuncs nv50_mpeg_ofuncs; 57 int nv50_mpeg_context_ctor(struct nvkm_object *, struct nvkm_object *, 58 struct nvkm_oclass *, void *, u32, 59 struct nvkm_object **); 60 void nv50_mpeg_intr(struct nvkm_subdev *); 61 int nv50_mpeg_init(struct nvkm_object *); 62 #endif 63