summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_vga.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-10 04:10:22 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 05:13:13 +1000
commit967e7bde8739fe3b215f7537e8f1f39c044902af (patch)
tree5d96683b3b139da0b681ae038a8cd5f25ca32ef8 /drivers/gpu/drm/nouveau/nouveau_vga.c
parentdb2bec187dd68e79d512112df1f6e7a849e7f0ce (diff)
downloadlinux-stable-967e7bde8739fe3b215f7537e8f1f39c044902af.tar.gz
linux-stable-967e7bde8739fe3b215f7537e8f1f39c044902af.tar.bz2
linux-stable-967e7bde8739fe3b215f7537e8f1f39c044902af.zip
drm/nouveau: initial pass at moving to struct nvif_device
This is an attempt at isolating some of the changes necessary to port to NVIF in a separate commit. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_vga.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_vga.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c
index 0f0bafb4fe02..18d55d447248 100644
--- a/drivers/gpu/drm/nouveau/nouveau_vga.c
+++ b/drivers/gpu/drm/nouveau/nouveau_vga.c
@@ -12,13 +12,13 @@
static unsigned int
nouveau_vga_set_decode(void *priv, bool state)
{
- struct nouveau_object *device = nouveau_drm(priv)->device;
+ struct nvif_device *device = &nouveau_drm(priv)->device;
- if (nv_device(device)->card_type == NV_40 &&
- nv_device(device)->chipset >= 0x4c)
+ if (device->info.family == NV_DEVICE_INFO_V0_CURIE &&
+ device->info.chipset >= 0x4c)
nvif_wr32(device, 0x088060, state);
else
- if (nv_device(device)->chipset >= 0x40)
+ if (device->info.chipset >= 0x40)
nvif_wr32(device, 0x088054, state);
else
nvif_wr32(device, 0x001854, state);