#include <engine/msvld.h>
#include <engine/falcon.h>
-struct g98_msvld_priv {
- struct nvkm_falcon base;
-};
-
/*******************************************************************************
* MSVLD object classes
******************************************************************************/
static int
g98_msvld_init(struct nvkm_object *object)
{
- struct g98_msvld_priv *priv = (void *)object;
+ struct nvkm_falcon *msvld = (void *)object;
int ret;
- ret = nvkm_falcon_init(&priv->base);
+ ret = nvkm_falcon_init(msvld);
if (ret)
return ret;
- nv_wr32(priv, 0x084010, 0x0000ffd2);
- nv_wr32(priv, 0x08401c, 0x0000fff2);
+ nv_wr32(msvld, 0x084010, 0x0000ffd2);
+ nv_wr32(msvld, 0x08401c, 0x0000fff2);
return 0;
}
struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject)
{
- struct g98_msvld_priv *priv;
+ struct nvkm_falcon *msvld;
int ret;
ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
- "PMSVLD", "msvld", &priv);
- *pobject = nv_object(priv);
+ "PMSVLD", "msvld", &msvld);
+ *pobject = nv_object(msvld);
if (ret)
return ret;
- nv_subdev(priv)->unit = 0x04008000;
- nv_engine(priv)->cclass = &g98_msvld_cclass;
- nv_engine(priv)->sclass = g98_msvld_sclass;
+ nv_subdev(msvld)->unit = 0x04008000;
+ nv_engine(msvld)->cclass = &g98_msvld_cclass;
+ nv_engine(msvld)->sclass = g98_msvld_sclass;
return 0;
}
#include <engine/msvld.h>
#include <engine/falcon.h>
-struct gf100_msvld_priv {
- struct nvkm_falcon base;
-};
-
/*******************************************************************************
* MSVLD object classes
******************************************************************************/
static int
gf100_msvld_init(struct nvkm_object *object)
{
- struct gf100_msvld_priv *priv = (void *)object;
+ struct nvkm_falcon *msvld = (void *)object;
int ret;
- ret = nvkm_falcon_init(&priv->base);
+ ret = nvkm_falcon_init(msvld);
if (ret)
return ret;
- nv_wr32(priv, 0x084010, 0x0000fff2);
- nv_wr32(priv, 0x08401c, 0x0000fff2);
+ nv_wr32(msvld, 0x084010, 0x0000fff2);
+ nv_wr32(msvld, 0x08401c, 0x0000fff2);
return 0;
}
struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject)
{
- struct gf100_msvld_priv *priv;
+ struct nvkm_falcon *msvld;
int ret;
ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
- "PMSVLD", "msvld", &priv);
- *pobject = nv_object(priv);
+ "PMSVLD", "msvld", &msvld);
+ *pobject = nv_object(msvld);
if (ret)
return ret;
- nv_subdev(priv)->unit = 0x00008000;
- nv_subdev(priv)->intr = nvkm_falcon_intr;
- nv_engine(priv)->cclass = &gf100_msvld_cclass;
- nv_engine(priv)->sclass = gf100_msvld_sclass;
+ nv_subdev(msvld)->unit = 0x00008000;
+ nv_subdev(msvld)->intr = nvkm_falcon_intr;
+ nv_engine(msvld)->cclass = &gf100_msvld_cclass;
+ nv_engine(msvld)->sclass = gf100_msvld_sclass;
return 0;
}
#include <engine/msvld.h>
#include <engine/falcon.h>
-struct gk104_msvld_priv {
- struct nvkm_falcon base;
-};
-
/*******************************************************************************
* MSVLD object classes
******************************************************************************/
static int
gk104_msvld_init(struct nvkm_object *object)
{
- struct gk104_msvld_priv *priv = (void *)object;
+ struct nvkm_falcon *msvld = (void *)object;
int ret;
- ret = nvkm_falcon_init(&priv->base);
+ ret = nvkm_falcon_init(msvld);
if (ret)
return ret;
- nv_wr32(priv, 0x084010, 0x0000fff2);
- nv_wr32(priv, 0x08401c, 0x0000fff2);
+ nv_wr32(msvld, 0x084010, 0x0000fff2);
+ nv_wr32(msvld, 0x08401c, 0x0000fff2);
return 0;
}
struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject)
{
- struct gk104_msvld_priv *priv;
+ struct nvkm_falcon *msvld;
int ret;
ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
- "PMSVLD", "msvld", &priv);
- *pobject = nv_object(priv);
+ "PMSVLD", "msvld", &msvld);
+ *pobject = nv_object(msvld);
if (ret)
return ret;
- nv_subdev(priv)->unit = 0x00008000;
- nv_subdev(priv)->intr = nvkm_falcon_intr;
- nv_engine(priv)->cclass = &gk104_msvld_cclass;
- nv_engine(priv)->sclass = gk104_msvld_sclass;
+ nv_subdev(msvld)->unit = 0x00008000;
+ nv_subdev(msvld)->intr = nvkm_falcon_intr;
+ nv_engine(msvld)->cclass = &gk104_msvld_cclass;
+ nv_engine(msvld)->sclass = gk104_msvld_sclass;
return 0;
}