drm/nouveau/dma: convert to new-style nvkm_engine
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nvkm / engine / dma / nv50.c
index b8d87e7d6ed7d5dc20323f7a4e1ab2dd621fbb79..77aca7b71c83cbadf995253495d6f6a2c3088381 100644 (file)
 #include "priv.h"
 #include "user.h"
 
-struct nvkm_oclass *
-nv50_dmaeng_oclass = &(struct nvkm_dma_impl) {
-       .base.handle = NV_ENGINE(DMAOBJ, 0x50),
-       .base.ofuncs = &(struct nvkm_ofuncs) {
-               .ctor = _nvkm_dma_ctor,
-               .dtor = _nvkm_dma_dtor,
-               .init = _nvkm_dma_init,
-               .fini = _nvkm_dma_fini,
-       },
+static const struct nvkm_dma_func
+nv50_dma = {
        .class_new = nv50_dmaobj_new,
-}.base;
+};
+
+int
+nv50_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
+{
+       return nvkm_dma_new_(&nv50_dma, device, index, pdma);
+}
This page took 0.023747 seconds and 5 git commands to generate.