summaryrefslogtreecommitdiff
path: root/shared/via_drv.h
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-01-27 22:48:47 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-01-27 22:48:47 +0000
commitcd9ef39c769202f161619ee7a95674371c57cd48 (patch)
tree85e034ddc5c57fc72f7cb4f97b453c89e942fea8 /shared/via_drv.h
parent77045dc51672715115f179c099dfb8d7b4d304d4 (diff)
Fixed multiple devices DMA bug. Fixed PCI path FIRE command detection
Diffstat (limited to 'shared/via_drv.h')
-rw-r--r--shared/via_drv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/via_drv.h b/shared/via_drv.h
index e1a8b6c3..5d90c9ca 100644
--- a/shared/via_drv.h
+++ b/shared/via_drv.h
@@ -27,6 +27,9 @@
#include "via_drm.h"
#include "via_verifier.h"
+#define VIA_PCI_BUF_SIZE 120000
+#define VIA_FIRE_BUF_SIZE 2048
+
typedef struct drm_via_ring_buffer {
drm_map_t map;
char *virtual_start;
@@ -51,6 +54,9 @@ typedef struct drm_via_private {
int last_vblank_valid;
unsigned usec_per_vblank;
drm_via_state_t hc_state;
+ char pci_buf[VIA_PCI_BUF_SIZE];
+ const uint32_t *fire_offsets[VIA_FIRE_BUF_SIZE];
+ uint32_t num_fire_offsets;
} drm_via_private_t;
/* VIA MMIO register access */