From c21a7b763ad31c3473ba2c9a1a01bb729bc13bb5 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Wed, 5 Jul 2006 15:52:35 +0000 Subject: SiS 315 Awareness. --- shared-core/sis_drv.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'shared-core/sis_drv.h') diff --git a/shared-core/sis_drv.h b/shared-core/sis_drv.h index 636e5327..ab3e9ae4 100644 --- a/shared-core/sis_drv.h +++ b/shared-core/sis_drv.h @@ -31,21 +31,30 @@ /* General customization: */ -#define DRIVER_AUTHOR "SIS" +#define DRIVER_AUTHOR "SIS, Tungsten Graphics" #define DRIVER_NAME "sis" #define DRIVER_DESC "SIS 300/630/540" -#define DRIVER_DATE "20060619" +#define DRIVER_DATE "20060704" #define DRIVER_MAJOR 1 #define DRIVER_MINOR 2 #define DRIVER_PATCHLEVEL 1 +enum sis_family { + SIS_OTHER = 0, + SIS_CHIP_315 = 1, +}; + #if defined(__linux__) #define SIS_HAVE_CORE_MM #endif #ifdef SIS_HAVE_CORE_MM - #include "drm_sman.h" + +#define SIS_BASE (dev_priv->mmio) +#define SIS_READ(reg) DRM_READ32(SIS_BASE, reg); +#define SIS_WRITE(reg, val) DRM_WRITE32(SIS_BASE, reg, val); + typedef struct drm_sis_private { drm_local_map_t *mmio; unsigned idle_fault; @@ -57,6 +66,7 @@ typedef struct drm_sis_private { unsigned long agp_offset; } drm_sis_private_t; +extern int sis_idle(drm_device_t *dev); extern void sis_reclaim_buffers_locked(drm_device_t *dev, struct file *filp); extern void sis_lastclose(drm_device_t *dev); -- cgit v1.2.3