1 #ifndef __NV31_MPEG_H__ 2 #define __NV31_MPEG_H__ 3 #define nv31_mpeg(p) container_of((p), struct nv31_mpeg, base.engine) 4 #include "priv.h" 5 #include <engine/mpeg.h> 6 7 struct nv31_mpeg { 8 struct nvkm_mpeg base; 9 struct nv31_mpeg_chan *chan; 10 bool (*mthd_dma)(struct nvkm_device *, u32 mthd, u32 data); 11 }; 12 13 #define nv31_mpeg_chan(p) container_of((p), struct nv31_mpeg_chan, object) 14 15 struct nv31_mpeg_chan { 16 struct nvkm_object object; 17 struct nv31_mpeg *mpeg; 18 struct nvkm_fifo_chan *fifo; 19 }; 20 21 int nv31_mpeg_chan_new(struct nvkm_fifo_chan *, const struct nvkm_oclass *, 22 struct nvkm_object **); 23 #endif 24