Commit 74137ffc authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/msvld: cosmetic changes

This is purely preparation for upcoming commits, there should be no
code changes here.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent fd507a53
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#include <engine/msvld.h> #include <engine/msvld.h>
#include <engine/falcon.h> #include <engine/falcon.h>
struct g98_msvld_priv {
struct nvkm_falcon base;
};
/******************************************************************************* /*******************************************************************************
* MSVLD object classes * MSVLD object classes
******************************************************************************/ ******************************************************************************/
...@@ -64,15 +60,15 @@ g98_msvld_cclass = { ...@@ -64,15 +60,15 @@ g98_msvld_cclass = {
static int static int
g98_msvld_init(struct nvkm_object *object) g98_msvld_init(struct nvkm_object *object)
{ {
struct g98_msvld_priv *priv = (void *)object; struct nvkm_falcon *msvld = (void *)object;
int ret; int ret;
ret = nvkm_falcon_init(&priv->base); ret = nvkm_falcon_init(msvld);
if (ret) if (ret)
return ret; return ret;
nv_wr32(priv, 0x084010, 0x0000ffd2); nv_wr32(msvld, 0x084010, 0x0000ffd2);
nv_wr32(priv, 0x08401c, 0x0000fff2); nv_wr32(msvld, 0x08401c, 0x0000fff2);
return 0; return 0;
} }
...@@ -81,18 +77,18 @@ g98_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine, ...@@ -81,18 +77,18 @@ g98_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
struct nvkm_oclass *oclass, void *data, u32 size, struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject) struct nvkm_object **pobject)
{ {
struct g98_msvld_priv *priv; struct nvkm_falcon *msvld;
int ret; int ret;
ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true, ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
"PMSVLD", "msvld", &priv); "PMSVLD", "msvld", &msvld);
*pobject = nv_object(priv); *pobject = nv_object(msvld);
if (ret) if (ret)
return ret; return ret;
nv_subdev(priv)->unit = 0x04008000; nv_subdev(msvld)->unit = 0x04008000;
nv_engine(priv)->cclass = &g98_msvld_cclass; nv_engine(msvld)->cclass = &g98_msvld_cclass;
nv_engine(priv)->sclass = g98_msvld_sclass; nv_engine(msvld)->sclass = g98_msvld_sclass;
return 0; return 0;
} }
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#include <engine/msvld.h> #include <engine/msvld.h>
#include <engine/falcon.h> #include <engine/falcon.h>
struct gf100_msvld_priv {
struct nvkm_falcon base;
};
/******************************************************************************* /*******************************************************************************
* MSVLD object classes * MSVLD object classes
******************************************************************************/ ******************************************************************************/
...@@ -62,15 +58,15 @@ gf100_msvld_cclass = { ...@@ -62,15 +58,15 @@ gf100_msvld_cclass = {
static int static int
gf100_msvld_init(struct nvkm_object *object) gf100_msvld_init(struct nvkm_object *object)
{ {
struct gf100_msvld_priv *priv = (void *)object; struct nvkm_falcon *msvld = (void *)object;
int ret; int ret;
ret = nvkm_falcon_init(&priv->base); ret = nvkm_falcon_init(msvld);
if (ret) if (ret)
return ret; return ret;
nv_wr32(priv, 0x084010, 0x0000fff2); nv_wr32(msvld, 0x084010, 0x0000fff2);
nv_wr32(priv, 0x08401c, 0x0000fff2); nv_wr32(msvld, 0x08401c, 0x0000fff2);
return 0; return 0;
} }
...@@ -79,19 +75,19 @@ gf100_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine, ...@@ -79,19 +75,19 @@ gf100_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
struct nvkm_oclass *oclass, void *data, u32 size, struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject) struct nvkm_object **pobject)
{ {
struct gf100_msvld_priv *priv; struct nvkm_falcon *msvld;
int ret; int ret;
ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true, ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
"PMSVLD", "msvld", &priv); "PMSVLD", "msvld", &msvld);
*pobject = nv_object(priv); *pobject = nv_object(msvld);
if (ret) if (ret)
return ret; return ret;
nv_subdev(priv)->unit = 0x00008000; nv_subdev(msvld)->unit = 0x00008000;
nv_subdev(priv)->intr = nvkm_falcon_intr; nv_subdev(msvld)->intr = nvkm_falcon_intr;
nv_engine(priv)->cclass = &gf100_msvld_cclass; nv_engine(msvld)->cclass = &gf100_msvld_cclass;
nv_engine(priv)->sclass = gf100_msvld_sclass; nv_engine(msvld)->sclass = gf100_msvld_sclass;
return 0; return 0;
} }
......
...@@ -24,10 +24,6 @@ ...@@ -24,10 +24,6 @@
#include <engine/msvld.h> #include <engine/msvld.h>
#include <engine/falcon.h> #include <engine/falcon.h>
struct gk104_msvld_priv {
struct nvkm_falcon base;
};
/******************************************************************************* /*******************************************************************************
* MSVLD object classes * MSVLD object classes
******************************************************************************/ ******************************************************************************/
...@@ -62,15 +58,15 @@ gk104_msvld_cclass = { ...@@ -62,15 +58,15 @@ gk104_msvld_cclass = {
static int static int
gk104_msvld_init(struct nvkm_object *object) gk104_msvld_init(struct nvkm_object *object)
{ {
struct gk104_msvld_priv *priv = (void *)object; struct nvkm_falcon *msvld = (void *)object;
int ret; int ret;
ret = nvkm_falcon_init(&priv->base); ret = nvkm_falcon_init(msvld);
if (ret) if (ret)
return ret; return ret;
nv_wr32(priv, 0x084010, 0x0000fff2); nv_wr32(msvld, 0x084010, 0x0000fff2);
nv_wr32(priv, 0x08401c, 0x0000fff2); nv_wr32(msvld, 0x08401c, 0x0000fff2);
return 0; return 0;
} }
...@@ -79,19 +75,19 @@ gk104_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine, ...@@ -79,19 +75,19 @@ gk104_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
struct nvkm_oclass *oclass, void *data, u32 size, struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject) struct nvkm_object **pobject)
{ {
struct gk104_msvld_priv *priv; struct nvkm_falcon *msvld;
int ret; int ret;
ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true, ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
"PMSVLD", "msvld", &priv); "PMSVLD", "msvld", &msvld);
*pobject = nv_object(priv); *pobject = nv_object(msvld);
if (ret) if (ret)
return ret; return ret;
nv_subdev(priv)->unit = 0x00008000; nv_subdev(msvld)->unit = 0x00008000;
nv_subdev(priv)->intr = nvkm_falcon_intr; nv_subdev(msvld)->intr = nvkm_falcon_intr;
nv_engine(priv)->cclass = &gk104_msvld_cclass; nv_engine(msvld)->cclass = &gk104_msvld_cclass;
nv_engine(priv)->sclass = gk104_msvld_sclass; nv_engine(msvld)->sclass = gk104_msvld_sclass;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment