summaryrefslogtreecommitdiff
path: root/shared-core/via_drm.h
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2006-01-06 11:57:40 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2006-01-06 11:57:40 +0000
commit2e0c281d1aabdf5b775a2f7de804d2f34a500124 (patch)
tree35875a36414b789bef296dc0047676019814692f /shared-core/via_drm.h
parenta019c10c303bb1b2741a1da5b582ae45977085a5 (diff)
via: Version via_drm.h Alter the drm_via_dmablit_t IOCTL arg.
Diffstat (limited to 'shared-core/via_drm.h')
-rw-r--r--shared-core/via_drm.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/shared-core/via_drm.h b/shared-core/via_drm.h
index 73d496dd..cb054667 100644
--- a/shared-core/via_drm.h
+++ b/shared-core/via_drm.h
@@ -35,6 +35,17 @@
#include "via_drmclient.h"
#endif
+/*
+ * With the arrival of libdrm there is a need to version this file.
+ * As usual, bump MINOR for new features, MAJOR for changes that create
+ * backwards incompatibilities, (which should be avoided whenever possible).
+ * Note that the actual driver version is different, and defined in via_drv.h.
+ */
+
+#define VIA_DRMH_MAJOR 1
+#define VIA_DRMH_MINOR 0
+#define VIA_DRMH_PATCHLEVEL 0
+
#define VIA_NR_SAREA_CLIPRECTS 8
#define VIA_NR_XVMC_PORTS 10
#define VIA_NR_XVMC_LOCKS 5
@@ -251,6 +262,13 @@ typedef struct drm_via_blitsync {
unsigned engine;
} drm_via_blitsync_t;
+/*
+ * Below,"flags" is currently unused but will be used for possible future
+ * extensions like kernel space bounce buffers for bad alignments and
+ * blit engine busy-wait polling for better latency in the absence of
+ * interrupts.
+ */
+
typedef struct drm_via_dmablit {
uint32_t num_lines;
uint32_t line_length;
@@ -261,7 +279,7 @@ typedef struct drm_via_dmablit {
unsigned char *mem_addr;
uint32_t mem_stride;
- int bounce_buffer;
+ uint32_t flags;
int to_fb;
drm_via_blitsync_t sync;