diff options
author | Thomas Hellstrom <unichrome@shipmail.org> | 2004-11-27 22:55:31 +0000 |
---|---|---|
committer | Thomas Hellstrom <unichrome@shipmail.org> | 2004-11-27 22:55:31 +0000 |
commit | 4f8fa6028631fa1d799e9a68ed710fbc98976656 (patch) | |
tree | df753d0e728afd97ac03388283df51f4e73a9e0d /shared/via_drm.h | |
parent | f0a86288fa4d7b951f33f7b1a6ef36106c7df788 (diff) |
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.
Diffstat (limited to 'shared/via_drm.h')
-rw-r--r-- | shared/via_drm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shared/via_drm.h b/shared/via_drm.h index ed2ee2ac..ee703c79 100644 --- a/shared/via_drm.h +++ b/shared/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)) & \ @@ -131,7 +129,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; @@ -190,6 +189,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); |