summaryrefslogtreecommitdiff
path: root/linux/i830.h
diff options
context:
space:
mode:
authorDavid Dawes <dawes@xfree86.org>2002-09-11 00:57:49 +0000
committerDavid Dawes <dawes@xfree86.org>2002-09-11 00:57:49 +0000
commitc4318a5c642d15ad3847a0b7a3185abf0c1ca219 (patch)
tree815e6cb0a77942fa13b0c3b2796c1ff7d970a75e /linux/i830.h
parent9797f0fd172c7d87e009dbfe7603c9df48509394 (diff)
- Fix various bugs in the DRI support for the i830 and i845G (Keith
Whitwell). - Major rework of the 2D i830/i845G support, including: - Improve VESA mode selection, and fix refresh rate selection. - Don't duplicate functions provided in the vbe modules. - Don't duplicate functions provided in the vgahw module. - Rewrite memory allocation. - Rewrite initialisation and save/restore state handling. - Decouple the i810 support from i830 and later. - Remove various unnecessary hacks and workarounds. - Fix an 845G problem with the ring buffer not in pre-allocated memory. - Fix screen blanking. - Fix some HW cursor glitches, and turn HW cursor off at VT switch and exit. - Don't attempt to use the i830's function 1 entity. - Fix problems with option handling. (David Dawes). - Add mode VBE-aware mode handling functions to the vbe module (David Dawes).
Diffstat (limited to 'linux/i830.h')
-rw-r--r--linux/i830.h52
1 files changed, 6 insertions, 46 deletions
diff --git a/linux/i830.h b/linux/i830.h
index 794588b2..b9752188 100644
--- a/linux/i830.h
+++ b/linux/i830.h
@@ -45,11 +45,11 @@
#define DRIVER_NAME "i830"
#define DRIVER_DESC "Intel 830M"
-#define DRIVER_DATE "20011004"
+#define DRIVER_DATE "20020828"
#define DRIVER_MAJOR 1
#define DRIVER_MINOR 2
-#define DRIVER_PATCHLEVEL 0
+#define DRIVER_PATCHLEVEL 1
#define DRIVER_IOCTLS \
[DRM_IOCTL_NR(DRM_IOCTL_I830_INIT)] = { i830_dma_init, 1, 1 }, \
@@ -87,50 +87,10 @@
i830_dma_quiescent( dev ); \
} while (0)
-#define __HAVE_DMA_IRQ 1
-#define __HAVE_DMA_IRQ_BH 1
-#define __HAVE_SHARED_IRQ 1
-#define DRIVER_PREINSTALL() do { \
- drm_i830_private_t *dev_priv = \
- (drm_i830_private_t *)dev->dev_private; \
- u16 tmp; \
- tmp = I830_READ16( I830REG_HWSTAM ); \
- tmp = tmp & 0x6000; \
- I830_WRITE16( I830REG_HWSTAM, tmp ); \
- \
- tmp = I830_READ16( I830REG_INT_MASK_R ); \
- tmp = tmp & 0x6000; /* Unmask interrupts */ \
- I830_WRITE16( I830REG_INT_MASK_R, tmp ); \
- tmp = I830_READ16( I830REG_INT_ENABLE_R ); \
- tmp = tmp & 0x6000; /* Disable all interrupts */ \
- I830_WRITE16( I830REG_INT_ENABLE_R, tmp ); \
-} while (0)
-
-#define DRIVER_POSTINSTALL() do { \
- drm_i830_private_t *dev_priv = \
- (drm_i830_private_t *)dev->dev_private; \
- u16 tmp; \
- tmp = I830_READ16( I830REG_INT_ENABLE_R ); \
- tmp = tmp & 0x6000; \
- tmp = tmp | 0x0003; /* Enable bp & user interrupts */ \
- I830_WRITE16( I830REG_INT_ENABLE_R, tmp ); \
-} while (0)
-
-#define DRIVER_UNINSTALL() do { \
- drm_i830_private_t *dev_priv = \
- (drm_i830_private_t *)dev->dev_private; \
- u16 tmp; \
- if ( dev_priv ) { \
- tmp = I830_READ16( I830REG_INT_IDENTITY_R ); \
- tmp = tmp & ~(0x6000); /* Clear all interrupts */ \
- if ( tmp != 0 ) \
- I830_WRITE16( I830REG_INT_IDENTITY_R, tmp ); \
- \
- tmp = I830_READ16( I830REG_INT_ENABLE_R ); \
- tmp = tmp & 0x6000; /* Disable all interrupts */ \
- I830_WRITE16( I830REG_INT_ENABLE_R, tmp ); \
- } \
-} while (0)
+/* Don't need an irq any more. The template code will make sure that
+ * a noop stub is generated for compatibility.
+ */
+#define __HAVE_DMA_IRQ 0
/* Buffer customization:
*/