From 4f8fa6028631fa1d799e9a68ed710fbc98976656 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Sat, 27 Nov 2004 22:55:31 +0000 Subject: Reworked PCI MMIO command buffer parser, and imported code from the Mesa driver. It can now handle the 3D OpenGL commands from the Mesa unichrome driver. Added vsync frequency detection support. This will be used in the future for XvMC and better frame timing. Bumped minor version number and driver date. --- shared-core/via_drm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'shared-core/via_drm.h') diff --git a/shared-core/via_drm.h b/shared-core/via_drm.h index 75c72806..142b8dac 100644 --- a/shared-core/via_drm.h +++ b/shared-core/via_drm.h @@ -38,8 +38,6 @@ #define VIA_NR_XVMC_PORTS 10 #define VIA_NR_XVMC_LOCKS 5 #define VIA_MAX_CACHELINE_SIZE 64 -#define VIA_PREALLOCATED_PCI_SIZE 16384 -#define VIA_MAX_PCI_SIZE 65536 #define XVMCLOCKPTR(saPriv,lockNo) \ ((volatile int *)(((((unsigned long) (saPriv)->XvMCLockArea) + \ (VIA_MAX_CACHELINE_SIZE - 1)) & \ @@ -143,7 +141,8 @@ typedef struct _drm_via_futex { typedef struct _drm_via_dma_init { enum { VIA_INIT_DMA = 0x01, - VIA_CLEANUP_DMA = 0x02 + VIA_CLEANUP_DMA = 0x02, + VIA_DMA_INITIALIZED = 0x03 } func; unsigned long offset; @@ -202,6 +201,8 @@ typedef struct _drm_via_flush_sys { int discard; /* client is finished with the buffer? */ } drm_via_flush_sys_t; + + #ifdef __KERNEL__ int via_fb_init(DRM_IOCTL_ARGS); -- cgit v1.2.3