1 #ifndef __NVKM_MPEG_H__ 2 #define __NVKM_MPEG_H__ 3 #include <core/engine.h> 4 5 struct nvkm_mpeg { 6 struct nvkm_engine engine; 7 }; 8 9 #define nvkm_mpeg_create(p,e,c,d) \ 10 nvkm_engine_create((p), (e), (c), true, "PMPEG", "mpeg", (d)) 11 #define nvkm_mpeg_destroy(d) \ 12 nvkm_engine_destroy(&(d)->engine) 13 #define nvkm_mpeg_init(d) \ 14 nvkm_engine_init_old(&(d)->engine) 15 #define nvkm_mpeg_fini(d,s) \ 16 nvkm_engine_fini_old(&(d)->engine, (s)) 17 18 #define _nvkm_mpeg_dtor _nvkm_engine_dtor 19 #define _nvkm_mpeg_init _nvkm_engine_init 20 #define _nvkm_mpeg_fini _nvkm_engine_fini 21 22 extern struct nvkm_oclass nv31_mpeg_oclass; 23 extern struct nvkm_oclass nv40_mpeg_oclass; 24 extern struct nvkm_oclass nv44_mpeg_oclass; 25 extern struct nvkm_oclass nv50_mpeg_oclass; 26 extern struct nvkm_oclass g84_mpeg_oclass; 27 extern struct nvkm_oclass nv40_mpeg_sclass[]; 28 void nv31_mpeg_intr(struct nvkm_subdev *); 29 void nv31_mpeg_tile_prog(struct nvkm_engine *, int); 30 int nv31_mpeg_init(struct nvkm_object *); 31 32 extern struct nvkm_ofuncs nv50_mpeg_ofuncs; 33 int nv50_mpeg_context_ctor(struct nvkm_object *, struct nvkm_object *, 34 struct nvkm_oclass *, void *, u32, 35 struct nvkm_object **); 36 void nv50_mpeg_intr(struct nvkm_subdev *); 37 int nv50_mpeg_init(struct nvkm_object *); 38 #endif 39