drm/nvc0-/gr: factor out yet more unknown magic into versioned functions
[linux-2.6-microblaze.git] / drivers / gpu / drm / nouveau / core / engine / graph / ctxnvc8.c
index aa76681..d0d4ce3 100644 (file)
@@ -341,6 +341,14 @@ nvc8_grctx_init_mthd[] = {
        {}
 };
 
+static struct nvc0_graph_init *
+nvc8_grctx_init_gpc[] = {
+       nvc0_grctx_init_gpc_0,
+       nvc0_grctx_init_gpc_1,
+       nvc8_grctx_init_tpc,
+       NULL
+};
+
 struct nouveau_oclass *
 nvc8_grctx_oclass = &(struct nvc0_grctx_oclass) {
        .base.handle = NV_ENGCTX(GR, 0xc8),
@@ -354,9 +362,9 @@ nvc8_grctx_oclass = &(struct nvc0_grctx_oclass) {
        },
        .main = nvc0_grctx_generate_main,
        .mods = nvc0_grctx_generate_mods,
-       .mmio = nvc0_grctx_init_mmio,
-       .gpc  = nvc0_grctx_init_gpc,
-       .tpc  = nvc8_grctx_init_tpc,
+       .unkn = nvc0_grctx_generate_unkn,
+       .hub  = nvc0_grctx_init_hub,
+       .gpc  = nvc8_grctx_init_gpc,
        .icmd = nvc8_grctx_init_icmd,
        .mthd = nvc8_grctx_init_mthd,
 }.base;