drm/nouveau/dma: convert to new-style nvkm_engine
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nvkm / engine / dma / nv04.c
index c116995f84946238b8f840dfccd1633eb5753f05..30747a0ce488c8f9a582b08d6f5a8fdc317c186b 100644 (file)
 #include "priv.h"
 #include "user.h"
 
-struct nvkm_oclass *
-nv04_dmaeng_oclass = &(struct nvkm_dma_impl) {
-       .base.handle = NV_ENGINE(DMAOBJ, 0x04),
-       .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
+nv04_dma = {
        .class_new = nv04_dmaobj_new,
-}.base;
+};
+
+int
+nv04_dma_new(struct nvkm_device *device, int index, struct nvkm_dma **pdma)
+{
+       return nvkm_dma_new_(&nv04_dma, device, index, pdma);
+}
This page took 0.029013 seconds and 5 git commands to generate.