summaryrefslogtreecommitdiff
path: root/shared/via_drv.h
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2004-11-27 22:55:31 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2004-11-27 22:55:31 +0000
commit4f8fa6028631fa1d799e9a68ed710fbc98976656 (patch)
treedf753d0e728afd97ac03388283df51f4e73a9e0d /shared/via_drv.h
parentf0a86288fa4d7b951f33f7b1a6ef36106c7df788 (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_drv.h')
-rw-r--r--shared/via_drv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/via_drv.h b/shared/via_drv.h
index 91edbab8..9ed8cd3a 100644
--- a/shared/via_drv.h
+++ b/shared/via_drv.h
@@ -45,7 +45,9 @@ typedef struct drm_via_private {
volatile uint32_t *last_pause_ptr;
volatile uint32_t *hw_addr_ptr;
drm_via_ring_buffer_t ring;
- char pci_buf[VIA_PREALLOCATED_PCI_SIZE];
+ struct timeval last_vblank;
+ int last_vblank_valid;
+ unsigned usec_per_vblank;
} drm_via_private_t;
/* VIA MMIO register access */
@@ -72,6 +74,6 @@ extern void via_driver_irq_uninstall(drm_device_t * dev);
extern int via_dma_cleanup(drm_device_t * dev);
-extern int via_dma_cleanup(drm_device_t * dev);
+
#endif