From 88bdb38cea60cea918b6e6a1ca97a7ec3de5b832 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Sat, 29 Sep 2007 21:09:09 +0300 Subject: nouveau: Change couple constants to symbols. --- shared-core/nv30_graph.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shared-core') diff --git a/shared-core/nv30_graph.c b/shared-core/nv30_graph.c index 590a5c33..2210abdb 100644 --- a/shared-core/nv30_graph.c +++ b/shared-core/nv30_graph.c @@ -2769,11 +2769,11 @@ nouveau_graph_wait_idle(struct drm_device *dev) int tv = 1000; while (tv--) { - if (NV_READ(0x400700) == 0) + if (NV_READ(NV04_PGRAPH_STATUS) == 0) break; } - if (NV_READ(0x400700)) { + if (NV_READ(NV04_PGRAPH_STATUS)) { DRM_ERROR("timeout!\n"); return -EBUSY; } @@ -2859,7 +2859,7 @@ int nv30_graph_init(struct drm_device *dev) NV_WRITE(0x400B84, 0x0c000000); NV_WRITE(NV04_PGRAPH_DEBUG_2, 0x62ff0f7f); NV_WRITE(0x4000c0, 0x00000016); - NV_WRITE(0x400780, 0x000014e4); + NV_WRITE(NV10_PGRAPH_CHANNEL_CTX_TABLE, 0x000014e4); /* copy tile info from PFB */ for (i=0; i