aboutsummaryrefslogtreecommitdiff
path: root/shared-core/savage_drv.h
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2005-01-15 16:55:01 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2005-01-15 16:55:01 +0000
commitffc51f1f32c57a99f2a8b02c0a9aa211362ec9b2 (patch)
tree74a86aa095dbb14700c6dfd5732aac46ed59a16e /shared-core/savage_drv.h
parent6c8a3194f40fc673b1055f1f2b70b45209881e7f (diff)
Setup MTRRs for frame buffer and aperture manually on Savage3D and
Savage4-based cards. Automatic setup in drm_initmap doesn't work due to the weird alignment and size of the aperture.
Diffstat (limited to 'shared-core/savage_drv.h')
-rw-r--r--shared-core/savage_drv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/savage_drv.h b/shared-core/savage_drv.h
index a3671dbe..16211a5a 100644
--- a/shared-core/savage_drv.h
+++ b/shared-core/savage_drv.h
@@ -140,6 +140,11 @@ typedef struct drm_savage_private {
drm_local_map_t *agp_textures;
drm_local_map_t *cmd_dma;
+ struct {
+ int handle;
+ unsigned long base, size;
+ } mtrr[3];
+
/* BCI and status-related stuff */
volatile uint32_t *status_ptr, *bci_ptr;
uint32_t status_used_mask;
@@ -177,6 +182,7 @@ extern uint16_t savage_bci_emit_event(drm_savage_private_t *dev_priv,
unsigned int flags);
extern void savage_freelist_put(drm_device_t *dev, drm_buf_t *buf);
extern int savage_preinit(drm_device_t *dev, unsigned long chipset);
+extern int savage_postcleanup(drm_device_t *dev);
extern int savage_do_cleanup_bci(drm_device_t *dev);
extern void savage_reclaim_buffers(drm_device_t *dev, DRMFILE filp);