diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-08-09 14:10:22 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-09 15:13:13 -0400 |
commit | 967e7bde8739fe3b215f7537e8f1f39c044902af (patch) | |
tree | 5d96683b3b139da0b681ae038a8cd5f25ca32ef8 /drivers/gpu/drm/nouveau/nv04_fbcon.c | |
parent | db2bec187dd68e79d512112df1f6e7a849e7f0ce (diff) |
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/nv04_fbcon.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_fbcon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_fbcon.c b/drivers/gpu/drm/nouveau/nv04_fbcon.c index 8fe32bbed99a..d3b9c7c24f49 100644 --- a/drivers/gpu/drm/nouveau/nv04_fbcon.c +++ b/drivers/gpu/drm/nouveau/nv04_fbcon.c | |||
@@ -141,7 +141,7 @@ nv04_fbcon_accel_init(struct fb_info *info) | |||
141 | struct drm_device *dev = nfbdev->dev; | 141 | struct drm_device *dev = nfbdev->dev; |
142 | struct nouveau_drm *drm = nouveau_drm(dev); | 142 | struct nouveau_drm *drm = nouveau_drm(dev); |
143 | struct nouveau_channel *chan = drm->channel; | 143 | struct nouveau_channel *chan = drm->channel; |
144 | struct nouveau_device *device = nv_device(drm->device); | 144 | struct nvif_device *device = &drm->device; |
145 | struct nouveau_object *object; | 145 | struct nouveau_object *object; |
146 | int surface_fmt, pattern_fmt, rect_fmt; | 146 | int surface_fmt, pattern_fmt, rect_fmt; |
147 | int ret; | 147 | int ret; |
@@ -175,7 +175,7 @@ nv04_fbcon_accel_init(struct fb_info *info) | |||
175 | } | 175 | } |
176 | 176 | ||
177 | ret = nouveau_object_new(nv_object(chan->cli), NVDRM_CHAN, NvCtxSurf2D, | 177 | ret = nouveau_object_new(nv_object(chan->cli), NVDRM_CHAN, NvCtxSurf2D, |
178 | device->card_type >= NV_10 ? 0x0062 : 0x0042, | 178 | device->info.family >= NV_DEVICE_INFO_V0_CELSIUS ? 0x0062 : 0x0042, |
179 | NULL, 0, &object); | 179 | NULL, 0, &object); |
180 | if (ret) | 180 | if (ret) |
181 | return ret; | 181 | return ret; |
@@ -201,7 +201,7 @@ nv04_fbcon_accel_init(struct fb_info *info) | |||
201 | return ret; | 201 | return ret; |
202 | 202 | ||
203 | ret = nouveau_object_new(nv_object(chan->cli), NVDRM_CHAN, NvImageBlit, | 203 | ret = nouveau_object_new(nv_object(chan->cli), NVDRM_CHAN, NvImageBlit, |
204 | device->chipset >= 0x11 ? 0x009f : 0x005f, | 204 | device->info.chipset >= 0x11 ? 0x009f : 0x005f, |
205 | NULL, 0, &object); | 205 | NULL, 0, &object); |
206 | if (ret) | 206 | if (ret) |
207 | return ret; | 207 | return ret; |
@@ -255,7 +255,7 @@ nv04_fbcon_accel_init(struct fb_info *info) | |||
255 | OUT_RING(chan, NvCtxSurf2D); | 255 | OUT_RING(chan, NvCtxSurf2D); |
256 | BEGIN_NV04(chan, NvSubImageBlit, 0x02fc, 1); | 256 | BEGIN_NV04(chan, NvSubImageBlit, 0x02fc, 1); |
257 | OUT_RING(chan, 3); | 257 | OUT_RING(chan, 3); |
258 | if (device->chipset >= 0x11 /*XXX: oclass == 0x009f*/) { | 258 | if (device->info.chipset >= 0x11 /*XXX: oclass == 0x009f*/) { |
259 | BEGIN_NV04(chan, NvSubImageBlit, 0x0120, 3); | 259 | BEGIN_NV04(chan, NvSubImageBlit, 0x0120, 3); |
260 | OUT_RING(chan, 0); | 260 | OUT_RING(chan, 0); |
261 | OUT_RING(chan, 1); | 261 | OUT_RING(chan, 1); |