aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_drv.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-07-23 14:29:13 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-07-25 21:43:25 -0400
commite04d8e829d7807e132d8c82c3554b164a803c617 (patch)
tree59a48dcafc2791869ec79b57616d2d83b71754f5 /drivers/gpu/drm/nouveau/nouveau_drv.h
parent8bded189552800cae6c333475a54dabe048a74aa (diff)
drm/nouveau: Reset AGP before running the init scripts.
BIOS scripts usually make an attempt to reset the AGP controller, however on some nv4x cards doing it properly involves switching FW off and on: if we do that without updating the AGP bridge settings accordingly (e.g. with the corresponding calls to agp_enable()) we will be locking ourselves out of the card MMIO space. Do it from nouveau_mem_reset_agp() before the init scripts are executed. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
index 9f4b8f2e2ec..8590032d36a 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
@@ -688,6 +688,7 @@ extern int nouveau_card_init(struct drm_device *);
688extern int nouveau_mem_detect(struct drm_device *dev); 688extern int nouveau_mem_detect(struct drm_device *dev);
689extern int nouveau_mem_init(struct drm_device *); 689extern int nouveau_mem_init(struct drm_device *);
690extern int nouveau_mem_init_agp(struct drm_device *); 690extern int nouveau_mem_init_agp(struct drm_device *);
691extern int nouveau_mem_reset_agp(struct drm_device *);
691extern void nouveau_mem_close(struct drm_device *); 692extern void nouveau_mem_close(struct drm_device *);
692extern struct nouveau_tile_reg *nv10_mem_set_tiling(struct drm_device *dev, 693extern struct nouveau_tile_reg *nv10_mem_set_tiling(struct drm_device *dev,
693 uint32_t addr, 694 uint32_t addr,