Skip to content

Commit

Permalink
drm/nouveau/msvld: switch to device pri macros
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Aug 28, 2015
1 parent 320ca25 commit f2d85ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions drivers/gpu/drm/nouveau/nvkm/engine/msvld/g98.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ static int
g98_msvld_init(struct nvkm_object *object)
{
struct nvkm_falcon *msvld = (void *)object;
struct nvkm_device *device = msvld->engine.subdev.device;
int ret;

ret = nvkm_falcon_init(msvld);
if (ret)
return ret;

nv_wr32(msvld, 0x084010, 0x0000ffd2);
nv_wr32(msvld, 0x08401c, 0x0000fff2);
nvkm_wr32(device, 0x084010, 0x0000ffd2);
nvkm_wr32(device, 0x08401c, 0x0000fff2);
return 0;
}

Expand Down
5 changes: 3 additions & 2 deletions drivers/gpu/drm/nouveau/nvkm/engine/msvld/gf100.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ static int
gf100_msvld_init(struct nvkm_object *object)
{
struct nvkm_falcon *msvld = (void *)object;
struct nvkm_device *device = msvld->engine.subdev.device;
int ret;

ret = nvkm_falcon_init(msvld);
if (ret)
return ret;

nv_wr32(msvld, 0x084010, 0x0000fff2);
nv_wr32(msvld, 0x08401c, 0x0000fff2);
nvkm_wr32(device, 0x084010, 0x0000fff2);
nvkm_wr32(device, 0x08401c, 0x0000fff2);
return 0;
}

Expand Down
5 changes: 3 additions & 2 deletions drivers/gpu/drm/nouveau/nvkm/engine/msvld/gk104.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ static int
gk104_msvld_init(struct nvkm_object *object)
{
struct nvkm_falcon *msvld = (void *)object;
struct nvkm_device *device = msvld->engine.subdev.device;
int ret;

ret = nvkm_falcon_init(msvld);
if (ret)
return ret;

nv_wr32(msvld, 0x084010, 0x0000fff2);
nv_wr32(msvld, 0x08401c, 0x0000fff2);
nvkm_wr32(device, 0x084010, 0x0000fff2);
nvkm_wr32(device, 0x08401c, 0x0000fff2);
return 0;
}

Expand Down

0 comments on commit f2d85ad

Please sign in to comment.